Saturday, September 27, 2014
Why? you ask, well just pure laziness I guess, and it's just a media server where I want to set this. I wanted to just press the power button of my PC, and the media server should just be ready. But because the media server service (Plex Media Server) required user to logon to Windows first before it starts itself on the system tray.
So here's the steps to set your Windows 8.1 PC to boot to Windows without any password.
1. Enter "control userpasswords2" in the Run menu (Win + R key), and press Enter.
2. Uncheck "Users must enter a user name and password to user this computer.",
enter your password when prompted.
Now try reboot the PC.
Tuesday, June 24, 2014
I found these happen to me if I leave OneNote open, and put the computer to hibernate / sleep mode. Somehow when the computer awake from sleep, OneNote will failed to sync due to the credentials is out of sync.
To avoid this I always close OneNote before putting the computer to sleep and often I simple shutdown the computer.
The fix to this is simply delete the cached credential used by OneNote to connect to server for synchronization, and re-login.
To do this, follow the following steps (Make sure you close OneNote before you proceed):
- Go to "Control Panel" > "User Accounts and Family Safety"
- "MicrosoftAccount" - the credential you use to login to Windows
- "OneDrive Cached Credential"
Saturday, February 22, 2014
Express.JS is a fairly new but increasingly popular Node framework for building web application. Being a Node based application means you spin up a web application in just few steps. In this guide, I’m going to show a quick-start on just how to do this on Windows.
- Install node.js. See this tutorial if you don’t already have node.js on your Windows.
- I’m using node v0.10.25, and express 3.4.8 on this guide.
- Create a directory for your new Express.JS app, run Command Prompt and cd into the directory. e.g. c:\users\<user name>\projects\fooApp
- Install express.js via npm ‘Node Package Manager’ that comes together with node.
- Once installation completed, you will be presented with a summary of what packages has been downloaded and it’s respective version.
- Verify the Express.JS is installed and check it’s version with the command:
Express will response with it’s version number.
- Before continue with creating an Express app, have a look at what options is available for creating an Express app.
- If you do not specify any options, express will use it’s defaults that you see from this help screen
- Go ahead and create an express app. Execute:
For the sake of simplicity, I’m not going to specify any options.
- Express will shows a summary of what has been created, and notice that there are 2 short instructions and the end of the summary. So we going to follow exactly that.
- Like any other node.js application, the package.json defines the basic information for fooApp and it’s dependencies.
- Once completed, npm will again shows a summary of what have been downloaded.
routes\index.js & views\index.jade – This is the default route that will be executed when browse to fooApp.
This give us an idea of what to expect to see when browse to the fooApp, and more importantly the basic idea of the MVC pattern in an Express.JS application.
The *.jade file is template using node template engine jade.
- It works, just like magic.
Thursday, February 13, 2014
- Go to http://nodejs.org/ and download the latest version of node. I'll proceed with the Windows Installer (.msi) version.
- You can also go to http://nodejs.org/download/ to download installer for other platform.
- Run the node-XXXXXXXXXX.msi
installer, and proceed to installation like a normal Windows application
(basically just Next... , Agree, Next … Finish). I'd strongly suggest that you
accepts all the default configurations and selections during the setup.
- Once installation completed, start a command prompt and type "node --version" and verify that it shows the version of node.
- I personally don't use any special tools to switch between version of nodes, I prefer install if using the same Windows Installer. (If you uses all the default settings during setup, upgrading is simple repeating the installation steps to overwrite the current version of node)
- If you want to use NVM (Node Version Manager) kind of tools that available to Linux users, you can use take a look at Nodist (https://github.com/marcelklehr/nodist). You can get Nodist via Chocolatey (http://chocolatey.org/).
Friday, January 3, 2014
The scenario that I ran into recently is we have some sample data that was enter to a system through a web interface, and for reports developments purposes we need those data to be shared among the team members, so we start to look into exporting those data out using SQL SELECT statements (with the correct WHERE clause) then converting them to equivalent INSERT statement; there are of cause several ways to do this, but I prefer the easy way, using SQuirreL SQL. The insert script can them be shared among the team members.
Following is the steps for completing this
- Install SQuirreL SQL
- Make sure you have JRE7 installed on your machine
- Depending on your database type you need to use different drivers
- Create the Alias to your database and enter the right connection strings (this can be tricky sometime)
- Select your alias and hit the Connect icon
Saturday, September 14, 2013
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\vX.X\Icons\
There are different sets of icons, namely the dark icons set for use with a dark windows phone theme, and light icons set for use with light theme, and there is also vector based icons set.
Note: You should only use the icons under the dark folder, during runtime, Windows Phone will automatically put colors on the icons according to the theme selection
Always looks at the icons set and see if you can reuse any of the icons before creating yours, chances are high, icons you needs are already there.
Below is a snapshot of icons available in SDK v7.1 (32 icons)
|icons for SDK v7.1|
Add there are slightly more icons for SDK v8.0 (37 icons)
|icons for SDK v8.0|
Also, check out how to create an app bar using XAML on MSDN.
Thursday, August 15, 2013
|Gmail's welcome message for Inbox tabs|
Right after you log in to Gmail, you will be introduce to to the new Inbox interface, where you will see 3 default tabs: Primary, Social & Promotions.
|The new Inbox tabs|
You emails will be parked under different tabs, this solely depend on what Google think they should be. (and there's an ads pretending to be an email)
|Moving email between tabs|
All that is good if you want to use tabs to organize your inbox; For me, the existing 'labels' feature are more than enough organize my emails, so I'm going to disable Inbox tabs.
To do this, navigate to the Settings icon on the top right corner and select Configure inbox.
|Configure inbox tabs menu|
You will be prompted with a dialogue box where you can then select which tabs you wants to enable or disable by checking or un-checking.
|Selection of tabs to enable / disable|
|Un-check Social and Promotions to disable those 2 tabs|
Cool, now I get back the old Inbox interface.
|Inbox without tabs|