Archive for Programming

How to create one click update from bin/debug folder?

// July 15th, 2010 // No Comments » // Programming

Well, it’s really easy!

I don’t know about you, but I have huge problem with copying files from my debug folders. First of all, it’s annoying, and second of all it takes time. (more…)

Communication between JavaScript and Actionscript (AS3) and vice versa

// April 27th, 2010 // 1 Comment » // Action Script, Flash, Javascript, Programming

I haven’t used flash for a while, and today while creating little news slider in flash which communicate with Javascript (and vice versa), i lost 30 min to find the best way to communicate between Flash and Javascript. So to save you a lot of time here is simple description.
(more…)

WordPress plugin for Google buzz this button

// April 14th, 2010 // No Comments » // PHP, Programming, Web

Yesterday Google released to public Post to Buzz and Follow on Buzz buttons. You can choose from predefined list of button templates, how your button will look like and what will be posted to Buzz (description, image, url of website).

With this plugin, you can do all that (and much more), from within plugin configuration page. Besides defining look of your button you can choose where and how it will be placed.

More details and screenshots you can find at http://www.hariscusto.com/buzz-this/

ExportData Table to Excel using C#

// February 15th, 2010 // 5 Comments » // C#, Database, Programming

Here is little class that I wrote some time ago that helps you export data from DataTable into Excell xls file. It format fields in xls file based on data type from data table.

It’s not a perfect but it will help you to quickly save data from Data Table to Excel file.

Example of usage:

Common.Data.Export2Excel(dataTableWithData, "exported.xls");

(more…)

Google buzz Plugin for WordPress (Widget ready)

// February 11th, 2010 // 2 Comments » // PHP, Programming

I’m sure in the past 24h you have heard for Google Buzz but for all you that haven’t check:  http://www.google.com/buzz

I have created widget ready plugin for WordPress which you can use for displaying your latest buzz.

If you are interested in it than check it out on: http://www.hariscusto.com/buzz/

Escape string in C#

// December 31st, 2009 // No Comments » // C#, MSSQL, MySQLd, Programming, SQLite

I have searched more than 30 min. for string escape method in C#, and finally here it is.

You can find it deep inside Security namspace

string safeString = System.Security.SecurityElement.Escape("St'ring to escpa");

You can use it to sanitize values before saving to database.

Reset all controls on form (Windows forms – C#)

// December 25th, 2009 // 2 Comments » // C#, Programming, UI, WinForms

Well i had a situation where i need to reset all controls (mostly Textboxes and Comboboxes) on form to their default (entry ready) state. Well, at first sight I was thinking it’s not a problem, my .net Win form have property called Controls – list of all controls on form. But problem was that i had overlapping panels which i used for positioning, and inside of panels was Group box control. So it’s allready complicated then at first sight.

I have created little Form helper which will help you reset all controls on form to their default state.
(more…)