How to write UTF8 text in Java
Submitted by softking on Mon, 04/13/2009 - 14:54
String fullPath="c:\temp\text.txt";
File curfile = new File(fullPath);
//write in UTF8 file format
Time Picker Control For Flex 3.0
Submitted by softking on Tue, 02/24/2009 - 01:33this article shows how to use 2 slider controls to create a single "Time Picker" control in Flex.
Time Selection Example In Flex ( Time Picker )
Submitted by softking on Sun, 02/22/2009 - 22:30There is no time selection control available in flex, in this example we use a simple FLEX TextInput to create a Time Selection Control.
<?xml version="1.0" encoding="utf-8"?>
Change the background color of a FLEX DataGrid row,How to change datagrid's row background color
Submitted by softking on Fri, 02/06/2009 - 01:26Some times you want to change the background color of a row inside a FLEX DataGrid. You usually want to do so in order to mark that row as an error or to make it out stand from the other rows.
Pdo in command line php?
Submitted by softking on Sun, 01/11/2009 - 10:57Hi
I had the following problem when trying to connect to oracle database from PHP when running in command line
"DB Connection failed: could not find driver"
Doc File Viewer For Compound Files
Submitted by softking on Wed, 12/03/2008 - 00:56The DocFile viewer that Microsoft gives with Visual Studio 6 and 7 is very basic and has very few capabilities. So i have decided to try and write a small DocFile viewer myself.
Cut , Copy , Paste stops working in Eclipse
Submitted by softking on Mon, 08/18/2008 - 12:23This may have happen to you too, you work with Eclipse and suddenly it stops coping and pasting and it is very annoying
To temporarily solve the problem you can disable "Folding" in the Java Editor
Go to: Window-->Preferences-->Java-->Editor-->Folding and un-check the folding option
This should do the trick
How to draw a line over a flex graph
Submitted by softking on Tue, 07/29/2008 - 11:48In order to draw a line over a flex graph you can use a CartesianDataCanvas element.
How to find the temporary directory in C#
Submitted by softking on Mon, 06/30/2008 - 20:59In order to find the temporary folder in C# you have to use this code:
System.IO.Path.GetTempPath();How to set a DataProvider to Tree in FLEX
Submitted by softking on Thu, 06/26/2008 - 18:17A simple way to build a data provider for a flex tree is to use XMLList
This simple application will use XMLList to populate the data provider of the FLEX Tree.
How to duplicate a screen to a second screen in C#
Submitted by softking on Thu, 06/19/2008 - 09:27I had the need to have a small program that displays all that i can see on my main screen in the secondary screen that is attached to my computer
How to sort items in a list in C#
Submitted by softking on Mon, 06/16/2008 - 18:34Sorting lists in C# with support of the interface IComparable
for example we have objects from the class TestItem in a list
public class TestItem
{
private int sortByMe;
}
How to prevent navigation to a different page in PHP
Submitted by softologi on Sun, 06/15/2008 - 23:23In order to prevent navigation to a different page you have to do the following:
Call the header function with "HTTP/1.0 204 No Data" as the parameter. See example:
<?php
Call a function in FLEX from JavaScript
Submitted by softking on Thu, 06/12/2008 - 09:48Sometimes you need to call a function that is defined in your Flex application from the JavaScript code that wraps it.
How to create a timer in FLEX
Submitted by softking on Tue, 06/10/2008 - 17:15In order to add a timer to Flex use the following code:
import flash.utils.Timer;
import flash.events.TimerEvent;
private function createTimer():void {
How to Increase maximum post size in PHP
Submitted by softologi on Tue, 06/10/2008 - 00:12In PHP the default POST maximum size is 2MB,
If you need to be able to upload larger files to the server you have to change the following configurations in your php.ini
How to create a cookie in PHP
Submitted by softologi on Sun, 06/08/2008 - 23:21How to create a cookie in PHP
setcookie("<cookie_name>", "<cookie_value>",<time is will expire>);
setcookie("username", "$username", time()+36000000);How to capture screen images and send it to a secondary screen
Submitted by softologi on Sun, 06/08/2008 - 01:55How to capture screen images and send it to a secondary screen
