Optimize what you need to (and only what you need to), profile find out what that is (it may be slow, but profiling is your friend), and use the right tools (rewriting a bit of code with RubyInline is way better than rewriting the whole app in C).
Friday, August 29, 2008
On Ruby: RubyInline, Making Making Things Faster Easier
Another Ruby on Rails PSR article
The top two concerns are usually performance and scalability: "Ruby is slow" or "Interpreted languages are slow" seem to be the most common. Here are some excellent articles on the subject (the overall summary being: Rails provides a great advantage in getting your product to market, there are reasonable and inexpensive ways of addressing any performance bottlenecks, and scalability is not a problem):
Ruby on Rails Scalability - Is it a Problem?
the cost per request is plummeting, but the cost of programming is not. Thus, we have to find ways to trade efficiency in the runtime for efficiency in the “thought time” in order to make the development of applications cheaper. I believed we’ve long since entered an age where simplicity of development and maintenance is where the real value lies.
Thursday, August 28, 2008
how to identify H.264 profile
1. hexdump -C test.mp4 | less
2. search for profile-level-id=4dE01E
You should refer to ITU-T H.264 standard
From the document
Baseline profile: profile_id 66 = 0x42
Main profile: profile_id 77 = 0x4D
Extended profile: profile_id 88 = 0x58
Tuesday, August 26, 2008
Making djbdns and dnscache play with Ubuntu
Now that djbdns is public domain it can be included in Debian-based distributions. Gerrit Pape has done the hard work of packaging everything up and submitting to the ftpmasters at Debian, and it looks to have been accepted into sid.
I, however, run Ubuntu, which hasn't imported this package yet. Ideally, I'd also like to avoid running daemontools, as upstart does a similar job and already comes with Ubuntu.
Friday, August 22, 2008
Geographic IP Address Locater
IP Address Locator Tool
This IP Address Map lookup service is provided for FREE by Geobytes, inc to assist you in locating the geographical location of an IP Address. Click here to checkout our other FREE localization services.
Thursday, August 21, 2008
Keyless ssh / ssh-keygen: setup and gotchas
If you ssh into a server a lot, you'll get tired of typing in your
password over and over again pretty quickly. Fortunately, you can
generate a set of public and private keys on your local client machine,
place the public key on the server, and ssh without having to enter a
password. Here's how.
Tuesday, July 29, 2008
Device Manager does not display devices that are not connected to the Windows XP-based computer
Device Manager does not display devices that are not connected to the Windows XP-based computer
View products that this article applies to.
Article ID : 315539
Last Review : November 18, 2005
Revision : 1.2
This article was previously published under Q315539
SYMPTOMS
Device Manager displays only non-Plug and Play devices, drivers, and printers when you click Show hidden devices on the View menu. Devices that you install that are not connected to the computer (such as a Universal Serial Bus [USB] device or "ghosted" devices) are not displayed in Device Manager, even when you click Show hidden devices.
Back to the top
WORKAROUND
To work around this behavior and display devices when you click Show hidden devices:
1. Click Start, point to All Programs, point to Accessories, and then click Command Prompt.
2. At a command prompt, type the following command , and then press ENTER:
set devmgr_show_nonpresent_devices=1
3. Type the following command a command prompt, and then press ENTER:
start devmgmt.msc
4. Troubleshoot the devices and drivers in Device Manager.
NOTE: Click Show hidden devices on the View menu in Device Managers before you can see devices that are not connected to the computer.
5. When you finish troubleshooting, close Device Manager.
6. Type exit at the command prompt.
Note that when you close the command prompt window, Window clears the devmgr_show_nonpresent_devices=1 variable that you set in step 2 and prevents ghosted devices from being displayed when you click Show hidden devices.
If you are a developer or power user and you want to be able to view devices that are not connected to your computer, set this environment variable globally:
1. Right-click My Computer.
2. Click Properties.
3. Click the Advanced tab.
4. Click the Environment Variables tab.
5. Set the variables in the System Variables box.
NOTE: Use this method only for troubleshooting or development purposes, or to prevent users from accidentally uninstalling a required device that is not connected to the computer (such as a USB device or docking station that is not connected to a laptop computer).
Wednesday, July 09, 2008
Slow Windows XP Shutdown - enrii.blog
If your Windows XP takes a very long time to shut down, you can try User Profile Hive Cleanup Service provided by Microsoft (yes, Microsoft). The users at digg claimed that it really helps to shorten shut down time. I remember it took a very long time to shut down before I formatted and reinstall my PC not too long ago.
I tried this, and it really worked. My XP used to take forever to shutdown, usually making me to force it to shutdown by holding down the power button. Now, after installing this service, it takes less than 5 seconds to shut down. Wow.
Sunday, July 06, 2008
Tuesday, July 01, 2008
Tuesday, June 24, 2008
mp4 file format parsers
tools at :
http://mp4ui.sourceforge.net
A tool for indexing (hinting) a MP4 files and that gives
a few info about the content (tracks, ...)
http://www.mpeg4ip.net
A open source project including :
mp4info : an utility to dump info from mp4 file
mp4f : a library for parsing mp4 files
Tuesday, June 17, 2008
[tcpdump] how to fix the bad checksum problem
If you capture packets using tcpdump directly from the server, your capture file may contain bad checksums. This is because your OS is currently configured to use the hardware checksum offloading feature of the NIC. When this feature is enabled, expecting the NIC to rewrite the checksums, OS doesn't bother to fill (nor to reset) in the checksum fields. The problem is that tcpdump is capturing the packets before the checksums are rewritten by the NIC.
Use the following command to turn off the checksum offloading before using tcpdump (on ubuntu).sudo ethtool -K eth0 rx off tx off
sudo tcpreplay -i eth0 -F -w output.cap input.cap
or
sudo tcprewrite -i input.cap -o output.cap -C
Monday, June 16, 2008
Top 10 Useful Bookmarklets
To start using a bookmarklet, make sure your browser's bookmarks toolbar is visible. Then, drag and drop the bookmarklet link (enclosed in square brackets below each item on this post) to your bookmarks toolbar. When you're on a page where you want to use the bookmarklet? Just click its name on your toolbar.
Top 10 Useful Bookmarklets
Monday, June 02, 2008
Main Page - FreeMind - free mind mapping software
So you want to write a completely new metaphysics? Why don't you use FreeMind? You have a tool at hand that remarkably resembles the tray slips of Robert Pirsig, described in his sequel to Zen and the Art of Motorcycle Maintenance called Lila. Do you want to refactor your essays in a similar way you would refactor software? Or do you want to keep personal knowledge base, which is easy to manage? Why don't you try FreeMind? Do you want to prioritize, know where you are, where you've been and where you are heading, as Stephen Covey would advise you? Have you tried FreeMind to keep track of all the things that are needed for that?
Friday, May 30, 2008
Repair Master Boot Record with MBRFix from Windows 2000, XP etc.
Fixmbr
- Repair Master Boot Record with MBRFix from Windows 2000, XP etc.
instead of using fdisk /mbr. FixMbr could help you recreating original
master boot record (MBR) that works with any Windows (Win2k), XP, 95,
98 when Linux LILO damaged it.
http://www.ambience.sk/fdisk-master-boot-record-windows-linux-lilo-fixmbr.phpWednesday, May 14, 2008
Free ISO Recorder
ISO Recorder v 2
ISO Recorder is a tool (power toy) for Windows XP, 2003 and now Windows
Vista, that allows (depending on the Windows version) to burn CD and
DVD images (DVD support is only available on Windows Vista), copy
disks, make images of the existing data CDs and DVDs and create ISO
images from a content of a disk folder.
Friday, May 09, 2008
Post to your blog without ever leaving Firefox
that integrates with your browser to let you easily post to your blog: you can drag and drop formatted
text from pages you are browsing, take notes, and post to your blog.
--
Very nice!!!
Thursday, August 02, 2007
Wait cursor for Windows Mobile
Getting the nice colorful system-is-busy hourglass (or whatever it is) to appear is extremely simple:
Cursor.Current = Cursors.WaitCursor;"
YouTube Architecture | High Scalability
iPhone skin for Windows Mobile Phones
Wednesday, July 25, 2007
Optimizing your MySQL Application
By Mike Sullivan
So you’ve finished reading Kevin Yank’s article Building a Database-Driven Web Site Using PHP and MySQL [1], and you’re happily databasing your site, when it starts to slow down. You need to get your site zipping along again before your host threatens to kick you off for almost killing their server. How do you do this? Enter: MySQL’s internal turbo-charger, indexes."
Wednesday, July 18, 2007
Stealther :: Firefox Add-ons
- Browsing History (also in Address bar)
- Cookies
- Downloaded Files History
- Disk Cache
- Saved Form Information
- Sending of ReferrerHeader
- Recently Closed Tabs list"
Tuesday, July 17, 2007
Remlap Software - Clickster (mp3 search and download)
music for nothin' and your tracks for free
Clickster is the essential application for every lover of music. Clickster enables you to easily search for and download mp3 files from the Internet in a totally legal and safe environment. Because Clickster sources mp3's which are hosted on web servers, you can expect download speeds which put P2P networks to shame. With currently over 30 million tracks available to download (and growing), we're certain Clickster will be able to locate the music you really want to listen to and there are no dead/broken links."
G2P Beta v0.2: Google helps me find the goods
-G2P (Google to Person) uses some crafty Google searches to help locate open directories or otherwise shared files. These searches are nothing secret (In fact, take a look at the results, so you can see how it is done. However, it is much easier to remember g2p.org than these complex searches. Really I put this site together to make it easier on me, and then shared it with you."
Friday, July 13, 2007
Introduction To Bash Shell Scripting (2004.11.06)
References
* Learning the Bash Shell, Cameron Newham & Bill Rosenblatt (O'Reilly & Associates, Inc)
* Linux in a Nutshell, Jessica Perry Hekman (O'Reilly & Associates, Inc)
* The UNIX Programming Environment, Brian W Kernigham & Rob Pike (Prenice Hall)
* Unix Power Tools, Jerry Peek, Tim O'Relly, & Mike Lookides (O'Reilly & Associates,Inc)
* Advance Bash Scripting Guide : http://www.tldp.org/LDP/abs/html
Appendix B has some good Reference Cards"
Wednesday, June 27, 2007
Windows Mobile mp3tunes.com player
Get Oboe Player for Windows Mobile now!
Open In New Window Bookmarklet
This bookmarklet does just that: open the current tab in a new browser window. Even the navigation history is copied so that you can keep navigating back and forth as if you were in the original tab.
Drag the following link to the Bookmark toolbar of your firefox!!!
Open In New Window
Friday, May 04, 2007
Cinco de Mayo
Cinco de Mayo's history has its roots in the French Occupation of Mexico. The French occupation took shape in the aftermath of the Mexican-American War of 1846-48. With this war, Mexico entered a period of national crisis during the 1850's. Years of not only fighting the Americans but also a Civil War, had left Mexico devastated and bankrupt. On July 17, 1861, President Benito Juarez issued a moratorium in which all foreign debt payments would be suspended for a brief period of two years, with the promise that after this period, payments would resume.
The English, Spanish and French refused to allow president Juarez to do this, and instead decided to invade Mexico and get payments by whatever means necessary. The Spanish and English eventually withdrew, but the French refused to leave. Their intention was to create an Empire in Mexico under Napoleon III. Some have argued that the true French occupation was a response to growing American power and to the Monroe Doctrine (America for the Americans). Napoleon III believed that if the United States was allowed to prosper indiscriminately, it would eventually become a power in and of itself.
In 1862, the French army began its advance. Under General Ignacio Zaragoza, 5,000 ill-equipped Mestizo and Zapotec Indians defeated the French army in what came to be known as the "Batalla de Puebla" on the fifth of May.
In the United States, the "Batalla de Puebla" came to be known as simply "5 de Mayo" and unfortunately, many people wrongly equate it with Mexican Independence which was on September 16, 1810, nearly a fifty year difference!
Monday, November 13, 2006
Friday, November 03, 2006
Friday, August 04, 2006
Mel Drive Through Malibu
read more | digg story
Monday, May 01, 2006
Google Operating System: Download Google Videos As AVI Files
If you want to save the videos as AVI and view with any video player on any platform, use this bookmarklet: Google Videos As AVI. You can save it as a bookmark in your browser or drag and drop it to the link toolbar. Next time when you see a video you like on Google Video, click on the bookmarklet and you can save the video."
USB MyPet Puppy and Monkey Webcam - Gizmodo
Lovers of cute things (and the Japanese) will snatch up this USB MyPet Webcam that comes in both monkey and puppy models. Supporting up to 640x480 at 15 frames per second, this webcam is perfect for the girlfriend that hates tech.
Readers could also use it to spy on a victim who doesn’t know this is a webcam. A very dumb victim.
MyNewPlace apartment search - Lifehacker
Friday, April 28, 2006
Virtual Dimension
CNN.com - Judge's�Da Vinci code solved - Apr 28, 2006
Thursday, April 27, 2006
Google Reader
Thursday, April 13, 2006
► Alltel Selects Jamster To Provide Mobile Content For Millions of Subscribers - Broadband and Wireless • .: Internet Ad Sales :.
picturephoning.com: Phone to Carry Video Projector
HELIO and Yahoo! Announce Mobile Services Partnership - Gizmodo
AbsurdlyCool Freebie Finder
The Linux Box
I’ve been there as well, but instead of trying to import various MS Office templates that aren’t really that nice either, I’ve decided to create some of my own with the Open Document Format in mind. I’m releasing all the following templates under a LGPL v. 2.1 or later license."
Tuesday, April 11, 2006
Damn Interesting � The Gravity-Powered Aircraft
Monday, April 10, 2006
Richard Colbert's Rants, Raves, Ideas and Complaints: Making the Switch from Microsoft to FREE!
Friday, April 07, 2006
The Ultimate Linux Newbie Guide :: Linux without the technobabble!
How to Wow 'Em Like Steve Jobs
"
Thursday, April 06, 2006
Wednesday, April 05, 2006
Origami Science?!!!
* Origami mathematics, which includes the mathematics that describes the underlying laws of origami;
* Computational origami, which comprises algorithms and theory devoted to the solution of origami problems by mathematical means;
* Origami technology, which is the application of origami (and folding in general) to the solution of problems arising in engineering, industrial design, and technology in general."
Wired News: Micropayments Drive Asian Games
EETimes.com - ARM offers first clockless processor core
A Windows users journey to Mac
Tuesday, April 04, 2006
Watch HDTV for free with an indoor antenna - AVING - Global News Network
Homebot - Gizmodo
robot to be “integrated” into the family thanks to its unique communications systems."
Organs grown from cells signal new transplant era - 05 Apr 2006 - World News
Seven patients given new bladders grown from their own cells have functioning organs that have performed as well as those conventionally repaired but with none of the ill effects, scientists have revealed. "
Turn your Greasemonkey scripts into Firefox extensions - Lifehacker
PythonSpeed/PerformanceTips
The Freenet Project - index - beginner
Friday, March 31, 2006
Wired News: Steve Jobs' Best Quotes Ever
The CEO of Apple Computer is a master of hype, hyperbole and the catchy phrase. Even when he's trying to talk normally, brilliant verbiage comes tumbling out."
The Top 10 weirdest keyboards ever - Fosfor Gadgets
Saab BioPower Hybrid Concept: World's First Fossil-free Hybrid Vehicle World Premiere at Stockholm Auto Show
Here be dragons - Economist.com
Apple tunes in to world domination - Business - Business - theage.com.au
Never before have we seen global domination by one retailer in a product category. Apple is also possibly the most secretive retailer on Earth."
Thursday, March 30, 2006
Install PHP5 Apache2 MySQL5 on Windows : WAMP5
Everything you need to run a Windows server in one package. Awesome!!!!