Latest Post
Showing posts with label Developer. Show all posts
Showing posts with label Developer. Show all posts

How To Enable Facebook Timeline Right Now

Written By Unknown on Friday, 23 September 2011 | 03:04

Yesterday, Facebook announced Timeline, a crazy (and kind of creepy) omnibus look at everything that has ever happened in your Facebook lifespan. It’s like a story book of your life from the very beginning your joined Facebook

If you are impatient and want to experience the Facebook Timeline, you can turn it through the developer section of Facebook. The process is simple, takes a few minutes, and will require some patience as Facebook tidies up any lingering issues and bugs. Read on.

1. Visit the Facebook Developer page, and enable it for your account. If you aren't currently logged in, you will be required to do so.

2. The button to create a new app can be found in the top right corner of the Apps page. Make sure to give your app a display name and name space when requested (it doesn't matter what you enter here, no one will see this app, just make something up and continue). Accept the Platform Privacy agreement by checking the box. You will have to have a verified Facebook account, meaning you have either a credit card or phone number on file.


3. After the app has been named and terms accepted, you will then be taken to your shiny new apps' settings screen. You will see an Open Graph option on the left-hand side. Click on it.

4. You will need to define an action for your new app. You can enter whatever you like; no one is going to see this app when all is said and done, so don't fret too much over the details. (We entered "People can 'high five' a 'video'" as our action). Click on Get Started once you have entered your action.


5. Once you are presented with the screen above, you don't actually have to do anything, just scroll to the bottom and select Save Changes. You may have to do this on a couple different screens; just remember to scroll to the bottom and select Save Changes.


6. After you are taken back to the Dashboard for Open Graph, you have completed the setup process. Give it a few minutes, then go back to your Facebook home page. You should then see a big invite to enable Timeline. If you don't see it right away, give it a few minutes

That's it. Once you click on Get It Now, you will then be redirected to your new Timeline. Your Timeline is private, by default, for the time being. You can either edit it until you are ready to publish it, or you can ride it out and let Facebook publish it for you on September 29.

One more note: if you access your Facebook account from another computer, your Timeline is turned off. To get it back, enter the follow URL into your browser: http:www.facebook.com/[yourusername]?sk=timeline. Make sure to replace [yourusername] with your actual Facebook username.

Mozilla Releases Firefox 6 for Coders

Written By Unknown on Wednesday, 17 August 2011 | 08:25

firefox
Mozilla has officially released Firefox 6, offering a new JavaScript editor and several other tools aimed at web developers.

Over the weekend, the open source outfit posted the latest stable version of Firefox to its FTP servers, but the browser wasn't formally released on the web until Tuesday.

Firefox 6 is the second incarnation of the browser released under Mozilla's new quarterly development cycle. Previously, the organization rolled out a new Firefox every eighteen months or so, but then Google upped the ante.

With the latest version, Mozilla says, it has improved the startup time of Panorma, a means of organizing your browser tabs, and it has tweaked the "Awesome Bar" – the Firefox address bar – to make it easier to identify exactly where you are on the web. But the biggest changes are for developers.

Mozilla has added a text editor called Scratchpad that lets developers enter, execute, test, and tweak JavaScript code. The idea to offer an alternative to Firefox's Web Console or the Firebug command line, which are designed around a single-line interface. "Interaction with Scratchpad is quite different. It throws away the 'one line of input gives you a line of output' interaction in favor of a text editor that knows how to run JavaScript," Mozilla says.

But if you prefer the Web Console, Mozilla has updated it as well, improving the auto-complete tool and letting you change where the console is located. In the past, the console was anchored to the top of the browser window, but you can now move it to the bottom or open it in a separate window.

The open source outfit has also added a "Window.matchMedia" API to help developers optimize their site or web app across disparate platforms, and "Prefixed WebSockets" and "server-sent event" APIs, designed to facilitate communication between Firefox and back-end web servers.

Packed with all sorts of additional security and bug fixes, Firefox is available for Windows, Mac, and Linux. You can download it here.

Mozilla also released a new version of Firefox for Android on Tuesday, adding a new welcome screen designed to provide quicker access to various tools, working to improve image rendering, and rolling in a few tools for those building mobile web apps. This includes a "single touch events" API, for detecting screen touches and gestures, and IndexedDB API, which provides local database storage for apps that need to work offline.

The new Firefox for Android is now available from Google's Android Market.

The New C++: Lay down your knives, guns and clubs

Written By Unknown on Thursday, 4 August 2011 | 07:28

"The world is built on C++," said Herb Sutter. Considering he's one of the language's chief stewards, we question his impartiality. But he does have a point.

After more than 30 years – depending on whose numbers you swallow (these or these) – C++ remains one of computing's most popular programming languages, favored for its speed if not its simplicity.

Apple's Mac OS X, Adobe Illustrator, Facebook, Google's Chrome browser, the Apache MapReduce clustered data-processing architecture, Microsoft Windows 7 and Internet Explorer, Firefox, and MySQL – to name just a handful – are written in part or in their entirety with C++.

And while new languages have since been born, C++ has endured. Java is the only one to have outpaced it in popularity, according to the TIOBE Index. PHP, Ruby, and JavaScript? Sure, some might claim that they are the future, but C++ is the past, the present, and the future.

According to Sutter, C++ is on the verge of its biggest change in the 13 years since it became an official ISO standard, a change that will make it relevant for the next two decades.

The recently finished C++ ISO standard, with the working name of C++0x, is due to be published this summer, following the finishing touches to the ISO spec language and standards wonks agreed upon in March.

Sutter didn't create C++, but he is chair of the ISO's C++ committee in addition to being a noted C++ programmer, author, and chief native-languages architect at Microsoft.

herb_sutter.jpg

Sutter said: "This is the first major rev of the standard with new features since 1998." when the ISO ratified the first C++ standard.

The new C++ features many changes, but when asked to name the biggest, Sutter highlights those that address some of C++'s biggest bugbears: productivity and efficiency.

The complexity of working in C++ is one thing that Sun Microsystems' James Gosling tried to tackle when making a language that was more programmer-friendly; he cooked up Java, reputedly calling it C++ "without the guns, knives, and clubs." C++'s complexity might also be responsible for making C++ jockeys more prone to swearing than other coders.

Sutter lists auto keywords, lambda functions, and initializer lists as reasons you'll type – and swear – less. Some of the C++ clutter has also been stripped out.

"It really feels like you get the familiar power and way of talking about your code, but [it] feels like a fresh language that doesn't get in your way ... and [you] can write in much more expressive language," Sutter tells us.

Arguably the most significant changes will help C++ catch up to Java in popularity, now that C++ software can be built and run with fewer headaches in the rapidly dawning world of multi-core CPUs.

C++0x introduces a standardized memory model, something that Sun introduced in Java Standard Edition (Java SE) 5.0 in 2005.

Without a memory model, devs have either been building or picking their own libraries to achieve concurrency. Concurrency goes hand in hand with multi-core, as it means that chips with more than one core can run different threads in an application across their cores – or even on different servers. It helps handle the way the threads talk to the chip's memory.

The need for a consistent memory model is growing as more multi-core chips from Intel, AMD, and others become standard in mainstream computers from the PC on your desk to servers at Facebook to the smartphone in your hand.

Single-core eaten up

Sutter firmly believes that C++ must go concurrent, as the free lunch of single-core is over.

Sutter says that now is the time to establish concurrency in the standard, to make sure C++ runs efficiently and consistently everywhere. "You can [do], and people have done, just about anything in C++. The question in the standard is: 'What are you able to do that's portable?'" he says.

"The question is how have [data center and web] environments become standardized and formalized that it's time to standardize one common way of speaking to them and express those programs. Have things quieted down enough that now is the time to say: 'Here is the way'?"
The memory model means that C++ code now has a standardized library to call regardless of who made the compiler and on what platform it's running. There's a standard way to control how different threads talk to the processor's memory.

"When you are talking about splitting [code] across different cores that's in the standard, we are talking about the memory model. We are going to optimize it without breaking the following assumptions people are going to make in the code," Sutter said.
It's a small world, and more of it

Those assumptions? "It's a contact between the programmer and the optimizer of the system, to run across cores and different memories as long as we make the following assumptions the programmer makes," he says, "and on the programmer side, as long as he uses features in the right places, he's guaranteed not to tell the difference that the optimization has not changed the meaning of the program. That's what you need to have a usable programming language and still be fast and optimize."

Multi-core comes in chips, big and small, and is starting to make inroads into smartphones and tablets for the mainstream consumer. The iPad 2 in March was the first iOS device to use a multi-core processor – the dual-core 1GHz Apple A5. For systems built on Android – the fastest growing smartphone operating system, according to analysts – Texas Instruments, Qualcomm, and Motorola have gone dual-core, as well.

One factor that's helped C++ is its performance: as a native language, C++ talks to the CPU without going through an interpreter, unlike Java or even Microsoft's .NET, so it's generally considered fast – and performance is vital on devices such as tablets and smartphones.

According to Google, C++ is the fastest runtime language when compared to Java, Scala, and Go, although it does require more extensive tuning and more expertise to achieve such results.

james_gosling.jpg
No guns, knives, or clubs: Gosling's take on C++ versus Java

The rise in mobile devices means new opportunities for the new C++. For example, Google introduced the Android Native Development Kit (NDK) for use with the SDK to build "performance-critical portions of your apps in native code" – meaning C and C++.

An NDK update introduced in March 2010 supports OpenGL ES 2.0 and 3D elements, meaning Google threw open graphics for things like games to native C++. Apple's iOS for the iPhone and iPad, meanwhile, runs Objective C in addition to C++ and C.

According to Sutter, the combination of multi-core and native code like C++ will let devs squeeze the most out of the next generation of hand-held devices. "Managed languages like Java and .Net are still great, but the performance you give up when you use them is more important," he says. "Look at smartphones – almost every first release says 'managed only', but version two says 'native is important'. We want to wring the performance out of them."

The language may be fast, but the discussions that created the new C++ haven't been. Work on C++0x began in 2003, and took eight years to complete. You might ask how the standard can be relevant for both web-scale operations such as Facebook and palm-sized multi-function computing such as the iPhone, seeing as how work began on C++0x a year before the first Facebook page and four years before Jobs & Co. birthed the first iPhone.

Sutter answers that doubt by saying that the changes in C++0x are timeless, and part of an evolution affecting all languages, not just C++. "A lot of these [changes] are related to things that aren't moving targets," he says. "The 2003 proposals have been, and will be, useful for another 20 years."

He also reckons that the new C++ is ahead of the game because today's generation of C++ compilers lack the features needed to thoroughly milk what's in the new spec. In many ways this is a repeat of what happened when the standard was set in 1998. "We did nothing in the language to let compliers catch up, because [C++ in 1998] was ahead of where most compilers were. In 2003 we started again. Eight years later, we have a standard that most compliers don't support yet, but it's much closer," he says.

That said, Sutter believes that the version of the spec that will come after the one published this summer will be delivered more quickly. There won't be a quiet period of several years, he promises, saying that those attending the final C++0x meeting in March have begun pushing to start work on the next version.

"It'll be sooner rather than later," he says a little enigmatically.

Quicker, cleaner, Java-ier

And there could be more features from the world of Java added. Sutter expects garbage collection to be proposed – it was dropped from C++0x due to a lack of time. The Java Virtual Machine has had garbage collection for years. C++ fans can be touchy on this subject, saying there are lots of different ways to do garbage collection – but that's the problem.

In Sutter's world, the time has come to update the official standard to make sure that C++ software runs as efficiently as possible and in the same way on different platforms and chips. With a fresh proliferation of smartphones and tablets running a new wave of operating systems and chips on different form factors, that focus would seem to be right.

Interestingly, C++ was ratified as an ISO standard just as Java failed to get ISO pick-up after a campaign by Sun. Sun came up with the Java Community Process (JCP), to police compatibility as a step towards realizing the dream of "write once, run anywhere".

"C++ has for 13 years been an ISO and ANSI standard language – that defined the portable part," Sutter says. "Now it's time to extend that. ... You wouldn't add to the standard to extend it further if the language isn't used. That's the only reason you wouldn't want to make it stronger."

But as we know, C++ is far from unused. The world is programmed on it.

Jobs Kills Flash on Iphone, Ipod and Ipad

Written By Unknown on Saturday, 30 April 2011 | 07:28

Amidst all the wonderfully amusing half-truths and haughty hypocrisies dripping from his open letter on Adobe Flash, Steve Jobs has at least made one thing quite clear: his biggest beef with Flash is that it lets you create applications that run on all sorts of devices that weren't built by him.

And his biggest beef is also his biggest hypocrisy.

In his 1,700-word Thoughts on Flash missive, Jobs says his "most important reason" for banning Flash on the iPhone, iPod touch, and iPad is not that Flash sucks at online video and other web-based stuff. It's that Adobe wants developers to use Flash as a means of building native applications for his holy devices. This is such a problem, Jobs says, because Flash is a cross-platform development tool.

"We know from painful experience that letting a third party layer of software come between the platform and the developer ultimately results in sub-standard apps and hinders the enhancement and progress of the platform," he writes. "This becomes even worse if the third party is supplying a cross platform development tool. The third party may not adopt enhancements from one platform unless they are available on all of their supported platforms.

"Hence developers only have access to the lowest common denominator set of features. Again, we cannot accept an outcome where developers are blocked from using our innovations and enhancements because they are not available on our competitor’s platforms."

He takes a while to get there, but eventually he puts the notion into a nutshell. "Flash is a cross platform development tool," he says. "It is not Adobe’s goal to help developers write the best iPhone, iPod and iPad apps. It is their goal to help developers write cross platform apps." For all Jobs' talk of Flash being "closed and proprietary", plagued by security and performance problems, and, um, ill-suited to multi-touch, it all comes down to the fact that Adobe is interesting in helping developers write apps that run everywhere.

apple-kills-flash

His letter would seem to indicate that when Apple banned code translation on the upcoming iPhone OS 4.0, its primary motivation was to prevent Adobe from translating Flash script for use on the device. Which is hardly a surprise. Before the letter, others had guessed as much.

The ban arrived just days before Adobe introduced a new iPhone packager with its Flash Professional CS5 development kit. With a few lines tucked into the iPhone 4.0 OS SDK license agreement, Apple barred developers from accessing its APIs with anything other than the language he approves of. "Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited)," the change read.

Yes, we're still left to wonder whether this new language also buries development kits along the lines of Appcelerator's Titanium and Unity3D. These tools also translate codes written in other languages, but unlike Adobe's iPhone packager - which compiles directly into machine code - they make use of Apple's XCode development kit, compiling code into Jobs' beloved Objective C. Provided these kits are briskly updated when Apple introduces new APIs, they may satisfy the man.

These can be viewed as translation layers. And in his letter - echoing a private email he allegedly sent a few weeks back - Jobs makes it clear that he doesn't want a third party sitting between developers and his APIs. "If developers grow dependent on third party development libraries and tools, they can only take advantage of platform enhancements if and when the third party chooses to adopt the new features. We cannot be at the mercy of a third party deciding if and when they will make our enhancements available to our developers," he writes.

But the letter is aimed at Adobe. And only Adobe. In arguing that third-party development kits slow the adoption of Apple's APIs, Jobs calls out Adobe for taking so long to adopt Cocoa, Apple's latest set of APIs for the Mac. "Adobe has been painfully slow to adopt enhancements to Apple’s platforms," he writes. "Although Mac OS X has been shipping for almost 10 years now, Adobe just adopted it fully (Cocoa) two weeks ago when they shipped CS5. Adobe was the last major third-party developer to fully adopt Mac OS X."

Actually, Microsoft hasn't moved Office to Cocoa. And we would argue that Redmond is a major third-party developer. But as OSNews points out, the larger point to make is that Apple itself has taken its sweet time adopting Cocoa. The Mac's centerpiece application, Finder, didn't adopt Cocoa until Snow Leopard, nearly a decade after the API's debut. And Apple iTunes still doesn't use Cocoa. Neither does Final Cut Pro.

In short, with today's letter, Jobs has achieved the sort of haughty hypocrisy typically reserved for the likes of Eric Schmidt. Yes, there the irony that Jobs is accusing Flash of being "closed and proprietary." But the irony goes much further, rending his cross-platform argument in two.

Yes, Flash has its security and performance problems. And, yes, we'd much prefer a webworld that relies open standards. But with today's letter, Steve Jobs has shown that those are merely side issues. The primary issue is that Jobs wants to exert as much control as he possibly can over his devices - and over, well, developers. Notice that he calls them "our developers."

Well, that's part of the primary issue. The other - perhaps larger - part is that the man has some sort of personal vendetta against Adobe Flash. In so many ways, the letter is nonsense. But on this point, it's completely clear.
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Turorial Grapich Design and Blog Design - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger