Jan
12

Creating a SOCKS proxy

If allowed by your remote server, you can create a local SOCKS proxy so that traffic is redirected to your remote server.

ssh -C2qTnN -D 8080 user@remote_server

This will create a SOCKS proxy with port 8080 on your local computer wherein all traffic will be redirected to your remote server. Set your application to use local address 127.0.0.1 with port 8080.

May
12

Sitting is Killing You!!!

Sitting is Killing You

Mar
03

Apple Launches iPad 2

Apple today introduced iPad 2, featuring an entirely new design that is 33 percent thinner and up to 15 percent lighter than the original iPad while maintaining the same 9.7-inch LED-backlit LCD screen and up to 10 hours of battery life. iPad 2 also features Apple’s new dual-core A5 processor for blazing-fast performance and stunning graphics and now includes two cameras — a front-facing VGA camera for FaceTime and Photo Booth and a rear-facing camera that captures 720p HD video. iPad 2 is available in black or white, features models that run on AT&T’s and Verizon’s 3G networks, and introduces the innovative iPad 2 Smart Cover in a range of colors. iPad 2 will be available on March 11 in the US through the Apple Online Store, Apple Retail Stores, and select Apple Authorized Resellers.

Watch the keynote. See the unveiling of iPad 2.



Apple today introduced iPad 2, the next generation of its magical device for browsing the web, reading and sending email, enjoying photos, watching videos, listening to music, playing games, reading ebooks and much more. iPad 2 features an entirely new design that is 33 percent thinner and up to 15 percent lighter than the original iPad, while maintaining the same stunning 9.7-inch LED-backlit LCD screen. iPad 2 features Apple’s new dual-core A5 processor for blazing fast performance and stunning graphics and now includes two cameras, a front-facing VGA camera for FaceTime and Photo Booth, and a rear-facing camera that captures 720p HD video, bringing the innovative FaceTime feature to iPad users for the first time. Though it is thinner, lighter, faster and packed with new features, iPad 2 still delivers up to 10 hours of battery life* that users have come to expect. iPad 2 is available in black or white, features models that run on AT&T’s and Verizon’s 3G networks, and introduces the innovative iPad 2 Smart Cover in a range of vibrant polyurethane and rich leather colors.

“With more than 15 million iPads sold, iPad has defined an entirely new category of mobile devices,” said Steve Jobs, Apple’s CEO. “While others have been scrambling to copy the first generation iPad, we’re launching iPad 2, which moves the bar far ahead of the competition and will likely cause them to go back to the drawing boards yet again.”

With the new front and rear cameras, iPad 2 users can now make FaceTime calls to millions of iPhone 4, iPod touch and Mac users so they can see family and friends anywhere there is Wi-Fi. Photo Booth lets you apply fun visual effects, including eight photo special effects like Squeeze, Twirl and Kaleidoscope, to photos captured by either camera.

iPad 2 comes with iOS 4.3, the latest version of the world’s most advanced mobile operating system, with new features including faster Safari mobile browsing performance; iTunes Home Sharing; enhancements to AirPlay;** the choice to use the iPad side switch to either lock the screen rotation or mute audio; and Personal Hotspot to share an iPhone 4 cellular data connection over Wi-Fi.*** Additional iPad 2 features include a built-in gyro for advanced gaming; HSUPA support for enhanced 3G upload speeds on iPad 2 Wi-Fi + 3G on AT&T, and HDMI Video Mirroring that lets users mirror their iPad screen on an HDTV using an optional adaptor.

The innovative new iPad 2 Smart Cover provides protection for the iPad screen while maintaining its thin and lightweight profile. Designed with a unique self-aligning magnetic hinge that makes it easy to attach and remove, the new iPad 2 Smart Cover automatically wakes iPad 2 when it’s opened and puts it to sleep when it’s closed, and has a soft microfiber lining to help keep the screen clean. The Smart Cover also folds into a stand for typing or viewing videos and is available in vibrant polyurethane for $39 or rich leather for $69 in a range of colors, including a (PRODUCT) RED one which helps support the Global Fund to fight HIV/AIDS in Africa.

