Pages

Wednesday, April 28, 2010

HTC Desire tips & tricks

Add these folder to the SD card and put the music you want for notifications, ringtones and alarms:

  • media/audio/notifications
  • media/audio/ringtones
  • media/audio/alarms

If you want to have more of the features the Nexus One have, this is a awesome blog: http://nimbu.amorvi.com/

Got my HTC Desire

I finally got my HTC Desire from telmore, and i must say it's an awesome mobile phone!

But there is some tips and tricks that is good to know, and I'll blog some of them I found useful

Thursday, March 4, 2010

jQuery carousel lite with dynamic paging

sorry for the missing description. I will might but it on later

Resources

http://www.gmarwaha.com/jquery/jcarousellite/
http://groups.google.com/group/jquery-en/browse_thread/thread/9fec8a1746945bd2

index.htm

<script src="jcarousellite_1.0.1.min.js" type="text/javascript"></script>

<ul class="paging"></ul>
// build links  
var itemArray = new Array();
$('.carousel ul').each(function(i) {
    var carouselNavDivs = $('ul.paging');
    $(carouselNavDivs[i]).append('<li class="prev"><a><<</a></li>');
    $(this).children().each(function(j) {
        itemArray[j] = "." + j;
        var linkNum = 0;
        linkNum = j + 1;
        $(carouselNavDivs[i]).append("<li class='" + j + "'><a>" + linkNum + "</a></li>");
    });
    $(carouselNavDivs[i]).append('<li class="next"><a>>></a></li>');
});

$(function() {
    $(".carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        btnGo: itemArray,
        circular: false,
        visible: 1
    });
});

jcarousellite_1.0.1.min.js

if (o.btnGo)
    $.each(o.btnGo, function(i, val) {
        $(val).click(function() {
            $.each(o.btnGo, function(i, val) {
                $(val).removeClass('active');
            });
            $(this).addClass('active');
            return go(o.circular ? o.visible + i : i);
        });
    });

Still needs to be able to select current when using prev/next

Friday, February 26, 2010

My main computer has been updated!

This is a hardware update to my current specs found here

  • Motherboard: ASUS P5Q PRO --> GIGABYTE EX54-UD4
  • CPU: Intel Core 2 Quad Q9300 @ 2,5GHz --> i7-920
  • Graphic card: MSI NVIDIA GeForce 8600GT --> GeForce GTX 285 1gb
  • Harddisk: 2x Seagate Barracuda 320GB 24/7 --> Added: WD Caviar Black 1TB (OS disk)
  • RAM: 2x Samsung 2GB  UPDATE: 2x Geil Black Dragon 2GB (8GB FTW) --> 6x 2gb DDR3-1333 (12gb)
  • Tower: Antec Performance One P182
  • PSU: Corsair TX750W

And the OS is ofcourse Windows Server 2008r2 now :D ..I'm very happy with my new hardware update and it's just working perfectly!

Wednesday, September 2, 2009

How to partition a hard disk drive containing data

I needed to partition my newly bought 1TB WD disk for my HTPC, because i wanted to use some for OS and the rest for data storage, but i had already put 200GB of data onto it. I will explain how I handled this problem, and still kept my data.
First of all i needed a program capable of partitioning a disk that contains data. I was a little careful picking the software, because a software crash right ind the middle of the partitioning, would destroy the data that was already on the disk.

I read a lot of recommendations in different forums and stumbled upon this: http://www.partitionwizard.com/, it did exactly what i needed!
And it was really easy to use, just a few clicks and the disk was partitioned in a few minutes. But remember that it is recommended to backup the data before using the program, even though the program is capable of saving the data.


One thing i struggled with a lot afterwards, was installing the OS and it seemed like i needed to set my newly partitioned part to active(has to be if it should be bootable), stupid mistake but took a lot of time before I realized it was the problem.

Thursday, August 27, 2009

My new Low budget, low noise full HD HTPC/media center build

Hardware:

  • TV: Sony KDL-40V5500 - 40" Full HD LCD (here)
  • Console: PS3
  • Receiver:  Sony STR-DH800 (here)
  • Subwoofer: Apart SUBA165 (here)
  • Front/Back speakers: Apart MASK6-BL (here)
  • Center speaker: JVC
  • Keyboard/Mouse: Logitech dinovo mini
  • Motherboard: Asus P5N7A-VM
  • CPU: Intel Core 2 duo E6600
  • CPU cooler: Cosmo cool aluminium/copper hybrid edition
  • Graphic card: NVIDIA GeForce 9300 (integrated)
  • Hard disk drive OS: 1TB Western Digital AV-GP (partitioned)
  • Hard disk drive Data: 1TB Western Digital AV-GP
  • Optical disk drive: Asus combo CD/DVD-RW
  • RAM: 2x1GB Corsair XMS2 DDR2
  • Tower: Antec NSK2480 (removed one fan to reduce noise)
  • PSU: 380W 80 plus (integrated)

Software:

Review:

So far it is working perfectly! ...with low noise and great performance.
When I have used the system for some time, I will make a more thorough review of my HTPC set-up

Thursday, July 30, 2009

Place text and divs beside each other using css

