- Greetings! I am Torleif Berger, 25 years old, a Seventh-Day Adventist and currently working as a Software Developer. Have a look around c'',)
Tag Archives: Snippet
jQuery: Nice and smooth hover effect
Needed to add a hover effect on some table rows and wanted to make it look nice. Think I managed to get it quite smooth in the end and thought I could share it. 12345678910111213141516171819202122232425262728293031// In the document ready event … Continue reading
Posted in Software Development
Tagged CSS, HTML, JavaScript, jQuery, jQuery UI, Snippet
Leave a comment
JavaScript: Uppercase first letter in a string
In PHP there is a very handy function called ucfirst which Returns a string with the first character of str capitalized, if that character is alphabetic. Needed that in JavaScript, but discovered there was no such thing.
PHP: How to easily provide JSON and JSONP
Have some server-side data that you would like to grab through an AJAX call? For example by using the jQuery.ajax method? A really easy way of doing this is by using the JSON format.
PHP: Generating transparent PNG fillers
So, I was fooling around the other day with an HTML table and wanted to make the odd rows slightly darker. Figured I could use for example an 80% transparent black PNG to do that (or could have just assigned … Continue reading
C#: How to send emails
Sending a basic email message in a C# application is quite easy thanks to a class called SmptClient. We simply need an address to send to, an address to send from, the message we want to send and the client: … Continue reading
How to check for duplicates
Say you have an IEnumerable<t></t> of some sort and you want to check if it contains any duplicates. How do you do that?
Generics and checking for null
When writing C#, in Visual Studio, using generics… have you ever tried checking for null? I have always found that a bit of a hassle. Say we have this method which returns the subject if it is not null, and … Continue reading















