Wednesday, October 5, 2011

Web Scripting using C language

Web Server Side Scripting using C language

Many languages like PHP, ASP are used for web scripting, many programmers who are familiar only with C language are not from computer science origin refrain in learning these languages thinking that they are very complicated. For creating simple scripts and making your own websites, even C language is more than enough. Im planning to write a simple header file that C programmers have to include, and they can do all the basic web fundamentals.

And regarding optimization, im planning to write a small engine that can cache many files in it so that very fast processing of data could be possible because anyways these files are not interpreted like many web scripts. Definitely any server-scripting language like PHP will be better than this approach as they have a rich collection of libraries and many more. But this idea is targeted only people who are familiar only with C and want to do simple web scripting and database operations. I will start this soon and post it when it will be over. The first release will have only all basic commands required to convert simple C to simple server-scripting language, already MYSQL and other leading database vendors have given APIs for C to connect to their databases.

The first release will not have much validation techniques and data security algorithms in it.

!! Further Discussions in that Page !!

Tuesday, July 12, 2011

HTML Textarea new line problems with PHP

Many of the beginners face problem with textarea new line. When you save some data in textarea, you may write data beautifully in many lines (by giving {ENTER} key, new line), then when you save the data inside any database, and when you retrive and display that data, you will notice that, all new line startings are lost.

This is because when you press ENTER and give a new line character '\n' character is used inside textarea. But when you print it back, HTML cannot recognize '\n' character. PHP comes with a handy solution for this. There is a function called nl2br(),which replaces all \n characters with <br/> hence all new lines appear in HTML again!
Its not the only solution, you can also use explode function or something similar to find \n and replace it with a <br/> to comply with HTML

Eg:
<?php
echo nl2br("Sachin\nis great");
?>

Output:
Sachin<br/>is great

Now
<?php
$textarea_data=DATA_FROM_DATABASE;
echo nl2br($textarea_data);
?>
will work for textarea data!

Unity 3D handVu Integration Tutorials

Again Im really sorry for taking a long time for releasing this awaited tutorials with all working codes.

Since I dont have web space of my own, I rely on free file hostings, I have uploaded the required files with the mirrors::
Demo:
http://www.youtube.com/watch?v=-GxykrIB3yM


Tutorials PDF file:
http://www.megaupload.com/?d=6MDTU0CR
Full Project (Unity Package File):
http://www.4shared.com/zip/Wl-VFYjx/HandVu.html
OR
http://www.mediafire.com/?f55zs8gfzmf9clq
OR
http://www.megaupload.com/?d=F9OYMOSB

Download the PDF file, that contains links of files to be downloaded...

Saturday, July 2, 2011

VLC Current Track to Google Talk Status [VLC2GTalk v1.0 BETA]

I made one small script that checks VLC for the current track and sends this track name to Google Talk so that your google talk status gets updated with the current VLC track. This is similar to plugins available for Google Talk with ITunes, Winamp and so on.

I created this small script because i use VLC, im a music lover, so i listen to songs in 200% volume, which is available in VLC only, so i use VLC and then thought of developing a small script for posting the current track to Google Talk

Screenshot:


Here is the download link: (514 KB)
http://www.4shared.com/zip/RCD5E9Fh/VLC_to_GTalk_Status.html
OR
http://www.mediafire.com/?l2c3lusc2pukr53
OR
http://www.megaupload.com/?d=G1EVEVG2

And for coders, here is the source code: http://hobbycoders.com/products/vlc2gtalk/VLC2GTalk.ahk
(Its an AutoHotKey code)

I just checked it and it works, if you find any bugs please post it here, so that we can try to resolve them. This small software will be useful till a good programmer develops a good plugin for VLC GTalk status or Google allows VLC tracks too :)!!

BTW, The only problem with this that i face as of now is, when the song changes, an UI activity is performed, so so, for a moment, the focus is removed from your current focused object. Thats annoying, i know...the next release will be free from these problems

Anyways, if anyone wants to try developing the same. The idea is this:
1. Use high level language to poll VLC process in the system and detect song changes (VLC sets the song name as process title as SONG_NAME - VLC Player :)
2. Google provides codes for jabber client XMPP so that you can directly communicate with Google Talk and set the track as stauts

Sunday, May 22, 2011

Unity3d faceapi integration to achieve augmented reality [ Video tutorials ]

Hello all, since there were few errors reported with Unity 3, i have made a video tutorial on how to achieve the integration of unity3d with faceapi. There was an error with script.cs file in the old unitypackage.

This post is a continuation of this post:
http://mypersonalsoft.blogspot.com/2010/12/unity-3d-faceapi-intergation-tutorials.html

Follow the steps in the video tutorials and please do post your comments/feedbacks...



Please do share this video with others who are interested in this stuff...!!!