Posts

Showing posts with the label How to

Node.JS: Mysql blob retrieval and insert operation using sequelize

Image
Mysql blob image retrieval and insert operation using sequelize package of node.js If you have any doubts, please ask in comments.

Experiments with Two.js: Getting started

Image
Some basic experiments with two.js . Write in comments if getting stuck in running below example. Lets go step by step. 1. var type defines type of content delivered by the two.js drawing as per request / automatic detection using url.js javascript. var type = /(canvas|webgl)/.test(url.type) ? url.type : 'svg'; 2. Now, we are ready with content type. We can define two.js object using below code. var two = new Two({ type: Two.Types[type], fullscreen: true, autostart: true }).appendTo(document.body); This defines type of the drawing i.e. canvas/webgl. fullscreen behaviour, autostart options and many more things as described here . The last line "appendTo()" decides where our two.js drawing will be rendered. Here, we have taken webpage's body directly to render two.js drawing. <!DOCTYPE html> <html><head> <meta http-equiv="content-type" content=...

How to download Citrix XenApp 6 for free

Image
Citrix XenApp Fundamentals is an easy-to-set-up, on-demand apps solution designed for small and medium-sized businesses. Businesses can take advantage of the wizard-driven, out-of-the-box functionality of XenApp Fundamentals to virtualize any Windows application and give workers secure access to their applications and documents from anywhere on any device. All users need is an Internet connection to experience seamless, high-performance access to corporate apps whether in the office, out in the field, at home or on the road. 1. Go to  Citrix Fundamental home page . Click on try it button.  2. Select full featured trial version option and click 'try free'. 3. The page will show you to register or login. Register yourself and click button 'try now'. Dont forget to accept terms and conditions. 4. After going forward to some page citrix will give you user information and trial information. Check those information (especially email id...

Upload multiple files using AjaxFileUpload

Image
Microsoft ASP.NET AjaxControlToolkit has recently published a multiple file upload. That allows you to upload multiple files at a time with Drag and drop user interface. First we will see, how to use AjaxFileUpload control in asp.net site. Open new project in Visual studio. I am using visual studio 2010. In default page, add script manager, Update panel. You can also add update progress (optional). For using AjaxFileUpload, you need to download latest AjaxControlToolkit from codeplex site. If you don't know how to add that to your visual studio then refer this link . Now you can see AjaxFileUpload in Ajax Toolkit. Add that to update panel and edit the code as below. <asp:AjaxFileUpload ID= "AjaxFileUpload1" runat= "server" AllowedFileTypes= "jpg,jpeg,png,gif" MaximumNumberOfFiles= "10" OnUploadComplete= "File_Upload" /> AllowedFileTypes : Defines which files are allowed to be uploaded MaximumNumberOfFi...

Install NS2 (ns-2.35) in Ubuntu 11.10

Image
Install Ubuntu 11.10 Download NS-2.35 ( http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download ) Unzip or untar it to any folder (recommended is /home/ loginname) using the following commands one by one sudo apt-get update Using cd command go into appropriate folder, where the .gz file exists, and then execute below commands tar zxvf ns-allinone-2.35.tar.gz sudo apt-get install build-essential autoconf automake libxmu-dev cd ns-allinone-2.35 ./install Once installed the PATH information will be provided to you. So dont close the terminal after installation complete, because you dont get path again.) You will see some configuration in some last lines of completed installation as shown below. Please put /home/Shreeji/Desktop/NS-Installation/ns-allinone- 2.34/bin:/home/Shreeji/Desktop/NS-Installation/ns-allinone- 2.34/tcl8.4.18/unix:/home/Shreeji/Desktop/NS-Installation/ns-allinone...

Increase typing speed

Image
Well, in past few weeks, many of my friends asked me, how you type at this much fast speed, without seeing at "keyboard" ? So, I thought lets talk about it. "QWERT" keyboard is old design, but looking impossible to change in near future (remember - Nothing is impossible!). So, lets start with basic learning. I am sure that if you follow below steps for at least 15 days, you can feel the change in your speed. The tutorial - practice is designed like that, it helps same to new computer learner as well as to all who knows computer from top to bottom. Steps :- 1 . Most of the computer people have much writing experience, but they haven't put in a proper way, so they can not get full benifit of the full speed without looking at keyboard. So, first step is : "press the each key with right fingure". i.e. keyboard has two parts and those part is covered by left and right hand respectively (also shown in figure). For practice of 1st step...

Install Pear in Wamp Server 2.2 (with php 5.3.8) for windows

First of all, install wamp 2.2 from  Wamp server 2.2 . After that download pear from below. DOWNLOAD PEAR Then run following command in the command prompt. C:\wamp\bin\php\php5.3.0>php go-pear.phar Are you installing a system-wide PEAR or a local copy? (system|local) [system] : system Below is a suggested file layout for your new PEAR installation.  To change individual locations, type the number in front of the directory.  Type 'all' to change all of them or simply press Enter to accept these locations. 1. Installation base ($prefix)                   : C:\wamp\bin\php\php5.3.0 2. Temporary directory for processing            : C:\wamp\bin\php\php5.3.0\tmp 3. Temporary directory for downloads             : C:\wamp\bin\php\php5.3.0\tmp 4. Binaries direc...