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

Topics - branx86

#221




Using a vacuum

#223
General Discussion / Repoen Closed Tab FireFox
October 05, 2015, 03:09:11 PM
Repoens Closed Tab FireFox

Ctrl + SHift + T
#225
Arduino / Control with Bluetooth
October 05, 2015, 10:45:35 AM
http://duino4projects.com/cheap-2-way-bluetooth-connection-between-arduino-and-pc/

YouTube Video - 

//////////////////////////////////////////////////////////////////////////////////
// REMIXED BY: TECHBITAR (HAZIM BITAR)
// LICENSE: PUBLIC DOMAIN
// DATE: MAY 2, 2012
// CONTACT: techbitar at gmail dot com

int counter =0;

void setup() {
Serial.begin(9600);
delay(50);
}

void loop() {
counter++;
Serial.print("Arduino counter: ");
Serial.println(counter);
delay(500); // wait half a sec
}

//////////////////////////////////////////////////////////////////////////////////

// REMIXED BY: TECHBITAR (HAZIM BITAR)
// LICENSE: PUBLIC DOMAIN
// DATE: MAY 2, 2012
// CONTACT: techbitar at gmail dot com

char INBYTE;
int  LED = 13; // LED on pin 13

void setup() {
Serial.begin(9600);
pinMode(LED, OUTPUT);
}

void loop() {
Serial.println("Press 1 to turn Arduino pin 13 LED ON or 0 to turn it OFF:");
while (!Serial.available());   // stay here so long as COM port is empty
INBYTE = Serial.read();        // read next available byte
if( INBYTE == '0' ) digitalWrite(LED, LOW);  // if it's a 0 (zero) tun LED off
if( INBYTE == '1' ) digitalWrite(LED, HIGH); // if it's a 1 (one) turn LED on
delay(50);
}



Using FlashMagic video -   


#226
General Discussion / Create Favicon
October 05, 2015, 08:43:39 AM
   

         http://www.favicon.cc/?
#227
****!!!!!!! Make sure to uncheck all extra software !!!!!!!******

This software is great converts all major media to any other media.   Just don't load the extra software that's bundled!!!!!!!!!
Unzip run setup and choose next then uncheck ALL the Babylon toolbar then choose next then finish.


#228
Arduino / Control Led and Motion over web
September 30, 2015, 02:59:59 PM
//   http://randomnerdtutorials.com/arduino-webserver-with-an-arduino-ethernet-shield/






/*
Created by Rui Santos
Visit: http://randomnerdtutorials.com for more arduino projects

Arduino with Ethernet Shield
*/

#include <SPI.h>
#include <Ethernet.h>
#include <Servo.h>
int led = 4;
Servo microservo;
int pos = 0;
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };   //physical mac address
byte ip[] = { 192, 168, 1, 178 };                      // ip in lan (that's what you need to use in your browser. ("192.168.1.178")
byte gateway[] = { 192, 168, 1, 1 };                   // internet access via router
byte subnet[] = { 255, 255, 255, 0 };                  //subnet mask
EthernetServer server(80);                             //server port     
String readString;

void setup() {
// Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  pinMode(led, OUTPUT);
  microservo.attach(7);
  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip, gateway, subnet);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}


