Friday, December 18, 2015

Node.js - MEAN stack

This is just another learning material on Node.jd which I recently gone through and liked it a lot.


Node.js is one of the most revolutionary web‐focused development frameworks to come out in quite a while. Its asynchronous nature and flexibility makes it relevant for building everything from Web applications to client tools, and since it is based on JavaScript, if you're already comfortable with the JavaScript language you can be productive with Node.js right away.

It is a workshop, online webinar "Jumping Off the Deep end of Node.js" with Kevin Griffin

In this workshop, you'll learn how to build a Web application from start to finish using MongoDB, Express/Kraken, AngularJS, and Node.js (the MEAN stack). Topics covered include building model classes, connecting to MongoDB with Mongoose, securing a site with Passport, building a shopping cart with AngularJS and Node.js RESTful services, creating controllers and routes with Express and Kraken, binding data to views using Dust.js, and much more. If you're looking to learn the ins‐and‐outs of Node.js then this course is for you!


Secure Your Computer

Did you ever happen to see this kind of message when browser over internet?

or did you ever feel the luckiest person when you read a sudden message that you won a lottery or something else.


just like the below one



If your answer is Yes, then you are one of stupid fellow internet user.

you should have to train yourself to use internet.

This kind of message is actually a threat which might install something serious on your computer then all of your personal data might be stolen or lost.

So, be careful when you are using internet.

You might be thinking if this is a threat, then how does this gets your location which says "Canada" for example and how does it knows you are using Chrome.

Well, that is quite simple for website developers. everything is available with a single dot. so don't get upset of their customized message. Just do not click any button and quickly close the browser tab or window.

Good Luck!

and happy browsing.

Monday, December 14, 2015

Session Alternatives

Session alternatives

  1. Cookies
    1. More scalable
    2. Free memory on server
    3. Persist. Does not delete after session expires.
    4. Mostly not enable in client browser
    5. More security risk than sessions it can be tracked by any virus. Use encrypted.
    6. Limited in size 4kb max
    7. Has to send to server with each request. Bandwidth cost increases.
    8. Can be delete by user/browser/any automated system. Limit is 20 cookies per domain.
  2. Querystring
    1. Cannot transfer lot of data
    2. Old asp way to communicate
    3. Security issue
  3. URL rewriting
    1. but it cannot be used for identification values or ids
  4. Viewstate
    1. Cannnot be used to communicate between pages.
  5. Hidden fields
    1. Cannnot be used to communicate between pages.
  6. Profile properties
    1. It also uses a session identifier along with database
    2. It remains after user leaves
    3. Similar as our tempt able but only difference is it is asp.net default mechanism
  7. Forms authentication with session id only and keep everything in the database.
    1. Scalable method
    2. By default store data in database.
    3. Data does not delete when session expires. Or web app restarted.
  8. Previous page directive. Or previous page references.
    1. This can be used only for postback urls changed to different url.
    2. A lot of code has to be written.
  9. Sessions

Cookies like sessions too, could be easily read. For sensitive information, better use Forms or Windows authentication. The most reliable way to keep user's information across sessions is to store them to database on server. You can do it manually, but it is usually more efficient to use Profile properties.

 

Profile properties also persist between sessions. Unlike cookies, data are stored on server side (in Sql Server database by default). Profile properties work with both authenticated and anonymous users and even support migrating of data when anonymous user log in.

 

Node.js for Dummies

I started to learn Node.js ma be five months back. Then by October I had enough knowledge to write something for beginners about Node.js, AngularJs, NPM but I could not have time for that. Something then put me in terrible busy days So I was not at all able to do so.
It happens with me or may be with many others, They want to learn a lot of things in a very less time at first GO. With me it happens always.

advertisements
As I am a Technologist. and for us - computer related professionals this is high requirement to keep us up to date. If we will not we will be finish. and in today's world I think it is applicable for everyone.
We should have to accept the change very soon to absorb lots of thing quicker.
So, Node.js is not very New now. but this is not late to get updated about technologies.
I am posting here few good tutorials:
Node.js, in the simplest most basic terms, is a framework to develop server-side applications through JavaScript.

In comparison to most other similar technologies, node.js is extremely well suited at doing things that send a lot of messages from one user to another, such as chat clients, Twitter-like services, game servers.
It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching.

Node.js is only an environment; you have to do everything yourself.