Apple also introduced two new apps: iMovie and GarageBand for iPad, both available on the App Store? for just $4.99 each. With iMovie, iPad 2 users can shoot and edit videos right on their iPad and post their movies to YouTube, Facebook, Vimeo and their MobileMe? gallery; watch them on their iPod, iPhone or iPad; as well as view them on their HDTV using AirPlay and Apple TV. GarageBand turns your iPad into a collection of touch instruments and 8-track recording studio, allowing you to perform with onscreen keyboards, guitars, drums and basses using multi-touch gestures–even if you don’t play a musical instrument.

iPad 2 runs almost all of the over 350,000 apps available on the App Store and there are more than 65,000 native iPad apps available from an incredible range of apps in 20 categories, including games, business, news, sports, health, reference and travel. The iTunes Store gives iPad users access to the world’s most popular online music, TV and movie store with a catalog of over 14 million songs, over 50,000 TV episodes and over 10,000 films including over 3,500 in stunning high definition video. The iBooks app for iPad includes Apple’s iBookstore, the best way to browse, buy and read books on a mobile device.

Feb
25

What is Thunderbolt?

THUNDERBOLT™ TECHNOLOGY

The Fastest Connection To Your PC Experience‡

From the company with the fastest processors

Thunderbolt™

comes the fastest way to get information in and out of your PC and peripheral devices.‡ At 10 Gbps, Thunderbolt™ technology gives you great responsiveness with high-speed data and display transfers in each direction—at the same time.‡ With a single cable, connecting a PC to multiple devices is simple, making it easy to get and see what you want, when you want it. Thunderbolt technology gives you incredible flexibility; high performance expansion is just a cable away for new and novel uses, now and in the future.

With the 10 Gbps performance of Thunderbolt products you can

  • Transfer a full-length HD movie in less than 30 seconds‡
  • Backup 1 year of continuous MP3 playback in just over 10 minutes‡

What is Thunderbolt technology and how does it work

Developed by Intel (under the code name Light Peak), and brought to market with technical collaboration from Apple. Thunderbolt technology is a new, high-speed, dual-protocol I/O technology designed for performance, simplicity, and flexibility. This high-speed data transfer technology features the following:

  • Dual-channel 10 Gbps per portThunderbolt cables
  • Bi-directional
  • Dual-protocol (PCI Express* and DisplayPort*)
  • Compatible with existing DisplayPort devices
  • Daisy-chained devices
  • Electrical or optical cables
  • Low latency with highly accurate time synchronization
  • Uses native protocol software drivers
  • Power over cable for bus-powered devices

Intel’s Thunderbolt controllers interconnect a PC and other devices,Thunderbolt controller chip transmitting and receiving packetized traffic for both PCIe and DisplayPort protocols. Thunderbolt technology works on data streams in both directions, at the same time, so users get the benefit of full bandwidth in both directions, over a single cable. With the two independent channels, a full 10 Gbps of bandwidth can be provided for the first device, as well as additional downstream devices.
Thunderbolt Process DiagramAnd all Thunderbolt devices share a common connector, allowing users to daisy chain devices one after another with interoperable cables.

What Thunderbolt means to users

Thunderbolt technology enables using the thinnest and lightest laptops and connecting to the extra power and performance of other devices when needed, using a single cable. Adding new performance devices is simple and easy—just plug and play—making Thunderbolt technology powerful and flexible.

Thunderbolt technology was specifically designed with professional audio and video applications in mind, where the inherently low latency and highly accurate time synchronization features play a crucial role.

Workstation performance expansion, now with a laptop

With Thunderbolt enabled products, video editing and sharing using

Thunderbolt technology for mobile

Intel® Quick Sync Video technology is even

faster and easier.

Data transfers for backup, sharing, and editing are tremendously accelerated using Thunderbolt products, significantly reducing times to complete these tasks.

