Friday, December 16, 2011

Perl Convert Human Date to Unix Timestamp

#!/usr/bin/perl -w

use strict;
use warnings;

use Date::Parse;

my $date = "16 Dec 2011 10:30 pm";

my $time = str2time($date);

print "$time\n";

Perl Convert Human Date to Unix Timestamp

#!/usr/bin/perl -w

use strict;
use warnings;

use Date::Parse;

my $date = "16 Dec 2011 10:30 pm";

my $time = str2time($date);

print "$time\n";

Wednesday, December 14, 2011

Paypal Transaction Malaysia Contact Number

Your transaction is being updated to PayPal.
Please check your account balance at PayPal's website or call PayPal +
603 - 7723 7155.
If the transaction is not updated and your account has been debited,
the transaction amount will be refunded within 30 working days.

Tuesday, December 13, 2011

Understanding Pointers and Memory in C and C++

Pointers and dynamic memory allocation are some of the most confusing topics for new programmers! But don't be afraid of them--they're very useful concepts because they unlock the ability for your program to continually request and use new memory. In reality, a pointer is just a way to refer to the PLACE that a variable is stored, which lets you ask for more places to store variables.  Imagine a video game with unending levels--each level needs new memory. Pointers let you ask the system for new memory for each new level.

(Basic) Introduction to Pointers (C version) - What are pointers? Why do we care?

(Intermediate) - Memory Allocation Basics and, How to Allocate a Multidimensional array - Once you know the basics of what a pointer is, the next step is to use pointers to store arbitrary amounts of memory

(Intermediate)  - Understanding how Memory is really Laid Out - If you're having trouble getting your head around what memory really looks like--this article is the answer

(Intermediate)  - Debugging Common Problems with Memory Allocation - Pointers are great, but they do make it easy for your program to crash--learn how to fix it
 
(Advanced)  - Using auto_ptr to avoid memory leaks - Once you start allocating memory, you need to be able to free it, preferably automatically. Learn how in this article.

(Advanced, Linux)  - Using Valgrind to Find Memory Leaks - Learn how to track down memory leaks automatically using a free Linux-based tool

Pointers really are fun!
 
Alex

49 Dover St. #37, Somerville, MA 02144, USA



Saturday, December 3, 2011

Phone WIFI cannot cannot to Access Point

I got this problem when connecting my HTC Desire S to my new UNIFI
dlink dir-615 wireless router.

My Phone cannot detect my SSID.

How to resolve.

Login to the Wifi Router.
- Under WIFI Setup ( you want to choose manual setup)
- untick Enable Auto Channel Selection
- select Channel 1-11.

Save setting.

Tuesday, November 29, 2011

iOS 5.1 beta now available.

Apple Developer
iOS 5.1 beta now available
.
iOS 5.1 beta and Xcode 4.3 Developer Preview with iOS 5.1 SDK beta are now available on the iOS Dev Center. As always, we recommend that you test existing apps running iOS 5 to ensure there are no compatibility issues.
.

0

iOS 5.1 beta now available.


Apple Developer
iOS 5.1 beta now available
.
iOS 5.1 beta and Xcode 4.3 Developer Preview with iOS 5.1 SDK beta are now available on the iOS Dev Center. As always, we recommend that you test existing apps running iOS 5 to ensure there are no compatibility issues.
.

0

Proxmox installation display out of range

Reference:  https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/