S
H
A
R
E

Saturday, November 08, 2014

PHP Apache Virtual Host Manager for XAMPP Windows

Use this code for adding virtual on your xampp windows sistem.

Read More!

Monday, June 11, 2012

Best Free Video Editing Software

Many programs simply don't do what the manufacturers say that they will do, and others don't provide enough - or any support.Of course, most free software does not include the same level or quality of support that you would expect to find with software that you purchase commercially.While it is true that you get what you pay for, there really are some good free video editing software available out there.

Here are the top five that we have found:


Read More!

Saturday, June 09, 2012

Visual Studio Shortcut Keyboard List

Navigation



Ctrl + ]
Moves the cursor to the matching Closing or Opening brace
Ctrl + hyphen
Moves cursor to its previous position
Shift + F7
Switch between the Design View and Source View
Ctrl + Tab
Displays the all open files in VS
Ctrl + Shift + F
Find 
F3
Search Again or continue search 

Read More!

CSharp ExecuteNonQuery Sample

protected void btnSignIn_Click(object sender, EventArgs e)
    {
        string strConnection = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
        string strInsert = "INSERT INTO Users (Username,Password) VALUES(@Username,@Password)";
        SqlConnection con = new SqlConnection(strConnection);
        SqlCommand cmd = new SqlCommand();
        cmd.Connection = con;
        cmd.CommandType = CommandType.Text;
        cmd.CommandText = strInsert;

        SqlParameter username = new SqlParameter("@Username", SqlDbType.VarChar, 50);
        username.Value = txtUserName.Text.Trim().ToString();
        cmd.Parameters.Add(username);

        SqlParameter password = new SqlParameter("@Password", SqlDbType.VarChar, 50);
        password.Value = txtPassword.Text.Trim().ToString();
        cmd.Parameters.Add(password);

Read More!

3D Max Shortcut Keyboard List

3D Studio Max Keyboard shortcuts.

Snaps Action Table :
Snap To Edge/Segment Toggle : Alt+F10
Snap To Endpoint Toggle : Alt+F8
Snap To Face Toggle : Alt+F11
Snap To Grid Points Toggle : Alt+F5
Snap To Midpoint Toggle : Alt+F9
Snap To Pivot Toggle : Alt+F6
Snap To Vertex Toggle : Alt+F7

Read More!

Thursday, June 07, 2012

CSharp Create PrintPreview Dialog


this post will explaining how to use printpreviewdialog with C# to preview before printing datagridview in windows forms application.

Read More!

Thursday, April 19, 2012

haarcascade porn and breast detection

I have two haarcascade for nude image detection, first is for breast detection, and for porn (nude) image detection.
Haarcascade for porn image detection, accuarate just 40%-50%, still have many false detection, but you can use for detecting a nude image. created by Indonesian people.
And haarcascade for breast detection, it have 70%-80% accuration. i don't know who made it, but i got it from Hackchina source code search engine.
now you can make your OpenCV to detecting a nude image by using this haarcascades. but you need for create a skin color detection algorithm for make detection more accurate! i will share for skin color detection algorithm in the next moment.

Read More!

Sunday, March 11, 2012

Netbeans Slow When starting

I using : Netbeans 7.1
OS : win 7 32 Ultimate
CPU: core-i5
RAM: 2G
VGA: 4G
I dont know why my Netbeans its running slow when started, make my cursor slow too.

Then I know why, its may a Netbeans bug. Netbeans / Java have some speed problems where implementing fonts from the OS manchine.

 its simple, try to restore Font & color setting in your nertbeans, then restart.. may its done..,

Read More!

Saturday, February 11, 2012

Java Execute Console Process and Get Output

To execute process you can use ProcessBuilder, like this:

ProcessBuilder pb = new ProcessBuilder("tasklist").redirectErrorStream(true);

use redirectErrorStream to make the BufferedReader can read if error message is returned.

Now, get the Process by executing it:
Process p = pb.start();
  
Then make a BufferedReader that can read the console output screen:
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));

You can read the respond of console process by using while loop like this:

while((str = br.readLine()) != null){
    retVal += str;
}

Here is the complete java function:

Read More!

Tuesday, October 25, 2011

DOM XPath Syntax

This The Content of XML File


Selecting Nodes

XPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below:
Expression Description
nodename Selects all child nodes of the named node
/ Selects from the root node
// Selects nodes in the document from the current node that match the selection no matter where they are
. Selects the current node
.. Selects the parent of the current node
@ Selects attributes
In the table below we have listed some path expressions and the result of the expressions:

Read More!

Friday, September 23, 2011

Easy Way Convert HTML to XML in PHP DOMdocument

You know that this tag is not valid for XML DOM Document. if you will to load content from HTML page and you need to convert it to XML this img tag will be a big trouble. Let me to fix this problem.


See this sample code and you will understand how I can do it :-)

Read More!

Sunday, August 14, 2011

HTML Escape Character Table

Maybe some developer was know about HTML escape string, but, they can't remember one by one about HTML escape character.. Then, maybe this HTML escape character tables will be your HTML refference:

Read More!

Tuesday, August 09, 2011

Share Url HTML Code for Blogger (Social Bookmarking)

Bibsonomy
http://www.bibsonomy.org/ShowBookmarkEntry?c=b&jump=yes&url=[URL]&description=[EXCERPT]
Blogmarks
http://blogmarks.net/my/new.php? title=[TEXT TITLE]&url=[URL]
Blinklist
http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=[URL]&Title=[TEXT TITLE]
Delicious
http://delicious.com/post?url=[URL]&title=[TEXT TITLE]¬es=[EXCERPT]
Design Bump
http://www.designbump.com/submit?url=[URL]&title=[TEXT TITLE]


Read More!

Tuesday, August 02, 2011

Custom Form Appearance With Standard Behaviour

There are several ways to Custom Paint a form, but each has their flaw.
This method starts with a standard Form that has its BorderStyle set to None.

Read More!

Sunday, July 31, 2011

Shaped Form Resizable and Moveable

Shaped Form Resizable and Moveable
This is by no means a complete solution, just an idea for creating custom shaped forms with custom Titlebars.
The form can be dragged by its fake titlebar, and if right clicked the fake Titlebar will popup the WindowMenu.
The CreateParams property has been modified to add a System Menu (with Min,Move and Close items) to a borderless form.

Read More!

Friday, July 29, 2011

Repair Encoding Error Adobe Media Encoder CS4

"Could not read from the source"
 When you will encode your premiere project squence with Adobe Media Encoder but you have failed?? and get some message like this:
-----------------------------------------------------------------------------
Could not read from the source. Please check if it has moved or been deleted.
-----------------------------------------------------------------------------

Read More!

Wednesday, July 27, 2011

Create Slider Control With Custom Color

All too often I see examples of custom controls which unnecessarily add child controls. For instance, a custom trackbar control may have a label or panel added to act as the scrolling thumb tab.

Read More!

Create a Circle Rounded Panel Controls

rounded panel Form Controls VB net CSharp
When we Draw to a Graphics object we can set AntiAlias so as to make the edges of complex shapes look smooth. This is done by altering the color of some of the pixels on and around the edge so that the jagged edges appear smooth.

Read More!

Monday, July 25, 2011

Create Combobox With Icon

Create Combobox With Icon
The following class modifies the Item collection to return a collection of Custom items. The Property Browser uses the Collection Editor rather than the StringCollection Editor. The DrawMode property has been hidden, since this property should not be changed.

Read More!

Create Custom Button in Form

Create Custom Button in Form VB net Csharp
No need to Inherit from Button if you want a button with a completely custom appearance.

Read More!