30 May, 2009

Common Visual Studio 2008 tips I use

It's urly when using mouse just to open a simple dialog that you use frequently. So I note it down here :-)


Debug > Attach to Process : Ctrl + Alt + P
Use Ctrl + Alt + down arrow key to navigate your tab within solution

04 December, 2008

Automatically commit to SVN server

I have three pc boxes to play around: laptop, desktop and company box.  I use all of them in parts of a day: working hours for company, laptop at home and sometime with dekstop (while my brother uses the laptop). In that case, there're a lot of personal data that I need it have to be avaiable on all boxes (of course it should be synchronized too). The free SVN hosting of Google Code came at right time . I really love that service, except it allows anynomous to browse repository tree (I have some private data) but it isn't matter.


The issue shows up when you have three local copy for your repository. Sometime I save or add new file at company and forget commiting to server. Then I get to home and is unable to continue work  . Unfortunately, it happens usually because i don't own a good memory. Therefore, I need to find a solution for this problem.

First, I thought about finding a cool software that monitors changes in SVN local copy and commits automatically. And I failed. Even I can find out, I don't think it's freeware. So with that idea, I then tried to find an anternative way.  Eventually, I saw the sunligh at the end of tunnel ^^.

Why don't we use a combination between svn command line and Scheduled Task of Windows. That's the point I started writing two small script for updating and commiting task. It is somehow like this

===================
e:

cd "E:\GoogleCodeProject"

"c:\Program Files\Subversion\bin\svn.exe" commit -m "Automatically commit on dekstop"
====================


Afterthat, I created two task in Scheduled Task (remember start Scheduled Task service before). With updating script, I set it will be run when user login to windows. And with commiting script, I put it to the task which was set to run at 30m interval. But default Windows doesn't support that type, it only allows hourly, daily, monthly, ... Wait, the real supporting from Scheduled Task stayes in Advanced Setting


 


Finally, I got the acceptable solution. How wonderfull it is 

Blogged with the Flock Browser

26 September, 2008

test


public interface ILog
{
public void DoSomething();
public string Getting { get; }
}

15 March, 2008

no title

A guy (say MrQ) on group microsoft.public.dotnet.framework.aspnet have posted a funny question

MrQ
Hi,
Can I backup & restore my sql server database from aspx page located on a
client machine ?
Thank You.
First answer (say MrA)
Sure you can .

use BACKUP DATABASE sql statement..

Just remember do not connect to the DB you want to back up. Connect to
master DB

MrQ
Thank you for your reply.
How can I implment this?
MrA
I am afraid you cant. If you asking this
MrQ
Sure I know how to backup and restore a db using sql server 2000 or 2005. Im
asking about how can I provide a web form, using asp.net 2.0, to the client
that can let him or her do the same task remotely?
Hmm, he can use sql statement to play with sql server but don't know how to use it in .net

08 March, 2008

Newsgroup in general

I've heard about newsgroup concept when I started studying IT at the university. But I couldn't be well aware of what it is, how to use. And I got into it by chance today, see this quote

On the web there are thousands, probably millions, of discussion forums, dedicated to particular areas of interest. You use your browser to navigate to the "forum" web page of a site that interests you, where you can read what other people have written. You can usually post new messages to the forum after completing a web form to register your name, e-mail address, etc, at the forum.

A newsgroup isn't like that. A newsgroup is a completely different, very much older, type of forum. Newsgroups were invented over a quarter of a century ago, long before the World Wide Web existed. Newsgroups work with special software called "newsreaders" and "news servers" instead of web browsers and web servers.

If you're not really interested in how newsgroups work – you simply want to know how to read and post messages with a minimum of fuss – you'll be pleased to hear that Google provides a web-based interface to newsgroups that makes them look pretty-much like normal web-based discussion forums. It's called Google Groups. But bear in mind that the Google Groups way of doing things is quite cumbersome, and most newsgroup users prefer to use the newsreader software described next.

To connect directly (not via Google) to a newsgroup you'll need newsreader software installed on your PC. Many PCs come with a newsreader already installed - it's Microsoft Outlook Express, the same program that many people use for e-mail. Popular alternative newsreaders include Forte Agent and Mozilla Thunderbird.

The newsreader needs to be configured to connect via the Internet to a suitable news server. There are thousands of news servers round the world and it usually doesn't matter much which one you connect to. Many ISPs provide free news servers. Alternatively many alt.usage.english regulars make use of the inexpensive server provided at News.Individual.NET.

Having configured your newsreader to use an available news server, you can "subscribe" to any number of newsgroups. Subscription is free and no registration process or password is required – all you have to provide is the name(s) of the newsgroup(s) you're interested in. more

Then I google the phrase "news server free" and got a lot of useful results. Anyway, it took a long time to know what it is ^^

I can't hear what they said but it might be funny, right ^^

11 February, 2008

Some stuffs on the internet for you



When you begin using the Internet for working or home, surely you should utilize Internet's resources to improve productivity. Maybe you've never realized that your work can be better with some services on the net.

Let I give an example for you: when you're working, your task still wasn't completed but you need to go home at the moment. Of course you want to save current working progess in order to continue to work at home. But how can you save your progess ? Sure, Internet's resources will take this role.

As you can see in below example, your productivity can be improved when you use properly service on net. I will show you some stuffs for your convenience:

Storage
There're many ways to allow you to put something on a host and you can get it back latter. The simplest is using mail (Gmail, Yahoo) , or you can go to some storage services like Rapidshare, Megashare and Windows Live SkyDrive (it's free and I personally prefers SkyDrive to others ^^). If you want more, you can try Google Code or Google Page Creator and you only need using storing file feature.

Media file storage
You need put your images, music, flash on net. Yes, there're always a plenty of services to help you. But I only show you some helpful site: Picasa Web Albums ,Flickr for picture, Slide for making slide, imeem for music.

More ...
I know here're many, many stuffs on the Internet but it's great if you find it out by yourself. To me, I only knows these stuffs and need to find more, like you ^^


Powered by ScribeFire.