News:

The Latest electronic and computer Tips that work!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - branx86

#166
Linux Fixes / Redhat and Centos Reset Admin Password
February 15, 2016, 02:10:34 PM
At system startup (boot options) press the letter "e"

* Locate the line that contains the word "Linux"

* Using erase backspaces "rhgb" guidelines and "quiet" and at the end of the line type init=/bin/sh

* Press Ctrl + x to boot the system with the changes applied.

* The system is mounted in read-only mode, run the following statement to allow write about the key file: mount -o remount, rw /

* Use the command "passwd root" and place the key you want

* Relabel the selinux with the following command: touch /.autorelabel

* Reboot your system with the following command: exec /sbin/init

* Enter the team and provide the key to return to the previous procedure
#167
Windows Fixes / Show Desktop quick
February 05, 2016, 04:31:44 PM

   
Press the Windows logo key Picture of the Windows logo key +D. (To restore minimized windows, press the Windows logo key Picture of the Windows logo key +D again.)


#168
Windows Fixes / Windows 7 Updates not Working
February 05, 2016, 02:26:53 PM
Reregister the BITS and Windows Update files
Open administrator cmd prompt copy and past below:
    regsvr32.exe atl.dll
    regsvr32.exe urlmon.dll
    regsvr32.exe mshtml.dll
    regsvr32.exe shdocvw.dll
    regsvr32.exe browseui.dll
    regsvr32.exe jscript.dll
    regsvr32.exe vbscript.dll
    regsvr32.exe scrrun.dll
    regsvr32.exe msxml.dll
    regsvr32.exe msxml3.dll
    regsvr32.exe msxml6.dll
    regsvr32.exe actxprxy.dll
    regsvr32.exe softpub.dll
    regsvr32.exe wintrust.dll
    regsvr32.exe dssenh.dll
    regsvr32.exe rsaenh.dll
    regsvr32.exe gpkcsp.dll
    regsvr32.exe sccbase.dll
    regsvr32.exe slbcsp.dll
    regsvr32.exe cryptdlg.dll
    regsvr32.exe oleaut32.dll
    regsvr32.exe ole32.dll
    regsvr32.exe shell32.dll
    regsvr32.exe initpki.dll
    regsvr32.exe wuapi.dll
    regsvr32.exe wuaueng.dll
    regsvr32.exe wuaueng1.dll
    regsvr32.exe wucltui.dll
    regsvr32.exe wups.dll
    regsvr32.exe wups2.dll
    regsvr32.exe wuweb.dll
    regsvr32.exe qmgr.dll
    regsvr32.exe qmgrprxy.dll
    regsvr32.exe wucltux.dll
    regsvr32.exe muweb.dll
    regsvr32.exe wuwebv.dll
   
   If you are running Windows Vista or Windows 7, clear the BITS queue. To do this, type bitsadmin.exe /reset /allusers at the command prompt.
   Knowledge Base:949104 How to obtain the latest version of the Windows Update Agent to help manage updates on a computer.
   Restart the computer.