And Thunderbolt enabled products are compatible with existing DisplayPort devices so you don’t have to go buy a new display to take advantage of a Thunderbolt technology enabled computer.

What does Thunderbolt technology mean for the PC industry

By tapping into the performance and protocols delivered over Thunderbolt technology, designers are free to innovate new PC products and configurations, no longer constrained to the boundaries of the chassis walls. Thunderbolt technology enables engineers to:

  • Design standalone performance expansion technologies commonly used in desktops and workstations, using existing native device drivers and interconnected by a single cable.
  • Introduce thinner and lighter laptops, expandable through Thunderbolt technology and its miniature connector designed for mobile applications, without sacrificing I/O performance.
  • Extend to reach other I/O technologies by using adapters that use widely available PCI Express controllers. It’s simple to create a Gigabit Ethernet, or FireWire, or eSATA adapters using existing device PCI Express drivers.

Thunderbolt products require a controller chip supplied by Intel and a small connector that would be included in platforms supporting this technology. The Thunderbolt controller chip provides protocol switching capabilities to support the two protocols over a single cable. Intel is making its controller chip available to the industry, and is working with other component manufacturers to deliver the Thunderbolt connectors and cables.

http://www.intel.com/technology/io/thunderbolt/index.htm

Feb
06

Local pharmacy selling samplers

A local pharmacy in Mantuyong, Mandaue City has sold me a sampler. They covered the “SAMPLE, NOT FOR SALE” labels on the medicine. I noticed it when the covering started to peel off and there was something written at the back.

Jan
15

Left brain or right brain?

If you see this lady turning in clockwise you are using your right brain. If you see it the other way, you are using left brain. Some people do see both ways, but most people see it only one way. See if you can make her go one way and then the other by shifting the brain’s current. BOTH DIRECTIONS CAN BE SEEN

Experimentation has shown that the two different sides, or hemispheres of the brain are responsible for different manners of thinking. The following table illustrates the differences between left-brain and right-brain thinking:
Left BrainRight Brain
Logical                         Random
Sequential                  Intuitive
Rational                       Holistic
Analytical                   Synthesizing
Objective                     Subjective
Looks at                       Looks at
parts                              wholes
Most individuals have a distinct preference for one of these styles of thinking. Some, however, are more whole-brained and equally adept at both modes. In general, schools tend to favor left-brain modes of thinking, while downplaying the right-brain activities.

Left-brain scholastic subjects focus on logical thinking, analysis, and accuracy.

Right-brained subjects, on the other hand, focus on aesthetics, feeling, and creativity.

If you look away, she may switch from one direction to the other. I found that if I just look at her feet or relax and look at the floor where the reflection shows, she will switch direction!

Jan
08

DiG for Windows

1. Download DiG9.7.2-P3

2. Extract all files to a temporary folder.

3. Move dig.exe to C:\WINDOWS\system32

4. Move the libraries (*.dll) to C:\WINDOWS\system

5. If you missed a library, a dialog box will appear saying which library is missing when you run dig.exe

Nov
22

IPtab in Mac OS X

the IPtab command in Mac OS X is broken…

+----------------------------------------------+
| addrs   bits   pref   class  mask            |
+----------------------------------------------+
Can't call method "is_zero" on an undefined value at /System/Library/Perl/5.10.0/Math/BigInt.pm line 1185.

To fix this error, you need to edit

/System/Library/Perl/Extras/5.10.0/Net/IP.pm
sudo nano /System/Library/Perl/Extras/5.10.0/Net/IP.pm

look for the line