Node.js is pretty interesting because it uses Javascript. This is useful for two reasons. First, having the client side and server side code written in the same language creates convenience for writing interactive websites. Second, because browsers are so competitive, there are many fast implementations of Javascript, Node.js runs very quickly.
Here is a tutorial

Node is getting popular as a server-side platform and is used by IBM, Microsoft, Yahoo!, Walmart, Groupon, SAP, LinkedIn, Rakuten, PayPal, Voxer, and GoDaddy and many more.


Here is another Node.js tutorial.


I will very soon write about my own experience on using Node.js.

Saturday, December 12, 2015

How to Save Skype Video Messages

It happens that you received a video message on skype. You watched it and after some you tried you watch the same message again but it did not play.
Or when you watch the message you liked it and you wanted to save this.
But it did not because at some specific time it got expired.

There is a way you can save it. and can share it.

Following is the easy way to save it.
  • Step 1: Go to the link http://sourceforge.net/projects/sqlitebrowser/files/latest/download and download SQLite Database browser.
  • Step 2: Open SQLite Database Browser
  • Step 3: Open main.db for your skype account in SQLite Browser. That you can find from following location:
    C:\Users\[YourUserName]\AppData\Roaming\Skype\[YourSkypeID]\main.db
  • Step 4: Go to Browse Data
  • Step 5: Change the drop down option for the Table: to VideoMessages.
  • Step 6: Under Author column, search for the sender id who send video.
  • Step 7: Copy the link in vdo_path.
  • Step 8: Paste the link in Chrome or any other browser address bar.
  • Step 8: Right Click on the video, and save it.

Please note, you should have play the video in the skype first before open the main.db in SQLite.

Social Network - Linkedin

This is kind of strange on a very popular social network site that It delivers somehow wrong information to its users.

Did you ever post a link or something on Linkedin, then on the next day you noticed that the view of that post is so much huge? and then that makes you happy?

Actually, on linkedin the post views count does not mean that your contacts have actually clicked on the link and have view it. It delivers something else.

On linkedin What happens is, it just counts the total number to times your post has been loaded on the page on others home page. irrespective of the user has put some attention to it or not.

You can confirm this by posting a link after taking it short URL from google url shortener preferably with an image. because mostly people put attention to the images than to text. Next day or after some time check what google shows and what count does linkedin show.

At some point linkedin is showing Okay count. but same time it conveys wrong message to the one who posted it because it counts even if your post loaded when it is not on the view able screen.

Friday, December 11, 2015

by Steve Forte

There are many people around here wants to start their own business they should keep in mind that:
If you are thinking of doing a startup, remember you can’t do it alone. If you are non-technical, you can’t outsource your core intellectual property. Besides if you can’t convince a techie with a well paying and stable job to quit and work at your high risk venture for free, then well, you probably don’t have enough sales skills to convince customers to buy your revolutionary new product.

Wednesday, December 9, 2015

JollyChic.com - Reviews on Purchases from Dubai UAE

When I visited this site very first time. I was amazed to see so much varieties of the dress and colors. So I cannot stop myself to buy some.
I bought dress online from jollychic.com only because of the different varieties of colors they have. I like knee length flowy dresses. So I spend a lot of time first to choose the best color and dress. I purchased around eight (8) dresses from this site with different cute colors. Most of the dresses I choose were from Friday sale so the price I paid was actually less than the original price.
After the purchase, First thing I thought was. Oh! This was my first order. I should have take advantage of their promotion that on First order 30% Off. This 30% off is based on each item not a total.
Anyways I purchased, paid so I did not return. Although as per their policy you can return within 24 hours before it has prepared. I did not knew this thing so I did not return.
Then, I keep on waiting to see the dress.





The delivery time was OK. It was delivered 2 days late as per actual delivery time.
Now, I opened the parcel. Take out dresses one by one. I was SURPRISED to see that the quality of the dress was not so good as compared to the price.

Here are a few reviews I noticed.

Quality

For example, There was one dress the price was 99.9 AED. but the quality of the dress was so bad that similar kind of dress you can easily find in UAE in less than 50 AED. The dress actually looks like hardly of 40 AED only. and I paid 99.9 on this website. For this particular dress I was so amazed because this was the dress I choose out of sale price and I paid full amount. With this price you can find better dress in Splash, MAX, ZARA OR ANY OTHER store in UAE.

Fit

The other thing, I noticed in almost all the dresses was: The size. The Size, I ordered was Good for me. I used to buy same size here. but from this site. except one all dress are smaller and too much fit.

Price

