Sunday, November 30, 2008

Ignore Files and Directories in Subversion

Ignore Files and Directories in Subversion
If you work with version control systems like subversion (svn) I'm sure you can relate to the problem of having test files show up when you try to commit changes. It is actually pretty simple to tell subversion ignore directories or specific files.

You can do this by editing the svn property called svn:ignore as follows:

svn propedit svn:ignore ./some_path

When you run that command svn will open your text editor, and this is where you can define patterns or specific files to ignore. If you place a * in the property file, it will ignore all files in the directory you specified ./some_path

Sunday, November 09, 2008

Codesign error: no certificate for identifier "iPhone Developer" was found in your keychain

Apple - Support - Discussions - code sign error (beta 5) and a ":" ...
Codesign error: no certificate for identifier "iPhone Developer" was found in your keychain august

Btw, first thing is to show the "build transcript" -- it's the little icon to the right of the yellow exclamation point ("Show or hide existing warnings"). It shows exactly what xcode is running and what those apps are returning. I think xcode's error message parsing / display is buggy -- /usr/bin/codesign was reporting the full identity I was trying to use: "iPhone Developer: MyFirstName MyLastName", I don't know why xcode kept saying only "iPhone Developer". The xcode Code Signing Build properties ui is also buggy, lots of reports of having to restart, clear fields. Remember "Target" build settings override project settings.

Anyway, as mentioned in the message below, turning Off "CRL checking" (in Keychain Access > Preferences > Certificates) fixed the codesign "iPhone Developer" error. When I next clicked Build and Go in xcode, I was asked to login to my keychain (or something like that) and then the app was transferred to my iphone

http://lists.apple.com/archives/Apple-cdsa/2008/Jul/msg00010.html

Monday, November 03, 2008

Perian - The swiss-army knife of QuickTime® components

Perian - The swiss-army knife of QuickTime® components
Perian is a free, open source QuickTime component that adds native support for many popular video formats.

Perian enables QuickTime application support for additional media:
  • File formats: AVI, DIVX, FLV, MKV, GVI, VP6, and VFW
  • Video types: MS-MPEG4 v1 & v2, DivX, 3ivx, H.264, Sorenson H.263, FLV/Sorenson Spark, FSV1, VP6, H263i, VP3, HuffYUV, FFVHuff, MPEG1 & MPEG2 Video, Fraps, Snow, NuppelVideo, Techsmith Screen Capture, DosBox Capture
  • Audio types: Windows Media Audio v1 & v2, Flash ADPCM, Xiph Vorbis (in Matroska), and MPEG Layer I & II Audio, True Audio, DTS Coherent Acoustics, Nellymoser ASAO
  • AVI support for: AAC, AC3 Audio, H.264, MPEG4, and VBR MP3
  • Subtitle support for SSA/ASS and SRT

Tuesday, September 30, 2008

Customize Your Project Build Process : Visual Studio Hacks

Customize Your Project Build Process : Visual Studio Hacks
While the Visual Studio build process is familiar for all .NET developers, not everyone realizes the build customization capabilities that can be accomplished with just a little work. You can easily put together tasks that occur before, after, and even during a build.

Saturday, September 27, 2008

Tetris AI

Tetris
This article describes how a computer can play the classic video game Tetris by getting information about the board, determining good actions, and performing those actions.
This article includes software capable of playing Tetris in real time.
The software includes the best real-time Tetris-playing algorithm in the public domain.

Thursday, September 25, 2008

Sending SMS using emails

T-Mobile:phonenumber@tmomail.net
Virgin Mobile:phonenumber@vmobl.com
Cingular:phonenumber@cingularme.com
Sprint:phonenumber@messaging.sprintpcs.com
Verizon: phonenumber@vtext.com
Nextel: phonenumber@messaging.nextel.com
US Cellular: phonenumber@email.uscc.net



SunCom: phonenumber@tms.suncom.com



Powertel: phonenumber@ptel.net



AT&T: phonenumber@txt.att.net



Alltel: phonenumber@message.alltel.com



Metro PCS: phonenumber@MyMetroPcs.com

Tuesday, September 23, 2008

Good awk tutorial

AWK Tutorial with Examples, AWK Reference
AWK Tutorial, Learn AWK

The awk utility interprets a programming language that makes it possible to handle simple data-reformatting jobs easily with just a few lines of code.

Very good SED tutorial with examples

SED Tutorial with examples
SED Tutorial

* The sed utility is an "editor"
* It is also noninteractive. This means you have to insert commands to be executed on the data at the command line or in a script to be processed.
* sed accepts a series of commands and executes them on a file (or set of files).
* sed fittingly stands for stream editor.
* It can be used to change all occurrences of "SAD" to "SED" or "New York" to "Newport."
* The stream editor is ideally suited to performing repetitive edits that would take considerable time if done manually.

Friday, September 12, 2008

good ffmpeg tutorial

