www.TLCube.com

Virus spam

by TLCube on Feb.20, 2010, under Uncategorized

Long long time. No even single e-mail spam. Now i received some type of trojan. You can look the Virustotal report. Why i am worried? Virus total result when writing this article is 9/41 (21.95%). When is crystal clear that you don’t want click this. Te virus detection in market only some of them wake up.

Leave a Comment more...

Top 25 Most Dangerous Programming Errors

by TLCube on Feb.18, 2010, under Programming

The computer experts from 30 diffrents organisation around the about worlds have compiled list most dangerous coding mistakes.

http://cwe.mitre.org/top25/

Hmm i have been guilty to number 16. Information Exposure Through an Error Message.

Leave a Comment : more...

Textbox caret

by TLCube on Feb.15, 2010, under Programming

If you are using dark colors your applications, there is possibly that TextBox caret is color is black. This will make editing TextBox text more difficult. TextBox caret color is inverse to backround color, but when backround color is set to null, the default black color is used (picture 1).

There is couple of workarounds. The simplest is set TextBox backround color same color as where parent color is (picture 2). There is another workaround here.

Now WPF 4.0 has new CaretBrush property. You can simply set caret color just like any other colors (Picture 3).

<TextBox Name="textBox3" CaretBrush="Orange"/><code>

You can also specify a more complex brush like a LinearGradient (picture 4):

            <TextBox.CaretBrush>
                <LinearGradientBrush StartPoint="0,0"
                         EndPoint="0,1">
                    <GradientStop Color="White"
                    Offset="0" />
                    <GradientStop Color="Orange"
                    Offset=".5" />
                    <GradientStop Color="White"
                    Offset="1" />
                </LinearGradientBrush>
            </TextBox.CaretBrush>

Time to say goodbye for caret problems.

TextBox caret demo
TextBox caret demo
TextBoxCaret.zip
58.7 KiB
7 Downloads
Details...

Leave a Comment :, , more...

Tiny Wall project

by TLCube on Feb.10, 2010, under Web

I was asking myself how to made simple Facebook like wall? So I start Google and found this nice PHP and jQuery tutorial. Tutorial work fine, the only problem was look. I was looking something simple and elegant.

The problem was making simple and stylish button. After fail/try solution cycle the result was simple solution. Creating submit button using input tag. This solution works perfect and can be styled using CSS.

<input id="submit-button" class="blue" type="submit" value="Post to wall" />

.blue{
    background:url(img/blue.gif);
    padding:0px 6px;
    border:1px solid #3b6e22;
    height:24px;
    line-height:24px;
    color:#FFFFFF;
    font-size:12px;
    margin-right:10px;
    display:inline-block;
    text-decoration:none;
}

Facebook like wall (PHP/HTML/CSS)
41.0 KiB
1 Downloads
Details...

Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...