Windows 8 introduced another interface to read emails, which for is kind of useless because it is too slow.
anyway, if you have a Microsoft account on the cloud and try to hook your Outlook, chances are you'll get an OST issue when you start your Outlook.
This is how I fix it:
1. Delete the original .ost created by Outlook (usually at C:\Users\User\AppData
Local\Microsoft\Outlook\yourmail.ost.
2. Go to Control Panel -> Mail -> Remove the account.
3. Create a new data point inside a user space (somewhere in C:\). Set as default
4. add back the account. You'll see the original location in Step 1 OST populated with the data.
5. Point back the data point from Step 3 to the original data point in Step 1.
Restart the outlook and it will read off from the original data point.
A place to breathe
Wednesday, June 25, 2014
Sunday, June 22, 2014
Installing packages on Debian Wheezy
If you done fresh install of Debian, and this is the first time you try to download some packages, don't worry about getting error. This is because, before you issue "apt-get", you should first update your package database. Having a root account, you just need to issue:
apt-get update apt-get dist-upgrade
Wednesday, June 18, 2014
Javascript for Cats
I stumbled upon this website, i think it's a cool way to learn Javascript:
Javascript for Cats
Javascript for Cats
Tuesday, June 17, 2014
Horrible traffic at LDP
Yesterday was very harsh for bus travellers.
I am currently taking a bus from Putrajaya to Kelana Jaya, and going back every day. The travel time takes 3 hours. It turns out that there's an accident along LDP.
I pity the bus drivers, the bus passangers, and myself. I have to stand up close to about 1 hour, sit downs, fell asleep, woke up, and everything in between. I even finish a book about how to write Cerpen (Cerita Pendek), which is nice. Maybe I will write some cerpen shortly while waiting for these buses to arrive!
I am currently taking a bus from Putrajaya to Kelana Jaya, and going back every day. The travel time takes 3 hours. It turns out that there's an accident along LDP.
I pity the bus drivers, the bus passangers, and myself. I have to stand up close to about 1 hour, sit downs, fell asleep, woke up, and everything in between. I even finish a book about how to write Cerpen (Cerita Pendek), which is nice. Maybe I will write some cerpen shortly while waiting for these buses to arrive!
Tuesday, June 10, 2014
Meteor Template
You can think of a template as a "app block" that you are going to implement. For example, I want to define a "leaderboard" app block in my website. The cool thing is you can even have app block within an app block.
In a typical meteor example, let's say you want to create a leaderboard for a game. You have a name, score, and a simple button that can increase the score of each an individual person in the list:
name1 score
name2 score
…
button
In a non-meteor app, you need to first create a form, and post a "request" to the server. Sounds familiar?
In meteor, what we do is we lump both client and server code in one leaderboard.js, and use the "Template" class to make changes to our app.
In our html code, we put the following:
{{> leaderboard}}
This means that there's a template called "leaderboard" that has been created and accessible by the client.
You create the template by defining the following in the HTML:
{{#each players}}
{{> player}}
{{/each}}
{{#if selected_name}}
{{else}}
{{/if}}
In our leaderboard.js. we access the leaderboard template like the following:
Template.leaderboard.selected_name = function () {
var player = Players.findOne(Session.get("selected_player"));
return player && player.name;
};
"Players" is a class that is instantiated using the MongoDB package like this:
Players = new Meteor.Collection("players");
We initialize all the names in the server code:
if (Meteor.isServer) {
Meteor.startup(function () {
if (Players.find().count() === 0) {
var names = ["Ada Lovelace",
"Grace Hopper",
"Marie Curie",
"Carl Friedrich Gauss",
"Nikola Tesla",
"Claude Shannon"];
for (var i = 0; i < names.length; i++)
Players.insert({name: names[i], score: Math.floor(Random.fraction()*10)*5});
}
});
In a typical meteor example, let's say you want to create a leaderboard for a game. You have a name, score, and a simple button that can increase the score of each an individual person in the list:
name1 score
name2 score
…
button
In a non-meteor app, you need to first create a form, and post a "request" to the server. Sounds familiar?
In meteor, what we do is we lump both client and server code in one leaderboard.js, and use the "Template" class to make changes to our app.
In our html code, we put the following:
{{> leaderboard}}
This means that there's a template called "leaderboard" that has been created and accessible by the client.
You create the template by defining the following in the HTML:
{{#each players}}
{{> player}}
{{/each}}
{{#if selected_name}}
{{selected_name}}
{{else}}
Click a player to select
{{/if}}
In our leaderboard.js. we access the leaderboard template like the following:
Template.leaderboard.selected_name = function () {
var player = Players.findOne(Session.get("selected_player"));
return player && player.name;
};
"Players" is a class that is instantiated using the MongoDB package like this:
Players = new Meteor.Collection("players");
We initialize all the names in the server code:
if (Meteor.isServer) {
Meteor.startup(function () {
if (Players.find().count() === 0) {
var names = ["Ada Lovelace",
"Grace Hopper",
"Marie Curie",
"Carl Friedrich Gauss",
"Nikola Tesla",
"Claude Shannon"];
for (var i = 0; i < names.length; i++)
Players.insert({name: names[i], score: Math.floor(Random.fraction()*10)*5});
}
});
Installing meteor
Meteor is a new JavaScript framework.
To install Meteor, run the following command:
1. curl http://install.meteor.com | /bin/sh
This command will do two main things:
1. it install a .meteor directory that includes:
a. "meteor" script
b. packages
c. releases
d. tools
2. it install the script in /usr/local/bin/meteor.
When you run the command above, /bin/sh will runs the /usr/local/bin/meteor once.
Inside the "tools" it installs "mongodb" that will be primarily used for the database. Currently, it only supports mongodb.
To uninstall meteor, remove the following:
1. script located at /usr/local/bin/meteor
2. directory in your home at ~/.meteor
Note that you need to be a "sudoer".
To install Meteor, run the following command:
1. curl http://install.meteor.com | /bin/sh
This command will do two main things:
1. it install a .meteor directory that includes:
a. "meteor" script
b. packages
c. releases
d. tools
2. it install the script in /usr/local/bin/meteor.
When you run the command above, /bin/sh will runs the /usr/local/bin/meteor once.
Inside the "tools" it installs "mongodb" that will be primarily used for the database. Currently, it only supports mongodb.
To uninstall meteor, remove the following:
1. script located at /usr/local/bin/meteor
2. directory in your home at ~/.meteor
Note that you need to be a "sudoer".
Subscribe to:
Posts (Atom)
About Me
- syamsulhasran
- I'm currently a software engineer. My specific interest is games and networking. I'm running software company called Nusantara Software.