ffmpeg audio/video manipulation
This tutorial should enable you to install ffmpeg and the auxiliary libraries that will give ffmpeg support for various codecs. It'll then go on to explain the basics of what a video file is, how it's created by ffmpeg and how a media player takes it apart again to display the picture and give you the sound. Next, you'll find out how to influence the way the data is produced. Finally, I'll deal with more advanced topics such as merging several sources and introducing time differentials.

Thursday, September 11, 2008

HOWTO: Compile the latest ffmpeg and x264 from source - Ubuntu Forums

HOWTO: Compile the latest ffmpeg and x264 from source - Ubuntu Forums
ffmpeg is a versatile video tool used to encode and convert a multitude of video and audio formats. x264 is a library used to encode H264 video and creates excellent looking video usually superior to xvid and other popular codecs. x264 is used by Avidemux, GordianKnot, VLC Player, MEncoder, and Handbrake.

Although ffmpeg and x264 are available in the Ubuntu repositories, you may need to compile from source. For example, the ffmpeg-user mailing list requires that you use the latest ffmpeg svn before asking for help. Since ffmpeg and x264 are updated frequently, you may also like to have the bleeding-edge for encoding videos. Also, ffmpeg in the Ubuntu repository may not support all of the codecs and formats that you may need.

This tutorial was tested on a command-line install of Ubuntu Hardy Heron (8.04) on a Pentium 4 3.0 GHz with 2 GB RAM using ffmpeg and x264 source files retrieved on May 7, 08. It was also tested in a standard Hardy Heron installation in VirtualBox.

Friday, September 05, 2008

How to configure Pidgin to work with Google Talk

How to configure Pidgin to work with Google Talk >> T & T >> The Tech Bytes
Pidgin (earlier Gaim) is a multiple protocol Instant Messenger client which can be used to chat using MSN, Yahoo, AIM and many other protocols. But most people do not know that you can use Pidgin to chat with Google Talk users.

Pidgin supports a protocol called XMPP (Extensible Messaging and Presence Protocol). XMPP is the core protocol of the Jabber protocol and GTalk is also based on the Jabber protocol. So it is quite easy to make Pidgin to work with GTalk.

Thursday, September 04, 2008

Ubuntu Linux runlevel configuration tool to start service

Debian or Ubuntu Linux runlevel configuration tool to start service
rcconf is Debian runlevel configuration tool. Rcconf allows you to control which services are started when the system boots up or reboots. It displays a menu of all the services which could be started at boot. The ones that are configured to do so are marked and you can toggle individual services on and off. If rcconf is not installed use apt-get command:
# apt-get install rcconfOR$ sudo apt-get install rcconf Now run rcconf and just follow on screen instructions:
# rcconf

Friday, August 29, 2008

On Ruby: RubyInline, Making Making Things Faster Easier

On Ruby: RubyInline, Making Making Things Faster Easier
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).

Another Ruby on Rails PSR article

Ruby on Rails Development: Justify Your Choice of Ruby on Rails: Articles and Links
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?

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.

DNS in Windows XP Tip!

DNS in Windows XP Tip!
Prevent DNS problems with this tip for Windows XP...

Thursday, August 28, 2008

how to identify H.264 profile

[Sip-implementors] H.264 in SIP - question about profile-level-id

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

Aaron Brady - insom.me.uk - 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 - Enter an IP address to find its location - Lookup Country Region City etc

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

How To Use SSH in Unix or Linux shell script

How To Use SSH in Unix or Linux shell script
SSH general syntax

ssh user@hostname command

Keyless ssh / ssh-keygen: setup and gotchas

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
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

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

Shark Attack!!!



Kids play with shark and tow truck toys!

Tuesday, June 24, 2008

mp4 file format parsers

you can find MP4

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

If you already have a capture file not usable due to the wrong checksums, use the following command to repair the file.

sudo tcpreplay -i eth0 -F -w output.cap input.cap

or

sudo tcprewrite -i input.cap -o output.cap -C

Blogged with the Flock Browser

Monday, June 16, 2008

Top 10 Useful Bookmarklets

Having a good set of bookmarklets on your browser's toolbar is like having a web-savvy Leatherman handy—you can take them anywhere, use them in many situations, and they just simply work. A bookmarklet is a little different than a plain old bookmark—it's a snippet of JavaScript that can perform all sorts of magic on the web page you're currently viewing. You add bookmarklets to your bookmarks collection to get all sorts of things done as you surf the web. Let's take a look at some of the best bookmarklets available, which can help you search and email, download videos, and work out some of the web's kinks.

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

Blogged with the Flock Browser

Monday, June 02, 2008

Flock - the browser for people who like to be connected

http://www.flock.com/

Get ready to meet your new favorite browser!
Blogged with the Flock Browser

Main Page - FreeMind - free mind mapping software

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.php

Wednesday, 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

ScribeFire is an extension for the Mozilla Firefox Web Browser
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!!!