I suddenly needed to have some text beside a div, but i just couldn't remember how.

But i figured it out and here is my solution, and yes it's not the most complex thing in the world ;)

html:

Some text <div class="divBesideText"></div>

CSS:

.divBesideText
{
    display: inline;
}

Monday, May 4, 2009

Custom file extension in IIS and register a HTTP handler in asp.net

Good msdn articles on how to add a new file extension in the IIS and registrer the HTTP handler in asp.net

Register the handler: http://msdn.microsoft.com/en-us/library/46c5ddfy(VS.71).aspx

Configure the IIS to accept the new file extension: http://msdn.microsoft.com/en-us/library/bb515343.aspx

Wednesday, March 18, 2009

Chrome Experiments - JavaScript mania

This is a great site if you want to look at some awesome JavaScript and see what it actually is capable of doing, and how well your browser renders JavaScript.
It is called: Chrome Experiments and is as the name says for Google Chrome, it just have a lot of mind blowing experiments that I think is worth checking out

Thursday, March 5, 2009

If you haven't got the message then listen here

A friend posted a link to this video and it is just so funny and true that i just had to post it, Write in c - Let it be!

Thursday, February 19, 2009

Ignore query in jQuery treeview persist location

The jQuery treeview plugin can be found here, it is a brilliant plugin which makes amazing treeviews.

But when i use:

persist: "location"

 I run into a little "problem", because i would like to have the treeview item selected when i use query's in the URL, and as default it just doesn't select any when using query.

What I need to do is to detect if there is a query in the url and then ignore it, I've done it the following way:

case "location":

var current = this.find("a").filter(function()
{
    return this.href.substring(0, (this.href.indexOf("?") == -1) ? this.href.length: this.href.indexOf("?")).toLowerCase() == location.href.substring(0, (location.href.indexOf("?") == -1) ? location.href.length: location.href.indexOf("?")).toLowerCase();
});

It is a pretty simple fix and works like a charm!


 

EDIT:

This version is also able to handle bookmarks and query in url.

case "location":

var current = this.find("a").filter(function()
{
    var linkLength = (this.href.indexOf("?") != -1) ? this.href.indexOf("?") : (this.href.indexOf("#") != -1) ? this.href.indexOf("#") : this.href.length;
    var link = this.href.substring(0, linkLength);

    var urlLength = (location.href.indexOf("?") != -1) ? location.href.indexOf("?") : (location.href.indexOf("#") != -1) ? location.href.indexOf("#") : location.href.length;
    var url = location.href.substring(0, urlLength);

    return link.toLowerCase() == url.toLowerCase();
});

Wednesday, February 18, 2009

Windows remote desktop security

I've been wondering about how secure Windows Remote Desktop actually is, and it seems like you can be pretty protected with some common sense and few changes.
Here are a few tips that I have found while searching:
  • As default all administrators has remote desktop access, so it is a good idea to change the Administrator users name to a different name.

    1. It is found in: Control Panel -> Administrative Tools -> Local Security Policy -> Local Policies -> Security Options
    2. Find: "Accounts: Rename administrator account" in the list, and right click and Properties.
    3. You are able to rename the administrator name here, and then restart the computer.
    4. While your in the Local Policies you can change the values in the Account Policies to be as you want it, like changing the: Account lockout threshold to a few attempts.
  • Another thing is to change the default port number of remote desktop which is 3389, it can be changed the following way.
    1. Go to: Start -> Run -> write "regedit" -> press OK.
    2. Go to the following folder: HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control -> TerminalServer -> WinStations -> RDP-Tcp
    3. Find: "PortNumber" in the list, and right click and "Modify..."
    4. Write your desired port number and remember to add ":PortNumber" at the end of the URL when connecting to your Remote Desktop, and be sure to check if the firewall port is open.

Saturday, February 14, 2009

Convert your Windows Server 2008 to a Workstation

I use windows server 2008 as a workstation myself, and there are significant changes which can be made to make it much better as a workstation.
A great site that i used to reconfigure mine is: win2008workstation.com, there is guides to everything, from disabling the shutdown tracker to performance increases and much more!
..i can warmly recommend it, because it gives a better workstation experience on a awesome OS.

Friday, February 13, 2009

Saving changes is not permitted in Microsoft SQL Server Management Studio 2008

If you try to change columns in a table that you've created you will get the following message:

"Saving changes ins not permitted. The changes you have made require the following table to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.". I think this option isen't very useful as enabled by default.

The message explains itsel, you have to disable the "Prevent saving changesthat require the table to be re-created", but where is this option.
Tools -> Options -> Table and Database Designers -> Uncheck "Prevent saving changes that require the table to be re-created"

Sunday, February 8, 2009

Aviary editors is worth trying

My friend said I should check this link, and so i did: aviary.com

I looked at it and found a lot of pretty cool "editors" or as they say it: "creation accessible to artists of all genres, from graphic design to audio editing.".

I don't like flash very much, but i must say it is the best browser based photo editor I've ever seen, and properly also the only one ;)

I haven't checked out the others that much, but I'm sure they are just as nice. So if you need a photo editor on the fly i would recommend the one Aviary Phoenix Image Editor.