#169
General Discussion / Change Comcast setop box resolutions
February 02, 2016, 11:29:48 AM
 Motorola HD Cable box
    With TV on, turn the cable box power off
    Push the Menu button on Remote or Box
    Wait several moments for a User Settings menu to appear on screen. (It comes up, even with power off)
    Using cursor keys, navigate to the HDMI setting. It probably says 720p next to it. (if it says 1080i, that's the max. Not many, if any, stations are broadcasting at 1080p)
    If it's 720 or lower, press the OK/Select button. Screen will blank out and reappear with new setting. Every time you press the button, it jumps to a new setting. Do it until you get the highest your box offers.
    Once you have 1080i or 1080p showing, turn the power back on with the power button. You should now have a better picture.
#170
Arduino / Current Meter using ACS712
February 01, 2016, 03:41:52 PM


/*
  ACS712 Current Sensor
  modified on 06 Sep 2020
  by Mohammad Reza Akbari @ Electropeak
  Home
*/


int analogPin = A0; // Current sensor output

const int averageValue = 500;
long int sensorValue = 0;  // variable to store the sensor value read

float voltage = 0;
float current = 0;

void setup() {
  Serial.begin(9600);           //  setup serial
}

void loop() {

  for (int i = 0; i < averageValue; i++)
  {
    sensorValue += analogRead(analogPin);

    // wait 2 milliseconds before the next loop
    delay(2);
  }

  sensorValue = sensorValue / averageValue;
  voltage = sensorValue * 5.0 / 1024.0;
  current = (voltage - 2.5) / 0.185;

  Serial.print("ADC Value: ");
  Serial.print(sensorValue);

  Serial.print("   ADC Voltage: ");
  Serial.print(voltage);
  Serial.print("V");

  Serial.print("   Current: ");
  Serial.print(current);
  Serial.println("A");
}


_______________________________________________________________________________________________________________________________________________________

/*
  ACS712 Current Sensor


*/


void setup() {
  Serial.begin(9600); //Start Serial Monitor to display current read value on Serial monitor
}

void loop() {
unsigned int x=0;
float AcsValue=0.0,Samples=0.0,AvgAcs=0.0,AcsValueF=0.0;

  for (int x = 0; x < 150; x++){ //Get 150 samples
  AcsValue = analogRead(A0);     //Read current sensor values   
  Samples = Samples + AcsValue;  //Add samples together
  delay (3); // let ADC settle before next sample 3ms
}
AvgAcs=Samples/150.0;//Taking Average of Samples

//((AvgAcs * (5.0 / 1024.0)) is converitng the read voltage in 0-5 volts
//2.5 is offset(I assumed that arduino is working on 5v so the viout at no current comes
//out to be 2.5 which is out offset. If your arduino is working on different voltage than
//you must change the offset according to the input voltage)
//0.185v(185mV) is rise in output voltage when 1A current flows at input
AcsValueF = (2.5 - (AvgAcs * (5.0 / 1024.0)) )/0.185;

Serial.print(AcsValueF);//Print the read current on Serial monitor
delay(50);
}
#171
Step 1: Download the UnSupported AppStore bundle

We're assuming that you already have Plex running on your computer, so we're skipping right to downloading the unsupported apps.  http://cordcutting.com/files/UnSupportedAppStore.bundle.zip Click here to download the UnSupported AppStore bundle.It will download as a .zip file.

Step 2: Unzip UnSupportedAppStore.bundle.zip

After you unzip it, the UnSupported AppStore should look like this.

Now go check out the downloaded .zip file. Just extract it to any folder you'd like, and meet us at the next step!

Step 3: Copy the extracted folder

Cut or copy UnSupportedAppStore.bundle

Now that the bundle is unzipped (it should just be called UnSupportedAppStore.bundle at this point, as shown in the image), right-click it. In the drop-down menu, select "Cut." Now you're carrying the bundle around on your clipboard, ready to put it where it belongs.

Step 4: Open the Plex plug-ins folder

Look for the Plex icon in the taskbar menu (it's the bottom-right one seen here).


Click "Open Plug-ins Folder" (second from top option).

Now navigate to the Plex plug-ins folder. This is where you're going to want to put the UnSupported AppStore bundle. To get to the Plex plug-ins folder quickly in Windows, just right-click the Plex Media Service icon on the task bar menu and choose "Open Plug-ins Folder" from the drop-down menu.

Step 5: Paste the bundle into the plug-ins folder

After you paste it, UnSupportedAppStore.bundle should show up in your plug-ins folder.

Now that you have the plug-ins folder open, just right-click it and select "Paste" from the drop-down menu. This will put the UnSupported AppStore bundle into the plug-ins folder.

And that's it! Next time you open Plex, you'll see the UnSupported AppStore among your channels. It will look just like a regular channel, and opening the app store will give you a ton of new Plex channel options that aren't available in the regular Plex App Store. Have fun exploring your new channels!




Once the UnSupported AppStore is in your plug-ins folder, it should show up as a channel.
#172
The following will show you how to use the Iexpress2.0 tool.

The tool allows you to make a self extracting file and much more : To play with this hidden feature of XP :

Navigate to : Windows\system32\

look for a file called iexpress.exe.

Double left click on it  and follow the wizzard.
#173
General Discussion / Convert IP to DWORD
February 01, 2016, 10:55:50 AM
Start with an IP address. In this example we'll use 206.191.158.55. Enter the following keystrokes into the calculator exactly as shown:

206 * 256 + 191 = * 256 + 158 = * 256 + 55 =

The dword equivalent of the IP address will be the result. In this case, 3468664375.

Now, there is a further step that can make this address even more obscure. You can add to this dword number, any multiple of the quantity 4294967296 (2564) -- and it will still work. This is because when the sum is converted to its basic digital form, the last 8 hexadecimal digits will remain the same. Everything to the left of those 8 hex digits is discarded by the IP software and therefore irrelevant.
#174
Linux Fixes / Use locate to find files
January 29, 2016, 03:51:37 PM
updatedb = update the database manually

locate locate  : to see if your not using slocate

locate -i "*.HtmL"   -i option performs a case-insensitive search.

locate "*.png" -q  -q option is used to suppress error messages, such as those that might be returned in the event that the user does not have permission to      access designated files or directories.

locate "*.png" basic lookup
#175
Navigate to the registry file.
HKEY_CURRENT_USER\Software\Microsoft\Office\<VERSION>\Security

Create a new string value named Level1Remove. You must use that key name.
Open the string value (double-click it) and enter the appropriate file extension you want to unblock.  add the extensions you want with leading dots and trailing semicolons like:

.pst;.rar;.mp4;.zip;.exe;.docx;.xlsx;.jpg;



<VERSION>
11= Office 2003 
12= Office 2007
14= Office 2010
15= Office 2013
16= Office 2016
#176
Raspberry Pi / Set the date and Time
January 28, 2016, 04:45:03 PM
as root

date -s "Jul 5 08:10"

or 
sudo date -s "Jul 5 08:10"
#177
a)      Log in with temp profile.
b)      Start registry editor by typing regedit in find box of Windows 7.
c)      Navigate the following location.
   HKEY_LOCAL_MACHINE\SOFTWARE\Micosoft\Windows NT\CurrentVersion\ProfileList