EXTREMELY TOO MUCH. The price as compared to quality is not worth. Here in UAE you can easily find a dress much better than on this site. If you are ordering dress from UAE I SUGGEST do not order because the price on this site are extremely high as compared to the quality.

Length

I suggest order one Extra bigger. If you think 30 INCHES length is ok for you, go for the next close and available length. Like if 32 is available or 33. if not available then choose another dress. either it would be too long or too short.

I can say is that the size of the dresses mention in the site is very different than the actual is. For example 34 length they menion and i measure it is less than 30.

Order details

Item Info Price Price in AED Review
X
Short Sleeve O-Neck Elegant Design Chiffon DressItem ID: 078242100TK
Color:Army Green
Size:US 6(Bust 34 ¾
Shoulder 13 ½
Largestwaist 27 ¼
Smallestwaist 41 ¾
Smallestlength 28 ¾
Largestlength 30 ¾)
US$ 17.99 66.07
X
Exquisite O Neck Patchwork Long Sleeve Lace DressItem ID: 0FE2411070Q
Color:Pink&white
Size:US 6(Bust 36 ¼
Waist 31 ½
Shoulder 14 ¼
Length 34 ¼
Sleeve 23 ½)
US$ 6.99 25.67
X
Sleeveless Print Colorful Stretch Mini DressItem ID: 0PN2521070Q
Color:Blue
Size:US 4(Shoulder 13 ¾
Length 34 ¾
Bust 36 ¼
Waist 26)
US$ 11.99 44.03 this one i choose just to make enough order price to avoid shiping charges.but later i thought 44.03+14.65=58.68 with this price i could have bought something else.
X
Special Design V-neck Mid-waisted Button Woman OL DressItem ID: 09P2421037G
Color:Green
Size:US 6(Shoulder 13 ¾
Length 37 ¾
Bust 33
Waist 27 ¼)
US$ 18.99 69.74
X
Patchwork Sheer Short Sleeve Lace DressItem ID: 0FL252104Z1
Color:Blue
Size:US 4(Shoulder 14 ½
Length 33 ½
Bust 34 ¾
Waist 28 ¼)
US$ 10.99 40.36
X
Plaid Long Sleeve Polo Collar Women DressItem ID: 0PV25310862
Color:Grey
Size:US 2(Bust 35 ½
Shoulder 13 ½
Length 31
Sleeve 22 ½)
US$ 10.99 40.36
X
Hot Sale Floral Sleeveless Chiffon DressItem ID: 0FE252101A0
Color:Black&white
Size:US 2(Bust 34 ¾
Length 33 ¾)
US$ 3.99 14.65 this one i choose just to make enough order price to avoid shiping charges. but later i thought 44.03+14.65=58.68 with this price i could have bought something else.
X
Solid Half Sleeves Lace Aline Dress With SashItem ID: 08D25210706
Color:White
Size:US 4(Length 34 ¼
Bust 34 ¾
Waist 27 ½
Hip 43 ¼)
US$ 26.99 99.12
Total items: 108.92
Product Total: US$ 108.92
Shipping Cost: US$ 0.00
Bonus: -US$5.00
Order total: US$ 103.92

Monday, December 7, 2015

A Little About Chess

I am not a Chess Master but I love to play and know what my brother told me about chess i.e. a few tricks and all the right rules of playing chess.


I want to be a Chess Master. I wish If my brother could live a little long so that I would too. Yes, my brother was a Chess Champion and won lots of Chess Championship from school till college, then he couldn't live.
I used to play Chess online and tried to learn from the experts, but those who knows how to play chess and know more tricks than me, they don't want to play with me - with someone who is kind of a beginner. and I don't want to play with someone who knows less than me.
I was exploring on Chess and I found few things for those who want to play chess. Here they are listed.

Thirty Rules of Chess

TEN OPENING RULES

  1. OPEN with a CENTER PAWN.
  2. DEVELOP with threats.
  3. KNIGHTS before BISHOPS.
  4. DON'T move the same piece twice.
  5. Make as FEW PAWN MOVES as possible in the opening.
  6. DON'T bring out your QUEEN too early.
  7. CASTLE as soon as possible, preferably on the KING SIDE.
  8. ALWAYS PLAY TO GAIN CONTROL OF THE CENTER.
  9. Try to maintain at least ONE PAWN in the center.
  10. DON'T SACRIFICE without a clear and adequate reason.