void loop() {
  // Create a client connection
  EthernetClient client = server.available();
  if (client) {
    while (client.connected()) {   
      if (client.available()) {
        char c = client.read();
     
        //read char by char HTTP request
        if (readString.length() < 100) {
          //store characters to string
          readString += c;
          //Serial.print(c);
         }

         //if HTTP request has ended
         if (c == '\n') {         
           Serial.println(readString); //print to serial monitor for debuging
     
           client.println("HTTP/1.1 200 OK"); //send new page
           client.println("Content-Type: text/html");
           client.println();     
           client.println("<HTML>");
           client.println("<HEAD>");
           client.println("<meta name='apple-mobile-web-app-capable' content='yes' />");
           client.println("<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />");
           client.println("<link rel='stylesheet' type='text/css' href='http://randomnerdtutorials.com/ethernetcss.css'; />");
           client.println("<TITLE>Random Nerd Tutorials Project</TITLE>");
           client.println("</HEAD>");
           client.println("<BODY>");
           client.println("<H1>Random Nerd Tutorials Project</H1>");
           client.println("
");
           client.println("
"); 
           client.println("<H2>Arduino with Ethernet Shield</H2>");
           client.println("
"); 
           client.println("<a href=\"/?button1on\"\">Turn On LED</a>");
           client.println("<a href=\"/?button1off\"\">Turn Off LED</a>
");   
           client.println("
");     
           client.println("
");
           client.println("<a href=\"/?button2on\"\">Rotate Left</a>");
           client.println("<a href=\"/?button2off\"\">Rotate Right</a>
");
           client.println("<p>Created by Rui Santos. Visit http://randomnerdtutorials.com for more projects!</p>"); 
           client.println("
");
           client.println("</BODY>");
           client.println("</HTML>");
     
           delay(1);
           //stopping client
           client.stop();
           //controls the Arduino if you press the buttons
           if (readString.indexOf("?button1on") >0){
               digitalWrite(led, HIGH);
           }
           if (readString.indexOf("?button1off") >0){
               digitalWrite(led, LOW);
           }
           if (readString.indexOf("?button2on") >0){
                for(pos = 0; pos < 180; pos += 3)  // goes from 0 degrees to 180 degrees
                {                                  // in steps of 1 degree
                  microservo.write(pos);              // tell servo to go to position in variable 'pos'
                  delay(15);                       // waits 15ms for the servo to reach the position
                }
           }
           if (readString.indexOf("?button2off") >0){
                for(pos = 180; pos>=1; pos-=3)     // goes from 180 degrees to 0 degrees
                {                               
                  microservo.write(pos);              // tell servo to go to position in variable 'pos'
                  delay(15);                       // waits 15ms for the servo to reach the position
                }
           }
            //clearing string for next read
            readString=""; 
           
         }
       }
    }
}
}
#229
Arduino / Control On and Off over Web
September 30, 2015, 02:19:42 PM

!!!!!!!!### In attachments is a script that can control more one relay and display on IOS device. !!!!!!

//  http://www.instructables.com/id/Arduino-WebServer-controlled-LED/step2/Create-HTML-Form/

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1, 177);

EthernetServer server(80);

void setup()
{
Serial.begin(9600);
pinMode(8, OUTPUT);
Ethernet.begin(mac, ip);
server.begin();
}
if (digitalRead(8 )){
client.print(" LED is <font color='green'>ON</font>");
}else{
client.print(" LED is <font color='red'>OFF</font>");
}
client.println("
");

client.print("<FORM action=\"http://192.168.1.177/\" >");
client.print("<P> <INPUT type=\"radio\" name=\"status\" value=\"1\">ON");
client.print("<P> <INPUT type=\"radio\" name=\"status\" value=\"0\">OFF");
client.print("<P> <INPUT type=\"submit\" value=\"Submit\"> </FORM>");

break;
}
if (c == '\n') {

currentLineIsBlank = true;
buffer="";
} else if (c == '\r') {
if(buffer.indexOf("GET /?status=1″)>=0)
digitalWrite(8,HIGH);

if(buffer.indexOf("GET /?status=0″)>=0)
digitalWrite(8,LOW);
}
else {




;D Another version ;D


#include <Ethernet.h>
#include <SPI.h>
boolean reading = false;

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x49, 0xD6 };
byte ip[] = { 169,254,63,178 };
static char baseurl[]="http://169.254.63.178/";

Server server = Server(80); //port 80

void setup(){
  //Pins 10,11,12 & 13 are used by the ethernet shield
  pinMode(9, OUTPUT);

  Ethernet.begin(mac, ip);
  server.begin();
}

void loop(){
  // listen for incoming clients, and process qequest.
  checkForClient();
}

void checkForClient(){
  Client client = server.available();

  if (client) {

    // an http request ends with a blank line
    boolean currentLineIsBlank = true;
    boolean sentHeader = false;

    while (client.connected()) {
      if (client.available()) {
        if(!sentHeader){
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
          client.println("LED switch");
         
          client.println("<form METHOD=get action=\"");
          client.println(baseurl);
          client.println("\">");
          client.println("<input type=hidden name=LED value=0>");
          client.println("<input type=submit value=\"off\"></form>");
         
          client.println("<form METHOD=get action=\"");
          client.println(baseurl);
          client.println("\">");
          client.println("<input type=hidden name=LED value=1>");
          client.println("<input type=submit value=\"on\"></form>");
          sentHeader = true;
        }

        char c = client.read();
        if(reading && c == ' ') reading = false;
        if(c == '?') reading = true; //found the ?, begin reading the info
        if(reading){
          Serial.print(c);
        if(c == '0') {
digitalWrite(9, LOW);

break;
}
if(c == '1') {
digitalWrite(9, HIGH);
break;

}
        }
         if (c == '\n' && currentLineIsBlank)  break;
         if (c == '\n') {
          currentLineIsBlank = true;
        }else if (c != '\r') {
          currentLineIsBlank = false;
        }
      }
    }
    delay(1); // give the web browser time to receive the data
    client.stop(); // close the connection:
  }
}




#230
Windows Fixes / CMD 2 Log off RDP sessions
September 30, 2015, 11:53:09 AM
RWinsta  /SERVER:servername       To logoff sessions


qwinsta  /SERVER:servername    Show who's connected
#231
General Discussion / Convert URL to Dword
September 29, 2015, 02:44:23 PM
 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 =3468664375

The dword equivalent of the IP address will be the result. In this case, 3468664375.  http://3468664375    Will take you to 206.191.158.55


A variation on the dword IP address is one where a portion of the IP address is similarly converted. This only works with the rightmost two or three numbers, not the leftmost.

Let's start again with 206.191.158.55. Leaving the "206" as it is, we do the same calculation with the last three numbers:

191 * 256 + 158 = * 256 + 55 = 12557879

Now we have: http://206.12557879/obscure.htm

158 * 256 + 55 = 40503

Which results in: http://206.191.40503/obscure.htm



Thanks   http://www.pc-help.org/obscure.htm 
#232
General Discussion / Dell Printer 2150cn Error 094-422
September 28, 2015, 04:45:12 PM
This is not in the manual.


This error 094-422 is  the transfer belt almost at end of life.

To reset the counter you have to get into customer mode.   Turn printer on while holding the up and down arrow keys.

Once in customer mode. scroll to Parameter then choose Life DTB WASTE choose initialize then hit the check mark and it should say initializing.

Then turn off printer and back on and the error should be gone.
#233
DDrescue
1st. Create mount point: example (mkdir mountpoint)

2nd. mount -t cifs //IpAddress  /mountpoint -o user=  ,pass= ,sec=ntlm  for 192.168.1.192 user=CLonezilla Pass=Clone

3rd. dd_rescue  -d -r3 --no-split /dev/sda /mountpoint/Imagename
                         or
     dd if=/dev/sda of=/mnt/point/imagename.img conv=notrunc,noerror,sync     

-d tells ddrescue to use direct disk access and ignore the kernel's cache
-r3 tells ddrescue to retry bad sectors 3 times before giving up.

TO Restore
     dd_rescue -d -f -r3 /path/to/image  /dev/Harddrive(sda) restore.logfile
                              or
      dd if=/path/to/image of=/dev/Harddrive(sda,sdb)

-f Force overwrite of outfile, a device or partition to a Harddrive.
Mount Image for Gparted
losetup /dev/loop0 /mountpoint/Imagename
partprobe /dev/loop0
gparted /dev/loop0

Unload Image
losetup -d /dev/loop0

Mount Image:
1st. try see if OS will select correct filesystem :   mount /disk.img /mntpoint -o loop
mount /disk.img /mntpoint -t vfat -o loop=/dev/loop      vfat if filesystem is fat,change to ntfs or ext3
if you can't figure out filesystem. ( parted fileName.img  unit  B  print  ) This will give you the File system and the start address of the image.      mount -o loop,ro,offset=startaddress fileName.img mountpoint
#234
Linux Fixes / SED Tutorial
September 28, 2015, 10:09:04 AM
Replace the word dog in file1.
Cat=string to look for
Dog=string to change cat into
Yellow dog to be the best dog.
sed s/cat/dog/ file1 #Replaces the 1st instances in a line.
sed s/cat/dog/4 #Replaces the 4th cat in a line.

To replace all the words dog in a file.
sed s/cat/dog/g <file1 >file2

Number each line left alighnment
sed=Filename |sed 'N;s/\nt/'

Double space a file
sed G
Undo double space
sed 'n;d'
#235
Linux Fixes / Lirc Guide
September 28, 2015, 09:56:49 AM
You only need lirc and lirc-x

1. If your using Ubuntu or Debian you can just type apt-get install lirc in a terminal window.

    * Once installed Type service lirc stop to stop the service
    * Then service lirc start to start the service ask me why we have to do this I'll never know but has to be done.

2. Then record some buttons from the remote by typing irrecord –d /dev/lirc0 boxeeir or whatever name you want your remote to be.

    * Once done recording the remote stop the service with service lirc stop

3. Now check to see if you are getting the correct remote commands. Start the lirc server By typing this in a terminal windows. lircd –d /dev/lirc0 /etc/boxeeir

4. Now at the promt type irw

    * Press the buttons on your remote you just learned and see if they match. Press ctrl+c to quit irw.

5. If irw gave the right output, stop lirc with killall lircd

6. In the terminal window at the /etc/ prompt type cat boxeeir > lircd.conf

7. Now start the lirc server type /etc/init.d/lircd start

8. Now edit the Lircmap.xml the file is located in /opt/boxee/system

    * In the Lircmap.xml change the <remote device="boxeeir">
    * Match Lircmap.xml with lircd.conf buttons

9. Start Boxee and check remote.


#236
Linux Fixes / Mount ISO on Linux
September 28, 2015, 09:52:51 AM

mount -t iso9660 -o loop image.iso /mnt/iso
#237
Linux Fixes / CMD 2 Show all Hard drives & CD-Roms
September 28, 2015, 09:51:52 AM
CMD below gives you all your hard disk and CD-Roms and what they are.

  lshw -C disk
#238
Linux Fixes / AWK Tutorial
September 28, 2015, 09:48:44 AM
Print hey 48 times on screen
yes | head -48 | awk '{print "hey"}'

Print hey.0010 to hey.0099
yes | head -90 | awk '{printf("hey00%2.0f ",NR+9)}'

Head= how many to count
NR= where to start counting from

Print Hello to hello3
yes | head -3 | awk '{printf("hello%.of ", NR+0)}'

Print everyline erasing the 2nd field.
awk '{$2=" ",print}' filename
#239
Windows Fixes / Corupt Windows Profile (kb947215)
September 28, 2015, 08:52:12 AM
  ;D   https://support.microsoft.com/en-us/kb/947215  ;D

1st.  Log into the built-in Windows administrator account.

2nd. Registry Editor will launch and you need to navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

3rd.  Click each S-1-5 folder and double-click the ProfileImagePath entry to find out which user account that doesn't work.

4th.  Once you have located the folder for the corrupt profile (and it doesn't have a .bak ending), double-click RefCount and change the Value data to 0 and click Ok.
         Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
         Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
         Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.


5th.   Click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.
6th.   Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.
7th.  Close Registry Editor, Restart the computer, Log on again with your account.

#240
<!DOCTYPE HTML>
<html lang="en-US">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">   
  <title>Phone Ext. Photo Gallery</title>
 
  <style type="text/css">
#circle

{


border-radius:50% 50% 50% 50%; 


width:100px;


height:100px;




}




  </style>
</head>
<body>

<table width="400" border="0" cellpadding="5">

<tr>

<td align="center" valign="center">
<img src="file:///C:\Users\brobertson.HOUSHUCORP\Pictures\IMG_4066.JPG"id="circle"" alt="description here" />


Bon Ron
</td>



</tr>

</table>




</body>
</html>