Skip to main content

Posts

Google Chrome - pt 1

Ok, just downloaded it. So far it looks a lot better out-of-the box than Firefox does. There are some nice improvements over Firefox for which I have been clamoring for to no avail. Firefox is a hog of CPU and Memory, even when having closed all my pages my Macbook Pro uses 14% CPU to power an Idle, minimized Firefox with only the blank window open... what gives? And, alas, my only recourse to try and find out what is taking up the resources is to use a debugger (and then I can only see threads, not tabs)... granted it seems to be Flash that's the culprit, which in turn made me realize why the iPhone never had Flash... Can you imagine!? So what does Google Chrome do for me? (I only compare it to Firefox since IE is a non-event for me) 1) Google Chrome uses the standard proxy settings like IE and Safari and not it's own custom ones like Firefox. This annoys me no-end about Firefox since I constantly have to change my settings in multiple locations when I move around. 2...

Using OmniCppComplete and vim for C++ auto-completion

Get OmniCppComplete Then install it: (It may overwrite some stuff... take care!) ckdir ~/.vim/ cd ~/.vim/ unzip cppcomplete.zip Then create and set your common tags file: (correct for your local installation locations) ~> ctags –R --c++-kinds=+p --fields=+iaS --extra=+q \ -f ~/vim/commontags \ ~/dev/myTools/include \ /usr/include \ /use/lib/boost/include /usr/lib/qt3/include ------- .vimrc: set tags+=~/vim/commontags ------- Add mapping to create/update local (CWD) project tags files: ------- .vimrc: map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . set tags+=./tags ------- Set up some default options: ------- .vimrc: " OmniCompletionOptions set completeopt=menu,menuone let OmniCpp_NamespaceSearch=2 let OmniCpp_ShowPrototypeInAbbr=1 " let OmniCpp_MayCompleteScope=1 ------- Then add any convenience macros: ------- .vimrc: " Smart VS-type <tab-completion> function ! CompleteTab ( direction ) let prec = strpart ( getline ( '.' ) ...

Lock Screen on Mac OS X using keyboard shortcut.

1. Download "Global Hotkey" 2. Create a folder "Global Hotkey" and copy contents of downloaded DMG to that. 3. In a terminal do: cd "/Applications/Global Hotkey" ln -s /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app "command f10" 4. Make sure Screensaver is set to prompt for password (you may need to relog for this to take effect) 5. Preferences -> Accounts -> -> Login Items : Add "Global Hotkey.app" 6. Launch the app as well

Free Windows Firewalls

It seems like every year I need to go through this exersize over and over again. The Firewall landscape seems to be like a formicating pool changing goalposts and lanscape as you watch. What was good is now deprecated and vice-versa. I used to prefer AtGuard, but then new exploits came on the scene which it did not catch (Due to some Windows low-level flaws) and the product was discontinued (and later bought by another company and defiled) Then I swote by Tiny Personal Firewall (version 2015a), and that also went the way of the dodo. Then it was Zone Alarm 5 (version 55940). Then it was Kerio Personal Firewall 4.2.3.912. And for the past year I was using Sygate Personal Firewall (which I bought) To my great dismay I have now discovered that Symantec has bought Sygate and basically deprecated the product, and having no great love for Norton/Symantec or MacAfee I started to look for alternative. These are my options now. (in order of preference) Core Force ZoneAlarm 55940 Sygate 5.6 Tiny...

Creating a SSH tunnel to the internet.

Ever been at a client with Orwellian access restrictions on the internet? Why not use what they provide you to the max without cracking their security. What you will need: 1. Access/login to a linux machine with ssh running on port 80 (or 443) (See UnixShell - They're grrreat!) 2. The proxytunnel client program . Creating the tunnel: Firstly you will need to create a TCPIP tunnel through your proxy server. For my example I'm running OS X (on my shiny MacBook Pro). To do this, add the following (2 lines) to your ~/.ssh/config file: Host shell.my-host.com ProxyCommand /Users/teuton/bin/proxytunnel -N -p "local-proxy:8080" -u "proxy-user" -s "proxy-pass" -d "shell.my-host.com:443" Great! We are all set! You may need to tweak these settings depending on your local proxy server type and configuration (NTML auth etc) Now the easy part. Creating the proxy: To ssh into your machine simply type: > ssh teuton@shell.my-host.com To make...

So which is better? The Sony PSP or the Nintendo DS?

I recently went on a trip to Japan, and was faced with a choice on a new handheld gaming device to purchase for a friend. So which is better? What are the differences? First-off, I personally own a Gameboy Advance, and I finally chose to buy the PSP. The reason for the choice was that I already owned both an iPod and a Gameboy Advance, but this friend of mine had neither... so for me the DS may have been a better choice, but only slightly. Firstly the DS: This little machine is slightly heavier than the PSP, but folds away neatly, it's more solid and resiliant, the games are cheap, load fast and can use older Advance cartridges. The screen has a huge surface and the touch screen is really nifty. The technology is way behind the PSP, but it is also about $50 less in price. So this device has a huge advantage with current game availability. It also has a good battery life (something I appreciate after my Japan trip on both my iPod and Gameboy). The PSP: This is a slick-looking device...