if (!$int) {

replace with

if (ref($int) ne "Math::BigInt") {

save the file and run IPtab again. you should now be able to see the IP table list.

+----------------------------------------------+
| addrs   bits   pref   class  mask            |
+----------------------------------------------+
|     1      0    /32          255.255.255.255 |
|     2      1    /31          255.255.255.254 |
|     4      2    /30          255.255.255.252 |
|     8      3    /29          255.255.255.248 |
|    16      4    /28          255.255.255.240 |
|    32      5    /27          255.255.255.224 |
|    64      6    /26          255.255.255.192 |
|   128      7    /25          255.255.255.128 |
|   256      8    /24      1C  255.255.255.0   |
|   512      9    /23      2C  255.255.254.0   |
|    1K     10    /22      4C  255.255.252.0   |
|    2K     11    /21      8C  255.255.248.0   |
|    4K     12    /20     16C  255.255.240.0   |
|    8K     13    /19     32C  255.255.224.0   |
|   16K     14    /18     64C  255.255.192.0   |
|   32K     15    /17    128C  255.255.128.0   |
|   64K     16    /16      1B  255.255.0.0     |
|  128K     17    /15      2B  255.254.0.0     |
|  256K     18    /14      4B  255.252.0.0     |
|  512K     19    /13      8B  255.248.0.0     |
|    1M     20    /12     16B  255.240.0.0     |
|    2M     21    /11     32B  255.224.0.0     |
|    4M     22    /10     64B  255.192.0.0     |
|    8M     23     /9    128B  255.128.0.0     |
|   16M     24     /8      1A  255.0.0.0       |
|   32M     25     /7      2A  254.0.0.0       |
|   64M     26     /6      4A  252.0.0.0       |
|  128M     27     /5      8A  248.0.0.0       |
|  256M     28     /4     16A  240.0.0.0       |
|  512M     29     /3     32A  224.0.0.0       |
| 1024M     30     /2     64A  192.0.0.0       |
| 2048M     31     /1    128A  128.0.0.0       |
| 4096M     32     /0    256A  0.0.0.0         |
+----------------------------------------------+

Nov
03

FOR SALE: iPhone 4 16GB

BRAND NEW!!! FACTORY UNLOCKED!!!

FaceTime. Video calling is a reality.

See family and friends while you talk to them. No other phone makes staying in touch so much fun.

Retina display. 960 by 640 by Wow.

With a remarkable 960-by-640 resolution in a 3.5-inch screen, text and graphics look unbelievably crisp and sharp.

HD video recording. Life looks better in HD.

iPhone 4 lets you record and edit stunning HD video. So it’s the only phone – and camera – you need to carry with you.

for only P 40,000.00

*** The unit will arrive this 3rd week of November, brand new and sealed.

for more info, call or text JHUNAX @ (0922) 565-4747

Jul
08

Developing for the iPhone and Android: The pros and cons

What you need to know before writing apps for either platform — or for both

By Jonathan Hassell

Note: This story is excerpted from Computerworld.

Computerworld – Smartphones and their apps are the new way of the world, and developers are lured by their increasing popularity. But with two major platforms — Apple‘s recently upgraded and renamed iOS 4 and Google‘s Android — competing with one another, how does a developer choose between them?

In fact, how would developers interested in maximum exposure for their apps fare by targeting either — or both — platforms? What roadblocks are there, and how does a developer get around them? I’ll take a look at these questions and relay advice from experienced developers on both platforms.

 

Programming languages

For developers who have one app in mind and envision their code running on multiple mobile platforms, the going is rough in today’s world.

Android apps are written in the Java programming language. Many developers have made careers in enterprises by becoming very proficient in Java, so developing for the Android platform is a natural fit for those folks.

 
On the other hand, applications that run natively on the iPhone operating system are written in Apple’s Objective-C, a dialect of the more common C language that has elements of Smalltalk. (Technically speaking, Objective-C is a small, strict superset language on top of C, so any C program will compile with an Objective-C compiler, and a developer can include C code within an Objective-C class.) Developers who have spent their careers working with C and C++ probably won’t find Objective-C to be a difficult language to pick up, although there may be speed bumps along the way.

"There is no obvious way to write one set of code that targets both platforms," says Matthew Baxter-Reynolds, director of AMX Software Ltd., a software development firm in England, and author of the upcoming book Multimobile Development: Building Applications for Any Smartphone. "You cannot run Java on iPhone, and you cannot run Objective-C on Android."

 

Writing for multiple platforms

That was the story for a while — you had to develop your apps in the native language for each device. Over the past year or so, however, new tool kits and development platforms have emerged in the marketplace to make it possible for programmers create iPhone applications without having to study Objective-C.

Tool kits such as Rhomobile’s Rhodes, Nitobi’s PhoneGap, Appcelerator’s Titanium and Ansca’s Corona make it relatively simple to create apps that will run on some combination of the iPhone, BlackBerry, Windows Mobile, Symbian and Android platforms.

However, these emulators and runtime layers are new and not full-featured. While simple applications accessing the Web and bringing information back to the phone are appropriate for these types of frameworks, mobile apps relying on intense calculations and heavy database access — which includes some custom-written line-of-business applications — are not good candidates, because running a compatibility framework exacts an overhead penalty on a limited-power mobile processor that most users find unacceptable.

In addition, there are currently no good solutions for providing cross-platform support for a graphically intensive application, like a game or a video editor.

In other words, there’s still nothing to change the fact that you’re working with two different platforms and two different native languages. For now, the solution is to rewrite the application into the desired target platform’s native language.

 

Closed vs. open systems

Android is well liked by some developers because it provides an open development platform, one on which rich applications with potentially game-changing feature sets can be deployed. Developers can leverage the Android device hardware, create location-aware apps by accessing GPS and other sensory information on the device, set alarms to remind users of events, include notifications and other information on the status bar of the device, and more.

In contrast, iPhones have difficulty displaying multiple notifications, since applications are restricted to pop-up messages that are shown only one at a time. Additionally, developers on Android, at least in the United States, can leverage various carrier features across the spectrum of Android devices, whereas iPhone devices are limited to the network features that AT&T allows.

With the functionality of the Android 2.2 software development kit (SDK), a developer can build apps that use either the touch screen or the device keyboard. This is an important point, since Android developers have to accommodate a larger set of devices, all with different hardware configurations.

In a recent TechRepublic article, Justin James reported that Jason Chen, an Android developer advocate at Google, said the two biggest hurdles for first-time Android developers to overcome are understanding and handling the multitasking on the Android platform and dealing gracefully with app interruptions, like receiving an incoming SMS text message or phone call.

On the other hand, developers fare pretty well when writing apps for the iPhone, at least at the outset. Since the iPhone operating system is a closed system, created specifically by Apple for its own devices, developers have a known spectrum of devices to target, with a well-defined scope of capabilities and limitations.

Some developers report that this closed-system model makes for better usability — a trait for which Apple products have traditionally been lauded. With such tight integration of the phone, operating system and third-party apps, users’ defined expectations are met with a minimum of fuss around getting an app on the phone, what it does when it’s on the phone, and what features that app will support.

That’s a good thing from the drawing board perspective, but in some instances — for example, where your software could work better, or at least differently, with a different type of device — it limits the flexibility developers have in creating apps.


Learning resources and testing tools

Getting up to speed is an important part of the development process. Apple makes information for iPhone app developers available in many forms, including multimedia. "Important concepts are explained in videos, which makes grasping concepts easy," says David Green, a software developer at MAKE Technologies Inc. in Vancouver, British Columbia. "However, I did find that videos progressed slowly and I was watching for what seemed like hours to find information that should have taken minutes."

In contrast, Android’s support of open-source applications makes sample apps and other programs easy to learn from. "I also downloaded many open-source Android projects for ideas on architecture and API usage. This is an area where Android has the advantage, [since] with Apple’s previous NDA policy there isn’t much out there in terms of open source for iPhone," says Green.

Of course, the development environment and testing tools comprise a significant part of the overall experience for app creators. Green says that here, Android is the clear winner. "Android development leverages the excellent JDT tools, which are pretty much stock and standard with every Eclipse installation," he says. "I’ve used these tools now for many years and they’re excellent. Everything Java is indexed, the IDE has a rich model of the source code, and refactoring is so seamless that it has changed the way that I work."

On the flip side, Apple’s Xcode integrated development environment (IDE) is not up to par, according to Green. "Xcode is so shockingly bad that I almost don’t know where to start," he says.

Green suggests that at a minimum, Xcode should be improved to include a decent windows/editor management system for ease of use, integrated API documentation to save time, and content assistfunctionality that represents a larger set of coding styles than is available now. "Content assist provided by XCode is often wrong, and almost always suggests a small subset of what’s actually available," says Green.

 

No Java or Flash allowed?

Lately, much has been made of Apple’s public spat with Adobe over the stability and ultimate usefulness of the latter’s Flash Web technology. Apple has, in the past, similarly cast the Java language in a negative light. In a dictum likely coming directly from the top (Steve Jobs), the company decreed that the iPhone and its various brother and sister technologies will not support Flash or Java. During the recent rollout of iOS 4.0, Jobs was askedwhether this position was likely to change. "No," he said.

In an environment where just a few touches or clicks let you download, install and run an application, all done seamlessly and over the air, one can argue that certain reasonable protections must be employed to shield users from ill-intentioned apps. Still, that limits the flexibility that developers knowledgeable in those rich media platforms have to build applications for the iPhone, particularly when audio, video, animations and so on are core components of an app.

"At the current time, there are some question marks over Apple’s SDK licensing with regards to whether Apple will, on an ongoing basis, allow applications onto the App Store that have been written using intermediate layers or conversion tools," says Baxter-Reynolds.

"The message [Apple is] putting out there at the moment is that iPhone applications have to be natively written for that device and hence developers may struggle to maintain and develop a single set of code that includes iPhone in its set of target platforms," he says. "This is a particular shame because it will be for legal and not for technical reasons."

Approval and payment

The limitations on the iPhone platform haven’t slowed down the popularity of the phone itself, which continues to sell in large quantities, or the success of the iTunes App Store, which has more than 225,000 iPhone, iPod and iPad apps for sale.

Apple also offers an open API for developers who don’t want to submit their apps for review and approval on the App Store. These developers can host the packaged application on their own site and instruct users to visit that location to download and install the code. But clearly, by deploying iPhone applications this way, a developer loses out on the thousands upon thousands of eyeballs that exclusively surf the App Store and part with their money in that venue.

Developers who go the App Store route can sign up for the iPhone Developer Program Standard track, which allows them to receive 70% of sales revenue without paying any distribution costs for the application. To use the iPhone SDK, however, developers must pay an annual fee of $99, after which they receive the required digital certificate signature needed to sell the app on the App Store.

The approval process, which in 2009 was often a weeks-long affair, has been reduced to just a few days, although iPad-specific applications may facelengthier delays right now.

In contrast, the Android Market has no restrictions on the language apps are written in, the functions they perform or any other property of the app. Developers registering for the Android Market pay a one-time $25 fee to register, and 70% of subsequent revenues go to the developer. Developers are also free to publish the same apps in other application markets without facing any restrictions.

 

Looking toward the future

Ultimately, the arguments for and against the approaches taken by Apple and Google are irrelevant from the perspective of end users, the eventual consumers of the applications that the developers create. What matters to all but the tiniest minority of customers is the overall experience: the marriage of form and function.

Besides, the onward march of technology generally renders obsolete any arguments about tool kits and platforms. As Baxter-Reynolds notes, the upcoming HTML 5 standard will solve much of the Adobe-Apple argument for many developers.

"It’s not all doom and gloom," he says. "Both Android and the iPhone use the fabulous WebKit browser framework, which is pledged to fully support HTML 5 and which will eventually turn into a cross-platform application platform in its own right over the next few years." Developing in HTML 5, additionally, will mean widespread documentation for learning about the language, and freedom to develop HTML code in any environment that a developer wishes.

No matter the outcome, interesting times in the mobile app space lie ahead.

Jonathan Hassell is a frequent Computerworld contributor and is an editor for Apress Media LLC.

Older posts «