September2009
Do you organize your internal DNS to allow for future expansion?
So am I the only one out there that likes to set aside blocks? 5 in a row here for ldap replicas, 10 over here for build servers, 101-254 on the next 5 subnets for dhcp addresses… and on and on. In a large organization you wouldn’t have servers mixed in with dhcp addressed workstations would you? So why not try to keep it organized on a small network?!
dd and netcat – like peanut butter and jelly
dd and netcat on one end, netcat and dd on the other. so simple, it’s like magic.
Fuel Injector Spray Timing for Reduced Hydrocarbon Emissions and Higher BSFC
The amount of overlap depends on the engine, but most modern fuel injected high performance internal combusion engines have some valve overlap. While the intake valve is starting to open, the exhaust valve is starting to close. During this time there can be a back flow of air/exhaust in the direction of the fuel injector and intake manifold. This effect is stronger under high vacuum conditions (low absolute pressure). It is important to wait for this back flow to reverse before firing the injector. Once the exhaust valve is open, the velocity and flow of air will have increased as the exhaust gases have completely turned around and begun to escape through the exhaust port and out of the exhaust manifold. The optimal time to fire the injector is during this period, but as engine speed increases the injection must begin earlier to fully complete to avoid flowing fuel straight through the combustion chamber and right out of the exhaust port.
Convert Excel spreadsheets to CSV in Linux without OpenOffice
I needed a batch converter to turn non-xml style Excel spreadsheets (all the older versions) into delimited text files. If you run it without supplying a sheet name, it will list all the sheets available. You can also optionally define a delimiter to use instead of the default comma. So here’s my code along with part of the xlrd module which I tweaked a little.
System wide proxy settings in Windows
If you have proxy settings set up in Internet Explorer already, then you can just run proxycfg -u and you’re done. It will add the registry keys for you. In the run dialog (Start -> Run) enter this command. It will flash the command prompt black screen and exit before you can see what it did, and that is fine because it requires no additional input. Or you can bring up a command prompt and run it so you can see the output if you’re curious.
proxycfg -u
If you don’t have them set up in Internet Explorer, you can specify which proxy server and port to use with proxycfg:
proxycfg -p rootninja.proxy.org:8002
This will create a new key in the registry named “Connections” under this key:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Internet Settings/
It will have a default string value (REG_SZ) and a binary value (REG_BINARY) named “WinHttpSettings” that contain your new system wide proxy settings.
Windows keyboard shortcuts
====Windows & Apps shortcuts====
Ctrl + Shift + Esc – Open task manager
Windows Key + R – run dialog
Winkey + D – toggle show desktop
Winkey + E – windows explorer
Winkey + L – lock workstation
Middle click a link – open in new background tab (useful for google, reddit)
Middle click a tab – close tab
Middle click back button – open history in new tab (not for IE)
Middle click a folder of favorites – open all favorites in new tabs
Ctrl + (shift +) tab – switch tab/document forwards (or backwards)
Alt + (shift +) tab – switch windows forwards (or backwards)
(Shift +) tab button – when filling out a form, skip to next (or previous) form field
Shift + Right click anywhere – usually adds ‘experienced user’ options (e.g. open cmd from here)
Hold Shift while inserting removable media – prevents ‘autorun’]
Shift + Delete – permanently deletes files (without going to recycle bin)
Ctrl + Scroll – zoom web page, document, file thumbnails
Ctrl + C on any standard error dialog box – copies error report text
====Windows 7 & Vista shortcuts====
Middle click an app on dock – Open new app
Middle click a thumbnail from dock – Close app
Shift + Right click dock item – Legacy menu
Drag up on … Read More »
Git through a proxy
If you’re behind a proxy and you run that, you’ll get something like “the other end hung up” or “Cannot get remote repository information” because git is trying to connect using port 9418 by default. I found a few sites saying all you need to do is change git to http in the url and it will work, but that did not work for me. But it’s an easy fix. Change git’s http.proxy and you’re done. Here’s how: (replace my proxy host and port 8002 with your own)