• CATEGORY : Technical
Header

Blog Archives

How to create a Generic Executor Service for asynchronous calls

Hello Everyone! πŸ™‚ I am sure a lot of you know what are synchronous and asynchronous calls. Just in case you don’t: Synchronous If an API call is synchronous, it means that code execution will block (or wait) for the API call to return before continuing. This means that until a response is returned by …
Read more

123 total views, no views today

How to fetch trailer from YouTube without API Key

Hi Guys, Do you want to embed trailers from YouTube dynamically to your website without any registration for API key? If No, then move on πŸ˜‰ If Yes, read on. πŸ˜€ YouTube allows you to embed videos in external site pages, but you need to know the identifier of the specific video you want to …
Read more

889 total views, no views today

How to implement synchronization in Gosu

Hi All, Synchronization sounds familiar but not Gosu. Isn’t it? I know a lot of people still unaware about Gosu programming language. So let me give you a brief idea what’s Gosu programming language is. Gosu has been developed on top of Java. So it runs on JVM. The features of Gosu has been incorporated …
Read more

3,361 total views, no views today

How to download YouTube videos using wget and cURL

Hi all, Few days back I got a request in PHPClasses.org to develop a functionality in PHP for downloading YouTube videos. So, here it is. I have already published it on PHPClasses.org. Here is the link: http://www.phpclasses.org/package/9092-PHP-Download-YouTube-Videos.html. In case, you don’t see this page right now, it is still under processing. πŸ˜‰ The idea is …
Read more

7,324 total views, no views today

Disk Usage: Calculate the disk space usage of a directory

Hi Guys, If you need to know the size of a directory, how many subdirectories or files have this utility class might come very handy. This class can traverse the directory that you indicate response and bring the same size in Megabytes, Gigabytes or Kilobytes as well as the number of files and directories it …
Read more

1,263 total views, no views today

PDO is abstracted!

Hi Guys Few days back I created a PDO class. I would like to share it with you all, perhaps, it may come handy. You find it on PHPClasses too. http://www.phpclasses.org/package/8853-PHP-Database-access-wrapper-based-on-PDO.html The idea is to abstraction PDO itself. Developers don’t need to know about the implementation if it is either a PDO or simple PHP …
Read more

2,250 total views, no views today

How to create a SOAP Client in Java using SAAJ

Hi Guys, Today, I am going to show that how you can consume a SOAP WS using SAAJ framework. SAAJ is shipped with JSE 1.6 and above. What is SAAJ? SOAP with Attachments API for Java (SAAJ) is mainly used for dealing directly with SOAP Request/Response messages which happens behind the scenes in any Web …
Read more

5,767 total views, no views today

How to create MySql backup and archive it using Java

Hi Guys, I know, the first question is “why” as a lot of tools, both free and commercial, are available to do the same thing. It’s fun πŸ™‚ and may be it can give you general idea how those tools actually work internally. Four main implementations: 1. Taking MySql database backup in .sql file 2. …
Read more

4,961 total views, no views today

How to get yahoo messenger status using Java

Hi guys, Few days back I created an utility for checking the status of user if he/she is online on Yahoo Messenger. This is a simple utility. Hope you guys have fun using it. πŸ˜‰ Yahoo provides a link for accessing the status of user on Messenger. All you need to write a code that …
Read more

3,981 total views, no views today