Free Shell Scripting Guide From Apple – Shell Scripting Premier

Apple has updated its free Shell Scripting Premier Guide, which is freely downloadable from Mac OS X Developer Library website.

Chapters included in the freely downloadable Shell Scripting Premier:

topic

Available in PDF format together with zip files containing sample scripts as discussed in the book

Example Code: How to Send SMS from PHP (via Clickatell)

Hi there, due to popular demand (requests sent to my personal email – mypapit -at- gmail.com).

I decided to share my old post regarding my simple SendSMS php class which can help php developers to send SMS from their web application

[php]
require(‘SendSMS.php’);

$sendsms = new SendSMS(“username”,”password”,”HTTP POST API key”);

/* if the login return 0, means that login failed, you cant send sms after this */
if ( ($sendsms->login()) == 0 ) {
die( “failed”);
}

/*other wise, you can send sms using the simple send() call*/
$sendsms->send(“0132073011″,”can you receive this message? Hello there….”);

[/php]

Requirements
To use SendSMS class, you need:

That’s it.. contact me if you’ve more questions

Download SendSMS PHP class (version 0.5)
.
.
.

Twitter Command Line Client

A nice twitter client for those who are working in CLI environment.

Get twitter-cmdline.

Free Image Hosting at www.ImageShack.us

A Windows alternative is also available at : Twitter Windows Command Line Client.

Alternatively you can try a cURL hack to post your update to twitter from command line.

btw my twitter id is ‘mypapit’. Happy twittering.

Solution to libctiny and wcrt – LNK2001 unresolved external symbol __chkstk

I’m not sure if any of you ever use libctiny or wcrt, they are both meant to be use with Microsoft Visual Studio so that your resulting binary won’t use the default Microsoft run-time library which slightly bloats the exe.

By using one of these libraries, you can greatly reduce your resulting binary from an average of 20KB to 7KB, depending on your application.

The chkstk problem

The problem arises when the application you just compiled fails to link with an error message: “LNK2001 : unresolved external symbol __chkstk” .


libctiny wcrt chkstk link error

This got to do with the “Ignore all default libraries” option which you’ve to check when using this library. Apparently one library which is required by a routine inserted by the Microsoft tools (chkstk) was excluded from linking as well.

Solution to the problem

Manually include the library! The routine/function is included in an object file named “chkstk.obj”, just put it in the link dialog box beside libctiny/wcrt, and the problem will be settled.

wga fakap #2 chkstk libctiny

I hope that this will solve your problem !

Microsoft recent steps to curb piracy is similiar to shareware concept

I read the recent Microsoft plan of tatooing illegal copies of Microsoft Windows XP at various places over the internet. From what I read, the process involved putting a pop-up dialog box that will appear on the Windows login screen, informing the user that his copy of the OS is counterfeit and that he should get a genuine copy.

Another message will permanently be affixed at the user’s desktop, “This copy of Windows is not genuine. You may be a victim of software counterfeiting”, the reminder can’t be removed (tattooed).

Finally, a ballon-style popup will appear randomly in system tray reminding you that you’re using an illegal copy of Microsoft Windows. The only way to stop the messages from appearing is to replace the OS with a genuine copy. Though some unofficial sources claimed, that there’s a crack to circumvent all the warnings.

These ‘nagulator’ (not my word), is somehow related to another business model, called shareware or nagware, which constantly reminds you to pay for the software you use randomly. IMHO, if Microsoft were to really discourage software piracy, it should impose a stricter way to prevent people from using illegal copies of it’s own products.

Instead, they create a specially crafted dialog box that is used in common nagware/shareware to deter “piracy”. Has Microsoft turned it’s own operating system to a shareware now?

[Source]

j2meshitheap.com – a list of the world’s worst J2ME-enabled phones

JavaME (formerly J2ME) software fans? Then please avoid any of these J2ME-enabled phones because one or more of their implementations are either broken, incorrect or plainly doesn’t work.

I personally tested 3650/3660 J2ME implementation first hand by running some of my midlets. In my oppinion i think Nokia 3650/3660 has the worst j2me implementation that I’ve encountered because some of the *Listener object failed to respond correctly, plus the networking part of the midlet almost always failed.

I would also want to add Nokia 6600 to the list because of various bugs in its implementation, though not as annoying as 3650/3660, it is still noticeable.

so please visit http://www.j2meshitheap.com for more complete listing

libcurlemu – a pure PHP curl implementation (libcurl emulator)

Have you came across a situation where you need to use php libcurl extension and it was not enabled on your webserver? Then, try libcurlemu, apure-PHP implementation to PHP cURL. It emulates all of the curl_* functions normally provided by the native cURL extension itself.

libcurlemu works transparently regardless of the availability of PHP cURL extensions, thus making your script even more portable across web server that does not have PHP cURL extensions.

What is libcurl / cURL?

cURL is a command-line tool that supports transfering files with URL syntax. It supports many protocols like FTP, FTPS, TFTP, HTTP, HTTPS, TELNET, DICT, FILE and LDAP.

libcurl is a library based on cURL that helps you to connect and communicate with different type of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, and ldap protocols.

For HTTP/HTTPS protocol, libcurl supports POST, PUT, GET and DELETE method, making it suitable for writing web services, particularly REST-like services.

Stay tune for code examples on how to use libcurl to emulate a browser submitting POST request to a server.

libcurlemu is written by Steve Blinch, and can be downloaded at his website : http://code.blitzaffe.com

php, libcurl, curl, rest, opensource