Tuesday, January 31, 2012
Writing a .iso to a USB drive in Linux
After failing in my first attempt I decided to try some advice I found here: simply umount /dev/sdc1 (or whatever) then cat diskimage.iso > /dev/sdc1. While this did appear to create a good disk, I was unable to boot it at all.
Then after reading the bootable USB creation instructions on the Ubuntu page I decided to try the Mac methodology since I've used dd for this purpose before and I see no reason why this wouldn't work on Linux. Strangely though, it did not.
The eventual solution I found was to rename the .iso to .img and use usb-imagewriter from the ubuntu repositories. *shrugs*
Sunday, January 22, 2012
Laptop S-video in Black & White
One of my media computers is connected to one of our TVs via s-video -> RCA. This has proven to be a right fine solution and even though it's a rather old machine (P4, 512Mb RAM) it's proven sufficiently powerful to play 720p content over the network. Unfortunately for some reason outside my control it recently began only displaying video in black and white on the s-video port. I did some preliminary research on Google and found all kinds of weird and incorrect answers.
In the end it turns out the video output had been set for PAL color instead of NTSC. The actual fix for this will vary by graphics chipset so I won't go into much detail here, but just in case someone else is wondering why their s-video output switches to black and white: check the color encoding!
Friday, January 20, 2012
HTML5 Benchmarks
This last one in the list is particularly interesting as it not only provides a direct comparison of these different animation techniques but also has configurable CGI parameters to change many of the variables involved. Fun!
Thursday, January 19, 2012
SVG in Android Browser
I learned to my disappointment today that my favorite android browser Dolphin HD doesn't support Scalable Vector Graphics (SVG). Luckily Firefox does! I'm currently giving the beta version a try for checking the bandwidth usage monitor in DD-WRT, but it seems quite quick for general browsing as well.
Setting up SPAN for packet sniffing on a Cisco Catalyst
1) enable
2) configure terminal
3) no monitor session all
4) monitor session 1 source interface fastEthernet0/1 both
5) monitor session 1 destination interface fast/Ethernet0/10
6) end
Command 3 clears any existing SPAN sessions. You can change the port number at the end of command 4 to the port of the uplink on the switch to monitor all traffic. Alternately you can specify a range of ports. Change the port number at the end of command 5 to the port on which you intend to set up your sniffer. In order to turn the SPAN off then rerun the first three commands. That's basically all there is to it. Now plug in a laptop to the monitor port and run dumpcap on the ethernet interface.
Friday, January 6, 2012
CPU & RAM Info in Linux
Thursday, January 5, 2012
jQuery quickSearch Dynamic Row Count
Results: <p id="count"></p>
And the addition of this argument to the quickSearch function directly after the "loader:" argument:
onAfter: function() {
document.getElementById("count").innerHTML=($('tr:visible').length-1);
}
Now, if one's quickSearch use were doing something other than simply setting rows to hidden then this example may not work exactly as shown, but this may be useful for other applications as well.
Wednesday, January 4, 2012
Android FOSS Market
Tuesday, January 3, 2012
Pro-Am Tip of the Day
Always carry a spare Internet.