Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- written by: barski moti
- about 25% of this book was written by the yotamarker v1 program which was written on vb.net express 2008
- by barski moti
- contact me: http://yotamarker.justforum.net/
- the following book explains how to use most of the technologies existing in the world at 2011.
- CONTENTS:
- A TECHNIQUE FOR FINDING DATA OR ANSWERS
- GOOGLE TECHNIQUES
- PC TECHNICIAN
- HOW TO MAKE SUBTITLES
- STOP PC PROCESS AT STARTUP
- KEY CODES
- WINDOWS SERVER ADMINISTRATION
- BATCH FILE RUN LIST OF COMMANDS.
- UPDATE WINDOWS XP
- UBUNTU OPERATING SYSTEM
- HIDE YOUR IP
- YOU CAN UPLOAD AND DOWNLOAD YOUR FILES USING THIS SITES( A BACKUP TECHNIQUE)
- CUSTOM RSS FEED
- GAMING
- VB.NET
- PRACTICE BLIND TYPING
- VB SPECIAL CODES
- VB.NET IMAGE RECOGNITION ( AKA HIGASHI NO EDEN ) VERSION 1
- vb.net number to japanese count
- HOW TO MAKE A DLL IN VB.NET
- MAKE A SETUP WIZARD
- DOT NET MICRO FRAMEWORK
- SQL
- SQL DATABASE AND VB.NET
- SQL STORED PROCEDURES
- MINNING ACCESS DATABASES WITH VB.NET
- E-COMMERCE
- ASP.NET
- CLOUD COMPUTING
- YOUTUBE
- HTML (build a website)
- CSS (graphics for html)
- SEO
- VBULLETIN CODES
- BLOGGING
- MAKE A GIF
- HACKING
- CRACKING
- WORKSHOP SAFETY
- CNC SETUP AND OPERATION
- A METAL MELTING FURNACE
- OSCILLATOR
- CIRCUIT BOARD ETCHING
- NMOS TRANSISTORS
- FLASH MEMORY
- MAGNETIC CORE MEMORY
- CHARCOAL
- SAND TO CHIP
- PHOTO ELECTRIC CELL
- FOX HOLE RADIO
- GLASS
- STEEL
- ALUMINIUM
- GOLD
- MAGNEZIUM
- TITANIUM
- BATTERIES
- ALCOHOL:
- BIODIESEL
- THERMITE:
- LEATHER
- PAPER
- CEMENT
- HOW TO MAKE A HUMAN SIZED DOLL
- HOLOGRAM
- MICROSOFT OFFICE 2003 / 2007/2010 EXCEL
- VBA - visual basic for applications (in excel)
- MS ACCESS
- THE ART OF WAR
- ONE ON ONE FIGHTING
- NAVIGATION FOR QUERIERS
- SOLAR NAVIGATION
- japan addresses
- HOW TO WRITE A RESUME
- How To Do Laundry
- PLANTING
- POLINATION
- FOOD BY SEASONE
- CLAY
- BAMBOO
- RUBBER
- GROW POTATOS
- HUNTING small animals
- MUSHRUMS
- FREE REFRIGERATION
- DETECTING SPOILED FARM EGGS
- WILDERNESS SURVIVAL
- GROUNDWATER
- CORK
- PLUMBING
- MANGA
- THE ECONOMY
- HOW TO DESTROY A COMPANY THAT ANNOYED YOU
- UNIVERSAL BUREAUCRACY
- UTORRENT
- BICYCLE REPAIR
- THE PATH FOR TELEPORT (a work in progress)
- THERE COMES A TIME WHEN THE KING MUST BECOME THE ROAD WARRIOR.
- A TECHNIQUE FOR FINDING DATA OR ANSWERS:
- 1 search engines: google.com, bing.com
- to exclude a topic from your search ad -topic
- to search a phrase: "phrase of search"
- 2 forums:
- search "topic forum" and ask there
- 3 chats
- 4 torrentz and ebooks:
- install utorrent, then go to a torrent search engine and search for topic ebook or topic pdf, to work a pdf file you
- will need to install adobe pdf
- 5 file hosting sites: filepump, megaupload, rapidshare, zippyshare, mediafire, zshare, filehost
- 6 install emule or kazaa or other file sharing program, use it to search and download rare files.
- 7 http://answers.yahoo.com
- 8 upload an image to search :
- www.tineye.com
- GOOGLE TECHNIQUES
- 1 a OR b
- also : a | b
- 2 specific word ( word2 | word3 )
- 3 "look for this phrase"
- 4 Synonym search looks for words that mean similar things :
- ~hi
- 5 Exclude :
- -term -warez -usenext
- 6 fill in a blank :
- hello, how are *
- 7 Search for a numerical range :
- lcd $100..400$
- 8 filetype search :
- bp5 filetype:txt
- 9 exclude file type : word -filetype:doc
- 10 search by title :
- intitle:alfalfa
- 11 inutl:japan
- 12 live webcams
- inurl:view/view.shtml
- 13 find pages Google thinks are related in content :
- related:www.anyurl.com
- 14 Google Directory : a database of handpicked and rated sites :
- directory.google.com
- 16 news.google.com use intext modifier to get text parts
- more modifiers : location: source:
- 17 cache:site_url
- search for old site data even if it was deleted
- 18 add map to the end of your query
- 19 add &imgtype=face to the end of the returned URL in the location bar, then hit enter to filter out pictures that aren't people
- 20 stocks: followed by market ticker
- 21 see what others search for :
- www.google.com/zeitgeist or www.google.com/trends
- 22 more webcam :
- inurl:indexFrame.shtml Axis
- intitle:start inurl:cgistart
- intitle:îWJ-NT104 Main Pageî
- intitle:snc-z20 inurl:home/
- intitle:snc-cs3 inurl:home/
- intitle:snc-rz30 inurl:home/
- intitle:îToshiba Network Cameraî user login
- intitle:îi-Catcher Console ñ Web Monitorî
- inurl:/view.shtml
- intitle:îLive View / ñ AXISî | inurl:view/view.shtml^
- inurl:ViewerFrame?Mode=
- inurl:ViewerFrame?Mode=Refresh
- inurl:axis-cgi/jpg
- inurl:view/index.shtml
- inurl:view/view.shtml
- liveapplet
- intitle:liveapplet
- allintitle:îNetwork Camera NetworkCameraî
- intitle:axis intitle:îvideo serverî
- intitle:liveapplet inurl:LvAppl
- intitle:îEvoCamî inurl:îwebcam.htmlî
- intitle:îLive NetSnap Cam-Server feedî
- intitle:îLive View / ñ AXIS 206Mî
- intitle:îLive View / ñ AXIS 206Wî
- 23 search serial numbers :
- product name and 94fbr
- PC TECHNICIAN
- as a pc technician you will need a screw driver with a magnet tip, and disk on key device, pen, pocket book.
- HARDWARE:
- all repairs are to be done while power is of, and after you touch the floor to discharge static electricity.
- all the computers parts connect to its motherboard, replace a part according to:
- 1 if pc doesn't turn on replace power supply(connected to the power cord)
- 2 noisy fan: replace it
- 3 pc stuck at windows load : replace power supply
- 4 pc stuck after bios: try to replace memory cards:cards found on middle of mother board
- 5 pc crashes during work time: try to replace hard disk: box connected to motherboard by wires
- 6 when buying new parts show the salles man the old ones
- 7 connect a ups to your power supply to save it from blackouts
- 8 when the computer overheats it will beep repeatedly when a big program is run (also when watching movies or
- scrolling online), applying thermo paste will reduce the heat and fix this.
- the paste costs about 3$, it is a very small syringe
- put the paste on the middle of the cpu, below the heat sink (which is below the heatsink fan aka cpu fan)
- then return the heat sink over the cpu, and the cpu fan on the heat sink.
- cd/dvd burner : with a burn software such as nero can burn data to the cd/dvd or burn an iso (by selecting
- burn image) as data or auto dvd/cd. a lightscrib will burn special lightscrib dvds with an image printed on
- the disk surface.
- fixes for complex computer problems:
- 1 dust can cause unexplained problems, clean the fans with a spray can of pressured air,
- 2 computers older than 5 year need the bios battery(round found on motherboard) replaced
- 3 computer over beeps at summer: take out cpu cooler walls under fan in middle of motherboard,
- smear thermic cream(cost up to 2$) on cpu, return parts
- cards replace:
- sound,video, network cards are place on the edge of the mother board.
- check if the problem isn't caused by monitor, speaker, if the problem is not connecting to the internet
- call the isp(internet service provider).
- 1 to upgrade pc
- 2 drivers cd of previous card were lost and pc was formatted with operating system
- 3 glitch related to card
- if the problem isn't number 2, first try removing card, blowing air on it and in its slut, or at second time
- also use an eraser on its contacts before returning it
- SOFTWARE:
- 1 installing windows: the best windows is windows pro sp3, after that windows 7. when pc is turned on,
- press del to enter bios, insert win cd, choose startup devices from cd(not hd or hard disk), follow install
- wizard, when your finished return to bios, and set startup from HD(hard DISK)
- 2 install driver from driver cd's that arrive with pc , cards, and devices such as printers, webcams
- do not install anything but the drivers from the drivers, choose custom installation
- 3 call your isp tell them you installed an operating system(OS) and you need a dialer to connect to the internet.
- 4 get safe surfing from the isp to prevent viruses from sites.
- 5 search, download and install cccp (combined community codec pack) to be able to play any movie files you have
- 6 set restore point: start, all programs, accessories, system, tools, system restore. after you create it you
- can restore the pc to it's state at the restore point to undo a glitch.
- 7 safe mode: press f8 when computer boots this will disable the activation of unneeded software like viruses
- at start up, so you can restore your system or run antivirus or back up files
- 8.1 passwording the pc is from: start, control panel, user accounts
- 8.2 switching user accounts: start, log off
- 8.3 right click a folder, check encrypt to enable its access by the current user only
- 9 winrar: a software for encrypting AND unpacking rar files (a stronger version of winzip)
- 10.1 network setup wizard : connect each pc to a router (via network wire), go to start, control panel,
- network connections, set up a home or small office network, follow the wizard to share files and printers.
- 10.2 share an internet connection: if 1 pc connects to the internet (not via a router, via a adsl modem)
- if there are 2 pc's connect them via a crossed wire, >2 pc's connect them via a hum and network cable.
- in network connections, share an internet connection, in the wizard mention for each pc if it directly
- connects to the modem or not.
- 10.3 installing a network card: after installing its driver, my network connections, right click local area network
- , right click network card, properties, check tcp/ip, go to advanced tab to define firewall.
- 11 internet data clearing: in the browser, tools, internet options, delete to erase videos watched, cookies(
- delete once a month), and you can delete browsing history.
- 12 CONNECT TO THE INTERNET :
- router: to connect wirelessly to the router the pc most have usb wifi or built in wifi(for laptops or new pc's)
- to define the router after its connected to a pc via network cable, and connected to a modem or if it has a built in modem
- . start, run,ipconfig/all then in the browser go to the number in default gateway to define the router and start
- surfing.also you can define your router by calling your isp or using its install cd. chose PPoE for adsl connection
- or dhcp for cable connection to the internet
- connecting to the internet can also be done with a netstick (via gsm network) from anywhere, no
- router or wifi device needed, you buy the devise and charge it for cash at the computer or cellphone store, then
- plug it in the usb . the device is also called : Alcatel X220 USB cellular modem or netonkey
- 12.2 connect to the internet using a sim card and a laptop
- http://www.youtube.com/watch?v=tpzcRZgJeCI
- connect card, connect to the internet via the appearing icon in the icon tray
- 13 sharing folders: right click the folder, allow sharing(other pc's in your network can now access the folder via my
- network connections, you get all sorts of sharing options. from the sharing pc you can map a folder make it easier
- to share by right clicking it.
- 14 remotely control a pc:right click my computer, remote tab, check allow users...at technician place:
- start, all programs, accessories, remote desktop, type client ip.
- to get client ip ask him to go to :ipchicken.com and read you the number.
- client request for remote assistance: in this way both client and technician have control over the pc:start
- , all programs, remote assistance
- alternatively you can use the program team viewer.
- 15 software recommendations:
- antivirus : kaspersky, nod32, combofix
- windows defender
- anti-malware : malwarebytes anti-malware and Microsoft Security Essentials
- also run,cmd, type netstat -nap if you see 25 your pc is sending spam
- for MBR infections : tdsskiller
- webbrowser: google chrome, IE8 not IE9
- winrar, adobe reader (for reading pdf files), emule(to download rare files), primo pdf to print pdf files
- camstudio (to make video of screen capture) "f8" to record and "f9" to stop recording
- , speedfan (to get your cpu temperature)
- utorrent(to download files)
- cccp (to be able to play any movie files)
- in yahoomail.com you can open an email account
- 16 amd processors are better and cheaper then intell, intell will glitch.
- 17 Scheduled Tasks run a task automatically:
- start, all programs, Accessories, system tools, scheduled task, Double-click Add Scheduled Task.
- when you browse this is the root for defrag : %systemroot%\system32\defrag.exe
- c: is system root. you should defrag at least once a month to speed up your pc.
- 18 fax :
- Setting Up and Configuring Windows XP Fax
- 1 add a modem card, install its drivers cd, connect it to a phone line.
- 2 start, Control Panel, Add or Remove Programs, Add/Remove Windows Components, Fax Services check box, next
- configure the Fax Console:
- 1 start, all programs ,Accessories, Communications, fax, Fax Console
- 2 Tools, Configure Fax, Select Device for Sending or Receiving Faxes page - select your modem
- 3 Transmitting Subscriber Identification (TSID) and Called Subscriber Identification (CSID) pages enter your details
- Sending Faxes from Your Computer
- 1 On the File menu of the document, click Print (choose the fax)
- 2 Telephone numbers must be in the canonical form in which a U.S. number would appear as +1 (646) 888-1111
- windows 7 homenetworking :
- 1. In computer 1, click start button and type in "homegroup". Click on "HomeGroup" entry when it shows up.
- 2. Click on "Create a HomeGroup" and follow the wizard's instruction.
- 3. Write down the password. If you don't like the password that windows automatically generated, you can change it after you have done creating the HomeGroup.
- 4. Go to computer 2, click start then type in "homegroup". Click "HomeGroup" when it show up.
- 5. Click on join and type in the password (the one you wrote down when you created the homegroup in computer 1)
- win 7 file sharing via lan router
- 19 email : yahoomail.com or yahoo.com
- switch back to yahoo mail classic
- disable java script
- Click "Tools".....click "Options"......click "Content"
- UN-check/Disable ïenable JavaScriptï
- click OK.
- log on to your yahoo account
- yahoo gives you this message
- click on the second link (return to classic
- dont forget to
- enable javascript later
- Click "Tools".....click "Options"......click "Content"
- check/enable ïenable JavaScriptï
- click OK.
- 20 FAVORITES : C:\Documents and Settings\computername\Favorites
- save delete all from there
- 21 vmware, virtualbox (are programs) = virtual additional computer
- HOW TO MAKE SUBTITLES
- in the same folder, videoname.avi videoname.srt (from .txt)
- in srt type :
- 0
- 00:00:00 --> 00:00:30
- first line
- 1
- 00:00 56 --> 00:01:10
- bla bla
- and so on
- STOP PC PROCESS AT STARTUP
- Go in Control Panel -> Administrative Tool -> Services. Find the two corresponding service and set their startup type to
- Manual
- KEY CODES
- ctrl + f - find (text or words in files with text)
- ctrl + A - mark all text or files
- ctrl + Z - undo text changes
- ctrl + C - copy marked text or files
- ctrl + V - paste marked text or files
- ctrl + X - cut marked text or files
- ctrl + mouse left click - mark each file
- shift + delete key - delete files marked
- shift + left right arrow keys : mark text
- windows key + L - lock windows, then you can reenter with the password set in the user accounts
- alt + F4 key - exit program, or shut down pc
- alt + ctrl + DELETE key - exit stuck program
- ctrl + left or right arrows - move fast word by word on text
- ctrl + p - print
- Windows Logo+D (Display the desktop)
- Windows Logo+M (Minimize all of the windows)
- Windows Logo+SHIFT+M (Restore the minimized windows)
- Windows Logo+E (Open My Computer)
- CTRL+Windows Logo+F (Search for computers)
- win 7 browser change zoom : ctrl + mouse scroll
- WINDOWS SERVER ADMINISTRATION
- Install and Configure Windows 2003 Active Directory
- Active Directory Requirements:
- An NTFS partition with approximately 2Gb free Space
- An Administrator's username and password and separate Directory Services Restore Mode Password.
- Properly configured TCP/IP network connection, with IP Address , Subnet mask and Default Gateway.
- An operational DNS server (which can be installed on the DC itself)
- A Domain name
- assuming win server 2003 was installed:
- 1 Start the install from the start, all programs, admin tools "Configure Your Server" wizard or by typing DCPromo from
- the Run prompt (start, run , cmd)
- 2 in the install wizard : Select "Domain Controller (Active Directory) then press Next
- 3 install dns on this computer
- Install and Configure Windows 2003 DHCP (distribution of ipadresses to client pc's):
- 1 Open the Windows Components section of Add/Remove programs
- 2 Open Network Services
- 3 Ensure that the DHCP checkbox is ticked and press OK
- 4 Using the 80/20 Rule for Servers and Scopes
- *can skip paragraph
- To provide fault tolerance for the DHCP service within a given subnet, you can configure two DHCP servers to assign
- addresses on the same subnet. Here if one server fails then the other can take over. For balancing DHCP server use
- in this case, a good practice is to use the 80/20 rule to divide the scope addresses between the two DHCP servers.
- Server 1 is configured to assign 80% of the total addresses and server 2 is assigned the other 20%. Both servers have
- the same IP range but exclude each others portion of that range.
- Open the DHCP Management Console from start, all programs, Administrative Tools
- Select New Scope (right click on left side of dhcp window ) (this will be range of ipaddresses)
- fill for example : start ip 198.168.1.1 end ipaddress 198.168.1.254 length 24 subnet mask 255.255.255.0
- the router ip is the default gateway it is not to be used in the dhcp scope
- wins server - you don't need to configure
- authorize the new scope from the dhcp window (by right click left side of dhcp window)
- Install and Configure Windows 2003 DNS
- Open the Windows Components part of Add/Remove Programs, networking services, Press Details
- , domain name server, Press OK, right click forward loockup zone, follow the wizard.
- BATCH FILE RUN LIST OF COMMANDS.
- create a batch file: right click mouse, new, txt file, type commands in file, change file name ending to .bat, double
- click file to run commands typed in it
- 2 commands:
- @echo off - no messages
- echo - messages
- dir c:\windows - get folder and files list of c:\windows
- pause - pause
- ECHO Hello %1 moti - %1,%2... are variables the lines output is hello moti
- :: or rem - add comments after that ,it does nothing
- :LABEL - :word then you can jump to that line using goto
- CALL - run a different batch file
- CLS - clear screen
- ECHO - write what is after echo, echo. is an empty line
- @echo off - nothing will be written
- GOTO END
- ECHO SKIPPING THIS
- :END
- ECHO DONE
- IF [NOT] string1==string2 command
- IF [NOT] EXIST filename command
- EXIST filename - Specifies a true condition if the specified filename exists
- command - your command will execute if the if sentence is true
- [not] - reverses if condition
- IF EXIST filename. (
- del filename.
- ) ELSE (
- echo filename. missing.
- )
- IF EXIST filename. (del filename.) ELSE echo filename. missing
- START C:\WINDOW\CALC - will start calc program
- START /MAX C:\Windows\NOTEPAD.EXE
- 3 sample batch program:
- @ECHO OFF
- REM - LABEL INDICATING THE BEGINNING OF THE DOCUMENT.
- :BEGIN
- CLS
- REM - THE BELOW LINE GIVES THE USER 3 CHOICES (DEFINED AFTER /C:)
- CHOICE /N /C:123 PICK A NUMBER (1, 2, or 3)%1
- REM - THE NEXT THREE LINES ARE DIRECTING USER DEPENDING UPON INPUT
- IF ERRORLEVEL ==3 GOTO THREE
- IF ERRORLEVEL ==2 GOTO TWO
- IF ERRORLEVEL ==1 GOTO ONE
- GOTO END
- :THREE
- ECHO YOU HAVE PRESSED THREE
- GOTO END
- :TWO
- ECHO YOU HAVE PRESSED TWO
- GOTO END
- :ONE
- ECHO YOU HAVE PRESSED ONE
- :END
- 4 Below is an example of how to delay a batch file any where from 5 to 99 seconds
- TYPE NUL | CHOICE.COM /N /CY /TY,5 >NUL
- 5 Deleting files in MS-DOS without a prompt:
- deltree c:\windows\temp\*.* /y deletes all files in temp folder
- option 2:
- echo y | del %1\*.*
- Once created, you can type the name of the batch file then the name of the directory that you wish to delete.
- 6 How to execute commands in a batch file in timed intervals:
- :START
- REM Execute the MS-DOS dir command ever 20 seconds.
- dir
- SLEEP 20
- GOTO END
- 7 How to shut down / restart the computer with a batch file:
- shutdown -r -c "Rebooting for latest updates."
- Shutdown and restart the computer
- shutdown -s -c
- shutdown
- 8 How to run a batch file each time the computer boots:
- Create a shortcut to the batch file. Additional information about how to create a shortcut can be found on document CH00739.
- Once the shortcut has been created right-click the file and select Cut.
- Click Start, Programs, right-click the Startup folder and click Open
- Once the Startup folder has been opened click Edit and paste the shortcut into the startup.
- Any shortcuts in the startup folder will automatically start each time Windows starts.
- option 2:
- start, run, regedit, choose HKEY_CURRENT_USER, software, microsoft, windows, currentvertion, run,
- rightclick right window(if you use english), new string value, name it, double click it, type:
- c:\windows\system32\mspaint.exe (or other file to run at start up)
- start, run, msconfig, check if its in startup tab
- 9 How to run a batch file at a specific time:
- Click Start
- Click Programs
- Click Accessories, System Tools, and then Scheduled Tasks.
- click Add Scheduled Task
- 10 loop :
- @echo off
- cls
- :start
- echo This is a loop
- pause
- goto start
- 11 quickly replace the file extensions of several files:
- xcopy also keeps the originals
- xcopy *.shn *.wav
- rename *.shn *.wav
- 12 navigation:
- cd\
- cd foldername
- (here put command like xcopy)
- 13 text files:
- ECHO Your text goes here >filename.txt
- That would add "Your text goes here" to the file filename.txt
- ECHO New line >>filename.txt
- That would add a new line to the same file, keeping the current contents as well.
- ECHO Erase the file >filename.txt
- That would erase the contents of the file and start it fresh.
- ECHO. >>filename.txt
- That above (with the period after ECHO) would add a blank line.
- Notice the difference between the single > and double >>
- The single > will erase anything that's already in the file and start it fresh.
- The double >> will keep what's already in the file and add a new line.
- TO TURN OFF SECURITY CENTER ALERTS
- Start, click Control Panel, Double-click Security Center, under Resources, click Change the way Security
- Center alerts me, In the Alert Settings dialog box, clear the Firewall, Automatic Updates, or Virus Protection
- check boxes, and then click OK.
- UPDATE WINDOWS XP
- windowsupdate.microsoft.com/
- UBUNTU OPERATING SYSTEM
- ubuntu is an open source OS
- DOWNLOAD AND INSTALL :
- http://www.ubuntu.com/download/ubuntu/download
- HIDE YOUR IP
- to change your ipaddress (the one displayed on servers(websites)) you surf to :
- 1 install foxyproxy
- 2 go to proxz.com , click high anonymous, copy from the list an ipaddress and port to the foxyproxy
- or use : youhide.com
- How To Make A Static IP Address:
- run, cmd, ipconfig a:
- copy : ipadress, default gateway, subnet mask, dhcp server
- start, control panel, network connections, right click the connection, properties, scroll down to internet protocol tcp/ip
- YOU CAN UPLOAD AND DOWNLOAD YOUR FILES USING THIS SITES( A BACKUP TECHNIQUE)
- rapidshare.com
- mediafire.com
- sharingmatrix.net
- filefactory.com
- filesonic.com
- zshare.net
- megaupload.com
- oron.com
- fileserve.com
- box.net
- mydrive.ch
- http://bayimg.com 'upload images
- i recommend zipping the files with winrar before upload to speed the upload.
- CUSTOM RSS FEED
- get update of all your favorite sites in 1 place :
- http://feedweaver.net/
- GAMING
- you will find a walkthrough for a 2 player vs game in : bp 2nd part
- the essence of quest gaming is brackets :
- {[((()))()()(())][()(())]} each open brackets is the start of a story or conflict, each corrosponding close brackets
- is a battle, the final brackets are boss battles.
- also, interesting quest games teach the gamer stuff like languages and technology, have big maps based on real maps, nice
- landscapes, markets, heal centers, cheats like death note, travel upgrades like speed up and teleport, level ups,
- character collection, and multiplayer support. also have a rival, and a comic relief character.
- free pachinko online : http://game.ayumex.com/pachinko/
- VB.NET:
- vb.net - visual basic 2010 is a compiler - a program that make programs using cheats.
- install: go to google.com, search vb.net download.
- after install:
- file: here you can open a new project(create a program(choose form its easiest)),save,load...
- tools:double click a tool (left bar of screen) it adds to your form, double click appeared tool and
- you can write code for what happens when the tool is clicked.
- also double click tool events(right of screen with form(lightning symbol)) to code for those events.
- while coding:write tools name(as appears in its changeable properties (at right of screen with form)) dot
- then choose or type a property to change. example : textbox.text = "hello"
- the form is considered as a tool, double click it to write code for its load event
- variables: examples: dim x as integer
- comment example:dim s as string'string variable
- global variables : are declared outside of sub(procedure or function) and can be used by all subs
- local variables: declared inside subs and can be used within the sub in which they were declared
- special operators:/ division, * multiply, ^ exponent, & string concat, \ integer divition, mod remainder division
- intellisense:right click and choose the code snipet you want (if statements,loops,select case and more) , tab key.
- imports:)see vb.net sp codes for example
- 1 install some sdk or something(not always mostly not needed)
- 2 add vb control (not always mostly not needed)
- 3 add reference
- 4 add import statement at 1st line of the code area(outside of the class )
- 5 you can now use lines of code unlocked by stages 1-4 in the subs
- class:
- add class from project menu (from here you can also add a form)
- public className
- dim x as string 'or public x as string or private x as integer
- private hiden as integer 'can be used only in class
- sub s1()
- end sub
- sub s2()
- hiden = 5
- x = hiden
- end sub
- end class
- to use the class: in a sub in the main code:
- dim j as new className()
- then you can reference the objects powers:
- r= j.x
- j.s1()
- j.x = "true ogre"
- j.s2
- can not reference j.hiden
- inheritance: add class:
- public class classB
- inherits className
- variables
- subs
- end class
- in the main code classB can use classNames powers and its own whereas className can't use
- classB's powers
- subs:
- sub sA(byval x as integer) as integer
- return x + 1
- end sub
- sub sB()
- msgbox("hello")
- end sub
- sub sC(byref x as string)
- x &= "hello"
- endsub
- use subs from within other subs or event subs :
- sA(1) 'returns 2
- sB() 'message "hello"
- dim s1 as string = "konichiwa"
- sC(s1) ' s1 = "konichiwahello"
- dictionary type: this is the most powerful variable in the vb.net arsenal it uses hash tables to find
- data for its corresponding keys(fastest):
- imports system.collections.generic
- declar it in the class:
- dim d as new dictionary (of string,string) ' or (of any variable,any variable)(of keys,data)
- get data: d(key) : x =d(keyVariable)
- d. 'choose a dictionary technique like add a key and value
- d(key)= newValue 'change data for key
- to refer to all the data in dictionary (lets call it d):
- for each pair as keyvaluepair(of string,integer) in d
- sum += pair.value
- next
- array: dim ar(index1,index2...) as integer 'or other data type
- or: dim ar(0-3) as short or dim ar(variable - 2) as integer
- assign value: ar(1,2) = 3 'for example
- also : dim ar() as string ={"hi", "wasap", "yo"}
- for 2 dimensions: dim ar = {{9,1},{60,5}} and so on
- Lbound(arrayName) returns the start index of the array
- Ubound(arrayName) returns the last index of the array
- array.sort(arrayname) : sorts the array
- the try snippet of the intellisense can negate a glitch from stopping the program. put the code that might cause
- a problem after try, and after catch you can put code to run if a glitch accord.
- debug: f5 or green arrow.
- debug step by step: blue arrows next to debug green arrow
- add watch for variables to track them while step by step debug: right click variables from code
- and add watch.
- in the solution explorer window there is a resources folder to which you can add files like picture than use them
- as read only via : my.resources.filename
- example :
- dim bm1 as bitmap
- bm1 = my.resources.pic1
- exit application :
- my.application.exit()
- application.exit()
- simplest way to save in vb :
- project, save settings (or from my project in solution explorer), application, enable application framework and save my.settings on shutdown are checked
- in settings add variable that will be saved
- dim settings as new my.settings ' global var
- in sub :
- settings.varname = "" 'as var type
- settings.save()
- PRACTICE BLIND TYPING
- http://www.snopi.com/fs/fs.asp?lang=eng&view=eng
- http://www.vbforums.com/showthread.php?p=4045321#post4045321
- VB SPECIAL CODES
- AMP IT UP
- 1 random
- Dim random As New Random()
- random.Next(65, 91) ' return 65 - 90
- ' chr(random.Next(65, 91)) return A - Z
- or
- x = CStr(Int(Rnd() * 10)) 'variable x = exampeled random number
- 2 beep() 'beeps
- 3 add new line to a multiline text box:
- textBox1.Text = "Your First Line" & vbCrLf & "Your second line"
- or textBox.AppendText(Environment.NewLine & "your new text")
- 4 volume meter:
- 4.1 install your usb microphone (or webcam mic) drivers from its cd
- 4.2 download and install .net (framework) 2.0 (it's in this book files)
- download and install audioLab and its pdf manual from:
- mitov.com/html/download_audiolab.html
- 4.3 follow the manual till you have the vumeter control on your vb toolbox
- 4.4 connect usb microphone
- 4.5 add the control vumeter , properties:period 100(0.1 seconds)
- 4.6add the control audio in
- 4.7click the audio in little arrow, choose your usb microphone
- 4.8 audio in properties : output pin : check vumeter
- 4.9 double click event of vumeter to code, in the code textbox.text = args.avalue
- 5 robotic output: you will need a usb microcontroller to send output signals from your computer
- search for vb.net microcontrollers/usb dc motors/vb.net robotics controller
- also trossen robotics and pc-control sells that stuff and it should come with a walkthrough
- http://www.pc-control.co.uk/
- 6 record sound from usb microphone:
- Public Class Form1
- Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- ' record from microphone
- mciSendString("open new Type waveaudio Alias recsound", "", 0, 0)
- mciSendString("record recsound", "", 0, 0)
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- ' stop and save
- mciSendString("save recsound c:\record.wav", "", 0, 0)
- mciSendString("close recsound", "", 0, 0)
- End Sub
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- ' play audio
- My.Computer.Audio.Play("c:\record.wav", AudioPlayMode.Background)
- End Sub
- End Class
- add controls according to squigly lines in code
- 7 textbox enter key down event: double click textbox event key up
- If e.KeyCode = Keys.Enter Then
- 'some code
- end if
- 8 save text file:
- 8.1 Imports System.IO (1st line of code)
- 8.2If File.Exists("path string") Then 'c:\wasap.txt for example
- File.Delete("path string")
- File.Delete("path string")
- End If
- instead of using imports.io you can use in the code: io.file.
- 8.3 File.WriteAllText(pathString, dataString) '
- 8.4 to read txt file :
- File.ReadAllText(pathString)
- 9 webcam image capture:
- Public Class Form1
- Const WM_CAP As Short = &H400S
- Const WM_CAP_DRIVER_CONNECT As Integer = WM_CAP + 10
- Const WM_CAP_DRIVER_DISCONNECT As Integer = WM_CAP + 11
- Const WM_CAP_EDIT_COPY As Integer = WM_CAP + 30
- Const WM_CAP_SET_PREVIEW As Integer = WM_CAP + 50
- Const WM_CAP_SET_PREVIEWRATE As Integer = WM_CAP + 52
- Const WM_CAP_SET_SCALE As Integer = WM_CAP + 53
- Const WS_CHILD As Integer = &H40000000
- Const WS_VISIBLE As Integer = &H10000000
- Const SWP_NOMOVE As Short = &H2S
- Const SWP_NOSIZE As Short = 1
- Const SWP_NOZORDER As Short = &H4S
- Const HWND_BOTTOM As Short = 1
- Dim iDevice As Integer = 0
- Dim hHwnd As Integer
- Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Object) As Integer
- Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer
- Declare Function DestroyWindow Lib "user32" (ByVal hndw As Integer) As Boolean
- Declare Function capCreateCaptureWindowA Lib "avicap32.dll" (ByVal lpszWindowName As String, ByVal dwStyle As Integer, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Short, ByVal hWndParent As Integer, ByVal nID As Integer) As Integer
- Declare Function capGetDriverDescriptionA Lib "avicap32.dll" (ByVal wDriver As Short, ByVal lpszName As String, ByVal cbName As Integer, ByVal lpszVer As String, ByVal cbVer As Integer) As Boolean
- Private Sub LoadDeviceList()
- Dim strName As String = Space(100)
- Dim strVer As String = Space(100)
- Dim bReturn As Boolean
- Dim x As Integer = 0
- Do
- bReturn = capGetDriverDescriptionA(x, strName, 100, strVer, 100)
- If bReturn Then lstDevices.Items.Add(strName.Trim)
- x += 1
- Loop Until bReturn = False
- End Sub
- Private Sub OpenPreviewWindow()
- Dim iHeight As Integer = picCapture.Height
- Dim iWidth As Integer = picCapture.Width
- hHwnd = capCreateCaptureWindowA(iDevice, WS_VISIBLE Or WS_CHILD, 0, 0, 640, 480, picCapture.Handle.ToInt32, 0)
- If SendMessage(hHwnd, WM_CAP_DRIVER_CONNECT, iDevice, 0) Then
- SendMessage(hHwnd, WM_CAP_SET_SCALE, True, 0)
- SendMessage(hHwnd, WM_CAP_SET_PREVIEWRATE, 66, 0)
- SendMessage(hHwnd, WM_CAP_SET_PREVIEW, True, 0)
- SetWindowPos(hHwnd, HWND_BOTTOM, 0, 0, picCapture.Width, picCapture.Height, SWP_NOMOVE Or SWP_NOZORDER)
- btnSave.Enabled = True
- btnStop.Enabled = True
- btnStart.Enabled = False
- Else
- DestroyWindow(hHwnd)
- btnSave.Enabled = False
- End If
- End Sub
- Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
- Dim data As IDataObject
- Dim bmap As Image
- SendMessage(hHwnd, WM_CAP_EDIT_COPY, 0, 0)
- data = Clipboard.GetDataObject()
- If data.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
- bmap = CType(data.GetData(GetType(System.Drawing.Bitmap)), Image)
- picCapture.Image = bmap
- ClosePreviewWindow()
- btnSave.Enabled = False
- btnStop.Enabled = False
- btnStart.Enabled = True
- If sfdImage.ShowDialog = DialogResult.OK Then
- bmap.Save(sfdImage.FileName, Imaging.ImageFormat.Bmp)
- End If
- End If
- End Sub
- Private Sub ClosePreviewWindow()
- SendMessage(hHwnd, WM_CAP_DRIVER_DISCONNECT, iDevice, 0)
- DestroyWindow(hHwnd)
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- LoadDeviceList()
- End Sub
- Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
- OpenPreviewWindow()
- btnStart.Enabled = False
- btnStop.Enabled = True
- End Sub
- Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click
- ClosePreviewWindow()
- btnStart.Enabled = True
- btnStop.Enabled = False
- End Sub
- End Class
- add controls according to squigly lines in code
- 10 text to speech:
- project add referense com (tab) microsoft sapi 5.0
- imports speechLib 'at start of code
- dim voice as new spvoice ' define as global variable
- in a sub:
- voice.speak("text or string variable")
- 11 inputbox: x = inputbox(promtString)
- 12 declare many variable at once: dim x,y,z as integer
- 13 get the time: stringVariable = timestring
- get date: stringVariable = dateString 'or - now
- get hour: stringvariable = hour(date)
- same for month, year and weekday
- 14 shortcut: x = x+ 5 is like x+=5 the same goes for the other operators
- 15 read txt 2nd way: (imports system.io)
- dim str as streamreader
- str = new streamreader("c:\test.txt") ' or other path string
- someString = str.readline()
- str.close()
- 16 2nd way to write in a text file:(imports system.io)
- dim stw as streamWriter = file.creattext(path string on hard disk)
- stw.write(data string)
- stw.close()
- 'to continue with other text:
- stw = file.creattext( 2nd path string on hard disk)
- stw.write(data string)
- stw.close()
- 17 get absolute: imports system.math
- x = abs(a - b) ' same as abs(10 - 99) x = 89
- 18 ad a tab to a string or textbox: textbox1.text &= vbtab
- 19 convert type of variable:(explicit conversion)
- Dim MyNumber As Long
- Dim MyNewType As Single
- MyNumber = 1000
- MyNewType = CType(MyNumber,Single) ' MyNewType is set to 1000.0.
- implicit conversion:
- Dim d=132.31223 as Double
- Dim i as Integer
- i=d
- WriteLine("Integer value is" & i)
- 20 set an icon for your program:
- project, properties, select icon (assuming you downloaded one(an icon file end with .ico))
- 21 graphics: imports system.drawing.graphics (you can skip that imports line)
- draw shape:
- Dim GraphicsFun As Graphics
- GraphicsFun = Me.CreateGraphics
- Dim PenColor As New Pen(System.Drawing.Color.Red) 'or brush to fill color in shape
- GraphicsFun.DrawEllipse(PenColor, 10, 120, 200, 160) ' or drawline draywhatever intellisense offers
- move object on form:
- PictureBox1.Location = New Point(300, 200)
- animate:
- Use a timer event procedure to modify the Left, Top, or Location
- property for an object on the form. The timerís Interval property
- controls animation speed.
- change object size : Change the objectís Height property or Width property.
- transparency of a form: Change the formís Opacity property.
- 22 chat online:
- 22.1 use webbrowser control and surf to an internet site with a chat
- 22.2 2nd way install c4f (it's for vb.net) then vb will have chat control in it's toolbox
- 23 the timer control fires events every set amount of time.
- 24 special for loop:
- For x As Single = 0 To 2.5 Step 0.5
- 'some code
- Next
- 25 mouse get set position, detect generate click:
- public class form1
- 'declare for setting mouse position
- private declare function setCursorPos lib"user32"(byVal x As integer, byVal y As integer) As integer
- 'to detect mouse click declare:
- private declare function getAsyncKeyState lib "user32"( byVAl vKey As long) As integer
- 'declare to be able to generate a mouse click:
- private const MOUSEEVENTF_LEFTDOWN = &h2
- private const MOUSEEVENTF_LEFTUP = &h4
- private const MOUSEEVENTF_RIGHTDOWN = &h8
- private const MOUSEEVENTF_RIGHTUP = &h10
- private declaresub mouse_event lib "user32" (byVal dwflags as integer, byVal dx as integer,
- byVal dy as integer, byVal cbuttons as integer, byVal dwExtraInfo as integer)
- 'in a sub such as key down event:
- dim mp As point = mouseposition 'point with mouse pixel cordinates on the screen
- ' or get mouse position with:
- textbox1.text = cursor.position.x ' or .y
- str1 = mp.tostring() ' returns a text string of mouse cordinates str1 is a string you declare
- setcursorpos(x,y) 'x,y are integers or integer variables
- 'to generate mouse click:
- mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0)
- mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0)
- mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0)
- mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0) 'double click
- 'to detect mouse click: (in a sub)
- if getAsyncKeyState(1) then
- 'code for left click for getAsyncKeyState(1), right click getAsyncKeyState(2)
- 26 sendkeys from program to notepad or open textboxes(in browsers also):
- SendKeys.Send("text")
- SendKeys.Send("{enter}")
- dim x as string
- x = "hello"
- SendKeys.Send(x)
- BACKSPACE
- {BACKSPACE}, {BS}, or {BKSP}
- BREAK
- {BREAK}
- CAPS LOCK
- {CAPSLOCK}
- DEL or DELETE
- {DELETE} or {DEL}
- DOWN ARROW
- {DOWN}
- END
- {END}
- ENTER
- {ENTER}or ~
- ESC
- {ESC}
- HELP
- {HELP}
- HOME
- {HOME}
- INS or INSERT
- {INSERT} or {INS}
- LEFT ARROW
- {LEFT}
- NUM LOCK
- {NUMLOCK}
- PAGE DOWN
- {PGDN}
- PAGE UP
- {PGUP}
- PRINT SCREEN
- {PRTSC} (reserved for future use)
- RIGHT ARROW
- {RIGHT}
- SCROLL LOCK
- {SCROLLLOCK}
- TAB
- {TAB}
- UP ARROW
- {UP}
- F1
- {F1}
- F2
- {F2}
- F3
- {F3}
- F4
- {F4}
- F5
- {F5}
- F6
- {F6}
- F7
- {F7}
- F8
- {F8}
- F9
- {F9}
- F10
- {F10}
- F11
- {F11}
- F12
- {F12}
- F13
- {F13}
- F14
- {F14}
- F15
- {F15}
- F16
- {F16}
- Keypad add
- {ADD}
- Keypad subtract
- {SUBTRACT}
- Keypad multiply
- {MULTIPLY}
- Keypad divide
- {DIVIDE}
- SHIFT
- +
- CTRL
- ^
- ALT
- %
- SendKeys.Send("^{c}") 'copy
- 27 rss feed:
- Dim s As String
- Dim myURL As String = "http://stateofidleness.com/feed/"
- Dim request As HttpWebRequest = WebRequest.Create(myURL)
- Dim response As HttpWebResponse = request.GetResponse()
- Using reader As StreamReader = New StreamReader(response.GetResponseStream())
- s = reader.ReadToEnd()
- End Using
- MsgBox(s) 'Set your Textbox1.Text here
- 28 f1 - offers example code, you can click f1 after clicking a tool you added to your form for example.
- basic tricks: ctrl z - undo your last action, ctrl c - copy (text or tool(aka activx)), ctrl v - paste
- 29 sending a fax:
- fxscom.dll in your WINDOWS\system32 directory. If it's not there try to install FAX Services from Windows components.
- as explained in fax of pc technician chapter.
- References in Solution Explorer and choose Add Reference, COM tab, select FaxControl 1.0 Type Library
- Private Sub Form_Load()
- Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
- Dim objFaxServer As New FAXCOMEXLib.FaxServer
- Dim objSender As FAXCOMEXLib.FaxSender
- Dim JobID As Object
- 'Error handling
- On Error GoTo Error_Handler
- 'Connect to the fax server
- objFaxServer.Connect("")
- 'Set the fax body
- objFaxDocument.Body = "c:\Docs\Body.txt"
- 'Name the document
- objFaxDocument.DocumentName = "My First Fax"
- 'Set the fax priority
- objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptHIGH
- 'Add the recipient with the fax number 12225550100
- objFaxDocument.Recipients.Add("12225550100", "Bud")
- 'Choose to attach the fax to the fax receipt
- objFaxDocument.AttachFaxToReceipt = True
- 'Set the cover page type and the path to the cover page
- objFaxDocument.CoverPageType = FAXCOMEXLib.FAX_COVERPAGE_TYPE_ENUM.fcptSERVER
- objFaxDocument.CoverPage = "generic"
- 'Provide the cover page note
- objFaxDocument.Note = "Here is the info you requested"
- 'Provide the address for the fax receipt
- objFaxDocument.ReceiptAddress = "someone@example.com"
- 'Set the receipt type to email
- objFaxDocument.ReceiptType = FAXCOMEXLib.FAX_RECEIPT_TYPE_ENUM.frtMAIL
- 'Specify that the fax is to be sent at a particular time
- objFaxDocument.ScheduleType = FAXCOMEXLib.FAX_SCHEDULE_TYPE_ENUM.fstSPECIFIC_TIME
- 'CDate converts the time to the Date data type
- objFaxDocument.ScheduleTime = CDate("4:35:47 PM")
- objFaxDocument.Subject = "Today's fax"
- 'Set the sender properties.
- objFaxDocument.Sender.Title = "Mr."
- objFaxDocument.Sender.Name = "Bob"
- objFaxDocument.Sender.City = "Cleveland Heights"
- objFaxDocument.Sender.State = "Ohio"
- objFaxDocument.Sender.Company = "Microsoft"
- objFaxDocument.Sender.Country = "USA"
- objFaxDocument.Sender.Email = "someone@microsoft.com"
- objFaxDocument.Sender.FaxNumber = "12165555554"
- objFaxDocument.Sender.HomePhone = "12165555555"
- objFaxDocument.Sender.OfficeLocation = "Downtown"
- objFaxDocument.Sender.OfficePhone = "12165555553"
- objFaxDocument.Sender.StreetAddress = "123 Main Street"
- objFaxDocument.Sender.TSID = "Office fax machine"
- objFaxDocument.Sender.ZipCode = "44118"
- objFaxDocument.Sender.BillingCode = "23A54"
- objFaxDocument.Sender.Department = "Accts Payable"
- 'Save sender information as default
- objFaxDocument.Sender.SaveDefaultSender()
- 'Submit the document to the connected fax server
- 'and get back the job ID.
- JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
- MsgBox("The Job ID is :" & JobID(0))
- objFaxServer.Disconnect()
- Exit Sub
- Error_Handler:
- 'Implement error handling at the end of your subroutine. This
- ' implementation is for demonstration purposes
- MsgBox("Error number: " & Hex(Err.Number) & ", " & Err.Description)
- End Sub
- or:
- Imports FAXCOMEXLib
- Imports FAXCOMLib
- Imports System.IO
- Imports System.IO.StreamWriter
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Try
- Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
- Dim objFaxServer As New FAXCOMEXLib.FaxServer
- Dim JobID As Object
- objFaxServer.Connect("")
- objFaxDocument.Body = "c:\Test.txt"
- objFaxDocument.DocumentName = "My First Fax"
- objFaxDocument.Recipients.Add("902380663584", "Bud")
- objFaxDocument.AttachFaxToReceipt = True
- objFaxDocument.Note = "Here is the info you requested"
- objFaxDocument.Subject = "Today's fax"
- JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
- MsgBox("The Job ID is :" & JobID(0))
- Catch ex As Exception
- MsgBox("Error number: " & Hex(Err.Number) & ", " & Err.Description)
- End Try
- End Sub
- End Class
- 30 reminder comments : 'TODO something
- or
- ' HACK something
- 31 detect keyboard keys while form and its controls are not in focus:
- Set the Form's KeyPreview property to True and handle the KeyPress/KeyDOwn/etc event.
- 32 splash screen : (a screen to apper briefly when the program loads)
- Click on the project in the Solution Explorer panel, add new item, Splash Screen template
- Set the splash screen to be the first form to load:
- click Project, Properties, Insert the name of the splash screen in the Start form box
- 33 kill process
- Sub Main()
- Dim proc() As Process = Process.GetProcesses
- For i As Integer = 0 To proc.GetUpperBound(0)
- Console.WriteLine(proc(i).ProcessName)
- If proc(i).ProcessName = "firefox" Then
- proc(i).Kill()
- End If
- Next
- Console.ReadLine()
- End Sub
- 34 COM PORT
- add a button all properties are default
- Imports System
- Imports System.IO.Ports
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim _serialPort As SerialPort
- _serialPort = New SerialPort("com1")
- _serialPort.Open()
- 'code here
- MsgBox("opened")
- _serialPort.Close()
- MsgBox("closed")
- End Sub
- End Class
- 35 picture dispose
- myImage = Image.FromFile("file path here") or this:
- vb.net Code:
- myImage = New Bitmap("file path here") then that's why the file is in use. Releasing the file is simple:
- vb.net Code:
- myImage.Dispose
- 36 ' get your ipaddress
- imports system.net
- 'in a sub:
- dns.getHostName ' returns computer name
- ' get ipaddress
- me.combobox1.items.AddRange(dns.getHostAddresses()) ' assuming you added a combo box to the form
- 37 openfiledialog :
- me.openfiledialog.filename = string.empty
- me.openfiledialog.showdialog() ' choose file its name goes in me.openfiledialog.filename
- 38 replace new line with </br> or other
- RichTextBox1.Lines = (From line As String _
- In RichTextBox1.Lines _
- Select line & "</br>").ToArray()
- 39 ENCRYPTION :
- Be sure to Import these at the top of your class as well:
- Code:
- Imports System.IO
- Imports System.Security.Cryptography
- Imports System.TextCode:
- Private bytIV() As Byte = {190, 45, 111, 11, 32, 89, 21, 9, 255, 97, 8, 55, 44, 211, 23, 63}
- Private Const chrKeyFill As Char = "X"c
- Private Const intKeySize As Integer = 32
- Private Sub CryptFile(ByVal strInName As String, ByVal strOutName As String, ByVal strKey As String, ByVal booDecrypt As Boolean)
- Dim bytStorage(4096) As Byte
- Dim intTotalBytesWritten As Long = 8
- Dim intPackageSize As Integer
- Dim fin As New FileStream(strInName, FileMode.Open, FileAccess.Read)
- Dim fout As New FileStream(strOutName, FileMode.OpenOrCreate, FileAccess.Write)
- fout.SetLength(0)
- Dim intTotalFileLength As Long = fin.Length
- Dim rij As New System.Security.Cryptography.RijndaelManaged
- Dim crsStream As CryptoStream
- If booDecrypt Then
- crsStream = New CryptoStream(fout, _
- rij.CreateDecryptor(ConvertKeyToBytes(strKey), bytIV), CryptoStreamMode.Write)
- Else
- crsStream = New CryptoStream(fout, _
- rij.CreateEncryptor(ConvertKeyToBytes(strKey), bytIV), CryptoStreamMode.Write)
- End If
- While intTotalBytesWritten < intTotalFileLength
- intPackageSize = fin.Read(bytStorage, 0, 4096)
- crsStream.Write(bytStorage, 0, intPackageSize)
- intTotalBytesWritten = Convert.ToInt32(intTotalBytesWritten + intPackageSize / rij.BlockSize * rij.BlockSize)
- End While
- crsStream.Close()
- fout.Close()
- fin.Close()
- End Sub
- Private Function ConvertKeyToBytes(ByVal strKey As String) As Byte()
- Dim intLength As Integer = strKey.Length
- If intLength < intKeySize Then
- strKey &= Strings.StrDup(intKeySize - intLength, chrKeyFill)
- Else
- strKey = strKey.Substring(0, intKeySize)
- End If
- Return Encoding.UTF8.GetBytes(strKey)
- End Function
- 40 usb stuff (untested) : http://www.franson.com/serialtools/
- 41 screen capture
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim screenBounds = Screen.PrimaryScreen.Bounds
- Dim screenShot As New Bitmap(screenBounds.Width, screenBounds.Height)
- Using g = Graphics.FromImage(screenShot)
- g.CopyFromScreen(screenBounds.Location, Point.Empty, screenBounds.Size)
- End Using
- PictureBox1.Image = screenShot
- 'Dim filePath = IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.MyPictures, "ScreenShot.bmp")
- 'screenShot.Save(filePath, Imaging.ImageFormat.Bmp)
- End Sub
- End Class
- 42 acsii to character conversion
- chr(acsii) ' return acsii number to char
- 43 regex get the string in a defined middle
- Imports System
- Imports System.Text.RegularExpressions
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim mCollect As MatchCollection = Regex.Matches("sjlfhal{yes}djklafh{yess}", "(?<={).*?(?=})", RegexOptions.IgnoreCase)
- For Each m As Match In mCollect
- MsgBox(m.Value)
- Next
- End Sub
- End Class
- ' output : yes yess
- 44 rotate image
- RotateFlipType.Rotate180FlipX ' can be set with intellisense
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim bm As Bitmap = PictureBox1.Image
- bm.RotateFlip(RotateFlipType.Rotate180FlipX)
- PictureBox1.Image = bm
- End Sub
- 45 prevent 2 programs from running simoultaniously
- Imports System.Threading
- Public Class Form1
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Dim Mutex_Object As Mutex 'We will be working with Mutex
- Mutex_Object = New Mutex(False, "Pervent Twice Open") ' Were you see "Pervent Twice Open" thats were you put the name of your project.
- If Mutex_Object.WaitOne(0, False) = False Then 'lets perform the check
- MessageBox.Show("The same application is opened twice.")
- Application.Exit()
- End If
- End Sub
- End Class
- 46 skype (voice over ip)
- notes : install skype (voip software), when running skype is running, you signed in it
- 1 dl skype4com from http://developer.skype.com/accessories
- 2 extract the zip file (3 files : chm, dll,msm)
- 3 open vb.net, file, new, project, window application
- 4 from tool box add :
- textbox name : txtCallee
- 3 radio buttons : radTel, ralCell, radSkype
- textbox multiline = true
- button btnCall
- textbox name: txtMsg
- button btnSend
- timer name : ChatTimer, true, interval 1000
- 5 project, add reference, browse , skype4com.dll
- 6 source code :
- global vars : (add below class (after right click form, view code))
- Dim oSkype As SKYPE4COMLib.Skype = New SKYPE4COMLib.Skype
- Dim oCall As SKYPE4COMLib.Call
- Dim oChat As SKYPE4COMLib.Chat
- Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- If oSkype.Client.IsRunning = False Then
- MsgBox("Skype must be running!")
- End
- End If
- Try
- If oSkype.CurrentUserStatus = SKYPE4COMLib.TUserStatus.cusOffline Then
- MsgBox("Your Skype account must be online!")
- End
- End If
- Catch ex As Exception
- MsgBox("Your Skype account must be online!")
- End Try
- End Sub
- Public Function parseTelNum(ByVal input As String, ByVal defaultIntl As String, ByVal defaultArea As String)
- Dim result As String
- result = input.Replace("-", " ")
- If result.StartsWith("0") Then
- Return "+" & defaultIntl & result.Substring(1)
- ElseIf result.StartsWith("+") Then
- Return result
- Else
- Return "+" & defaultIntl & defaultArea & result
- End If
- End Function
- Private Sub btnCall_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCall.Click
- If btnCall.Text = "Call" Then
- If txtCallee.Text = " " Then
- Exit Sub
- End If
- If radTel.Checked = True Then
- Try
- oCall = oSkype.PlaceCall(parseTelNum(txtCallee.Text, "972", "2"))
- btnCall.Text = "Hang up"
- Catch ex As Exception
- MsgBox("Couldn't place the call." & vbCrLf & "Please make sure the input you entered is valid!")
- End Try
- ElseIf radCell.Checked = True Then
- oCall = oSkype.PlaceCall(parseTelNum(txtCallee.Text, "972", "52"))
- Else
- oCall = oSkype.PlaceCall(txtCallee.Text)
- Else
- oCall.Finish()
- btnCall.Text = "Call"
- End If
- End Sub
- Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
- If txtCallee.Text = " " Or txtMsg.Text = " " Then
- Exit Sub
- End If
- If radTel.Checked = True Then
- Try
- oSkype.SendSms(parseTelNum(txtCallee.Text, "972", "2"), txtMsg.Text)
- txtMsg.Text = ""
- Catch ex As Exception
- MsgBox("Coudn't send the SMS." & vbCrLf & "Please make sure the input you entered is valid!")
- End Try
- ElseIf radCell.Checked = True Then
- oSkype.SendSms(parseTelNum(txtCallee.Text, "972", "52"), txtMsg.Text)
- Else
- oSkype.SendMessage(txtCallee.Text, txtMsg.Text)
- MsgBox("Couldn't sent the message." & vbCrLf & "Please make sure the input you entered is valid!")
- End Sub
- Private Sub ChatTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChatTimer.Tick
- txtChat.Text = ""
- If txtCallee.Text <> "" Then
- oChat = oSkype.CreateChatWith(txtCallee.Text)
- Try
- Dim temp = oChat.Messages
- Catch ex As Exception
- txtChat.Text = "No such username or no chat available." & vbCrLf & ex.ToString
- Exit Sub
- End Try
- For Each oMsg As SKYPE4COMLib.ChatMessage In oChat.Messages
- If Not oMsg.Body.ToString.StartsWith("<pa") And oMsg.Body.ToString <> "" Then
- txtChat.Text = txtChat.Text & vbCrLf & oMsg.Sender.FullName & ": " & oMsg.Body
- End If
- Next
- oSkype.ResetCache()
- End If
- End Sub
- 47 email validation
- Imports System.Text.RegularExpressions
- Function EmailAddressCheck(ByVal emailAddress As String) As Boolean
- Dim pattern As String = "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
- Dim emailAddressMatch As Match = Regex.Match(emailAddress, pattern)
- If emailAddressMatch.Success Then
- EmailAddressCheck = True
- Else
- EmailAddressCheck = False
- End If
- End Function
- 48 class for getting hardware info
- Imports System
- Imports System.Management
- Public Class clsComputerInfo
- Friend Function GetProcessorId() As String
- Dim strProcessorId As String = String.Empty
- Dim query As New SelectQuery("Win32_processor")
- Dim search As New ManagementObjectSearcher(query)
- Dim info As ManagementObject
- For Each info In search.Get()
- strProcessorId = info("processorId").ToString()
- Next
- Return strProcessorId
- End Function
- Friend Function GetMACAddress() As String
- Dim mc As ManagementClass = New ManagementClass("Win32_NetworkAdapterConfiguration")
- Dim moc As ManagementObjectCollection = mc.GetInstances()
- Dim MACAddress As String = String.Empty
- For Each mo As ManagementObject In moc
- If (MACAddress.Equals(String.Empty)) Then
- If CBool(mo("IPEnabled")) Then MACAddress = mo("MacAddress").ToString()
- mo.Dispose()
- End If
- MACAddress = MACAddress.Replace(":", String.Empty)
- Next
- Return MACAddress
- End Function
- Friend Function GetVolumeSerial(Optional ByVal strDriveLetter As String = "C") As String
- Dim disk As ManagementObject = New ManagementObject(String.Format("win32_logicaldisk.deviceid=""{0}:""", strDriveLetter))
- disk.Get()
- Return disk("VolumeSerialNumber").ToString()
- End Function
- Friend Function GetMotherBoardID() As String
- Dim strMotherBoardID As String = String.Empty
- Dim query As New SelectQuery("Win32_BaseBoard")
- Dim search As New ManagementObjectSearcher(query)
- Dim info As ManagementObject
- For Each info In search.Get()
- strMotherBoardID = info("SerialNumber").ToString()
- Next
- Return strMotherBoardID
- End Function
- End Class
- 49 clipboard
- My.Computer.Clipboard.SetAudio()
- My.Computer.Clipboard.SetData()
- My.Computer.Clipboard.SetDataObject()
- My.Computer.Clipboard.SetFileDropList()
- My.Computer.Clipboard.SetImage()
- My.Computer.Clipboard.SetText()
- My.Computer.Clipboard.GetAudioStream()
- My.Computer.Clipboard.GetData()
- My.Computer.Clipboard.GetDataObject()
- My.Computer.Clipboard.GetFileDropList()
- My.Computer.Clipboard.GetImage()
- My.Computer.Clipboard.GetText()
- My.Computer.Clipboard.ContainsAudio()
- My.Computer.Clipboard.ContainsData()
- My.Computer.Clipboard.ContainsFileDropList()
- My.Computer.Clipboard.ContainsImage()
- My.Computer.Clipboard.ContainsText()
- 50 see folder : vb pdf class, to manipulate pdf's
- 51 get pixel color ( in an image ) by moti barski :
- Public Class Form1 ' code amped by .paul
- Dim curPixelX As Integer = 0
- Dim curPixelY As Integer = 0
- Dim r1, g1, b1 As Integer
- Dim curColorChar As Char = Nothing
- Dim bm As Bitmap
- Sub RGB_breakerBuster(ByVal inColor As Color, ByRef red As Integer, ByRef green As Integer, ByRef blue As Integer)
- ' returns value of red,green,blue in a pixel of a bitmap as integers
- red = inColor.R
- green = inColor.G
- blue = inColor.B
- End Sub
- Public Function getPixelColor(ByVal r As Integer, ByVal g As Integer, ByVal b As Integer) As Char
- ' r= red, g = green, b = blue
- Dim colorchar As Char
- If r > 245 And g > 245 And b > 245 Then
- colorchar = "w" ' white
- ElseIf r < 20 And g < 20 And b < 20 Then
- colorchar = "k" ' black (kuro in japanese)
- ElseIf r > g And g > b And g < 100 Then
- colorchar = "r" ' red
- ElseIf r > g And g > b And g > 200 Then
- colorchar = "y" ' yellow
- ElseIf r > g And g > b And 100 < g < 200 Then
- colorchar = "o" 'orange
- ElseIf (g > r And r > b) Or (g > b And b > r) Then
- colorchar = "g" 'green
- ElseIf b > g And g > r Then
- colorchar = "b" 'blue
- ElseIf (b > r And r > g) Or (r > b And g < 20) Then
- colorchar = "v" ' violet
- Else
- colorchar = "u" ' yet undefined
- End If
- Return colorchar
- End Function
- Sub colorLegend()
- ' converts color char to the color name
- ' label2 = getPixelColor(r1, g1, b1) 1st colorchar
- ' label3 = color represented by colorchar
- Select Case Label2.Text
- Case "w"
- Label3.Text = "white"
- Case "k"
- Label3.Text = "black"
- Case "r"
- Label3.Text = "red"
- Case "y"
- Label3.Text = "yellow"
- Case "o"
- Label3.Text = "orange"
- Case "g"
- Label3.Text = "green"
- Case "b"
- Label3.Text = "blue"
- Case "v"
- Label3.Text = "violate"
- Case Else
- End Select
- End Sub
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- Try
- TextBox1.Text = bm.GetPixel(curPixelX, curPixelY).ToString()
- RGB_breakerBuster(bm.GetPixel(curPixelX, curPixelY), r1, g1, b1)
- TextBox2.Text = r1 & " " & g1 & " " & b1
- bm.SetPixel(curPixelX, curPixelY, Color.Black)
- PictureBox1.Image = bm
- curPixelX += 1
- Label2.Text = getPixelColor(r1, g1, b1)
- colorLegend()
- Catch ex As Exception
- Timer1.Enabled = False
- MsgBox("done")
- End Try
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Timer1.Enabled = Not Timer1.Enabled
- bm = PictureBox1.Image
- curPixelY = bm.Height \ 2
- End Sub
- End Class
- 52 move, delete, copy :
- system.io.file.move(file to move, move to ) 'file paths as strings
- system.io.file.delete(file to delete) 'file paths
- system.io.file.copy(file to copy, copy to ) 'file paths
- 53 check is user is conected to the internet
- internet explorer (IE) 5 or above must be installed.
- Private Declare Function InternetGetConnectedStateEx Lib "wininet.dll" _
- Alias "InternetGetConnectedStateExA" (ByRef lpdwFlags As Long, _
- ByVal lpszConnectionName As String, _
- ByVal dwNameLen As Long, ByVal dwReserved As Long) As Long
- Private Function IsConnected() As Boolean
- Dim sConnectionNameBuffer As String
- Dim dwFlags As Long
- sConnectionNameBuffer = String$(513, 0)
- IsConnected = InternetGetConnectedStateEx(dwFlags, sConnectionNameBuffer, 512, 0&)
- End Function
- 'in a sub or button click event :
- If IsConnected = True Then
- MsgBox "You are connected to the internet."
- Else
- MsgBox "You are not connected."
- End If
- 54 scanner
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim I As WIA.CommonDialog
- I = New WIA.CommonDialog
- Dim IMG As WIA.ImageFile
- IMG = I.ShowAcquireImage(, , , , True, )
- IMG.SaveFile("c:\img.jpg")
- PictureBox1.ImageLocation = "c:\img.jpg"
- End Sub
- 55 Trial Period :
- posted by techgnome of vbf
- this disables program x days after prime activation :
- setup - Project properties, settings, create a user scoped setting "UsageDates" Set the type to
- "Specialized.StringCollection" and leave the default value blank
- in the code :
- 'Dim usageDatesLeft As Int16 = 3 3 days for the trial version
- Private Function CheckDate(ByVal dateToCheck As Date) As Boolean
- 'In reality, CheckDate would get the date (current date) itself and not have it passed in
- Dim retValue As Boolean = False 'Fail safe, default to false
- Dim usageDatesLeft As Int16 = 3 ' set it to 4 just for testing
- 'Dim usageDatesLeft As Int16 = 30 ' set this to the number of days of application access
- 'Hash the date
- Dim hashedDate As String = HashDate(dateToCheck)
- 'Check to see if the hash value exists in the UsageDates
- 'Initialize the container if necessary
- If My.Settings.UsageDates Is Nothing Then
- My.Settings.UsageDates = New System.Collections.Specialized.StringCollection
- End If
- If My.Settings.UsageDates.Contains(hashedDate) Then
- 'then we are ok... it's already been checked
- retValue = True
- usageDatesLeft -= My.Settings.UsageDates.Count
- 'sanity check... if the system date is backed up to a previous date in the list, but not the last date
- If usageDatesLeft <= 0 AndAlso My.Settings.UsageDates.IndexOf(hashedDate) <> My.Settings.UsageDates.Count - 1 Then
- retValue = False
- End If
- Else
- If My.Settings.UsageDates.Count < usageDatesLeft Then
- My.Settings.UsageDates.Add(hashedDate)
- End If
- usageDatesLeft -= My.Settings.UsageDates.Count
- 'If not, and the remining count has "slots" open, add it
- If usageDatesLeft > 0 Then
- retValue = True
- Else
- 'If not and tree are no more slots, tell user, exit app
- retValue = False
- End If
- End If
- 'Display to the user how many days are remianing:
- MessageBox.Show(String.Format("You have {0} day(s) remaining.", usageDatesLeft))
- Return retValue
- End Function
- Private Function HashDate(ByVal dateToHash As Date) As String
- 'Get a hash object
- Dim hasher As System.Security.Cryptography.MD5 = System.Security.Cryptography.MD5.Create()
- 'Take date, make it a Long date and hash it
- Dim data As Byte() = hasher.ComputeHash(System.Text.Encoding.Default.GetBytes(dateToHash.ToLongDateString()))
- ' Create a new Stringbuilder to collect the bytes
- ' and create a string.
- Dim sBuilder As New System.Text.StringBuilder()
- ' Loop through each byte of the hashed data
- ' and format each one as a hexadecimal string.
- Dim idx As Integer
- For idx = 0 To data.Length - 1
- sBuilder.Append(data(idx).ToString("x2"))
- Next idx
- Return sBuilder.ToString
- End Function
- in form load event or other event :
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim aCount As Integer = 0
- Dim loopIt As Boolean = True
- 'My.Settings.Reset() 'This is here for design time support... otherwise you won't get your app to run agin
- Do While loopIt
- MessageBox.Show(String.Format("Checking Date: {0}.", Date.Now.AddDays(aCount)))
- loopIt = CheckDate(Date.Now.AddDays(aCount))
- If Not loopIt Then
- MessageBox.Show("Trial Period Ended! Application closing!")
- Me.Close()
- Else
- MessageBox.Show("You can keep using the app")
- End If
- aCount += 1
- Loop
- End Sub
- 56 google translate api
- download :
- google translate api 0.4 alpha
- create a new project, add 2 textboxes, and a button
- project, add reference, browse to (in the downloaded bin folder) googleTranslateAPI.dll and NewtonJsoft.dll
- and add them.
- double click the button and paste this code in the button event code :
- if textbox2.text = ""
- dim Translator as new google.API.Translate.TranslateClient("")
- textbox2.text = Translator.TranslateAndDetect(textbox1.text,"fr","") ' fr for france
- 57 custom progressBar
- http://www.codeproject.com/KB/cpp/XpProgressBar.aspx
- 58 Run external files exe
- Process.Start(".exe path here")
- 59 backgroundworker
- this control runs code simultaneously with other backroundworkers and the main codes running
- 1 from toolbox add a backroundworker control (set false properties to true as needed)
- 2 the code backroundworker.runWorkerAsync() - will start it
- 3 backroundworker.cancelAsync() - will stop it
- 4 events (from near the control properties in the form design window) "
- 4.1 bw do work : here you type code that runs on the backroundworker (thread)
- threading.thread.sleep(seconds) pause thread
- backroundworker.cancellation pending - returns true if backroundworker.cancelAsync() was run
- 4.2 backroundworker progress changed :
- e.progresspercentage : return progress %
- 60 form fade to black
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, _
- ByVal e As System.EventArgs) Handles Button1.Click
- '//start fade
- Me.Timer1.Enabled = True
- End Sub
- Private Sub Timer1_Tick(ByVal sender As System.Object, _
- ByVal e As System.EventArgs) Handles Timer1.Tick
- Dim R As Integer = Me.BackColor.R
- Dim G As Integer = Me.BackColor.G
- Dim B As Integer = Me.BackColor.B
- If R > 0 Then
- R = Me.BackColor.R - 1
- Me.BackColor = Color.FromArgb(R, G, B)
- End If
- If G > 0 Then
- G = Me.BackColor.G - 1
- Me.BackColor = Color.FromArgb(R, G, B)
- End If
- If B > 0 Then
- B = Me.BackColor.B - 1
- Me.BackColor = Color.FromArgb(R, G, B)
- End If
- If R = 0 AndAlso G = 0 AndAlso B = 0 Then
- '//end fade
- Me.Timer1.Enabled = False
- End If
- End Sub
- End Class
- 61 get files name
- Imports System.IO
- Dim strFileSize As String = ""
- Dim di As New IO.DirectoryInfo("C:\temp")
- Dim aryFi As IO.FileInfo() = di.GetFiles("*.txt")
- Dim fi As IO.FileInfo
- For Each fi In aryFi
- strFileSize = (Math.Round(fi.Length / 1024)).ToString()
- Console.WriteLine("File Name: {0}", fi.Name)
- Console.WriteLine("File Full Name: {0}", fi.FullName)
- Console.WriteLine("File Size (KB): {0}", strFileSize )
- Console.WriteLine("File Extension: {0}", fi.Extension)
- Console.WriteLine("Last Accessed: {0}", fi.LastAccessTime)
- Console.WriteLine("Read Only: {0}", (fi.Attributes.ReadOnly = True).ToString)
- Next
- 62 rename a file
- my.computer.filesystem.renamefile("oldfile path name","new.whatever")
- dim open as new openfiledialog
- open.showdialog()
- textbox1.text = open.filename
- 63 list directories (folders)
- Sub ListDirectories(ByVal Path As String)
- Dim di As New IO.DirectoryInfo(Path)
- If di.Attributes <> IO.FileAttributes.Hidden Then
- For Each file In di.GetFiles
- Console.WriteLine(file.FullName)
- Next
- For Each folder In di.GetDirectories
- ListDirectories(folder.FullName)
- Next
- End If
- End Sub
- 64 Capture Images From 2 defferent webcams VideoLab :
- 4.1 install your usb webcams drivers from its cd
- 4.2 download and install .net (framework) 2.0
- download and install videoLab and its pdf manual from:
- mitov dot com
- 4.3 follow the manual till you have the image capture control on your vb.net toolbox
- 4.4 connect usb webcams
- you will then add 2 DSCapture controls to thee form and from theire little arrow set to the respective webcam
- , add 2 genericFilter, finally set the video in's output pin property to the respective genericFilter (it's input pin should now
- show the DSCapture)
- Private Sub genericFilter1_ProcessData(Sender As Object, Args As Mitov.VideoLab.VideoProcessDataEventArgs)
- ' Capture Image.
- Dim ABitmap As System.Drawing.Bitmap = Args.InBuffer.ToBitmap()
- ' Draw Frame No.
- Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(ABitmap)
- Dim ABrush As System.Drawing.SolidBrush = New SolidBrush(Color.White)
- g.DrawString(m_FrameNo.ToString(), Font, ABrush, 0, 0)
- m_FrameNo += 1
- ' Show the bitmap.
- pictureBox1.Image = ABitmap
- End Sub
- you can use DSImageDisplay instead of generic filter
- 65 Mouse Move Powered Volume Control
- add 3 group boxes
- Imports System.Runtime.InteropServices
- Public Class Form1
- Private Const APPCOMMAND_VOLUME_MUTE As Integer = &H80000
- Private Const APPCOMMAND_VOLUME_UP As Integer = &HA0000
- Private Const APPCOMMAND_VOLUME_DOWN As Integer = &H90000
- Private Const WM_APPCOMMAND As Integer = &H319
- <DllImport("user32.dll")> Public Shared Function SendMessageW(ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
- End Function
- Private Sub GroupBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles GroupBox1.MouseMove
- SendMessageW(Me.Handle, WM_APPCOMMAND, Me.Handle, New IntPtr(APPCOMMAND_VOLUME_UP))
- End Sub
- Private Sub GroupBox2_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles GroupBox2.MouseMove
- SendMessageW(Me.Handle, WM_APPCOMMAND, Me.Handle, New IntPtr(APPCOMMAND_VOLUME_DOWN))
- End Sub
- Private Sub GroupBox3_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles GroupBox3.MouseMove
- SendMessageW(Me.Handle, WM_APPCOMMAND, Me.Handle, New IntPtr(APPCOMMAND_VOLUME_MUTE))
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Do Until Me.Width = "572"
- Me.Width = Me.Width + 1
- Loop
- Button1.Visible = False
- Button2.Visible = True
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Button2.Visible = False
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- Do Until Me.Width = "310"
- Me.Width = Me.Width - 1
- Loop
- Button1.Visible = True
- Button2.Visible = False
- End Sub
- End Class
- 66 VB NET Using Google Maps on your application
- add text boxes to hold street, city, state and zip
- Add search button
- add : in the code first line
- Imports System.Text
- in the button click event (double click it and paste) :
- Try
- Dim streetaddr As String = ""
- Dim cityaddr As String = ""
- Dim stateaddr As String = ""
- Dim zipaddr As String = ""
- Dim AddrToSearch As New StringBuilder()
- AddrToSearch.Append("http://maps.google.com/maps?q=")
- ' if there is street entry
- If txtStreet.Text <> "" Then
- streetaddr = txtStreet.Text.Replace(" ", "+")
- AddrToSearch.Append(street + "," & "+")
- End If
- ' if there is city entry
- If txtCity.Text <> "" Then
- cityaddr = txtCity.Text.Replace(" ", "+")
- AddrToSearch.Append(city + "," & "+")
- End If
- ' if there is state
- If txtState.Text <> "" Then
- stateaddr = txtState.Text.Replace(" ", "+")
- AddrToSearch.Append(state + "," & "+")
- End If
- ' if there is zip code
- If txtZipCode.Text <> "" Then
- zipaddr = txtZipCode.Text.ToString()
- AddrToSearch.Append(zip)
- End If
- ' pass the AddrToSearch value to web browser control
- wbrowser.Navigate(AddrToSearch.ToString())
- Catch ex As Exception
- MessageBox.Show(ex.Message.ToString(), "Problem encountered while retrieving google map")
- End Try
- search the map by latitude and longitude add theire textboxes and button in it's event paste :
- Try
- Dim latitude As String = ""
- Dim longitude As String = ""
- Dim AddrToSearch As New StringBuilder()
- AddrToSearch.Append("http://maps.google.com/maps?q=")
- ' if there is latitude
- If txtLatitude.Text <> "" Then
- latitude = txtLatitude.Text
- AddrToSearch.Append(latitude & "%2C")
- End If
- ' if there is longitude
- If txtLongitude .Text <> "" Then
- longitude = txtLongitude .Text
- AddrToSearch.Append(longitude)
- End If
- ' pass the AddrToSearch value to web browser control
- wbrowser.Navigate(AddrToSearch.ToString())
- Catch ex As Exception
- MessageBox.Show(ex.Message.ToString(), "Problem encountered while retrieving google map")
- End Try
- 67 vb batch file maker
- http://yotamarker.justforum.net/t7-vbnet-batch-coder-compiler
- by Smasherx74
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- SaveFileDialog1.Title = "Save"
- SaveFileDialog1.Filter = "Batch File (*.bat)|*.bat"
- If SaveFileDialog1.ShowDialog = System.Windows.Forms.DialogResult.OK Then
- RichTextBox1.SaveFile(SaveFileDialog1.FileName, Windows.Forms.RichTextBoxStreamType.PlainText)
- End If
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- SaveFileDialog1.FileName = "Test.bat"
- RichTextBox1.SaveFile(SaveFileDialog1.FileName, Windows.Forms.RichTextBoxStreamType.PlainText)
- Dim response As New DialogResult
- response = MessageBox.Show("Testing batch file will run the .bat file. Whatever the code does will be executed on your computer, are you sure you want to continue?", "Warning!", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
- If response = DialogResult.Yes Then
- Process.Start("Test.bat")
- Else
- End If
- End Sub
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- RichTextBox1.Text = ""
- End Sub
- Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
- Form2.ShowDialog()
- End Sub
- Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
- SaveFileDialog1.FileName = "Project.bat"
- RichTextBox1.SaveFile(SaveFileDialog1.FileName, Windows.Forms.RichTextBoxStreamType.PlainText)
- If WebBrowser1.ReadyState = WebBrowserReadyState.Complete = True Then
- WebBrowser1.Document.GetElementById("userfile").InvokeMember("click")
- Threading.Thread.Sleep(100)
- For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("input")
- If elem.GetAttribute("value") = "Convert" Then
- elem.InvokeMember("click")
- End If
- Next
- End If
- Const OneSec As Double = 1.0# / (1440.0# * 60.0#)
- Dim dblWaitTil As Date
- Now.AddSeconds(OneSec)
- dblWaitTil = Now.AddSeconds(OneSec).AddSeconds(10)
- Do Until Now > dblWaitTil
- MsgBox("Compiling Batch file please wait...", MsgBoxStyle.Information)
- Loop
- If WebBrowser1.ReadyState = WebBrowserReadyState.Complete = True Then
- For Each unit As HtmlElement In WebBrowser1.Document.GetElementsByTagName("a")
- If unit.InnerText = "Download" Then
- unit.InvokeMember("click")
- End If
- Next
- End If
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- WebBrowser1.Navigate("http://www.f2ko.de/programs.php?lang=en&pid=ob2e")
- End Sub
- Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
- If TextBox1.Text = "0" Then
- RichTextBox1.BackColor = Color.Black
- End If
- If TextBox1.Text = "1" Then
- RichTextBox1.BackColor = Color.Blue
- End If
- If TextBox1.Text = "2" Then
- RichTextBox1.BackColor = Color.Green
- End If
- If TextBox1.Text = "3" Then
- RichTextBox1.BackColor = Color.Aqua
- End If
- If TextBox1.Text = "4" Then
- RichTextBox1.BackColor = Color.Red
- End If
- If TextBox1.Text = "5" Then
- RichTextBox1.BackColor = Color.Purple
- End If
- If TextBox1.Text = "6" Then
- RichTextBox1.BackColor = Color.Yellow
- End If
- If TextBox1.Text = "7" Then
- RichTextBox1.BackColor = Color.White
- End If
- If TextBox1.Text = "8" Then
- RichTextBox1.BackColor = Color.Gray
- End If
- If TextBox1.Text = "9" Then
- RichTextBox1.BackColor = Color.Blue
- End If
- If TextBox1.Text = "A" Then
- RichTextBox1.BackColor = Color.Green
- End If
- If TextBox1.Text = "B" Then
- RichTextBox1.BackColor = Color.Aqua
- End If
- If TextBox1.Text = "C" Then
- RichTextBox1.BackColor = Color.Red
- End If
- If TextBox1.Text = "D" Then
- RichTextBox1.BackColor = Color.Purple
- End If
- If TextBox1.Text = "E" Then
- RichTextBox1.BackColor = Color.Yellow
- End If
- If TextBox1.Text = "F" Then
- RichTextBox1.BackColor = Color.White
- End If
- If TextBox2.Text = "0" Then
- RichTextBox1.ForeColor = Color.Black
- End If
- If TextBox2.Text = "1" Then
- RichTextBox1.ForeColor = Color.Blue
- End If
- If TextBox2.Text = "2" Then
- RichTextBox1.ForeColor = Color.Green
- End If
- If TextBox2.Text = "3" Then
- RichTextBox1.ForeColor = Color.Aqua
- End If
- If TextBox2.Text = "4" Then
- RichTextBox1.ForeColor = Color.Red
- End If
- If TextBox2.Text = "5" Then
- RichTextBox1.ForeColor = Color.Purple
- End If
- If TextBox2.Text = "6" Then
- RichTextBox1.ForeColor = Color.Yellow
- End If
- If TextBox2.Text = "7" Then
- RichTextBox1.ForeColor = Color.White
- End If
- If TextBox2.Text = "8" Then
- RichTextBox1.ForeColor = Color.Gray
- End If
- If TextBox2.Text = "9" Then
- RichTextBox1.ForeColor = Color.Blue
- End If
- If TextBox2.Text = "A" Then
- RichTextBox1.ForeColor = Color.Green
- End If
- If TextBox2.Text = "B" Then
- RichTextBox1.ForeColor = Color.Aqua
- End If
- If TextBox2.Text = "C" Then
- RichTextBox1.ForeColor = Color.Red
- End If
- If TextBox2.Text = "D" Then
- RichTextBox1.ForeColor = Color.Purple
- End If
- If TextBox2.Text = "E" Then
- RichTextBox1.ForeColor = Color.Yellow
- End If
- If TextBox2.Text = "F" Then
- RichTextBox1.ForeColor = Color.White
- End If
- End Sub
- End Class
- 68 get html source
- with webbrowser control :
- WebBrowser1.DocumentText
- 69 delete ftp file
- public function DeleteFileOnServer(serverUri as Uri) as Boolean
- ' The serverUri parameter should use the ftp:// scheme.
- ' It contains the name of the server file that is to be deleted.
- ' Example: ftp://contoso.com/someFile.txt.
- '
- if serverUri.Scheme <> Uri.UriSchemeFtp Then
- return false
- end if
- ' Get the object used to communicate with the server.
- Dim request as FtpWebRequest = WebRequest.Create(serverUri)
- request.Method = WebRequestMethods.Ftp.DeleteFile
- Dim response as FtpWebREsponse = request.GetResponse()
- Messagebox.Show(string.format("Delete status: {0}",response.StatusDescription))
- response.Close()
- return true
- End function
- 70 links highlight
- Private Sub RichTextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
- Dim index As Integer = Me.RichTextBox1.Find("tutorial") '
- If index <> -1 Then
- Me.RichTextBox1.Find(RichTextBox1.Text)
- Me.RichTextBox1.SelectionBackColor = Color.Yellow
- End If
- End Sub
- 71 detect upload
- Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
- Dim stat As IcmpV4Statistics = properties.GetIcmpV4Statistics()
- Console.WriteLine(stat.MessagesSent)
- Console.ReadLine()
- VB.NET IMAGE RECOGNITION ( AKA HIGASHI NO EDEN ) VERSION 1
- MADE BY MOTI BARSKI
- Imports System.IO
- Public Class Form1
- Sub RGB_breakerBuster(ByVal inColor As Color, ByRef red As Integer, ByRef green As Integer, ByRef blue As Integer)
- ' returns value of red,green,blue in a pixel of a bitmap as integers
- red = inColor.R
- green = inColor.G
- blue = inColor.B
- End Sub
- Public Function getPixelColor(ByVal r As Integer, ByVal g As Integer, ByVal b As Integer) As Char
- ' r= red, g = green, b = blue
- Dim colorchar As Char
- If r > 245 And g > 245 And b > 245 Then
- colorchar = "w" ' white
- ElseIf r < 20 And g < 20 And b < 20 Then
- colorchar = "k" ' black (kuro in japanese)
- ElseIf r > g And g > b And g < 100 Then
- colorchar = "r" ' red
- ElseIf r > g And g > b And g > 200 Then
- colorchar = "y" ' yellow
- ElseIf r > g And g > b And 100 < g < 200 Then
- colorchar = "o" 'orange
- ElseIf (g > r And r > b) Or (g > b And b > r) Then
- colorchar = "g" 'green
- ElseIf b > g And g > r Then
- colorchar = "b" 'blue
- ElseIf (b > r And r > g) Or (r > b And g < 20) Then
- colorchar = "v" ' violet
- Else
- colorchar = "u" ' yet undefined
- End If
- Return colorchar
- End Function
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- TextBox3.Text = ""
- Dim r1, g1, b1 As Integer
- PictureBox1.ImageLocation = TextBox2.Text ' image path string
- Dim fs As IO.FileStream = New IO.FileStream(TextBox2.Text, IO.FileMode.Open)
- Dim image1 As Image = Image.FromStream(fs)
- fs.Close()
- Dim bm As Bitmap
- bm = image1
- Dim h, w As Integer
- h = bm.Height()
- w = bm.Width()
- Dim jump As Integer
- jump = 35 ' jump ~= sqrt(h*w \ 250), jump < h, jump < w, jump > 1
- Try
- Dim jump2 As Integer
- jump2 = TextBox1.Text
- If jump2 > 1 And jump2 < h And jump2 < w Then
- jump = jump2
- End If
- Catch ex As Exception
- End Try
- Dim recoString As String = "" ' string of image
- Dim prevColor, curColor As Char
- If h > w Then
- h = w
- End If
- Dim xi As Integer
- xi = h \ jump
- For index As Integer = 1 To xi
- recoString &= "_"
- prevColor = "-"
- For j As Integer = 1 To xi
- Try
- RGB_breakerBuster(bm.GetPixel(index * jump, j * jump), r1, g1, b1)
- Catch ex As Exception
- MsgBox(index & " " & j)
- End Try
- curColor = getPixelColor(r1, g1, b1)
- If curColor <> prevColor Then
- recoString &= curColor
- prevColor = curColor
- End If
- Next
- Next
- If recoString.Length > 238 Then
- recoString = recoString.Substring(0, 238)
- End If
- TextBox4.Text = recoString
- If File.Exists("C:\higashiDB\" & recoString & ".txt") Then
- TextBox3.Text = File.ReadAllText("C:\higashiDB\" & recoString & ".txt")
- End If
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- If TextBox4.Text <> "" Then
- If File.Exists("C:\higashiDB\" & TextBox4.Text & ".txt") Then
- File.Delete("C:\higashiDB\" & TextBox4.Text & ".txt")
- 'File.Delete("path string")
- End If
- File.WriteAllText("C:\higashiDB\" & TextBox4.Text & ".txt", TextBox3.Text)
- End If
- End Sub
- End Class
- walkthrough for using the program :
- add a higashiDB named folder in c:\
- while running the program :
- type image path (+ image name + image ending (like : C:\Documents and Settings\rain\Desktop\pics for higashi vid\1.jpg
- )), click the button 2 times, type description, click save button to save new description for the image.
- vb.net number to japanese count
- Imports System.Math
- Public Class Form1
- Function toKanji(ByVal N As ULong) As String
- Dim kanji As String
- kanji = "enter a number"
- Select Case N.ToString.Length()
- Case 1
- Select Case N
- Case 1
- kanji = "ichi"
- Case 2
- kanji = "ni"
- Case 3
- kanji = "san"
- Case 4
- kanji = "yon"
- Case 5
- kanji = "go"
- Case 6
- kanji = "roku"
- Case 7
- kanji = "nana"
- Case 8
- kanji = "hachi"
- Case 9
- kanji = "kyu"
- Case Else
- kanji = ""
- End Select
- Case 2
- Select Case N \ 10
- Case 1
- kanji = "ju" & " " & toKanji(N Mod 10)
- Case 2
- kanji = "ni-ju" & " " & toKanji(N Mod 10)
- Case 3
- kanji = "san-ju" & " " & toKanji(N Mod 10)
- Case 4
- kanji = "yon-ju" & " " & toKanji(N Mod 10)
- Case 5
- kanji = "go-ju" & " " & toKanji(N Mod 10)
- Case 6
- kanji = "roku-ju" & " " & toKanji(N Mod 10)
- Case 7
- kanji = "nana-ju" & " " & toKanji(N Mod 10)
- Case 8
- kanji = "hachi-ju" & " " & toKanji(N Mod 10)
- Case 9
- kanji = "kyu-ju" & " " & toKanji(N Mod 10)
- Case Else
- kanji = ""
- End Select
- Case 3
- Select Case N \ 100
- Case 1
- kanji = "hyaku" & " " & toKanji(N Mod 100)
- Case 2
- kanji = "ni-hyaku" & " " & toKanji(N Mod 100)
- Case 3
- kanji = "sanbyaku" & " " & toKanji(N Mod 100)
- Case 4
- kanji = "yon-hyaku" & " " & toKanji(N Mod 100)
- Case 5
- kanji = "go-hyaku" & " " & toKanji(N Mod 100)
- Case 6
- kanji = "roppyaku" & " " & toKanji(N Mod 100)
- Case 7
- kanji = "nana-hyaku" & " " & toKanji(N Mod 100)
- Case 8
- kanji = "happyaku" & " " & toKanji(N Mod 100)
- Case 9
- kanji = "kyu-hyaku" & toKanji(N Mod 100)
- Case Else
- kanji = ""
- End Select
- Case 4
- Select Case N \ 1000
- Case 1
- kanji = "sen" & " " & toKanji(N Mod 1000)
- Case 2
- kanji = "ni-sen" & " " & toKanji(N Mod 1000)
- Case 3
- kanji = "san-zen" & " " & toKanji(N Mod 1000)
- Case 4
- kanji = "yon-sen" & " " & toKanji(N Mod 1000)
- Case 5
- kanji = "go-sen" & " " & toKanji(N Mod 1000)
- Case 6
- kanji = "roku-sen" & " " & toKanji(N Mod 1000)
- Case 7
- kanji = "nana-sen" & " " & toKanji(N Mod 1000)
- Case 8
- kanji = "hassen" & " " & toKanji(N Mod 1000)
- Case 9
- kanji = "kyu-sen" & toKanji(N Mod 1000)
- Case Else
- kanji = ""
- End Select
- Case 5
- Select Case N \ 10000
- Case 1
- kanji = "ichi-man" & " " & toKanji(N Mod 10000)
- Case 2
- kanji = "ni-man" & " " & toKanji(N Mod 10000)
- Case 3
- kanji = "san-man" & " " & toKanji(N Mod 10000)
- Case 4
- kanji = "yon-man" & " " & toKanji(N Mod 10000)
- Case 5
- kanji = "go-man" & " " & toKanji(N Mod 10000)
- Case 6
- kanji = "roku-man" & " " & toKanji(N Mod 10000)
- Case 7
- kanji = "nana-man" & " " & toKanji(N Mod 10000)
- Case 8
- kanji = "hachi-man" & " " & toKanji(N Mod 10000)
- Case 9
- kanji = "kyu-man" & toKanji(N Mod 10000)
- Case Else
- kanji = ""
- End Select
- Case 6
- Select Case N \ 100000
- Case 1
- kanji = "ju" & " " & toKanji(N Mod 100000)
- Case 2
- kanji = "ni-ju" & " " & toKanji(N Mod 100000)
- Case 3
- kanji = "san-ju" & " " & toKanji(N Mod 100000)
- Case 4
- kanji = "yon-ju" & " " & toKanji(N Mod 100000)
- Case 5
- kanji = "go-ju" & " " & toKanji(N Mod 100000)
- Case 6
- kanji = "roku-ju" & " " & toKanji(N Mod 100000)
- Case 7
- kanji = "nana-ju" & " " & toKanji(N Mod 100000)
- Case 8
- kanji = "hachi-ju" & " " & toKanji(N Mod 100000)
- Case 9
- kanji = "kyu-ju" & toKanji(N Mod 100000)
- Case Else
- kanji = ""
- End Select
- Case 7
- Select Case N \ 1000000
- Case 1
- kanji = "hyaku" & " " & toKanji(N Mod 1000000)
- Case 2
- kanji = "ni-hyaku" & " " & toKanji(N Mod 1000000)
- Case 3
- kanji = "san-hyaku" & " " & toKanji(N Mod 1000000)
- Case 4
- kanji = "yon-hyaku" & " " & toKanji(N Mod 1000000)
- Case 5
- kanji = "go-hyaku" & " " & toKanji(N Mod 1000000)
- Case 6
- kanji = "roku-hyaku" & " " & toKanji(N Mod 1000000)
- Case 7
- kanji = "nana-hyaku" & " " & toKanji(N Mod 1000000)
- Case 8
- kanji = "hachi-hyaku" & " " & toKanji(N Mod 1000000)
- Case 9
- kanji = "kyu-hyaku" & toKanji(N Mod 1000000)
- Case Else
- kanji = ""
- End Select
- Case 8
- Select Case N \ 10000000
- Case 1
- kanji = "sen" & " " & toKanji(N Mod 10000000)
- Case 2
- kanji = "ni-sen" & " " & toKanji(N Mod 10000000)
- Case 3
- kanji = "sanzen" & " " & toKanji(N Mod 10000000)
- Case 4
- kanji = "yon-sen" & " " & toKanji(N Mod 10000000)
- Case 5
- kanji = "go-sen" & " " & toKanji(N Mod 10000000)
- Case 6
- kanji = "roku-sen" & " " & toKanji(N Mod 10000000)
- Case 7
- kanji = "nana-sen" & " " & toKanji(N Mod 10000000)
- Case 8
- kanji = "hachi-sen" & " " & toKanji(N Mod 10000000)
- Case 9
- kanji = "kyu-sen" & toKanji(N Mod 10000000)
- Case Else
- kanji = ""
- End Select
- Case 9
- Select Case N \ 100000000
- Case 1
- kanji = "ichi-oku" & " " & toKanji(N Mod 100000000)
- Case 2
- kanji = "ni-oku" & " " & toKanji(N Mod 100000000)
- Case 3
- kanji = "san-oku" & " " & toKanji(N Mod 100000000)
- Case 4
- kanji = "yon-oku" & " " & toKanji(N Mod 100000000)
- Case 5
- kanji = "go-oku" & " " & toKanji(N Mod 100000000)
- Case 6
- kanji = "roku-oku" & " " & toKanji(N Mod 100000000)
- Case 7
- kanji = "nana-oku" & " " & toKanji(N Mod 100000000)
- Case 8
- kanji = "hachi-oku" & " " & toKanji(N Mod 100000000)
- Case 9
- kanji = "kyu-oku" & toKanji(N Mod 100000000)
- Case Else
- kanji = ""
- End Select
- Case 10
- Select Case N \ 1000000000
- Case 1
- kanji = "ju" & " " & toKanji(N Mod 1000000000)
- Case 2
- kanji = "ni-ju" & " " & toKanji(N Mod 1000000000)
- Case 3
- kanji = "san-ju" & " " & toKanji(N Mod 1000000000)
- Case 4
- kanji = "yon-ju" & " " & toKanji(N Mod 1000000000)
- Case 5
- kanji = "go-ju" & " " & toKanji(N Mod 1000000000)
- Case 6
- kanji = "roku-ju" & " " & toKanji(N Mod 1000000000)
- Case 7
- kanji = "nana-ju" & " " & toKanji(N Mod 1000000000)
- Case 8
- kanji = "hachi-ju" & " " & toKanji(N Mod 1000000000)
- Case 9
- kanji = "kyu-ju" & toKanji(N Mod 1000000000)
- Case Else
- kanji = ""
- End Select
- Case 11
- Select Case N \ 10000000000
- Case 1
- kanji = "hyaku" & " " & toKanji(N Mod 10000000000)
- Case 2
- kanji = "ni-hyaku" & " " & toKanji(N Mod 10000000000)
- Case 3
- kanji = "sanbyaku" & " " & toKanji(N Mod 10000000000)
- Case 4
- kanji = "yon-hyaku" & " " & toKanji(N Mod 10000000000)
- Case 5
- kanji = "go-hyaku" & " " & toKanji(N Mod 10000000000)
- Case 6
- kanji = "roku-hyaku" & " " & toKanji(N Mod 10000000000)
- Case 7
- kanji = "nana-hyaku" & " " & toKanji(N Mod 10000000000)
- Case 8
- kanji = "hapyaku" & " " & toKanji(N Mod 10000000000)
- Case 9
- kanji = "kyu-hyaku" & toKanji(N Mod 10000000000)
- Case Else
- kanji = ""
- End Select
- Case 12
- Select Case N \ 100000000000
- Case 1
- kanji = "sen" & " " & toKanji(N Mod 100000000000)
- Case 2
- kanji = "ni-sen" & " " & toKanji(N Mod 100000000000)
- Case 3
- kanji = "sanzen" & " " & toKanji(N Mod 100000000000)
- Case 4
- kanji = "yon-sen" & " " & toKanji(N Mod 100000000000)
- Case 5
- kanji = "go-sen" & " " & toKanji(N Mod 100000000000)
- Case 6
- kanji = "roku-sen" & " " & toKanji(N Mod 100000000000)
- Case 7
- kanji = "nana-sen" & " " & toKanji(N Mod 100000000000)
- Case 8
- kanji = "hassen" & " " & toKanji(N Mod 100000000000)
- Case 9
- kanji = "kyu-sen" & toKanji(N Mod 100000000000)
- Case Else
- kanji = ""
- End Select
- Case 13
- Select Case N \ 1000000000000
- Case 1
- kanji = "itcho" & " " & toKanji(N Mod 1000000000000)
- Case 2
- kanji = "ni-cho" & " " & toKanji(N Mod 1000000000000)
- Case 3
- kanji = "san-cho" & " " & toKanji(N Mod 1000000000000)
- Case 4
- kanji = "yon-cho" & " " & toKanji(N Mod 1000000000000)
- Case 5
- kanji = "go-cho" & " " & toKanji(N Mod 1000000000000)
- Case 6
- kanji = "roku-cho" & " " & toKanji(N Mod 1000000000000)
- Case 7
- kanji = "nana-cho" & " " & toKanji(N Mod 1000000000000)
- Case 8
- kanji = "hatcho" & " " & toKanji(N Mod 1000000000000)
- Case 9
- kanji = "kyu-cho" & toKanji(N Mod 1000000000000)
- Case Else
- kanji = ""
- End Select
- Case 14
- Select Case N \ 10000000000000
- Case 1
- kanji = "ju" & " " & toKanji(N Mod 10000000000000)
- Case 2
- kanji = "ni-ju" & " " & toKanji(N Mod 10000000000000)
- Case 3
- kanji = "san-ju" & " " & toKanji(N Mod 10000000000000)
- Case 4
- kanji = "yon-ju" & " " & toKanji(N Mod 10000000000000)
- Case 5
- kanji = "go-ju" & " " & toKanji(N Mod 10000000000000)
- Case 6
- kanji = "roku-ju" & " " & toKanji(N Mod 10000000000000)
- Case 7
- kanji = "nana-ju" & " " & toKanji(N Mod 10000000000000)
- Case 8
- kanji = "hachi-ju" & " " & toKanji(N Mod 10000000000000)
- Case 9
- kanji = "kyu-ju" & toKanji(N Mod 10000000000000)
- Case Else
- kanji = ""
- End Select
- Case 15
- Select Case N \ 100000000000000
- Case 1
- kanji = "hyaku" & " " & toKanji(N Mod 100000000000000)
- Case 2
- kanji = "ni-hyaku" & " " & toKanji(N Mod 100000000000000)
- Case 3
- kanji = "sanbyaku" & " " & toKanji(N Mod 100000000000000)
- Case 4
- kanji = "yon-hyaku" & " " & toKanji(N Mod 100000000000000)
- Case 5
- kanji = "go-hyaku" & " " & toKanji(N Mod 100000000000000)
- Case 6
- kanji = "roku-hyaku" & " " & toKanji(N Mod 100000000000000)
- Case 7
- kanji = "nana-hyaku" & " " & toKanji(N Mod 100000000000000)
- Case 8
- kanji = "hapyaku" & " " & toKanji(N Mod 100000000000000)
- Case 9
- kanji = "kyu-hyaku" & toKanji(N Mod 100000000000000)
- Case Else
- kanji = ""
- End Select
- Case 16
- Select Case N \ 1000000000000000
- Case 1
- kanji = "sen" & " " & toKanji(N Mod 1000000000000000)
- Case 2
- kanji = "ni-sen" & " " & toKanji(N Mod 1000000000000000)
- Case 3
- kanji = "sanzen" & " " & toKanji(N Mod 1000000000000000)
- Case 4
- kanji = "yon-sen" & " " & toKanji(N Mod 1000000000000000)
- Case 5
- kanji = "go-sen" & " " & toKanji(N Mod 1000000000000000)
- Case 6
- kanji = "roku-sen" & " " & toKanji(N Mod 1000000000000000)
- Case 7
- kanji = "nana-sen" & " " & toKanji(N Mod 1000000000000000)
- Case 8
- kanji = "hassen" & " " & toKanji(N Mod 1000000000000000)
- Case 9
- kanji = "kyu-sen" & toKanji(N Mod 1000000000000000)
- Case Else
- kanji = ""
- End Select
- Case Else
- End Select
- Return kanji
- End Function
- Private Sub TextBox1_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
- Try
- Dim dnum As ULong
- dnum = TextBox1.Text
- If dnum = 0 Then
- Label1.Text = "rei"
- Else
- Label1.Text = toKanji(dnum)
- End If
- Catch ex As Exception
- MsgBox("enter an integer up to 16 digits , text length : " & TextBox1.Text.Length())
- End Try
- End Sub
- End Class
- HOW TO MAKE A DLL IN VB.NET
- the dll of classes can be used in various .net compilers (c++, delphi, c#, vb.net...)
- open vb.net, file, new, class library, add all your classes (project, add), save as, build (name of project), resave,
- now the dll should appear in the save as location (in the bin folder of the project)
- now you can add the dll : project, add reference, browse to the dll file.
- MAKE A SETUP WIZARD
- InnoSetup
- make a setup wizard. download link :
- http://www.jrsoftware.org/isdl.php
- the client would need .net framework, which is installed with automatic updates, or you can dl this inno setup :
- http://www.codeproject.com/KB/install/dotnetfx_innosetup_instal.aspx?msg=3394086
- DOT NET MICRO FRAMEWORK
- the netduino board is a micro controller (for robotic stuff) http://www.netduino.com/ with windows ce on in it's chip.
- to work it download .NET Micro Framework 4.0 SDK from which works with Visual Basic 2010 Express (so I have read):
- http://netmf.codeplex.com/releases/view/52340
- or
- http://www.microsoft.com/downloads/en/details.aspx?FamilyId=77dbfc46-14a1-4dcf-a809-eda7ccfe376b&displaylang=en
- code examples :
- http://forums.netduino.com/index.php?/topic/1962-visual-basic-support-for-netduino-and-net-mf-now-in-beta/
- Imports Microsoft.SPOT
- Imports Microsoft.SPOT.Hardware
- Imports SecretLabs.NETMF.Hardware
- Imports SecretLabs.NETMF.Hardware.Netduino
- Module Module1
- Sub Main()
- Dim led As New OutputPort(Pins.ONBOARD_LED, False)
- Do
- led.Write(True)
- Thread.Sleep(250)
- led.Write(False)
- Thread.Sleep(250)
- Loop
- End Sub
- End Module
- Imports Microsoft.SPOT
- Imports Microsoft.SPOT.Hardware
- Imports SecretLabs.NETMF.Hardware
- Imports SecretLabs.NETMF.Hardware.Netduino
- Module Module1
- Sub Main()
- Dim Led As OutputPort = New OutputPort(Pins.ONBOARD_LED, False)
- Dim Button As InputPort = New InputPort(Pins.ONBOARD_SW1, False, ResistorModes.PullUp)
- Do While True
- Led.Write(Button.Read())
- Loop
- End Sub
- End Module
- Imports Microsoft.SPOT
- Imports Microsoft.SPOT.Hardware
- Imports SecretLabs.NETMF.Hardware
- Imports SecretLabs.NETMF.Hardware.Netduino
- Module Module1
- Public led As OutputPort = New OutputPort(Pins.ONBOARD_LED, False)
- Sub Main()
- Dim button As InterruptPort = New InterruptPort(Pins.ONBOARD_SW1, False, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeBoth)
- AddHandler button.OnInterrupt, AddressOf ButtonChange
- button.EnableInterrupt()
- Thread.Sleep(Timeout.Infinite)
- End Sub
- Sub ButtonChange(ByVal data1 As UInteger, ByVal data2 As UInteger, ByVal time As Date)
- If data2 = 0 Then led.Write(False) Else led.Write(True)
- End Sub
- End Module
- SQL
- http://www.youtube.com/watch?v=3Aadk...eature=related
- crud : create read update delete
- dbms : database management system
- sql : structured query language
- table = rows and columns of data (cells)
- download : sql express 2008 (up to 4Gbyte of data) or 2010 (up to 10Gbytes)
- building and modifying databases is intuitive (using only SQL)
- sql statements :
- select * from table
- table = table name
- select count(*) from table
- return how many rows in the table
- select count(column1) from table
- return how many not null rows in the column1 of the table table
- select column1, column2 from table
- column = column name
- select column1 as name, column2 as 'name two' from table
- also names the requested columns (1 and 2)
- SELECT column1, column2 FROM TABLE WHERE column1 = 'stringvaluehere'
- add ORDER BY column
- to sort
- UPDATE table SET column = 'new data' WHERE colomn = x
- x is a number
- DELETE FROM table WHERE colomn = x
- SQL DATABASE AND VB.NET
- new project
- project, add new item, service based database
- finish
- view, database explorer, +, tables, rightclick add new table
- from table created add data, and tab to move to the next field
- save all, data sources, add new data source, database, connection string copy (after click +) and save it in a text file !,
- next, check all, finish
- connection string also at rightclick database, properties (in database explorer)
- ado auto navigator: data sources, +,+ of table, arrow, details, drag the table in to the form. you can add, delete
- insert now with the new control. you can alternitivlly use this codes:
- the examples were tested on a 1 table database with 2 fields : fname, lastname
- add
- Imports System.Data.SqlClient 'present in all sql codes
- insert:
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim connetionString As String
- Dim connection As SqlConnection
- Dim adapter As New SqlDataAdapter
- Dim sql As String
- connetionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\moti1.mdf;Integrated Security=True;User Instance=True"
- connection = New SqlConnection(connetionString)
- Dim x, x1 As String
- x = TextBox1.Text
- x1 = TextBox2.Text
- sql = String.Format("insert into table1 (fname,lname) values('{0}','{1}')", x, x1)
- Try
- connection.Open()
- adapter.InsertCommand = New SqlCommand(sql, connection)
- adapter.InsertCommand.ExecuteNonQuery()
- MsgBox("Row inserted !! ")
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- End Sub
- Dataadapter DeleteCommand - Sql Server (in the button sub)
- Dim connetionString As String
- Dim connection As SqlConnection
- Dim adapter As New SqlDataAdapter
- Dim sql As String
- connetionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\moti1.mdf;Integrated Security=True;User Instance=True"
- connection = New SqlConnection(connetionString)
- Dim x As String
- x = TextBox1.Text
- sql = String.Format("delete table1 where fname ='{0}'", x)
- Try
- connection.Open()
- adapter.DeleteCommand = connection.CreateCommand
- adapter.DeleteCommand.CommandText = sql
- adapter.DeleteCommand.ExecuteNonQuery()
- MsgBox("Row(s) deleted !! ")
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- the following examples are for a diffrent(but simmilar) data base:
- populate and display
- Imports System.Data.SqlClient
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim connetionString As String
- Dim connection As SqlConnection
- Dim adapter As SqlDataAdapter
- Dim ds As New DataSet
- Dim i As Integer
- connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"
- connection = New SqlConnection(connetionString)
- Try
- connection.Open()
- adapter = New SqlDataAdapter("Your SQL Statement Here", connection) 'or
- adapter.SelectCommand = New SqlCommand("Your SQL Statement Here", connection) ' end of or
- adapter.Fill(ds)
- connection.Close()
- For i = 0 To ds.Tables(0).Rows.Count - 1
- MsgBox(ds.Tables(0).Rows(i).Item(1))
- Next
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- End Sub
- End Class
- Dataadapter UpdateCommand - Sql Server
- Imports System.Data.SqlClient
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim connetionString As String
- Dim connection As SqlConnection
- Dim adapter As New SqlDataAdapter
- Dim sql As String
- connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"
- connection = New SqlConnection(connetionString)
- sql = "update product set product_price = 1001 where Product_name ='Product7'"
- Try
- connection.Open()
- adapter.UpdateCommand = connection.CreateCommand
- adapter.UpdateCommand.CommandText = sql
- adapter.UpdateCommand.ExecuteNonQuery()
- MsgBox("Row updated !! ")
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- End Sub
- End Class
- methode 2 for passing variables : _ is down line (instead of {0},x of the delete code above)
- also: the parameters past to the sql command sould be filtered from malicious sql commands and '
- for the code with {0} unless you use the following code that doesn't require fillterring.
- Dim sql As String = "INSERT INTO User (FirstName, LastName, DateOfBirth, ChildCount) " & _
- "VALUES (@FirstName, @LastName, @DateOfBirth, @ChildCount)"
- Dim myCommand As New SqlCommand(sql)
- With myCommand.Parameters
- .AddWithValue("@FirstName", Me.firstNameField.Text)
- .AddWithValue("@LastName", Me.lastNameField.Text)
- .AddWithValue("@DateOfBirth", Me.dateOfBirthPicker.Value.Date)
- .AddWithValue("@ChildCount", CInt(Me.childrenSpinner.Value))
- End With
- read all data with code: (for first example of 2 field database (fname,lname))
- add imports system.data
- Dim con As New SqlConnection
- Dim cmd As New SqlCommand
- Try
- con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\moti1.mdf;Integrated Security=True;User Instance=True"
- con.Open()
- cmd.Connection = con
- cmd.CommandText = "SELECT fname, lname FROM table1"
- Dim lrd As SqlDataReader = cmd.ExecuteReader()
- While lrd.Read()
- MsgBox(lrd.Item(0).ToString())
- MsgBox(lrd.Item(1).ToString())
- ' two fields
- End While
- Catch ex As Exception
- MessageBox.Show("Error while retrieving records on table..." & ex.Message, "Load Records")
- Finally
- con.Close()
- End Try
- SAVE IMAGES
- Saving Images in Databases (can also be used for any files (like videos))
- Loading an image from a database field:
- Dim connection As New SqlConnection("connection string here")
- Dim command As New SqlCommand("SELECT Picture FROM MyTable WHERE ID = 1", connection)
- connection.Open()
- Dim pictureData As Byte() = DirectCast(command.ExecuteScalar(), Byte())
- connection.Close()
- Dim picture As Image = Nothing
- Using stream As New IO.MemoryStream(pictureData)
- picture = Image.FromStream(stream)
- End Using
- Saving an image to a database field:
- Dim connection As New SqlConnection("connection string here")
- Dim command As New SqlCommand("UPDATE MyTable SET Picture = @Picture WHERE ID = 1", connection)
- Using picture As Image = Image.FromFile("file path here")
- Using stream As New IO.MemoryStream
- picture.Save(stream, Imaging.ImageFormat.Jpeg)
- command.Parameters.Add("@Picture", SqlDbType.VarBinary).Value = stream.GetBuffer()
- End Using
- End Using
- connection.Open()
- command.ExecuteNonQuery()
- connection.Close()
- SQL STORED PROCEDURES
- in asp.net : after connecting to the sql database :
- right click stroed procedure, add.
- type :
- create procedure dbo.name
- @columnname varchar(60)
- as
- select column1, column2 from tablename
- where columnname = @columnname
- return
- you can right click and execute to test
- ctrl + shift + a or add new item, linq to sql classes
- right click GUI to show methode pane, drag the created stored procedure into the pane
- add to the form a data grid view control, and a text box
- in the code (for vb code) :
- private records as new contactbasedatacontext
- 'as global variable
- ' in an event like button event
- dim rec = records.selectcontact(textbox1.text)
- datagridview1.datasource = rec
- ' run , put parameter in textbox1 click button to run event code
- 2nd example of stored procedure :
- alter procedure dbo,insertnojutsu
- @param1 varchar(49)
- @param2 varchar(30)
- as
- insert into tablename(param1,param2)
- where (@param1,@param2)
- return
- MINNING ACCESS DATABASES WITH VB.NET
- connecting to an access database:
- 1 File > New Project from the menu bar, Windows Application
- 2 View > Solution Explorer from the menu bar, click on Data Sources, choose data source, next
- version 2010 of VBN NET select dataset, next
- 3 New Connection, Change button, Select Microsoft Access Database File, ok
- 4 Click the Browse button and navigate to where on your computer you downloaded our Access Database,
- Click Test Connection to see if everything is OK
- 5 +, save connection string in a txt file
- 6 Click No on the message box to stop VB copying the database each time it runs
- 7 from data sources you can drag and drop tables or fields to the form to navigate and edit(to edit before
- draging click the arrow near the table and choose detail view)
- tip: When all Textbox are selected, click on the Format menu at the top
- From the Format menu select Align > Lefts. The left edges of the Textboxes will align themselves
- From the Format menu select Vertical Spacing > Make Equal. The space between each textbox will then be
- the same .
- codes:
- OLE stands for Object Linking and Embedding
- in a sub:
- dim con As new OleDb.OleDbConnection
- dim dbProvider,dbSource As string
- dim ds As new DataSet
- dim da As OleDb.OleDbDataAdapter
- dim sql As string
- dbProvider = "PROVIDER=Microsoft.jet.OLEDB.4.0;"
- dbSource = "Data Source = E:/AddressBook.mdb" ' path of access database
- con.ConnectionString = bProvider & dbSource
- con.open()
- sql = "SELECT * FROM tblContacts" 'sql command, dataset contains table tblContacts
- da = new OleDb.OleDbDataAdapter(sql, con)
- da.Fill(ds, "AddressBook") ' dataset filled
- con.close()
- txtFirstName.Text = ds.Tables("AddressBook").Rows(0).Item(1)' getting data from ds
- txtSurname.Text = ds.Tables("AddressBook").Rows(0).Item(2)
- 'or
- 'txtFirstName.Text = ds.Tables("whatever").Rows(0).Item(1)
- 'txtSurname.Text = ds.Tables("whatever").Rows(0).Item(2)
- ' MaxRows = ds.Tables("AddressBook").Rows.Count
- end sub
- Updating a Record:
- Dim cb As New OleDb.OleDbCommandBuilder(da)
- ds.Tables("AddressBook").Rows(inc).Item(1) = txtFirstName.Text
- ds.Tables("AddressBook").Rows(inc).Item(2) = txtSurname.Text
- da.Update(ds, "AddressBook")
- MsgBox("Data updated")
- Add a New Record
- Dim cb As New OleDb.OleDbCommandBuilder(da)
- Dim dsNewRow As DataRow
- dsNewRow = ds.Tables("AddressBook").NewRow()
- dsNewRow.Item("FirstName") = txtFirstName.Text
- dsNewRow.Item("Surname") = txtSurname.Text
- ds.Tables("AddressBook").Rows.Add(dsNewRow)
- da.Update(ds, "AddressBook")
- MsgBox("New Record added to the Database")
- Deleting Records from a Database:
- Dim cb As New OleDb.OleDbCommandBuilder(da)
- ds.Tables("AddressBook").Rows(inc).Delete() ' inc is an integer variable
- da.Update(ds, "AddressBook")
- tip: getting a folder path:
- Dim fldr As String
- fldr = Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments ) & "/AddressBook.mdb"
- E-COMMERCE
- for software:
- make your program generate a random password then give the user an encrypted pass (according to formula), then use a pay site to get payment confirmation via email,
- next send the uncrypted password to the user (you unencrypt with an encription program you make that uses the product software encryption key).
- finally user enters pass in software to resume.
- also, you can use activelock (with vb.net) for the encryption, it is free, just dl it and add to the tool box
- the dll by : right click, choose iten, brows
- all purpose : e-commerce
- 1 paypal :
- sign up for a business account, log in, go to website payment standard link, sell single items
- fill product details and price, create button, embed the give embed code in your site, you
- should get an email with purchases data
- this can also get donations
- or use :
- WebStarts, settings tab, e- commerce, fill data
- 2 clickbank - sell files like pdf and get the money sent by check in the mail, you get
- an embeded link for selling the file on your siter site
- ASP.NET
- Active Server Pages (ASP) - exactly like vb.net (see also sql chapter) but instead of a form you have web pages,
- and other controls are available. to publish an asp.net web site ftp the .aspx files and any necessary support
- files (path where you save as) (see publish your site in html chapter)
- a server that supports asp.net has Internet Information Server (IIS) installed (most do)
- operating systems that support ASP are: Windows 95, 98, NT, 2000, 2003, XP sp3 Pro, windows 7.
- A search and install asp.net (search asp.net download or download Visual Web Developer 2010 Express)
- B checking if IIS on Windows XP Professional:(optional (it installs with asp.net))
- 1 Open your control panel. Click Start -> then Settings -> then Control Panel
- 2 Select and Open "Add or Remove Programs"
- 3 On the left column of the popup window select "Add or Remove Windows Components"
- 4 Scroll down until you see Internet Information Services (IIS)
- 5 If IIS is not checked then check it, otherwise you already have IIS installed on your computer
- 6 Click Next and follow the on screen instructions from the installer
- 7 When it has completed, open up Internet Explorer and type in http://localhost
- 8 If IIS was install appropriately you should be taken to the welcome screen http://localhost/localstart.asp
- 1 when you start a new web site select the visual basic language or c#
- 2 datagrid uses an auto wizard to display and work with access or sql databasses
- 3 hyperlink url property : set to nameOfWebPage.aspx to navigate to a webpage you added in your site
- How to Deploy ASP. Net Websites on IIS 7.0:
- From Visual Studio, publish your Web application
- Copy the published application folder to "C:\intepub\wwwroot" [default] folder
- From start, RUN - > inetmgr -> OK
- right click testweb and then Click on "ConvertToApplication"
- CLOUD COMPUTING
- cloud operating systems : os on servers to be accessed from anywhere
- cloudo.com (free)
- oos.cc called icube
- eyeos.info has : spreadsheet, word processor, calender
- uploading asp.net site to an azure server
- note you might need to install IPv6 for windows xp
- ROUND 1
- this is cheaper if your site and it's sql database is fatter than 100MB
- 0 sign up at windows.azure.com get a cloud subscription
- 1 install cloud sdk
- 2 in asp.net :in your asp.net project, solution explorer,right click, new project, add, cloud, choose asp.net
- 3 solution exploarer, in the added roles folder, right click, add, web role, finish that wizard,
- in the added file of the roles folder, right click, options, find connection string (in settings tab)
- delete the default connection string, and make a new one to be filled with your
- azure storage account name and key : to get them : go to your azure portal, home, host services, storage, copy
- name and key, save
- 4 from solution explorer, cloud, right click, publish, creat certificatel, name it,
- click copy full path
- 5 go to your azure portal, management certificates, add certificate, browse to your
- certificate (paste full path) or browse to it
- 6 return to cloud publish wizard, paste subscriptionID from your azure portal last(current) screen
- (in the portal properties window (to the right), give a credencial name(whatever)
- ok publish wait and you get a url, and the site is also in your cloud portal
- sql server to sql azure
- ROUND 2
- 1 download sql azure migration wizard (codeplex.com), run the exe file, check analyze and migrate
- database, specify database : localdatabase
- 2 go to azure portal, database, copy server name and paste it in the wizard instead of SERVER
- in server name : textbox
- fill : username@SERVERNAME(that was copied), connect
- 3 click creat database, after finish wizard, refresh database in azure portal, the database is added
- from the portal you can edit the database (click manage and enter your password)
- asp.net site (web app) and sql azure integration
- ROUND 3
- in asp.net in your web app project(that was published to the azure) in the sqldatasource object
- click it's little arrow, change connection string, new connection string, copy the server name from
- azure database portal, from the new database, type username and password, finish, save, run (f5)
- YOUTUBE
- SOFTWARE Camtasia Studio 6 (video editing)
- OR
- camstudio : make a screen capture video (full or part of screen)
- adobe premier pro or windows live movie maker : make edit and auto publish a video to youtube
- imovie or final cut pro : edit movies on mac OS
- iphone youtube app : upload movie from iphone, the iphone connects to the internet via wireless network or
- gsm (cellphone) network
- audioSwap : in youtube click your username, myvideos, select video to edit its audio track
- , audioswap to place new music or sound track to your video
- easyest editing : in youtube click your username, myvideos, on top menu : video editor
- now you can make a new video out of your other uploaded videos (that can be sliced) and you
- can edit the audio track
- note : free blogs : blogger, wordpress
- if you are unable to upload a video to youtube (Unknown Error Uploading) then :
- download and install : google gears from :
- http://gears.google.com/
- upload the video from :
- http://upload.youtube.com/my_videos_upload?restrict=gears
- HTML (build a website)
- to make a website from scratch:
- 1 create a new folder (in here you put all your files, and webpages)
- 2 create a new text file change its ending to html or htm
- 3 right click the htm file open with notepad or wordpad (if your on windown), or typepad(for mac os)
- 4 skelleton of html code:
- <html>
- <head>
- <title>My WebPage!</title>
- </head>
- <body>
- Hello World! All my content goes here!
- </body>
- </html>
- * traditional doctype :
- start html with html doctype in first line of code (before <html> ):
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- or
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- for xml :
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3c.org/TR/xhtml11/DTD/xhtml11-transitional.dtd">
- or strict to favor coding : (choose html or xml)
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3c.org/TR/html4/strict.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3c.org/TR/xhtml11/DTD/xhtml11-strict.dtd">
- or frameset (choose html or xml)
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3c.org/TR/html4/frameset.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3c.org/TR/xhtml11/DTD/xhtml11-frameset.dtd">
- 4.2 here is an example of htm code for an html site :
- <html>
- <header>
- <title>moti site</title>
- </header>
- <body>
- <center>
- <p><h1><b>welcome<br>new line</b></h1></p>
- <p><h2><i>welcome</i></h2></p>
- <p><u>welcome</u></p>
- <p>welcome</p>
- </center>
- space
- <table align = "center" border = "1" width = "300">
- <tr><td>videos</td></tr>
- <tr><td><ol>
- <li>item 1</li>
- <li>item 2</li>
- </ol></td></tr>
- <tr><td>paste youtube embedded here</td></tr>
- <tr><td>test1</td><td>test2</td></tr>
- </table>
- videos:
- <ol>
- <li>item 1</li>
- <li>item 2</li>
- </ol>
- </body>
- </html>
- 5 save (with ctrl s) close the notepad open your html site.
- html code:
- tags : open tag <html></html> close tags thats the format for all the html tags in them you put text and stuff
- in the <html></html> tags you put <header></header> and <body></body tags outside of header tag as
- see number 4 above
- <title>your site title</title> goes in header tags.
- in body tags goes your contents (pictures, links, text). to add text you type it inside body tags and you can
- sorround some text in special tags to change its appearence.
- attributes: in the tags can be added (to the first tag) attributes for the contents in the tag.
- some characters in your text can be input laccording to the following:(Entities)
- & - &
- cent sign - ¢
- copyright symbol - © or ©
- degree sign - °
- greater than - >
- lower than - <
- space -
- registered trade mark - ®
- trademark - ™
- tags list exampled:
- 1 <p> - opening paragraph tag
- Element Content - paragraph words
- </p> - closing tag
- <p align="justify">some text</p> (align is an attribute) align = "center" or "right"
- 2 list :
- <h4 align="center">Goals</h4> (headline) also h1 to h6 h1 is biggest.
- attribute : align = "left" or "center" or "right"
- <ol> (numbered list, use ul (not ol)for unnumbered) can use <ol start ="4"> to start count from 4
- <li>stuff1</li>
- <li>stuff2</li>
- </ol>
- (<ol type="x"> x replace with "a", "A", "i" or "I" to change counters)
- (<ul type="square"> or <ul type="disc"> or <ul type="circle">)
- 3 definition:
- <dl>
- <dt><b>chizu</b></dt>
- <dd>japanese word for cheese.</dd>
- <dt><b>jidosha</b></dt>
- <dd>japanese word for car.</dd>
- </dt>
- 4 line break (enter new line):
- <br />
- 5 horizontal line : <hr />
- <b>Bold Text</b>
- <em>Emphasized Text</em>
- <strong>Strong Text</strong></p>
- <i>Italic Text</i>
- <sup>superscripted Text</sup>
- <del>struckthrough Text</del>
- <code>Computer Code Text</code>
- 6 <font size="5">Here is a size 5 font</font>
- <font color="#990000">This text is hexcolor #990000</font>
- (This text is hexcolor #990000)
- <font color="red">This text is red</font>
- Attributes:
- size= "Num. Value 1-7" Size of your text 7 is biggest
- color= "rgb,name,or hexidecimal" Change font color
- face= "name of font" Change the font type
- 7 HTML - Hypertext Reference (href):
- <a href="http://www.espn.com/" target="_blank" >ESPN Home</a>
- <a href="http://www.yahoo.com/" target="_blank" >Yahoo Home</a>
- (the text between the tags will be shown)
- Internal - href="#anchorname" (link to a word on your site) and add :
- <A name="anchorname">you get here</A>
- Local - href="../pics/picturefile.jpg" (link to a file in a folder in the folder of your site (to be ftb via your domain url
- and stored in your webhost)
- Global - href="url" (link to a site)
- target=" _blank" Opens new page in a new browser window
- _self" Loads the new page in current window
- _parent" Loads new page into a frame that is superior to where the link lies
- _top" Loads new page into the current browser window, cancelling all frames
- ancoring: step1:
- <h2>HTML Links and Anchors<a name="top"></a></h2>
- <h2>HTML Text Links<a name="text"></a></h2>
- <h2>HTML Email<a name="email"></a></h2>
- step2:
- <a href="#top">Go to the Top</a>
- <a href="#text">Learn about Text Links</a>
- <a href="#email">Learn about Email Links</a>
- email link: <a href="mailto:x@yahoo.com?subject=Feedback" >Email@personx.com</a>
- email link with filling email body:
- <a href="mailto:email@yahoo.com?subject=Feedback&body=nice">
- Email@personx.com</a>
- download link:
- <a href="http://www.sitename.com/pics/htmlT/something.zip">Text Document</a>
- href ="location of file (url of another site or location in the folder containing the file compared to your location)
- href = images/images.html (link to webpage images in folder images)
- href = "images/pic1.png" link to a picture
- 8 images:
- <img src="anime da.gif" />
- src="anime da.gif" picture file resides in same directory(folder) as .html file
- src="../anime da.gif" picture file resides in previous directory as .html file
- src="../pics/anime da.gif" picture file resides in the pic directory in a previous directory as .html file
- attributes:
- alt="anime" (text to be displayed when hovering with mouse over picture)
- <img src="anime da.gif" height="60" width="200">
- align="right" or "left" or "center"
- Images as Links:
- <a href="http://www.sitename.com/">
- <img src="anime da.gif">
- </a>
- small picture link to comlete big picture:
- <a href="anime da.gif">
- <img src="thmb_anime da.gif">
- </a>
- image link:
- <a href="http://www.espn.com" target="_blank"> <img src="anime da.gif"> </a>
- attributes : border="0"
- 9 embed music:
- <embed src="beethoven.mid" width="360" height="165" /> (file beethoven.mid is in the site folder)
- Embed Attributes - Related to Functionality:
- autostart - choose if the media file will start automatically
- loop - sets the media file to repeat or not
- volume - set the volume of the media file. The range is 0-100.
- <embed src="beethoven.mid" autostart="false" loop="false"
- volume="60" />
- 10 embed video:
- <embed src="siteurl/files/html/htmlexample.mpeg"
- autostart="false" />
- also:
- <a href="http:siteurl/pics/flash/motiontween1easy.swf">
- motiontween1easy.swf</a>
- Flash movies (.swf), AVI's (.avi), and MOV's (.mov) , .mpeg files file types are supported by the embed tag. you sould
- use a new webbrowser so it will work such as IE (internet explorer) 8 or higher
- HTML - Embed Attributes:
- autostart - controls the media's ability to start without prompting. Values are true or false.
- hidden - controls whether or not the play/stop/pause embedded object is hidden or not. Values are true or false. (Hide your embeded media if you just want background noise).
- loop - A true value means the media will continuously loop, false means no looping.
- playcount - Setting a playcount means the media will repeat itself x number of times instead of continuously as with the loop attribute above. (playcount="2" will repeat the video twice).
- volume - set a numeric value for the loudness of your media. (0-100).
- also you can get the embed code of a video of youtube or google and paste it on your site
- 11 <table border="1"> (table)
- <tr><td>Row 1 Cell 1</td><td>Row 1 Cell 2</td></tr>
- <tr><td>Row 2 Cell 1</td><td>Row 2 Cell 2</td></tr>
- </table>
- for this code:
- <table border="1" cellspacing="10"
- bgcolor="rgb(0,255,0)">
- <tr>
- <th>Column 1</th>
- <th>Column 2</th>
- </tr>
- <tr><td>Row 1 Cell 1</td><td>Row 1 Cell 2</td></tr>
- <tr><td>Row 2 Cell 1</td><td>Row 2 Cell 2</td></tr>
- </table>
- in tr the text is bold and you see table attributes
- 12 background color:
- <body bgcolor="Silver">
- <p>We set the background...</p>
- </body>
- bgcolor for table:
- <table>
- <tr bgcolor="#FFFF00"><td>This Row is Yellow!</td></tr>
- <tr bgcolor="#AAAAAA"><td>This Row is Gray!</td></tr>
- <tr bgcolor="#FFFF00"><td>This Row is Yellow!</td></tr>
- <tr bgcolor="#AAAAAA"><td>This Row is Gray!</td></tr>
- <tr bgcolor="#FFFF00"><td>This Row is Yellow!</td></tr>
- <tr bgcolor="#AAAAAA"><td>This Row is Gray!</td></tr>
- </table>
- 13 background picture:
- add attribute: background="url" (of picture) or picture file location, to body or table tag
- 14 comment (does nothing but the site won't show it
- <!--buy milk -->
- 14.2 <p>This text is <del>scratched</del> out!</p>
- 14.3 iframe: embed a webpage in another webpage:
- <html>
- <head>
- </head>
- <frameset cols="30%,*">
- <frame src="menu.html">
- <frame src="content.html">
- </frameset>
- </html>
- frameset - The parent tag that defines the characteristics of this frames page.
- Individual frames are defined inside it.
- frameset cols="#%, *"- Cols(columns) defines the width that each frame will have.
- In the above example we chose the menu (the 1st column) to be 30% of the total
- page and used a "*", which means the content (the 2nd column) will use the remaining width for itself.
- frame src="" -The location of the web page to load into the frame.
- <html><head></head>
- <frameset rows="20%,*">
- <frame src="title.html">
- <frameset cols="30%,*">
- <frame src="menu.html">
- <frame src="content.html">
- </frameset>
- </html>
- <html><head></head>
- <frameset border="0" frameborder="0" framespacing="0" rows="20%,*">
- <frame src="title.html">
- <frameset border="0" frameborder="0" framespacing="0" cols="30%,*">
- <frame src="menu.html">
- <frame src="content.html">
- </frameset>
- </html>
- frameborder="#" - A zero value shows no "window" border.
- border="#"- Modifies the border width, used by Netscape.
- framespacing="#" -Modifies the border width, used by Internet Explorer.
- 15 meta here in contents attribute you put tags key words to help search engines find and rank your site:
- <head>
- <meta name="keywords" content="HTML, XHTML, CSS, tutorials, site" />
- </head>
- name defines what type of meta tag being used. Note that the keywords are separated by commas.
- <head> (description meta tag
- <meta name="description" content="site contains webmaster tutorials." />
- </head>
- 16 font:
- <p>
- <font size="5">Here is a size 5 font</font>
- </p>
- <font color="#990000">This text is hexcolor #990000</font>
- <font color="red">This text is red</font>
- <p>
- <font face="Bookman Old Style, Book Antiqua, Garamond">This paragraph
- has had its font...</font>
- </p>
- Attributes:
- size= "Num. Value 1-7" Size of your text, 7 is biggest
- color= "rgb,name,or hexidecimal" Change font color
- face= "name of font" Change the font type
- First Letter Style:
- <p><font size="7" face="Georgia, Arial" color="maroon">C</font>ustomize
- your font to achieve a desired look.</p>
- 17 Favicon - an icon for your site(an icon ends with .ico)
- download an icon and save it in your sites root directory(main folder)
- to your webpages add:
- <head>
- <link rel="shortcut icon"
- href="http://www.domain.com/iconfile.ico">
- </head>
- to create a favicon(instead of download):
- using an icon editor:
- PixelToolbox from AxiomX, the icon image is 16x16 pixel size(if you make it from an existing image file (like jpeg)).
- 18 add site to favorites link:
- <script language="JavaScript" type="text/javascript">
- function addBookmark()
- {
- if (document.all) {
- window.external.AddFavorite(location.href, document.title);
- }else if (window.sidebar){
- window.sidebar.addPanel(document.title, location.href, "");}
- }
- </script>
- <a href="JavaScript:addBookmark();"
- onclick="addBookmark();">Add to your favorites</a>
- 19 add a forum:
- you can open a free forum for example at: http://www.ace.st/en/
- and add the forums link to your site.
- ,manage the forum from : profile, scroll down to administration panel
- 20 display pdf(ebook):
- assuming you added the pdf to your site folder(on your pc or in the webhost via ftp)
- <a target="_blank" href="NAME OF FILE.pdf" title="">NAME OF LINK AS YOU WANT IT TO APPEAR </a>
- to embed the pdf in a webpage:
- <embed src="NAME OF FILE.pdf" width="500" height="375">.
- 21 add current date using vbScript: (visual basic script)
- <script type="text/vbscript">
- Dim myDateString
- myDateString = Date()
- document.write(myDateString)
- </script>
- 22 EMBED A CHAT:
- a chat with webcam, picture sharing and voice:
- www.oohya.net
- example:
- <br><a href="http://www.oohya.net/index.php?option=com_content&task=view&id=85&Itemid=1">Click Here to embed OohYa Chat in your profile.</a></br>
- <br><p><object type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all" height="425" width="525" data="http://www.oohya.net/123flashchat/client/123flashchat.swf?init_root=http://www.oohya.net/123flashchat/client/">
- <param name="allowScriptAccess" value="always" />
- <param name="allowNetworking" value="all" />
- <param name="movie" value="http://www.oohya.net/123flashchat/client/123flashchat.swf?init_root=http://www.oohya.net/123flashchat/client/" />
- </object><br />
- <a href="http://www.oohya.net">Free Chat Rooms</a>
- other chat providers (use a search engine to look them up):
- chatango.com
- 99Chats, TinyChat, Meebo Chat, Chat Maker, Yaplet, Gabbly
- 23 web show :
- find a live streaming provider and embed(</embed>) or add its link:
- A stickam.com , in the site in your profile: embed your stickam player on your web site
- http://www.ustream.tv/ (sign up ...), login, broadcast now, you can get the embed link from your profile page
- (live embed) or from bellow the video stream, bellow share this ( embed stream)
- click on the ìEmbedî tab. From the "Embed the Live Video anywhere!" text field, and click on ìCopy Embedî
- (you can also embed Chat or Social Stream modules) and paste this into your HTML code.
- B livestream.com , www.justin.tv
- 24 publish your site:(write down all user passwords you set) see 24 to publish for free
- A get a disposable credit card like visa's from the post office
- B buy a domain (search buy a domain(url)) you can use http://www.websitepalace.com/ for example
- also: Register.com and NetworkSolutions.com
- C buy space in a webhost(most offer to buy a domin) you can use http://www.websitepalace.com/ for example
- the webhost can offer you services like add a forum or add ssl security
- D ftp your site to your domain:
- internet explorer(IE), tools, internet options, advanced tab, enable ftb view outside IE is checked
- create a desttop shortcut type:
- explorer.exe ftp://username:password@servername (webhost is server name or your website url) the password
- in the webhost and also called credentials
- or open ftp://siteurl and enter your user and password(might need to: file,login)
- sometimes you can ftp via your webhost
- or use filezilla (ftp software)
- 25 host your site on your own pc(for free):
- optional : ask your isp(internet service provider) for a static(not changing ipaddress)
- option A:
- control panel, add or remove programs, add/remove windows components, internet information services(iis) -
- checked, next, new window asks you to insert windows cd, wait till install wizard will have completed.
- mycomputer, c:, inetpub, wwwroot, put site files folders in wwwroot folder
- start, control panel, administrative tools, internet information services, hpc, websites, default website -
- right click, properties, documents, add yourSiteFile.html, ok
- to get your ip adress: go to ipchicken.com or start, run, cmd, ipconfig (look at 2nd ip Address)
- connect to your site by: entering your ip adress to enter your site from anywhere (if your pc is on) or
- on your pc type the url(in the webrowser) localhost. to get a name in addition to your ip address(a site domain
- name): go to no-ip.com or search for: dns for static ip
- option B:
- Download Wampserver, type localhost for the server name, 13To use Wampserver, create a folder in the
- www directory and save the files for your site in that folder.
- 14The address for your site will be: yourstaticipaddress/yourfolderinthewwwdirectory/. Except if you signed
- up for a static DNS service (see end of option B)
- WARNING: update windows and install an antivirus when running hosting on your pc.
- also you want to have fast adsl(internet connection)
- 26 Web Statistics Software:(to check how popular your site is)
- Analog Website: www.analog.cx
- AWStats Website: awstats.sourceforge.net
- Google Analytics Website: www.google.com/analytics
- Webalizer Website: www.mrunix.net/webalizer
- VisitorVille Website: www.visitorville.com
- now you can delete update downlod and add files by dragging into and out off the ftp
- 27 usualy homepage.htm opens for your domain url]
- CSS (graphics for html)
- Cascading Style Sheets (CSS) (adding simple graphics to your html code):
- "HTML tag" { "CSS Property" : "Value" ; }
- "Property" (html attribute) is the CSS element you wish to manipulate
- "VALUE" represents the value of the specified property.
- 1 internal css:
- <html>
- <head>
- <style type="text/css">
- p {color: white; }
- body {background-color: black; }
- </style>
- </head>
- <body>
- <p>White text on a black background!</p>
- </body>
- </html>
- 2 External CSS (a file that contains only CSS code and is saved with a ".css" file extension):
- in notepad type:
- body{ background-color: gray;}
- p { color: blue; }
- h3{ color: white; }
- save as fileName.css (in the same folder of your .html file)
- in the html:
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="fileName.css" />
- </head>
- <body>
- <h3> A White Header </h3>
- <p> This paragraph has a blue font.
- The background color of this page is gray because
- we changed it with CSS! </p>
- </body>
- </html>
- 3 inline css (can overide other two types of css):
- <p style="background: blue; color: white;">A new background and font color with inline CSS</p>
- 4 css classes:
- css code:
- p.first{ color: blue; }
- p.second{ color: red; }
- html code:
- <p class="first">This is a paragraph that uses the p.first CSS code!</p>
- <p class="second">This is a paragraph that uses the p.second CSS code!</p>
- example 2: css code:
- p{ color: red; font-size: 20px; }
- p.test1{ color: blue; }
- p.test2{ font-size: 12px; }
- html code: (in body (webpage contents(text and pictures) area))
- <p class="test1">This is a paragraph that uses the p.test1 CSS code!</p>
- <p class="test2">This is a paragraph that uses the p.test2 CSS code!</p>
- 5 css background: (text background)
- p { background-image: url(smallPic.jpg); }
- h4{ background-image: url(picture url here sould end with picture formate like .jpg); }
- example 2:
- p {
- background-image: url(smallPic.jpg);
- background-repeat: repeat; } (horizontal)
- h4 {
- background-image: url(smallPic.jpg);
- background-repeat: repeat-y;} (vertical)
- ol {
- background-image: url(smallPic.jpg);
- background-repeat: repeat-x;} (horizontal short)
- ul {
- background-image: url(smallPic.jpg);
- background-repeat: no-repeat;} (vertical short)
- 6 CSS Fixed Background Image( with scrolling):
- textarea.noScroll {
- background-image: url(smallPic.jpg);
- background-attachment: fixed;
- }
- textarea {
- background-image: url(smallPic.jpg);
- background-attachment: scroll;}
- 6 CSS Gradient(fading) Background:
- p {
- background-image: url(http://www.example.com/gradient.gif);
- background-repeat: repeat-x;
- }
- 7 css font:
- h4 { font-family: sans-serif; }
- h5 { font-family: serif; }
- h6 { font-family: arial; }
- size:
- p { font-size: 120%; }
- ol{ font-size: 10px; }
- ul{ font-size: x-large; }
- ul{ font-weight: bolder; } (bold text)
- decoration:
- h4{ text-decoration: line-through; }
- h5{ text-decoration: overline; }
- h6{ text-decoration: underline; }
- a { text-decoration: none; }
- align:
- p { text-align: right; }
- h5{ text-align: justify; }
- text case:
- p { text-transform: capitalize; }
- h5{ text-transform: uppercase; }
- h6{ text-transform: lowercase; }
- CSS White Space ( until </br> long text will be horizontally scrolled)
- p { white-space: nowrap; }
- CSS Word Spacing
- p { word-spacing: 10px; }
- p { letter-spacing: 3px; } (CSS Letter Spacing)
- 8 CSS Padding (framing the text):
- p {padding: 15px; border: 1px solid black; }
- h5{padding: 0px; border: 1px solid red;}
- 9 css border:
- p.solid {border-style: solid; }
- p.double {border-style: double; }
- p.groove {border-style: groove; }
- p.dotted {border-style: dotted; }
- p.dashed {border-style: dashed; }
- p.inset {border-style: inset; }
- p.outset {border-style: outset; }
- p.ridge {border-style: ridge; }
- p.hidden {border-style: hidden; }
- example 2: border table:
- table { border-width: 7px;
- border-style: outset; }
- td { border-width: medium;
- border-style: outset; }
- p { border-width: thick;}
- example 3
- table { border-color: rgb( 100, 100, 255);
- border-style: dashed; }
- td { border-color: #FFBD32;
- border-style: ridge; }
- p { border-color: blue;
- border-style: solid; }
- border-style: solid; }
- 10 CSS List Style Type:
- ol { list-style-type: upper-roman; }
- ul { list-style-type: circle; }
- list with images:
- ul { list-style-image: url("listArrow.gif"); }
- ol { list-style-image: url("listArrow2.gif"); }
- 11CSS Links ( Pseudo-classes )
- css code:
- a:link { color: red; }
- a:visited { color: red; }
- a:hover { color: blue; } (also a:active for while clicking a link)
- html code:
- <a href="">This is a special CSS Link</a>!
- css fat example:
- a:hover{
- color: blue;
- background-color: red;
- font-size: 27px;
- border: 10px inset blue;
- font-family: serif;
- text-transform: uppercase;
- text-decoration: line-through;
- letter-spacing: 3px;
- word-spacing: 6px;
- font-weight: normal;}
- 12 CSS Cursor Code:
- p { cursor: wait }
- h4 { cursor: help }
- h5 { cursor: crosshair }
- 13 search for: CSS Reference
- to get a list of all css attributes and values
- SEO
- search engine optimization :
- http://siteexplorer.search.yahoo.com/submit
- http://www.google.com/addurl/?hl=en&continue=/addurl
- http://www.bing.com/webmaster/SubmitSitePage.aspx
- VBULLETIN CODES
- 1 color : [COLOR="blue"]text[/COLOR]
- 2 list :
- ][LIST=1]
- [*]That was by MC Hawking. A legend in the making (and you have a good taste in music LordOrwell ;)
- [*]That... thing... isn't going to dominate anything. I'd rather look and listen to Justin Beiber for christ sakes.
- [/LIST]
- 3 double click thread title to rename
- 4 [video]value[/video]
- [video]video url[/video] (doesn't work for all vbulletin forums)
- 5 space / shift + space : navigate through posts fast
- 6 vbcode : [highlight][/highlight]
- emoticon list :
- :) :( :o :D
- ;) :p :cool: :rolleyes:
- :mad: :eek: :confused: :bigyello:
- :wave: :lol: :blush: :cry:
- :ehh: :sick: :thumb: :down: :afrog:
- :eek2: :duck: :check:
- http://www.smiley-faces.org/smiley-faces-001.php
- http://www.freesmileys.org/emoticons-tekken.php
- paul
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-tekken-013.gif[/img][/url]
- true ogre
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-tekken-017.gif[/img][/url]
- sasuke
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-anime-005.gif[/img][/url]
- kakashi runing
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-anime-010.gif[/img][/url]
- gara
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-anime-015.gif[/img][/url]
- angel defender
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-anime-027.gif[/img][/url]
- boobs
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-char-004.gif[/img][/url]
- boobs 2
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-anime-050.gif[/img][/url]
- alian
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-monster-001.gif[/img][/url]
- matrix
- [url=http://www.smiley-faces.org][img]http://www.smiley-faces.org/smiley-faces/smiley-face-matrix-006.gif[/img][/url]
- bring it
- [url=http://www.smiley-faces.org][img]http://www.smiley-faces.org/smiley-faces/smiley-face-matrix-004.gif[/img][/url]
- cartman
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-south-park-006.gif[/img][/url]
- chobits
- [url=http://www.freesmileys.org/emoticons.php][img]http://www.freesmileys.org/emoticons/emoticon-anime-073.gif[/img][/url]
- customize
- http://www.freesmileys.org/custom/index.php
- evil :
- [url=http://www.freesmileys.org/smileys.php][img]http://www.freesmileys.org/smileys/smiley-whacky017.gif[/img][/url]
- also alt+keypad numbers will type emoticons, symbols and chars
- BLOGGING
- http://www.thoughts.com/free-blog
- https://en.wordpress.com/signup/
- http://www.sosblogs.com/
- MAKE A GIF
- http://picasion.com/
- http://gifmake.com/
- http://www.createagif.net/
- http://www.gifup.com/
- http://www.loogix.com/
- http://gickr.com/
- HACKING
- hide a file behind an image
- start, run, cmd , put an image file and a file to hide on the desktop
- in cmd : cd desktop, Copy /b imagename.jpg + filename.rar finalnameofimage.jpg
- (no spaces in file names)
- Make a Private Folder
- make a folder on the desktop nwme it whatever U want
- in cmd :
- Cd desktop
- Cacls folder /E /P everyone:n
- now it is unopenable, to unlock :
- cmd
- Cd desktop
- Cacls folder /E /P everyone:f
- to change cmd text color : color help
- then from the list green :
- color 2
- to truly protect a pc ya gotta passwrod the bios, the OS and phisically lock the machine
- Some Trojans :
- Beast, Back Orifice, Net Bus, Pro Rat, Girl Friend, Sub Seven
- Protecting Your Files from Google :
- put a robots.txt file in your site
- Cross Site Scripting (XSS)
- in input boxes the hacker can enter scripts like html , then the result of sending it will be vicious links, and embeded stuff
- Directory Traversal Attack
- in the url you add ../../../../../etc/passwd then you go up directories
- SQL Injection
- Login: 1' or '1'='1 and Password= 1' or '1'='1
- Login: 1' or '1'='1';--
- as a asp.net programmer you must negate sending : ë, ì, ;, --
- Always store the Passwords in the Database server in the Encrypted Form
- proxy site :
- use any of web proxy sites to get bypass a blocked site
- Sniffers : software that sits in a network and through it the hacker collects passwords and stuff
- sniffer : Ettercap : http://sourceforge.net/projects/ettercap/files
- fix corrupted XP files :
- 1. Place the xp cd in your cd/dvd drive
- 2. Go to start
- 3. Run
- 4. Type sfc /scannow
- SEND FAKE MAILS FROM HACKING TECH :
- http://www.hackingtech.co.tv/index/0-93
- check if email is fake :
- 1 open the email
- 2 Click on the downward arrow near reply button. and click on show original
- 3 check received: ...
- Key loggers : software that records user keys pressed (get passwords typed)
- Call target from Their Own Number :
- 1 http://www.mobivox.com and register there for free account
- 2 use target info that is known (cell phone number)
- 3 Click on "Direct WebCall" After successful Login into your Mobivox account
- get full internet speed of your LAN :
- use Netcut
- select all or any one of the IP addresses seen on the screen exept the first 2 IP
- press the cut off button or resume for selected IP
- to negate :
- Anti NetCut 2 : http://www.hackingtech.co.tv/anti_netcut_2.rar
- also, in the program : Who is using Net Cut
- HACK A WIFI :
- Air crack is an 802.11(protocol) WEP and WPA-PSK keys cracking application that is able to recover keys once enough data
- packets have been captured(Sniffed).
- dl from : http://u.to/ayak
- make a custom computer virus
- dl virus maker :
- http://www.hackingtech.co.tv/JPS_Virus_Maker.rar
- How to Disguise as Google Bot to see restricted sites (in IE):
- Copy the following into a notepad file and save as Useragent.reg
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]
- @=îGooglebot/2.1"
- "Compatibleî=î+http://www.googlebot.com/bot.htmlî
- or dl it :
- http://www.hackingtech.co.tv/useragent.reg
- Double-Click on the file Useragent.reg to merge the registry file into your Windows Registry.
- Now restart your computer.you surf as googlebot now
- to undo do the same with:
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]
- @=îMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)î
- or dl from :
- http://www.hackingtech.co.tv/normalagent.reg
- hack windows or mac password :
- burn Ophcrack ISO : http://ophcrack.sourceforge.net or
- http://www.hirensbootcd.net/download.html , boot from cd (in bios), write passwords, boot from harddisk
- make a trojan :
- http://www.hackingtech.co.tv/Trojans/Beast.rar
- CRACKING
- Software cracking is the modification of software to remove or disable : copy protection, trial/demo version, serial number,
- hardware key, date checks, CD check or software annoyances like nag screens and adware
- OllyDbg, GDB, SoftICE, or MacsBug : drag the exe into the debugger and you get the source code
- until the software cracker reaches the subroutine that contains the copy protection
- The binary is then modified using the debugger or a hex editor
- open in ollydbg, f9 to start debugging
- rightclick search all reference strings, see where error or serial messages appeare and change jnz to je
- or jmp to jnz
- the same can be done with decompilers such as .net deflector : drag a .net exe file into it and get the source code.
- WORKSHOP SAFETY
- Eye protection
- Eye protectors include safety spectacles, eyeshields,
- goggles, welding filters, face shields and hoods, barrier creams (like vaselin)
- Head protection : industrial safety helmets, caps
- Foot protection :
- foundry boots with steel toe caps, which are heat resistant and designed to keep out molten metal
- wellington boots to protect against water (for welding), and anti-static footwear
- Hand protection : Gloves, Barrier creams (like vaselin), electricly isolated gloves
- Protective clothing : high visibility, and leather
- ear protection for noise
- never : clean a running machine or use compressed air to clean it
- keep fire extinqusher at hand
- Surface grinding : a rotating stone is used to finish grind(or sharpen) the material surface
- chipest easiest tools : japanese(exacto) knife, chisel, hand drill
- soldering : the melting of a low melting point metal to join 2 others (alluminum melts at 660C)
- welding : connect metal to melt to ground, touch with 2nd metal thats connected to high voltage like battery
- CNC SETUP AND OPERATION
- setup time: last part of prev production, till first good part of current production.
- operator cycle time: full production time div number of workpieces.
- SETUP:
- 1teardown:
- 1.1 clean swarf, (if needed) remove holding devices(clamps)
- 1.2 remove unneeded cutting tools
- 1.31 power on control panel, power on machine(to power off first machine then control panel)
- 1.312 allign new clamps x,y axis to spindle x,y with dial indicator remainind constant degree
- 1.32 delete previous cnc program
- 2 assemble:
- 2.1 mount holding device (clamp) and align with dial indicator
- 2.2 assign program zero:
- place edge finder on spindle to get x y of zero point according to work sheet.
- get z by placing 3inch block on workpiece touch spindle nose to block, add 3 inches to current z
- 2.3 cutting tools assembly & measurements (length, radius) for tool offsets
- 2.32 before first run increase tool length (by 0.010) for tools to do everything but holes (like pockets), same goes for radius.
- 2.4 enter offsets, load cnc program with dnc(distributive numerical control)
- 2.5 varify cnc program and save:
- with proven programs go to cycle start
- rapid traverse overide - slows program at varification
- at first run : activate without workpiece
- at second run : activate single step and dry run, then press cycle start after each tool (m01)
- at 3rd run: activate single step, rapid overide 10%
- cycle start button to start or resume.
- make shure the spindle spins BEFORE contacting the work piece, keep finger ready on feed hold button.
- if hear ominouse sound you sould use panic button.
- the reset key: undo program changes after input, stops process, negates alarm
- measurments 1st piece now or every 30 pieces, adjust offsets see get tolerance.
- MAINTAINING PRODUCTION:
- *from sheet talk to setup person
- 1 load workpiece (metal casting)
- 2 start cycle, watch out for tool wea/break
- 3 replace dull tools
- 4enter new offsets
- 5 lub machine
- GET TOLARANCE:
- x = +n1,-n2
- tolerance band = (n1 +|N2|)/2
- mean value = x + n1 -(n1 +|N2|)/2
- format x=+-n1 is x =+n1,-n1
- measure completed workpiece:
- if sizes are bigger than corresponding mean value : increase tools offset
- if sizes are smaller than corresponding mean value : decrease tools offset
- cheats :
- MDI, gcodes to do stuff:
- S speed of spindle(drill), example S 1800
- M03- clockwise spin
- M04- ccw spin
- M05- spindle off
- M07- mist coolant on
- M08- coolant on
- M09 coolant off
- T15- ready tool 15
- m06-tool change
- M60 auto pallet change
- check your machine manual for its unique codes
- metal also come in sheets which are simpleaand cheap to cut, drill and fold using any basic drills or saws.
- to make a sphere : use a laith (a mill that spins the stack material) + pitagoras (x^2 + y^2 = R(radius)^2)
- then ball shaped drill finish
- A METAL MELTING FURNACE
- 1 line (metal drum) with a layer of 7 cm refractory concrete (you can place this in a hole in the ground
- 2 the drum will have an opening at its top and a smaller opening in the side(to be pumped with air(from a fan))
- 3 place the metal and the coal in the drum (if you use propane its to be pumped in from another hole
- (in which case The torch hole should fit exactly))
- 4 the user can observe the melting from the top hole but must wear a face shield, the brighter the hoter the metal,
- light yellow = 1500 C / 2730 F
- 5 the metal will be placed in a mold before or after melting, the mold can be made of clay and the operator can add coal
- in the clay container
- also, the melted metal can be pured into an external clay container, first remove the slag from the top of the
- melted metal.
- Max. temperature (inside the crucible): 1300 deg C (=2500 F) within 15 mins = 300 grams copper.
- warnings
- Dark welding goggles when temps above 1300 C are used.
- leather gloves to hold long vice that will grab clay mold in furnace or move small furnace.
- Large flat iron pan to put the mold on
- have some cold water close by
- When using metal molds, preheat them to above 100 deg C to remove any moisture
- When using sand molds, the sand should not be too wet
- wear shoes which are easy to kick off
- Always wear an eye, or better a face, protection mask during pouring the metal or adding metal into the crucible
- Avoid use of cadmium, lead or mercury in your alloys
- PROPANE
- to make propane heat petrolium but not enougth to burn it.
- the gas is compressed in cold tempatures with a compressor(a bunch of fans in a cylinter, in an air tight system of
- tubes)
- OSCILLATOR
- Crystal oscillators are oscillators where the primary frequency determining element is a quartz crystal
- an oscillator lets out current according to its frequancy controlled by its capacitor and inductor sizes :
- a capacitor is parallal linked in a circuit to 2 inductors, next the base of a transistor connects to one inductor
- and the collector of the transistor connects between the two inductors, the main transistor circuit is open
- and pass current according to the frequancy.
- the capacitor parallal links to a battery or battery + quartch crystal combo.
- by letting 2 or more oscillators open bases of transistors that connect together the main circuit of those transistors
- will only be open according to the combo of frequancies: 10hz and 6hz will open at 30hz, 6hz and 4hz will
- open every 12hz, therefore the frequency of a signal combines with that af an oscillator to open a specific circuit
- the signal can also be audio current (that is how a modern phone works).
- OVERLORD SKILL : robotics wave punch of destruction
- SO IT HAS COME TO THIS YOU NEED A CODE FOR ROBOTICS BUT ITS NOT FOUND ONLINE
- THIS IS A SPECIAL TECHNIQUE :
- input : wire the keyboard
- output :
- 1 wire speaker wires in parallal to motor or oscillator output is controlled by sound frequency or volume
- 2 connect the screen to lightsensors and use pictureboxes
- CIRCUIT BOARD ETCHING
- 1 use laser printer to print a black and transparent image of the cb(circuit board)
- 2 use photo frame, get a led sensitive board and pc board etching solution, open board in red lighten room,
- 3 put cb board in photo frame under board image close frame light fram with uv light 13wat cfl bulb for 8 minutes
- 4 mix positive pc board developing concentrate with water in ratio 1:10 repeatingly
- 5 put board in fluid and swish, when all shiny rinse in cold water
- 6 mix feric chloride(etching fluid) with water ratio 1:1 (avoid skin contact and ventilate area)
- 7 swish board in mix every now and then for 20 minutes
- 8 use mini drill press stand and .8 millimeter bit(were mask and goggles against swarf) to drill holes
- 9 use nail polish remover to wipe board
- NMOS TRANSISTORS
- nmos transistor: turns on by gate voltage
- 1 <p-type> wafer 100 orientation
- 2 put in furnace and pump steam in, coat to 5000-6000 angstrom (check with color chart)
- 3 put vynel barrier with 3 close holes on wafer(holes should be as close as possible), use hf acid to etch wafer(glass) in the holes to check:
- water the wafer the water sticks to the oxide(steamed) areas only
- 4 spin phosphorus silicate film on wafer(on pc fan), put in kiln at 1000 celcius 5 minutes, take out of furnace
- let it cool 15-25 minutes
- 5 etch entire wafer surface with acid (hcl or hf)
- 6 furnace 15- 25 minutes with steam pumped
- 7 use vynil mask and hf acid to etch gate(middle of 3 holes) area, put in furnace 1000 c no steam 15 minutes
- it(middle hole) sould get to dark red pink color
- 8 cut another mask with 2 holes not with middle gate hole etch holes, put conductive epoxy on vynil mask holes with wires
- then put wire with epoxy on gate hole
- 9 connect substrate of wafer(pur glass area) to ground
- in jfet transistors the gate is doped with boron, when applying the smallest current to the jfet source and gate
- output will flow via the drain.
- FLASH MEMORY
- works as a mosfet transistor, except the gate has layer of oxide on it to trap electrons between the glass and
- the oxide (in the FloatGate).the oxide is connected to a current from above(ControlGate or word line).
- if there are trapped electrons under FG the bit lines output will be higher(bitline input is source(area of glass
- doped with phosphor, bitline output: doped area after FG)
- 2 grids on the flash:
- 1: x,y of bitline (FG)
- 2: x,y of wordline(CG)
- therefore if x1=x2=y2=y1=100(pins in to the chip) for example:
- transistors(bits) = 100*100(sector)*100*100(per sector)
- NOR flash:
- 1 part of doped area connected to ground, 2nd part to charge.
- Programming:write:
- >5v at CG
- DELETE:
- a large voltage of the opposite polarity is applied between the CG and source(doped area on glass(silicon))
- (pulling the electrons off the FG )
- MAGNETIC CORE MEMORY
- large number of small ferrite (ferromagnetic ceramic) toroids (cores) held together in a grid structure
- Only a magnetic field greater than a certain intensity ("select") can cause the core to change its magnetic polarity
- CHARCOAL
- cover half a sphere of wood in sand, and leave a small hole in the top, burn.
- also :
- http://www.youtube.com/watch?v=6xpWBgkuNRE
- SAND TO CHIP
- 1 circuit diagrams
- 2 quartz sand, melt, clean room, hermetically sealed container,
- 3 silicon disk is spin coated with a photosensitive resist, uv light printed designs to wafer
- exposed parts of resist are removed by developing fluid
- 4 exposed parts are etched(glass etching)
- 5 ion implementation, doped atoms are shot ot the wafer, then heated
- 6 water to clean wafer
- 7 barrier on wafer, copper pured on wafer, ground coppered wafer to the edges of tranches (to insulate
- each inter connect from the others)
- 8 tin silver pallets attached to frame, saw wafer to squares
- PHOTO ELECTRIC CELL
- 2 different metals are put in a vacuum tube, each metal connects to the - or + of a battery, when light hits
- there will be power flow in the circuit.
- FOX HOLE RADIO
- connect: a coil to safety pin to sharpened pencil to a preheated razor blade in arrow, connect the circuit
- to the ground, connect an antenna to the circuit, connect earphones to the circuit.
- to increase earphones output: connect transistor source to the circuit, connect the base and drain to a battery
- and to earphones in a raw.
- GLASS
- 45% white sand + 50% lime + 5% sodiom carbonate heated at 1500 celcius degrees
- STEEL
- mix 2% coke(or charcoal), preheated iron(from ore its black grey color) and limestone(can add aluminium at the end)
- heat at 1250∞C degrees (250∞C for copper)
- note : folded hot metal (can use hammer and envil) is used for katana swords
- magnets: iron + neodium + boron
- tin was added into the molten copper to form bronze
- ALUMINIUM
- Bauxite is an aluminium ore and is the main provider of aluminium
- The Bayer process : bauxite is digested by washing with a hot solution of sodium hydroxide, NaOH (solt water)
- , at 175 ∞C
- The solution is clarified by filtering off the solid impurities
- + electricity to get the aluminium
- GOLD
- gold, as rare as it is, is always found in nature as the metal that it is
- workable as it is found, meaning that no technology beyond eyes to find a nugget and a hammer and an anvil to work
- the metal is needed
- Gold panning is mostly a manual technique of sorting gold. Wide, shallow pans are filled with sand and gravel that may
- contain gold. The pan is submerged in water and shaken, sorting the gold from the gravel and other material
- The panning material is usually removed from stream beds, often at the inside turn in the stream, or resting on the
- bedrock bed of the stream , called placer deposits
- MAGNEZIUM
- boil brine, melt the salt, pass electric current through salt
- TITANIUM
- Refined rutile (or ilmenite) from the ore is reduced with petroleum-derived coke in a fluidized bed reactor at 1000 ∞C.
- The mixture is then treated with chlorine gas, affording titanium tetrachloride TiCl4 and other volatile chlorides,
- which are subsequently separated by continuous fractional distillation.
- In a separate reactor, the TiCl4 is reduced by liquid magnesium (15-20% excess) at 800-850 C in a stainless steel
- retort to ensure complete reduction:[2]
- 2Mg(l) + TiCl4(g) ? 2MgCl2(l)(sea water salt) + Ti(s) [T = 800-850 C]
- BATTERIES
- 2 different metals or gases in contact with a solution such as lemon juice, sea water, or other.
- connect batteries in a raw(+-+-) to increase voltage, parallal(++,--) to increase endurance.
- pumping electricity (--,++) through the battery will charge it.
- connected metals at different tempretures genarate electric current.
- ALCOHOL:
- mix yeast(rise, bread Celsius, white or barley), water, sugar, and give it 2-3 months to sit.
- heating the alcohol with steam will make it more concentrated(it might explode).
- BIODIESEL
- heat vegetable oil, mix with alcohol(ethanol) and lye (NaOH), add water, remove buttom liquid
- lye :
- electrolysis of sodium chloride solution (brine(sea water)).
- THERMITE:
- mix aluminium with rust, when you burn it, it will reach 2500 Celsius degrees
- LEATHER:
- deskin animal, let the leather dry for 6 months,mix the leather with brain liquid, smoke leather.
- PAPER:
- Fibres from wood or plants is either ground to its individual constituents or treated chemically, by digestion with
- acidic or basic liquors.THEe fibres are beaten (refined) .
- the fibres are dewatered on a "sieve", then the sheets are pressed at least 3 times, then dried
- ink can be made from crushed bugs.
- CEMENT:
- Cement is a fine, soft, powdery-type substance. It is made from a mixture of elements that are found in natural materials such as limestone, clay, sand and/or shale. When cement is mixed with water, it can bind sand and gravel into a hard, solid mass called concrete.
- Cement can be purchased from most building supply stores in bags
- Four essential elements are needed to make cement. They are Calcium, Silicon, Aluminum and Iron.
- Calcium (which is the main ingredient) can be obtained from limestone, whereas silicon can be obtained from sand and/or clay. Aluminum and iron can be extracted from bauxite
- and iron ore, and only small amounts are needed.
- Cement mixed with water, sand and gravel, forms concrete.
- Cement mixed with water and sand, forms cement plaster.
- Cement mixed with water, lime and sand, forms mortar.
- Cement should be stored in a dry area.
- how cement can be made :
- 1.) Limestone is taken from a quarry. Smaller quantities of sand and clay are also needed. Limestone, sand and clay contain the four essential elements required to make cement.
- The four essential elements are calcium, silicon, aluminum and iron.
- 2.) Boulder-size limestone rocks are transported from the quarry to the cement plant and fed into a crusher which crushes the boulders into marble-size pieces.
- 3.) The limestone pieces then go through a blender where they are added to the other raw materials.
- 4.) The raw materials are ground to a powder. This is sometimes done with rollers that crush the materials against a rotating platform.
- 5.) Everything then goes into a huge, extremely hot, rotating furnace to undergo a process called "sintering". Sintering means: to cause to become a coherent mass by
- heating without melting. In other words, the raw materials become sort of partially molten. The raw materials reach about 2700∞ F (1480∞C) inside the furnace.
- This causes chemical and physical changes to the raw materials and they come out of the furnace as large, glassy, red-hot cinders called "clinker".
- 6.) The clinker is cooled and ground into a fine gray powder. A small amount of gypsum is also added during the final grinding. It is now the finished product - Portland cement.
- The cement is then stored in silos (large holding tanks) where it awaits distribution.
- The cement is usually shipped in bulk in purpose-made trucks, by rail or even by barge or ship.
- HOW TO MAKE A HUMAN SIZED DOLL
- can be used as decoy
- fill cloth (like tites) with doll fiber or cotton, metal wood or plastic to simulate bones, add a hot watter filled bottle
- where possible inside, finally add a big doll head (and drill the mouth open).
- HOLOGRAM
- an image reflected from a light source at 45 degrees on a vertical glass in a dark area
- MICROSOFT OFFICE 2003 / 2007/2010 EXCEL (or office thin apps)
- excel is a buntch of cells the user puts (types) and saves data in (charts), it also offers automatic calculations.
- excel files end with .xls (excel 2003) or .xlsx (excel 2007 and up)
- cheat list:
- 1 automaic month typer: type a month in a cell, drag the cells from bottom right point to the right, each cell is auto filled
- with the next month. if you copy and drag 2 cells the rest of the dragged into cells autofill according to the interval betwin
- the 2 dragged cells, same goes for numbers, time, days...
- 2 get sum : select cells that connect to a raw or colomn of numbers and click the sigma (sum) button from the menu
- strip or press alt + =
- 3 insert a raw: click raw number, edit or right click, insert raw, all.
- 4 get graph : select chart with data (cells with typed numbers and words surrounding them), click charts from menu strip.
- for excel 2007 and up alt + f1 will add a chart.
- 5 show currency: select cells with numbers, format, cells, select currency.
- 6 =rept(element,times) for example =rept(6,3) in a cell will appear as 666. for text: =rept("hello",2)
- also =rept(a1, 5) to repeat all data in cell a1. also =rept("X", click acell) the number in the cell is passed.
- 7 EXTREME : fx button on the menu strip shows all cheats of excel, how to use them or chose to activate them.
- in excel 2007 use the formula tab. all formulas begin with = like: =a1+a3 (typed in any cell)
- 8 f4 - make cell data unautomatically changeble.
- 9 name a table (chart) - select the table and name it in the textbox above the letter A colomn, enter.
- 10 f12 - save file dialog.
- 11 adjust colomn size to fit longest text cell in the colomn : double click betwin the colomn and next colomn letter.
- 12 calculation : =a1\f2 (example of formula to be typed in a cell)
- 13 enter + ctrl - enter data stay on cell (+ isn't to be pressed).
- 14 =sum(click cells to sum) , =sum(a1:a4)
- 15 avg : =average(c1:c4), same goes for max, min
- 16 the brush of the menu strip copies a format (like currency) from selected cell to 2nd cells
- 17 format, conditional. (for formats of cell data) can add:
- condition, select from drop down arrow formula is, =select cell , f4 to make absolute delete $ from raw or colomn of
- cell to unabsolute it, example: =$d4=today() then click format button to select format for the condition.
- todays date row is highlighted with the selected format (color or whatever)
- 18 =vlookup(b5,click table cells and f4,colomn number,true or false close match) , will present data from selected table
- where the cell near it = b5 value or close to b5 value. warning select table data only not table heading (colomn titles)
- blank cell is regarded as value 0.
- 19 =if(isblank(cell),"text",vlookup(cell,name of table,column)) : in this vlookup is the else case of the if condition
- =somthing is a formula
- 20 copy a formula : select cell with formula and drag it on other cells or select other cells using ctrl and mouse
- 21 ctrl ' : copy data of cell above
- 22.1 printing
- increase scalling before printing : print preview (from menu), page setup, change % of scalling (near adjust to)
- 22.2 print only selected table : select table, ctrl + p check print selection
- 23 freeze row to make it visible when scrowlling down : click cell, on menu window, check freeze panes
- 24 common glitch repair:
- automate calculations
- tools, options, calculation tab, check automatic
- 25 get amount of cells while dragging and number them up +1 from the data in prime cell : drag while ctrl is pressed
- 26 transpose - paste row as colomn : select row, copy, ctrl + alt + v (or right click, special paste), check transpose
- select colomn : ctrl + space bar , select row shift + space bar.
- 27 B$1 - colomn 1 is locked $A1- A is locked
- formula =B$1*$A1 is like current colomn,row1 * colomn1,current row when dragged across other cells
- if you are on cell d4 and type b4 the value will be of the cell two rows above, if d4 if dragged to d5
- d5 will display c4, however b$1$ will display the value of cell b1 even if dragged to other cells.
- 28 enter same data in many cells - select cells, type data in currently selected cell, ctrl + enter.
- 29 add date : ctrl + ; add time : ctrl + shift + ; or type in a cell : =now() then right click the cell to manipulate the format
- of the current time.
- 30 redo : ctrl + y , repeats last action or undo ctrl + z (undo)
- 31 the ribbon is the fat tool bar bellow the main bars (view, home, insert...) collapse it : double click a main bar or
- ctrl f1.
- 32 split screen : double click beyond the arrow of the horizontal or vertical scroll bar or drag the edge of the chart,
- to undo double click the split line
- 33 copying from 1 xls file to another : open the 2 files, view, arrange all, now you can see both in a split screen or
- ctrl + tab to change betwin them.
- 34 copy without hidden set (to set hidden select colomn or row and right click) colomns and rows : alt + ;
- 35 sort : select a list of cells, file, options, advanced, edit custom lists, import - to add selected list ( or you can
- type the list if it wasn't selected ) :
- now you can : select a chart, click sort (from data tab if you use excel 2007) and choose to sort by the list.
- also select a typed word from your list and drag it to auto fill the next items in the list.
- ( the lists can be deleted from the same place of the import )
- simple sort a - z : select table, tab or shift + tab to get to the colomn by which you want to sort, click sort from the menu
- 36 zoom : ctrl + scroll of mouse , go to first cell of worksheet : ctrl + home , go to last cell : ctrl + end
- 37 duplicate a workshite (excel 2007) : drag a worksheet from the buttom of the screen, press ctrl, let go in new
- worksheet area (where it says sheet2 sheet3 ...).
- 38 drag and insert a row or colomn : drag, while pressing shift then let go of mouse.
- 39 generate random number 0 < random < 1 : =rand()
- 40 get count of unique entries(categories) in a row or colomn : {=sum(1/(countif(b2:b6,b2:b6)))} , {} can be omitted
- you can click colomn b2:b700 instead of typing it while entering the formula. for the colomn :
- b2 : 1 b3 : 2 b4 1 b5 : 5 b6 : 4 the output in the cell with the formula is 4 ( nums 1, 2, 5, 4)
- 41 change all selected values : type a changer value in a cell, select it, copy (ctrl + c), select table, ctrl + alt + v
- to special paste , select add, multiply or whatever to change the values in the chart by the changer value
- 42 strike through : a line to go through characters (for fired employes data) ctrl + 5, press again to undo.
- 43 remove border : press ctrl + shift + _ while bordered tables or cell groups are selected
- 44.1 find parts duplicates : =if(c3:d3=c5:e5,"duplicate","unique") this goes in b2 and can be draggen down.
- 44.2 negate duplicates (excel 2007) : data, data validation, settings tab, formula, type:
- =countif(A:a,A1)=1 now in colomn A the same data can't be entered twice, the formula conditions the input.
- 45 fast search : excel 2003 : click in a table, data (in the menu), list, creat list. excel 2007 : insert (from main menu),
- table. now you can search using the new drop down arrows it give you viewing options. also you can color the table.
- OR you can use (excel 2007) data, filter.
- 46 record and replay actions : view, macrow. to save a file with the macrow : save as file.xlsm
- in excel 2010 : first : file, options, customize ribbon, check developer tab, from menu, developer tab, macrow security
- disable all macrow with notification. from the devloper tab you can record and play macrow (actions)
- while recording use : ctrl + home or arrows or end to navigate in the worksheet, ctrl + f6 to switch windows
- (or worksheets), ctrl + shift + arrows to select cells
- 47 show all formulas in all cells and unshow : ctrl + `
- 48 import, export data : in excel 2010 : data (from main menu) , to the left choose where to import data from : from
- access, from text ... OR open the file from excel. EXPORT : save the file with an ending F12 (file extention) .txt .csv ...
- ( but take out non text data such as pictures first )
- VBA - visual basic for applications (in excel)
- This chapter assumes you have read the vb.net chapter or know vb.
- a macro enables user to record and replay actions in excel, when editing a macro you can program it using visual basic
- script.
- enable vba : file, options, customize ribbon, check developer tab, from menu, developer tab, macrow security
- disable all macrow with notification. from the devloper tab you can record and play macrow (actions)
- while recording use : ctrl + home or arrows or end to navigate in the worksheet, ctrl + f6 to switch windows
- (or worksheets), ctrl + shift + arrows to select cells
- in some versions of exel you will find the macro in : main menu, view tab
- the recorded macro can be edited in vba which unlocks the cheats(vba codes) of the recorded macro actions
- files with macro end with : .xlsm ( excel macro enabled workbook)
- 1 toggle or untoggle vb ( visual basic ) editor : alt + f11
- 2 open explorer work bar : ctrl + r
- 3 in this workbook
- private sub Workbook_BeforeClose(cancel as boolean) 'event to run at workbook close event
- if me.saved = false then me.save
- end sub ' private enables the sub or function only in the current workbook (not other workbook projects)
- 4 display object browser (cheat list) - f2
- 5 password your vba code : in vba, tools vbaproject properties
- 6 insert, module (you can add many modules) : here goes the main code that will run. in it :
- sub nameOfSub() ' you can run just the sub when the curser is in it and press f5
- msgbox("moti barski")
- end sub
- function calccomisionx ( money as currency) 'can add : as double to display result with decimal
- calccomisionx = calccomisionx * 0.2
- end function ' now you can use the function in a cell in excel, type (in any cell) =calccomisionx(a2)
- '(assuming a2 has a value in it)
- 7 basics
- dim n1 as integer ' define a variable
- dim n2 as byte ' number 0-255
- dim cr1 as currency, cr2 as currency ' define two variables in one line
- static n3 as long ' will retain its value until workbook will have been closed, can only go in sub not as global variable
- ' outside of sub
- const someVar = 20 ' constant variable if defined locally (in a sub) it overwrites a global const with the same name
- activecell.value - get current selected cell's value
- worksheets("its name").range("cell").value ' or .activate - refer or get cell value of specific worksheet
- 8 assign macro to run by clicking an added shape : main excel menu, insert, shape, right click shape, assign macro
- 9.1 dim ar1(4) 'array
- dim ic as integer
- worksheets("sheet1").activate
- range("b2").activate
- for ic = 0 to 4 ' can add : step 2 or other number
- ar(ic) = ActiveCell.offset(ic,1).value 'refer to cells ic row,1 colomn from b3
- next ic
- 9.2 dim ar2(6,7) as currency ' dimention array
- 10 set wks = thisWorkbook.Worksheets("sheet1")
- wks.tab.color = vbgreen ' wks is a shortcut name
- 11 for each loop :
- sub testForEach()
- dim ar4(2) as string
- dim var as variant
- ar4(0) = "first"
- ar4(1) = "2nd"
- for each var in ar4
- msgbox(var) ' do whatever
- next var
- end sub
- for worksheets :
- sub testForEach()
- dim wb1 as workbook
- dim ws1 as worksheet
- set wb1 = ThisWorkbook
- ar4(1) = "2nd"
- for each ws1 in wb1.Worksheets
- ws1.name &= "yo"
- next ws1
- end sub
- 12 do loops : ctrl + c or escape to exit infinite loop
- worksheets("sheet2").activate
- range("A2").activate
- do
- if activecell.value = "" then exit do
- activecell.offset(1,0).activate
- loop
- 13
- dim n1 as integer
- n1 =2
- select case n1
- case is => 3
- msgbox("smaller than 3")
- case is = 1
- ' code here
- case else
- 'some code
- end select
- 14 debug : f8 step by step, f5 run there is also debug in the vba editor(screen)
- 15 application. shows all sorts of tricks
- 16 refer to cells (its similar to range)
- cells(row,collomn).value ' notice row then collomn number
- as a reminder
- range("f5").value ' there is a difference
- 17 cut paste : in a sub type :
- worksheets("worksheetname").activate
- range("b4:d20").select
- selection.cut ' cuts the table mouse, .copy also works
- sheets("sheetname").select ' work sheet to be paste on to is selected
- activesheet.paste ' paste the selected table (cells)
- application.cutcopymode = false
- 18 events : to add do like in vb.net click an object from solution explorer, below near the properties window click
- events, double click an event from the list, type your code in the added private sub in the editor(main vba) window.
- MS ACCESS
- terminology : row = record, collomn = category or field table = rows & collomns
- 1 new, create, table thats pretty much it.
- 2 if a field type is set (in the menu ribbon) as autonumber it will fill the field automatically with a number
- 3 you can import excell files to ms access (import from menu)
- THE ART OF WAR
- THE DECISION HAS BEEN MADE THE PROCESS HAS BEGUN
- THE ART OF WAR aka cheats for go(ancient board game)
- 1 The Moral Law causes the people to be in complete
- accord with their ruler.
- 2 adapt your army to the weather
- 3.1 rank your soldiers, higher rank commands lower rank
- 3.2 higher levels are responsible for glitches
- 4 map and protect the routes of provisions
- 5 your general most have the most ability, wisdom and reliability
- 6 All warfare is based on deception: show the enemy the opposite of your state
- (when far appear near)
- 7 tactics:
- 7.1 enemy is stronger, evade him and split him by attacking his smallest division
- 7.2 enemy is of choleric temper, anger him
- 7.3 the bigger your enemy attack his supply lines
- 7.4 take no delays
- 7.5 forage on the enemy(take his materials)
- 7.6 avoid attacking besiege walled cities
- 7.7 capture those who surrender
- 8 army:
- 8.1 reward them for defeating the enemy
- 8.2 treat soldiers politely, feed them and provide some entertainment for moral
- 8.3 train your soldiers mentally and physically
- 8.4 scold miss behaved soldiers
- 9 attack
- 9.1 If equally matched, we can offer battle;
- if slightly inferior in numbers, we can avoid the enemy;
- if quite unequal in every way, we can flee from him.
- 9.2 place your army in secured locations to protect your turf, but always minimize there division
- take high places and go fast, the first to the battle field has the advantage
- strongest move :
- place a small force as bait for the enemy, while trying to join that small force with a bigger stable force to sorround
- the enemy.
- 10 THE USE OF SPIES
- 10.1 pay them alot so they will be loyal
- 10.2 pay to convert enemy spies to double spies and give them liberties
- 10.3 place your spies as various freelancers(like a PC technician) in the enemy's areas
- as the battle progress the more preditions the general must make
- so much for the art of war.
- as for go, it can be used in tournaments to select employees.
- http://www.online-go.com/index.php
- http://online-go.org/
- ONE ON ONE FIGHTING
- yotamarker fighting style:
- 1 use fear to attack for it is power.
- 2 watch your target for the attack to determine itself automatically
- 3 if your enemy is a negging women choose 1 word and repeat it in a loop until she stops
- 4 120 push ups per day 6 days per week on knuckles to strengthen bones
- so much for 1 on 1 fighting
- NAVIGATION FOR QUERIERS
- a technique for bicycle queries to get from a to destination b.
- 1 get 4 directions: the sun sets in the west, opposite to that is the east, if the west is to your left you
- are facing the north and behind you is the south.(or use compose)
- 2 get a map the city(or town in japan) you work in(print it from the net or you can buy it in the city's gas stations)
- 3 mark lines across your map :
- 3.1 9 or 99 lines horizontal, 9 or 99 diagonal. (9 for small maps)
- 3.2 number the formed squares horizontal.diagonal , button left square is 1.1
- 3.3 make a list each squares and the places it contains, this will be memorized.
- 4.1 point a is your start position, point b is your destination.
- 4.2 just in case print from a map web site the route for your destination.
- 4.3 if point b is in the map region but not listed ask your client hpw to get there he will say its near a point
- in your list.
- 5.1 if point a horizontal is lower then b's go north else go south
- 5.2 if point a diagonal is lower then b's go east else go west
- 5.3 if you are in the square of destination but can't find it ask or drive around the square for the destination.
- for postal navigation : take a map of the region (big and small map) and a compass
- SOLAR NAVIGATION
- GET LATITUDE (north to south position on planet):
- 1 build sexton:
- 1.1 make have a circle of any material such as cardboard
- 1.2 mark half circle worth degrees 0-90 (0 at half point on perimeter) with even spread
- 1.3 tie string to circle center and tie paper clip to end of string
- 2.1 aim half circle at sun till you get a light spot on dark object behind sexton
- 2.2 check angle the string is on
- GET LONGTITUDE(west to east position on planet) :
- 1 write down place of your departure and make shure your watch is set accurately to local time
- 2 while traveling find noon by the time in which the shadow is shortest
- 2 check time difference between your watch and 12:00
- 3 for each hour your ahead of 12:00 you are 1000 KM from departure location
- japan addresses
- japanese addresses are exceptions, there are no streets, japan is divided into squares within squares.
- a japanese address(location):
- japanese postal mark, postal code *
- A1,A2,A3,A4,A5,A6
- to person x
- A1 is a square bigger then A2 and so on.
- A1-a prefecture, ends with to for tokyo, do for hokkaido, fu for for osaka and kyoto and ken for other 43
- prefectures
- A2-municipality: ends with shi(city) or in tokyo also with ku(ward) or gun(big district)
- A3-town: ends with cho, machi or mura(village)
- A4-district ends with chome
- A5-block ends with ban
- A6-house number: ends with go
- example:(instead of the make a small T with a line above it and put a horizontal line above o,u letters)
- (te)100-8994
- Tokyo-to Chuo-ku Yaesu itchome go-ban san-go
- Tokyo Chou Yobin-kyoku
- or:
- Tokyo Central Post Office
- 5-3, Yaesu 1-Chome
- Chuo-ku, Tokyo 100-8994
- or:
- Tokyo Central Post Office
- 1-5-3 Yaesu, Chuo-ku
- Tokyo 100-8994
- in kyoto instead of A4-6 you may write the streets intersection near the target and if the terget is:
- above the streets :agaru
- below the streets :sagaru
- east the streets :higashi-iru
- west the streets :nishi-iru
- HOW TO WRITE A RESUME
- name
- date of birth
- place of birth
- contact(24\7)
- status(single)
- education/skills: degree/report card, place of study
- expirience:
- military service:
- languages(and level):
- hobbies:
- How To Do Laundry
- A washing machine
- Laundry detergent
- And a dryer
- Stain remover (optional)
- A toothbrush
- Fabric softener, liquid or sheets (optional)
- Some bleach
- A clothesline or drying rack (optional)
- 1 Separate clothes into: whites, light colors, delicates, and darks. take out hard objects and money from cloth
- 2 stains place a concentrated dab of detergent or stain remover on the stains and work it in with a toothbrush or by rubbing the fabric against itself.
- powders work best in water to remove clay and mud, while liquids are good at removing grease and oily stains.
- 3 the detergent should go in when the machine is full of water(the start), the bleach after the clothes have been soaking a few minutes, and fabric softener during the rinse cycle.
- 4 Choose cycle:
- Use 'regular' for very dirty clothes and heavy cottons, 'permanent press' for your average load, and 'delicates' for knits or lightweight items.
- If an article is particularly fine or lacy, hand-wash it to prevent any damage.
- 5 Choose temperature of water
- For whites or very dirty colorfast items, use hot water. For most average loads, use warm water. For delicates, bright colors, and to prevent clothes from shrinking, use cold water.
- 6 hit start, The average wash cycle will take anywhere from 20 to 30 minutes.
- 7 claen lint from filter
- 8 hang cloth to dry or put in dryer
- 9 softener sheet:
- If you're using fabric softener sheets instead of liquid, add one sheet to the dryer.
- final: Fold or hang clothes
- PLANTING
- HOPE IS ALL WE HAVE, WHEN EVERYTHING ELSE FAILS
- 1 in a big container with holes: mix leftover vegetables, crussed eggs, dried leaves, leftover vegetables, straw,
- leaves, twigs, paper,cardboard, grass clippings. aka brown and green materials. place layer of green on layer of
- brown. mix up the pile every day to get air in it.
- 2 mix up the soil, dig 3 inches deep trenches, add compost, plant the seed of plant.
- if you wrap the plant with cardboard around it magetes will keep away.
- 3 big plants are planted far apart according to their size.
- 4 take out weeds and rocks, rake ground(to kill bug eggs).
- 5 watering: 1 inch of water per week (3 hours for a small sprinkler ).
- 6 usually plants are ready to eat after 3 months.
- 7 How Long to Keep Garden Seeds:
- 7.1 Store vegetable seeds and annual seeds for 2 to 3 years in a cool area with little moisture.
- 7.2 Keep vegetable seeds like beets, cucumbers and radishes for up to 10 years in airtight containers
- 7.3 Replace old asparagus, delphinium or magnolia seeds. They have a short seed life
- 7.4 Keep individual varieties of seeds segregated in separate, clearly labeled containers. This helps to maintain seed strains and purity
- 7.5 Keep seeds outside on the north side of the house away from the sun and drying winds. Place them in a cold
- frame or green house for additional protection from the elements.
- 8 Organic Garden Pest Control:
- 8.1 Smell: Garlic, tobacco, rhubarb, fish and other strong smelling substances that are used to repel pests.
- 8.2 Gases and odor molecules: Many plants give off natural odors or have volatile oils which some bugs find
- unpleasant. Often these odors or oils are a warning to bugs that the plant contains its own built in insecticide.
- Concoctions made from these plants will deter pests.
- 8.3 Heat or fumes: Chilies, kerosene, methylated spirits, salt etc, will burn, harm or kill pests.
- 8.4 Oil: Mineral oil, vegetable oils and proprietary oils, such as those made with cottonseed oil, will suffocate
- soft-bodied pests.
- 8.5 Soap: Natural vegetable based soaps or detergents are added to sprays in small amounts to make them
- stick to plants. Many insects dislike and are harmed by soap also.
- 8.6 Garlic fire spray: , chilli peppers, soap, vegetable oil, kerosene and water
- 8.7 LADYBUGS.
- 8.8 Fish Fertilizer
- 8.91to kill ants mix Borax or other poison with peanut butter.
- 8.92 If you find the ants' nest sprinkle: black pepper, cayenne pepper, cinnamon or chilli powder, salt
- , Boiling water with digging in to the nest. also wear boots with fur on top to keep the ants from climing you
- 10 Caterpillars:
- spray with a molasses(or vinegar) blend. Mix one tablespoon of molasses with a litre of hot water. Then add a
- teaspoon of liquid detergent and put in a spray bottle. Spray the leaves, top and bottom, about once a week.
- 11 Earwigs:
- crumple some newspaper in old flower pots and leave them in the garden. The earwigs will hide in the paper
- once they're done eating. In the morning, shake the paper out.
- 12 Gophers: keep a cat and a bird bath for birds of prey.
- 13 Mice: Deter mice with peppermint or eucalyptus oil, and put food in containers
- 14 Mildew, mould and fungus: Plants that are susceptible to mildew, such as peas, pumpkin, zucchini and
- cucumber can benefit from a milk spray. Use full-cream milk and spray every few days on the leaves until the
- mildew is under control. If the situation is out of control destroy the plant
- 15 Slugs: sprinkle with salt, and take them out at night. laso Sprinkle crushed egg shells around vulnerable plants
- 16 Spider mites:
- Natural predatory mites are the best control, so having compost and mulch to encourage beneficial mites will
- keep the right balance. Spiders, parasitic wasps, lady bugs and lacewings also feed on red spider mites
- 17 Use a soap spray to eradicate these critters. Spray plants weekly until mites are gone, then monthly to stop
- them from returning
- 18 Sun Dried Vegetables: dry the vegetables in the sun at least 3 days in low humidity
- 19 preserving food: put food in sealed dark container add vinegar or lemon juice, boil, seal(with cork or
- metal)
- POLINATION
- is when flower dust of plants mix with other flowers, transforming the flower into a fruit.
- done by : flicking (tomatos), using bees, insects, a brush(trees), stabing(vanil tree)
- FOOD BY SEASONE
- plant according to seasone
- if you buy according to seasone its fresher and cheaper
- Winter
- Chestnuts, Grapefruit, Lemons, Oranges, Tangerines, Kale, Leeks, Radicchio, Radishes, Rutabaga, Turnips, Spring
- Apricots, Avocado, Mango, Pineapple, Rhubarb, Strawberries, Artichoke, Asparagus, Carrots, Celeriac, Chives
- Collards, Fava Beans, Fennel, Fiddlehead Ferns, Morels, Mustard Greens, New Potatoes, Spinach
- Spring
- Baby Lettuce Mixes, Sugar Snap and Snow Peas, Vidalia Onions, Watercress
- Summer
- Blackberries, Blueberries, Nectarines, Peaches, Plums, Raspberries, Tomatoes, Watermelon, Beets, Broccoli
- Chinese Cabbage, Corn, Cucumber, Eggplant, Garlic, Green Beans, Summer Squash, Zucchini
- Fall
- Apples,Cranberries, Figs, Grapes, Pears, Pomegranate, Quince, Acorn Squash, Belgian Endive, Butternut Squash
- Cauliflower, Celeriac, Garlic, Ginger, Mushrooms, Parsnips, Potatoes, Pumpkin, Sweet Potatoes, Swiss Chard
- CLAY
- pottery : mold clay, burn clay in a closed alcove with coal.
- to make breaks : dry clay mix with gravel and straw
- BAMBOO
- bamboo grows like grass, halfen the colony and replant, needs lots of sun, heat, water
- RUBBER
- to make rubber mix latex from the rubber tree(see picture) with sulfare(yellow rocks found near volcanos) and heat
- GROW POTATOS
- this might not work with super market potatos as they are bio gliched
- get a certified seed potato, cut pieces of it(with black little balls), plant 3 inches below ground, spread them apart.
- they take 3 months to grow.
- HUNTING small animals :
- how to tie a noose :
- 1 shape rope as an S
- 2 smash the S
- 3 take the right end of S, and coil it around the S middle to left end.
- 4 take small end of rope in left end (leftover of coil), put it through the left big loop, hold it with your thumb
- 5 pull rope from right side
- 6 when animal is on it (lure with bait in laid noose) PULL FAST
- MUSHRUMS
- 1 Mushroom spores: tiny (mostly white) balls
- 2 Growing medium: include such things as (hardwood) woodchips, straw, saw dust, to coffee grounds, logs,
- and /or similar organic items. The medium is what your mushroom spores will grow in, consume, and turn into
- edible mushrooms.aka peat moss.
- 3 plastic bags (to store the growing medium in), boxes or trays to keep your mushroom growing bag in or to grow
- the mushrooms in directly, watering equipment
- Portobello mushrooms:
- 1 Fill your growing tray with the well-rotted moist compost; be sure that it is not soggy.
- 2 put 1 1/2 cups of dry spawn flakes into the compost, leave it overnight.
- In the morning you can press it down with a piece of wood the temperature to be between 65 and 70 degrees
- Fahrenheit
- 3 After about two to three weeks, white webbing grow on the surface.put about a 1 Ω layer of moist peat moss
- over it. And cover the damp peat moss with a few layers of newspaper. You should evenly spray the layers of
- newspaper twice a day to keep moist. Do not lift the newspapers; you want the soil to be left alone for 10 days
- at 55 degrees Fahrenheit
- 4 After 10 days youíll remove the newspaper and continue to mist the soil twice daily.
- FREE REFRIGERATION
- bury closed container (metal is best), with water and objects to cool in shaded ground
- WILDERNESS SURVIVAL
- wilderness survival bag : compass, whistle, matches or lighter, insect repellent, carbon steel knife,
- hat, A mini maglite torch with fresh batteries, flash light, spare batteries, water, canned foods, axe, rope
- can be bught at camping shops.
- you can use a smooth wet boulder from a river bed to sharppen your knife
- shelter : lean to : use sharp Y shaped wood then lean woods on them to form a tent. cover them with
- leaves and sticks to negate cold and rain. you can add a fire in an alcove in the middle of 4 - 7 lean tos.
- start fire : fire saw : works best with bamboo :
- cut in half, get 2 balls of bark swarf, place them in the bamboo behind a slit with a hole
- the second half : sharpen on side of it (with the knife), now rub the sharp half in the slit that is to be placed
- against your stamech and the ground, increase speed, blow air on swarf balls when they light.
- The secret is to achieve the correct ratio of friction to downward pressure
- spark : place tinder or lint (can be found in belly button) on sharp flint (sharp black shinny rock) or sharp rock
- found near water streams, whack the flint with carbon steel to make sparks, place lite flint (or cotton)
- in frayed rope nest and blow to make fire
- WATER : found at : foot of steep slopes or cliffs and in the bottom of valleys and canyons (Narrow canyons)
- Where there is water there is nearly always an abundance of lush vegetation, particularly water-loving species such as
- ferns and mosses, willows alder, cattails, rushes, elder and marestail. also frogs and gators, you can also dig
- in those locations for ground water
- filter water : fill the trouser filter with cold charcoal NOT ASH or large cone of birch bark filled with charcoal
- then boil water before drinking
- fishing : in streams or shalow water : use long sharp stick, or place a square shaped cage with bait in it, on
- the shalow water. the cage must have an angled entrance.
- hunting birds : connect a 4 - 10 meter pole to a big net
- pictures of wild eatable plants were added to the book
- using a sling : in the middle of 2 ropes put a place for a rock, tie one end to finger hold 2nd end in hand, spin
- , release.
- DETECTING SPOILED FARM EGGS
- if the fam eggs sink in water
- smell bed inside
- or have dark yellow collor inside then it is bad
- to fry eggs it is best to use a pan with a teflon surface
- GROUNDWATER
- groundwater collects at hills or concaved plains with gravel, lime, and some vegatation, dig deep
- CORK
- extracted from the bark of oak trees (fatter then 60cm diameter)
- http://www.youtube.com/watch?v=bqF3SGFigdY
- PLUMBING
- tools : rench, drill, hammer
- unscrew or break old part, connect new part as written in its instructions (from the store)
- if needed repair floor or walls by : sand + bricks + cement + plaster + ceramic tiles + water
- ciling material according to break (at times from plaster will suffice)
- detecting leaks : close main water valve(outside of house) open fosets to empty: if
- it(the meter) runs then leak is outside the house. note the main valve MUST have a no
- return valve so you don't pay for neighbor water.leaks are also detected by mold and
- damp walls.
- for small wall holes you can use a kit.
- MANGA
- tools : thin pencil, scaner
- software : paint.net (intuitive software) free to download from :
- http://www.getpaint.net/
- make game maps, screens,char, draw manga
- or ms paint
- not must software : manga studio(for manga), toonboom (for anime)
- put white paper on lcd screen and trace target with pencil, add small inner features (manga style eyes...), and
- speacial desired features or stuff, scan, color with ms paint.
- THE ECONOMY
- value assigned paper
- the government distributes food and money to its humans.
- anything can be attributed to value, money is one of them.
- now money can be traded, however its value corresponds to the stuff it is traded for.
- in the past, money = hardwork and invention
- presently, money = no work and idiocy, much money is given to singers, performers and such that get paid
- for standing in front of the camera, sing for 4 minutes songs that give me headaches and get millions for that.
- now money corresponds to a model who just walks on a catwalk, money now has no real value so its economy
- has no motivation to produce, it is finished.
- the stuck exchange also controls where money goes to, in 2011 they send it to idiocy.
- TO STRENGTHEN THE ECONOMY :
- abolish taxes and bank intrests
- increase amount of allowence(money, food) per citizen (with minimum bureaucracy)
- abolish or deminish religions
- encourage negation of overpopulation
- limit workers per area (facility)
- every 5 - 10 years print new money that out values the old
- outlaw human resources companies
- note : in case of war you should convert your money to a foreign country currency
- HOW TO DESTROY A COMPANY THAT ANNOYED YOU :
- provide theire services for free, examples :
- course company who teaches pc repair : offer free walkthroughs online
- taxi who overcharged you : carpool
- the more technical knowledge one has the less he is dependent on money.
- alternatively you can recommend a free service
- UNIVERSAL BUREAUCRACY
- travel : from Ministry of Interior (Population Registry) get a passport (you need : ID, 2 passport pics application form
- (can be gotten online or at the ministery of interior), next you will need a plane ticket. you will need to get a new passport
- if it's pages are all stamped or after 10 years or so you will need to update it via Population Registry.
- while abroad there are tourist information centers (also in hotels) that will explain from how to travel to set you for factory tours
- , company data, phone numbers...
- if you lose your passport abroad : report to the police and your country's console. take with you a photo copy of your passport
- and 2 passport updated pictures of your self
- if you lose your ID you get a new one also at Population Registry and take a passport if you have.
- also firt report and check at the local police lost and found
- if you lost your drivers licence report to DMV office to get a new one.
- how to open a business : use an accountant, make shure he has references, do a backround check. you will
- make shure he reports all input and output of the business money, when you sell something give a receit
- how to buy stack : from the bank or cheaper at a brocker agency, I do not recommend buying stack.
- how to buy an appartment : use a lawyer for this, and another lawyer to check for scams
- UTORRENT :
- a program used to activate torrent files (that download files like movies, ebooks...)
- to create a torrent (with utorrent) you will need a tracker list to be pasted when you create a torrent : (or use default list)
- http://open.tracker.thepiratebay.org/announce
- http://www.torrent-downloads.to:2710/announce
- http://denis.stalker.h3q.com:6969/announce
- udp://denis.stalker.h3q.com:6969/announce
- http://www.sumotracker.com/announce
- http://tracker2.istole.it:60500/announce
- http://inferno.demonoid.com:3407/announce
- http://vip.tracker.thepiratebay.org/announce
- http://track.sextorrent.to:2710/announce
- http://tracker.deluxebits.to:3552/announce
- http://denis.stalker.h3q.com:6969/announce
- http://tracker.thepiratebay.org/announce
- http://tracker.torrentbox.com:2710/announce
- http://tracker.hexagon.cc:2710/announce
- http://tracker.torrent.to:2710/announce
- http://axxo.sladinki007.net:6500/announce
- http://220.162.244.175:53880/announce
- http://tpb.tracker.prq.to/announce
- http://open.tracker.thepiratebay.org/announce
- http://eztv.sladinki007.net:60500/announce
- http://tv.tracker.prq.to/announce
- http://218.145.160.136:8080/announce
- http://tracker.prq.to/announce
- http://tracker.torrenty.org:6969/announce
- http://tpb.tracker.thepiratebay.org/announce
- http://t.ppnow.net:2710/announce
- http://www.torrentvideos.com:6969/announce
- http://tracker.bitebbs.com:6969/announce
- http://www.torrent-downloads.to:2710/announce
- http://eztv.sladinki007.eu:60500/announce
- http://www.ipmart-forum.com:2710/announce
- http://tracker.ydy.com:83/announce
- http://bt1.the9.com:6969/announce
- http://tracker.sladinki007.net:6500/announce
- http://tracker.ydy.com:102/announce
- http://tracker.paradise-tracker.com:12000/announce
- http://moviesb4time.biz/announce.php
- http://tracker.deadfrog.us:42426/announce
- http://mpggalaxy.mine.nu:6969/announce
- http://www.sumotracker.org/announce
- you can download and upload torrents go to :
- Btjunkie
- Extremenova
- Fenopy
- Slotorrent
- Suprnova
- Torrent-gate
- Torrentat
- Worldnova
- Mininova
- Monova
- SeedPeer
- Sumotorrent
- Bitenova
- Bttorrentmonster
- Btscene
- Fulldsl Registration required
- h33t Registration required description required
- Isohunt Registration required
- Demonoid Registration required
- Extratorrent Registration required
- TorrentMatrix Registration required
- Torrentportal Registration required
- Torrentreactor.to Registration required
- BICYCLE REPAIR
- tools : alan keys, cable cutters, crank puler, 6" + 8" adjustable wrench, pliers or spoke wrench
- air pump (also found free at gas stations), bicycle chain tool and chain pins
- wheel truing : sit bicycle upside down, spin the wheel, if it chafs or is too close to a brake pad than : twist the spoke nipple till
- that region of the wheel is centered between the brake pads
- adjusting brakes : at the start of the brake or gear wire there is a rotatable piece, use it to adjust brake handle's press size
- you perform. if the brake pads are toed in or out centwer them with a philips screw.
- flat tire repair : use two short wide flat metal pieces to remove the tire and inner tube. remove shards from tire, place new
- inner tube in tire, inflate a bit and manualy return tire with tube in it, the final tire part can be inserted with the prev two metal
- pieces. the inner tube can also be fixed : locate hole by inflating tube and putting it in water, use special bicycle tire tube sticker or
- seal kit. note only inner tube is to be inflated.
- chain maintenance : once a season : open chain with chain tool by removing a pin, soak chain in degreaser or wash
- in hot water (not boiling), reassemble with new pin and chain tool, use tool's back to cut new pin's access.
- lube chain from inner and outer side, and inside , wipe of exess lube, use dry lube for urban areas or wet lube for
- muddy area.
- note if you use a new chain on an old casset problems will happen, same goes for new casset and old chain
- handle bar : when tightening the top handle bar screw don't use too much force or it wheel detach
- cleaning : spray with water but never at a 90 degrees angle
- THE PATH FOR TELEPORT (a work in progress)
- WHILE WAITING FOR AN OFFICIAL BATTLE IT IS GOOD TO TAKE UNCONVENTIONAL TRAINING
- 1 an object is at point A and travels to point B at the same height -> the object will travel through points: ab \ 2, ab \ 2 + ab \ 4, ab\ 2 + ab\ 4 + ab \ 8 BUT not through ... + ab \ infinite *nufra
- as the object does reach point B, at all points mentioned object has the same potential height energy.
- 2 when the state of mater changes (solid to liquid to gas) energy and entropy (reverse organization lvl within mater) go up, but when gas to plasma energy goes up but entropy decreases. note most of space is plasma (*should be examples of teleport)
- 3 now, consider the space within which the object travels, while traveling the space around it it's : energy go up (heat is absorbed) and entropy goes down (air or space compresion) just like plasma.
- in accordance to the object speed which determins the smallest amount of distance traveled in the shortest time span (... + ab \ "infinite") lets call this STP
- perhapse STP can be manipulated by the la shatalie principle (by manipulating the environment)
- roswell new mexico for example what really went down, maybe :
- a spinning plasma vortex was used at a certein point of the spin the plasma power would increase much to enable the saucer to move maybe (they also used mercury)
- CLOSING NOTES
- programming for "smart" phones, the companies will require you pay them in order
- to make the applications work, which makes learning programming for it kind of a waste of time,
- it is such disrespect to sell someone a device with blocked features (i.e "smart" phones)
- android : use eclipse (it's like vb.net but uses java language
- windows phone : XNA (install xna sdk than you program in vb.net)
- iphone : xcode (works only on mac OS) or mono (C# that runs on iphone)
- detect spy apps on smartphone : increased sms bill, screen blinking, beep noises
- WARNINGS : the software teamviewer and other remote pc stuff can virus your computer
- IF YOU HAVE COOL WALKTHROUGHS PLEASE SEND THEM I WILL CREDIT YOU IN THE NEXT BOOK
Add Comment
Please, Sign In to add comment