For a sacrificed pawn you must:

  1. GAIN THREE TEMPI,
  2. DEFLECT the enemy QUEEN,
  3. PREVENT CASTLING,
  4. BUILD UP a strong attack.

TEN MIDDLEGAME RULES

  1. Have all your moves fit into definite plans.

    Rules of Planning:

    1.    A plan MUST be suggested by SOME FEATURE IN THE POSITION.
    2.    A plan MUST be based on SOUND STRATEGIC PRINCIPLES.
    3.    A plan MUST be FLEXIBLE,
    4.    CONCRETE, and
    5.    SHORT.

    Evaluating a Position:

    1. MATERIAL
    2.    PAWN STRUCTURE,
    3.    PIECE MOBILITY,
    4.    KING SAFETY,
    5.    ENEMY THREATS
  2. When you are material AHEAD, EXCHANGE as many pieces as possible, especiallyQUEENS.
  3. AVOID serious pawn WEAKNESSES.
  4. In CRAMPED POSITIONS free yourself by EXCHANGING.
  5. DON'T bring your KING out with your OPPONENT'S QUEEN on the board.
  6. All COMBINATIONS are based on DOUBLE ATTACK.
  7. If your opponent has ONE or MORE pieces EXPOSED, look for aCOMBINATION.
  8. IN SUPERIOR POSITIONS, to ATTACK the ENEMY KING, you must OPEN a file (or less often a diagonal) for your HEAVY PIECES (QUEEN and ROOKS).
  9. IN EVEN POSITIONS, CENTRALIZE the action of ALL your PIECES.
  10. IN INFERIOR POSITIONS, the best DEFENSE is COUNTER-ATTACK, if possible.


TEN ENDGAMES RULES

  1. To win WITHOUT PAWNS, you must be at least a ROOK or TWO MINOR PIECES ahead (two knights excepted).
  2. The KING must be ACTIVE in the ENDING.
  3. PASSED PAWNS must be PUSHED (PPMBP).
  4. The EASIEST endings to win are PURE PAWN endings.
  5. If you are ONLY ONE PAWN ahead, EXCHANGE PIECES, not pawns.
  6. DON'T place your PAWNS on the SAME COLOR SQUARES as your BISHOP.
  7. BISHOPS are BETTER than KNIGHTS in all but BLOCKED pawn positions.
  8. It is usually worth GIVING UP A PAWN to get a ROOK ON THE SEVENTH RANK.
  9. ROOKS belong BEHIND PASSED PAWNS (RBBPP).
  10. BLOCKADE PASSED PAWNS with the KING.

Code - Compile And Run

For programmers, a lot of time they needed to execute a small code snippt. Just to make sure if their logic will work fine or not. For the same sometimes they needed to either create a sample page, sample project or execute the whole application a 100 times for complex logic. Here I will talk about the string manipulation for example. or regex test.
I have found a quite nice site to compile and execute a small piece of code just to check if it is ok or not. then once all is ok we can put it in out actuall applicatin and test the actual flow. That saves our lot of time.





Here is the site https://www.codechef.com/ide





Practice
Prepare your self for various kinds of programming challenges by solving practice problems of varying difficulty.
Compete
Compete against other techies in our monthly programming contests, gain recognition and win cool stuff. Coding contests begin on the first of every month.
Discuss
Hang out with other coders, discuss algorithms, get your questions answered and be inspired.

CodeChef - A Platform for Aspiring Programmers

CodeChef was created as a platform to help programmers make it big in the world of algorithms, computer programming and programming contests. At CodeChef we work hard to revive the geek in you by hosting a programming contest at the start of the month and another smaller programming challenge in the middle of the month. We also aim to have training sessions and discussions related to algorithms, binary search, technicalities like array size and the likes. Apart from providing a platform for programming competitions, CodeChef also has various algorithm tutorials and forum discussions to help those who are new to the world of computer programming.

Practice Section - A Place to hone your 'Computer Programming Skills'

Try your hand at one of our many practice problems and submit your solution in a language of your choice. Our programming contest judge accepts solutions in over 35+ programming languages. Preparing for coding contests were never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming challenges that take place through-out the month on CodeChef.

Compete - Monthly Programming Contests and Cook-offs

Here is where you can show off your computer programming skills. Take part in our 10 day long monthly coding contest and the shorter format Cook-off coding contest. Put yourself up for recognition and win great prizes. Our programming contests have prizes worth up to INR 20,000 (for Indian Community), $700 (for Global Community) and lots more CodeChef goodies up for grabs.