d) You will see similar keys under profile list, but one with .bak
e)      The key with .bak is for the correct old profile. Currently your Windows 7 computer logged in with fresh (temporary) profile with same key. So, rename the new profile key ( which is not having.bak) and remove .bak from correct profile key.
f)      That's it. Log off and log in (or restart) with your user name and password.

If Windows 7 computer loads with temporary profile and creates a registry key with .bak, that means user profile is really corrupted and Operating System is not reading it properly.


#178
Navigate to the ClipBucket install directory.

It's a hidden directory.     ./styles/cd_27/images

To change the logo in the top right replace the png with your png of choice. (new logo should be 348×53 pixels if using paint to resize)

#179
Linux Fixes / Setup Your own Youtube Server
January 20, 2016, 06:04:22 PM
 ;D http://www.unixmen.com/setup-your-own-youtube-clone-website-using-clipbucket/  ;D
use this script to load everything you need: http://ffmpeginstaller.com/
You can run a Linux server just like youtube using ClipBucket!
#180
 ;) From :   http://raspberrypihq.com/how-to-install-windows-10-iot-on-the-raspberry-pi/   ::)

;D Short version:
     Downloading Windows 10 IoT https://connect.microsoft.com/windowsembeddedIoT/Downloads/DownloadDetails.aspx?DownloadID=57782

   Step 1 – Extract downloaded image

Extract the downloaded image Windows_IoT_Core_RPI2_BUILD file into a separate folder. The folder should include the following files: Flash.ffu, license.rtf, ReadMe.txt, WindowsDeveloperProgramForIoT.msi. We need to convert the .ffu file to a .img in order to flash it onto a SD card.

Step 2 – Download FFU2IMG

Download the ffu2img tool https://raw.githubusercontent.com/t0x0/random/master/ffu2img.py ('Save as' in your browser) – this will help us convert the .ffu file to a .img file. Copy the downloaded ffu2img.py file into the extracted folder from step 1.

To run the ffu2img tool you must have Python installed – you can download it here https://www.python.org/downloads/ (use the 2.7.x branch).

Step 3 – Run FFU2IMG to create .img file

Open a command prompt and run the ff2img tool from the command line:

C:\RPi\Windows_IoT_Core_RPI2_BUILD>ffu2img.py Flash.ffu
Input File: Flash.ffu
Output File: Flash.img
Block data entries begin: 0x600f8L
Block data entries end: 0x79398L
Block data chunks begin: 0x80000L
6441 blocks, 824448kb written - Delay expected. Please wait.
Write complete.

Wait a while – it will take some time to convert the image. If you get an write error try opening the command prompt as an administrator.

Flash .img file to SD Card

Download win32diskimager and extract to a folder. At this point you want to insert an empty SD card into your computer.

Open the Win 32 Disk Image tool and select the new Flash.img image – next select the drive letter of your SD card and press write: