Coding

Latest

  • Symbian^3 web app development tools come out of beta, aim for standardized simplicity

    by 
    Vlad Savov
    Vlad Savov
    04.30.2010

    Has the Nokia N8 made a Symbian^3 believer out of you? If so, you'll be glad to know the beta tag has been peeled off the web application development tools for the platform, which -- according to Executive Director Lee Williams -- provide "an ideal entry point" for coders of all skill levels. This is because the primary languages spoken are HTML, CSS and JavaScript, familiar to almost anyone who's tried to create for the web, and with just a little extra JavaScript exercise, you're promised access to the phone's contacts, camera, accelerometer, and location. It sounds all kinds of refreshing, but the usefulness of this tool set and the entire environment will be determined by what people produce with it -- and to that end we've provided you with a link to the downloads page (Windows, Mac and Linux users are all being served) where you can get your Symbian dev career started in earnest.

  • Voices that Matter iPhone: How Ben Newhouse created Yelp Monocle, and the future of AR

    by 
    Mike Schramm
    Mike Schramm
    04.26.2010

    Yelp's Ben Newhouse (who is actually still a student at Stanford) gave a fascinating talk this weekend at the Seattle Voices that Matter iPhone conference. He talked about Yelp Monocle, the augmented reality (AR) iPhone app that he created, and revealed the surprising (and somewhat scandalous) story behind what's known as the iPhone's first-released AR app. He gave some technical details about how he designed the code to make it all run and speculated a little bit about where augmented reality and camera vision are headed. It was very interesting stuff. Newhouse seems like an extremely smart, young guy who already knows this burgeoning technology very well. When it comes to augmented reality, it certainly seems like the iPhone is leading the charge as a relatively cheap device that will eventually replace more expensive and cumbersome technologies.

  • SweetSpotter keeps your music coming at the right angle, regardless of flailing

    by 
    Darren Murph
    Darren Murph
    03.26.2010

    For years now, home theater and / or entertainment rigs have been built so that your sofa, recliner or aged bar stool was right in the sweet spot when it came to audio distribution. In short, you built your system around your seating arrangement. With the introduction of Nintendo's Wii, Sony's PlayStation Move and Microsoft's Project Natal, folks aren't staying put in the same place as often, and that -- friends -- has created a problem in search of a solution. The fine gurus over at TU Dresden believe that they have the answer, and even if it fails miserably (highly doubtful, mind you), who could really harsh on a product called the SweetSpotter? The software is designed to work in conjunction with your webcam (or console camera, in theory), and as the sensor tracks your movement in real time, the code "adaptively adjusts the sweet spot of your stereo play back system to your current listening position." In short, it results in "correct stereo phantom source localization independent of your listening position," and frankly, it just might change your life. The code itself can be downloaded for free down in the source link (it's open source, so pass it along while you're at it), and if you end up creating a plug-in to use this in your favorite gaming scenario, be sure to drop us a line about it.

  • Linux Foundation sets up Job Board, cites 80 percent growth in Linux-related jobs

    by 
    Vlad Savov
    Vlad Savov
    01.15.2010

    As the Linux Foundation tells it, the Linux-related job market is today 80 percent larger than it was five years ago. Whereas other industries have had to shed workers in the current recession, the Foundation is hopeful penny-pinching measures might actually encourage businesses to transition to Linux-based software and thereby further stimulate employment opportunities within the sector. We're not told exactly what "Linux-related" means in this context, but the newly set up Linux.com Job Board indicates that the vast majority of new openings are for system admins. That's right, the corporate world is crying out for more geeks -- won't you answer the call? [Thanks to Overlord59 for the Tux images]

  • Friday Favorite: Snippets

    by 
    Brett Terpstra
    Brett Terpstra
    01.08.2010

    Welcome to Friday Favorites! Every Friday, one of us will get all sloppy over an app, web service, or Mac feature that makes us grin like an idiot every time we use it. This week, Brett tells us about his favorite new snippet manager. If you write code, you probably reuse blocks of it. Whether you're working in HTML, CSS, AppleScript, Objective-C ... it's all code, and a really well-written chunk of it deserves to be used again. You can put a few of your most commonly used snippets into TextExpander, sure, but the biggest problem is finding that function you know you wrote last year but haven't used since. This common little conundrum has given rise to some very elegant applications that aim to solve this and other related problems. There have been a few great options lately for snippet organization. CodeCollector Pro has been my long-running favorite, with Snippet a close second. I like Snippet's sexiness, but miss having a nice, big, multi-pane window to organize with. CodeCollector Pro is a solid workhorse, but actions such as adding new snippets are a little more cumbersome than I'd like. I often just clip things into Evernote when I'm in a hurry ... Then, along came Snippets (note the 's' that differentiates it from Snippet) to steal my heart. It's got Code Collector's utility, Evernote's searchability, and it's got an extra dash of sexy, ala Snippet. It has the standard sytax-highlighted code viewer, and a sidebar with groups and folders. Snippets are classified by language, which can be set in a dropdown or by just dragging a snippet to a language folder. It functions on a hybrid folder/tag concept, which happens to be the way I do just about everything. Each snippet can have a description, as well as labels (tags) and all full-text indexed for searching. You've also got groups, which are like folders, but a snippet can belong to multiple groups. It has smart folders which, as you know, function like automatic groups with boolean criteria. On top of all that, folders, smart folders and groups can all be gathered hierarchically in nested folders, with parent folders showing all of the contents of their child folders. Whew!

  • TUAW is now on GitHub

    by 
    Joachim Bean
    Joachim Bean
    10.13.2009

    As posting code on the blog can sometimes can get very cluttered, we have just set up a GitHub account for TUAW to make everything better and easier for everyone. This is where you'll be able to find code for our developer-related posts. We'll try to get some projects hosted in there very soon, so don't worry that it's empty now! If you haven't heard of it, GitHub is a hosting site for git revisions, which makes it a great place to host and interact with code of all kinds. You can find our profile at http://github.com/tuaw today. What would you like to see on TUAW for iPhone/Mac development? Let us know in the comments below!

  • Code something for Ryzom's new API, win cash!

    by 
    Seraphina Brennan
    Seraphina Brennan
    07.21.2009

    If you're bored, have some free time, and enjoy coding programs then do we have the contest for you! The team over at Ryzom have put together a brand new API for their game, and they're celebrating its launch with a contest for budding developers! Even better, the prizes are all monetary!What the Ryzom team is looking for is people who can utilize their new API for whatever gadgets, tools, or websites they can dream up. The winning use of the API will be the one that displays innovation, usefulness, ease-of-use, multilingual support, validity and completeness, and optimized coding. Popularity, stability, and availability will be taken into consideration as well with all coding entries.The winning entry will receive 3,000 euros (approximately 4,200 US dollars), second place will receive 1,000 euros (1,400 US dollars), and third place will be netting 500 euros (700 US dollars.)So what are you waiting for? Get coding![Thanks, J3kyll!]

  • Tweetcraft lets you tweet from Warcraft

    by 
    Mike Schramm
    Mike Schramm
    07.02.2009

    Twitter is all the rage right now -- it's the easiest, quickest way to let anyone interested know what you're up to, and because it's so popular, it's also no surprise that we've seen quite a few Twitter and World of Warcraft mashup apps. wowTwitter is a separate update service just for news about your characters, WoWHorn is a script that lets you Tweet when you hit certain achievements, and though services like PlayXpert have let you Twitter from the game before, TweetCraft appears to be the first standalone application designed to do just that. After installation, it works the same way as an addon, though it's actually not -- addons can't directly connect to the Internet, so TweetCraft instead uses an outside script to read and write tweets into settings files, which the ingame addon then reads to get and send your tweets. It gets complicated, but you don't need to know all that to install and use it -- when you run the setup app, it'll put everything in the right places for you.As with all third-party applications, you should install and run this one at your own risk -- the FAQ has more information if you're wondering how things are stored or whether the app is secure. The app is completely open source, which means anyone who wants to can read the code, so if the author of the app was doing anything sneaky, we'd know about it. And yes, right now the app is not violating the ToS, but of course that's enforced according to Blizzard's whims, so again, use it at your own risk. If you're not interested in using this app, you can always update your status here on WoW.com using our own addon -- it's not Twitter, but it will let your friends keep track of you in Azeroth!But TweetCraft does look to be a clever, solid way to access and post to Twitter from right inside your World of Warcraft game. If you've been looking for a one-stop solution like this, there you go. Do be sure to follow us over on Twitter, too, if you haven't yet -- you never know when we might tweet something you'll want to see.Update: Apparently the app on default tweets all kinds of things you probably don't want to (like changing zones). There is probably a settings switch somewhere, but as always, user beware.

  • Beware the coming Twitpocalypse

    by 
    Mike Schramm
    Mike Schramm
    06.12.2009

    Oh, computers. Every time we think we've figured you out, you come up with another number-related disaster for us to fear. This time around, it's the Twitpocalypse -- apparently Twitter decided to use a unique identifier in their API for each separate tweet that goes out, and come sometime this weekend, the number will reach 2,147,483,647 and keep going. Which just happens to be too much for the variable that holds it, and that means that many of your favorite external Twitter clients, from Tweetie to Twitterific, to all of the other magic Twitter apps out there, could go down in a ball of numerically-ignited flame.The good news is that just like the Year 2K panic, this one is more or less unfounded. We've already spoken to our friend Ged Maheux of Twitterrific, and he says that the problem has already been fixed in the latest version of the software. We'd imagine that most of the really big Twitter apps have already addressed the issue, and taken care to make sure they'll still work (either that, or they'll get on it ASAP). Plus, a Twitter outage wouldn't really be anything that might cause riots in the streets (or different from the usual downtime, actually -- rimshot!).But it is funny and strange that as long as we have people who can't foresee the future (so, all of us) programming computers, we'll keep running into problems like this. If your favorite Twitter client goes out on Saturday, just find a basement to stay in, stock up on shotgun shells and water, and put your head between your legs -- help is on the way soon.

  • Workaround for WoW.com addon's /note issues.

    by 
    Alex Ziebart
    Alex Ziebart
    05.20.2009

    Since we launched WoW.com late last night, we've had numerous people writing in about an issue that has cropped up regarding one of the aspects of our tracking addon. We'll continue to respond to those reports personally as necessary, but we figured it would be wise to get the issue and the fix out in the open right off the bat.The command that's used for the WoW.com addon's Adventurer Notes function, /note, is a fairly common command used in various addons. For example, Cartographer makes use of it. Since the command overlaps between addons, it causes conflicts and one addon ends up blocking the others from using it. If you've run into this issue, there's a very easy workaround if you're not afraid to look at a little LUA. Don't worry, you won't need to do any serious coding. It's a simple fix, I promise.

  • WoWHorn tweets your achievements

    by 
    Mike Schramm
    Mike Schramm
    05.06.2009

    This is an interesting little system -- unfortunately, it's probably a little too complicated for most people to use, but the functionality is intriguing. WoWHorn is an open source application that basically monitors your achievements on the Armory, and will Twitter about it when you earn a new one. To get it up and running, you'll need the application itself of course, and you'll probably also need Ruby installed if you don't have it yet (OS X has it already, I believe, and Linux may as well). I don't think you'll need to input your actual WoW password (the program should be able to look up your info with just your character name and realm), but you will have to punch in your Twitter credentials if you want it to tweet for you. Once you've got everything working (and you'll have to ignore the errors, I got quite a few), you should see a tweet pop up in your feed whenever you get new points ingame.If you're a programmer type, you can read about the making of the app, and though, as I said, the app is probably a little too hacky for widespread use (it's not quite ready for primetime yet, and do you really want to run a separate application just to twitter about your achievements for you?), the functionality is the thing here. It would be cool for Blizzard to have the Armory interact officially with other networks on the Internet, either Twittering about your character or sending your profile out to Facebook.Not that anything like that should distract them from future content, of course. But if they want free advertising, allowing their subscribers to more easily share and disseminate information about their characters won't hurt.

  • Randomizing the Strand of the Ancients spawn points

    by 
    Mike Schramm
    Mike Schramm
    04.29.2009

    Strand of the Ancients is a battleground that's gotten relatively short shrift lately -- it came along into the game with the crown jewel of Wrath PvP so far, Wintergrasp, and while it's still frequented on honor weekends (it's one of the best ways to farm honor, actually) and for achievements, lots of players, specifically those on the Horde, aren't happy with it. Why? Because right now, Alliance always starts the battle on offense first. The battle is a regular attack-and-defend map, and Alliance reportedly has a "significant advantage" by beginning on the attack side: they only have to play offense for a few minutes, and then defend for the same amount of time, while Horde have to defend the whole first round and then attack if they want to win. Plus, the battleground doesn't always start full, which means whoever attacks first usually is fighting fewer defenders.So how hard would it be to throw a coin flip in there and randomize who starts first? The good news is that Blizzard is working on it, but the bad news is that it's taking longer than they thought. It's not as simple, unfortunately, as choosing a faction randomly -- there are apparently mechanics in the spawn points that make it difficult for them to randomize who shows up on the moving ships. Go figure? We've never understood how Blizzard's code works, and we're not starting now.But again: Zarhym says a fix is incoming in a future patch. So if you're Alliance and you want to do some honor farming, better start now.

  • Design a disease timer for DeathKnight.info

    by 
    Mike Schramm
    Mike Schramm
    11.19.2008

    DeathKnight.info is having a Death Knight Disease Design contest (say that three times fast) -- they're working on putting together a disease-timer addon for you former slaves of the Lich King, but they need a little design help with it. What you've got to do is take the graphic above (you should probably take the one off of their site, just to be safe, because it's got to be a certain size), and design a way to use it as a disease timer -- it's got to show all the info you'll need in an addon, and it's got to "look awesome," too.I'm terrible at design, but maybe there are some budding designers out there with some kickass ideas. If you win, not only do you get your ideas included in the Runes addon, but you will pick up a free 60 day gamecard as well. Hit up their dev thread if you have questions about how the mod works -- hopefully we'll see some creative entries here when the times come to vote for a winner next month.

  • PDF version of iPhone developer's cookbook available

    by 
    Brett Terpstra
    Brett Terpstra
    10.08.2008

    This post refers to the first edition of The iPhone Developer's Cookbook; the 2nd edition, covering the 3.0 SDK, was released at the end of 2009 and is available here. It's a good day to become an iPhone developer: in addition to the screencast we mentioned, someone near and dear to us at TUAW finally got her book out into the wild ... at least the PDF version. Erica Sadun's* "The iPhone Developer's Cookbook" is available as an electronic download from informIT. If you want to dig in and start developing native iPhone applications with the SDK, this is a great way to start. The paper version is set for release on October 15th, if that's what you're into, but having the code samples in a cut-and-paste-friendly format is far preferable to me. Coupling that with a complete lack of patience, I bought the PDF this morning and am avidly poring over it for new information. I'm planning a combination tip calculator/grocery list application with several language translation apps and an ebook reader built in ... although I may consider doing a Pinocchio app that lets people know when I'm joking instead. So, up-and-coming iPhone developers, head on over to informIT for some SDK development goodness. Editor's Note: Since Erica has moved on from TUAW to her new home at Ars Technica, we no longer have conflict-of-interest concerns about reviewing her books -- but we still love her & wish her all the best. Update: Code samples are available here!

  • Vintage cassette tape holds Apple I BASIC, killer modem tune

    by 
    Darren Murph
    Darren Murph
    07.19.2008

    Fair warning: this here post is nerdier than usual, and those who begin to feel nauseous at the mere mention of data-bending may want to refrain from continuing on. For you brave, hardened souls that are following through, feast your eyes on the "first piece of software ever sold by Apple." The Apple I BASIC cassette wasn't even included with all of the 200 Apple Is produced eons ago, but a few engineering souls have managed to extract the data and create an MP3 of the wave structure. Not surprisingly, the tone resembles that of a 1200 Baud connection, and if we should say so ourselves, would make for a wicked ringtone. Believe us, it gets even weirder in the read link, but you'll have to determine whether venturing down is something your brain can handle.[Via BoingBoing]

  • Interview with Antiarc, author of Omen

    by 
    Alex Ziebart
    Alex Ziebart
    04.26.2008

    Even if you don't use Omen, it's likely you've seen it or heard about it here on WoW Insider, in WoW itself, or somewhere else in the WoW community. Patch 2.4 and the redesign of WoW's combat log called for a complete rebuild of many mods, and Omen was far and away the highest in demand.There were certainly some issues with Omen the day 2.4 launched, but the one man army behind the mod worked endlessly to get the addon in working order, while somehow making time for a chat mod, too. I think it's fair to say we know a thing or two about the mods, but what about the modder behind them?Luckily for all of you, Antiarc(aka Adrine) is open to bribes(not really) so I've managed to sucker him into answering a few questions for us, many of which are taken from you, the readers! We'll go through a series of three categories. The Man, in which we delve into Antiarc's personal and professional life. The Mods, wherein we ask a few questions about his experiences in mod-writing. The Miscellaneous, where we ask Antiarc random questions that hold no bearing on absolutely anything! Hooray! Read on!

  • Manage secret preferences with Secrets

    by 
    Dave Caolo
    Dave Caolo
    03.01.2008

    Here's a clever utility from the creator of Quicksilver. Secrets (no, not the Van Halen song) is a preference pane that lets you fiddle with the hidden defaults of nearly all your applications. For instance, show the iPhoto toobar in full screen mode and make those iTunes arrows link to your library instead of the store. There's a huge database available, and adding your own secret preferences is simple. Have fun![Via Daring Fireball]

  • Trism matches the iPhone's accelerometer with puzzle gameplay

    by 
    Mike Schramm
    Mike Schramm
    02.29.2008

    One more reason why we can't wait for the iPhone SDK to drop. GameSetWatch has a short interview up with developer Steve D of Demiforce about his new iPhone game, Trism. It's a Bejeweled-like gem matching puzzle game, but the twist is that after getting matched, the gems fall in the direction that the iPhone's accelerometer tells them to fall. It's wild stuff, and you can see it clearly in the video above.He's playing the game on a jailbroken iPhone, but it's still a work in progress, so the game isn't available to the public yet. Depending on the terms of the iPhone SDK, he's looking at porting it over to that and releasing it via whatever distribution system Apple comes up with. And he cooked this thing up in about ten days (he wanted to rush it to show it off at GDC last week), so if Apple is able to include smaller developers like Steve in their SDK setup, we'll see some terrific software come off the line in no time at all.

  • Dungeon Runners releases characters in XML

    by 
    Mike Schramm
    Mike Schramm
    01.31.2008

    This isn't quite the idea of MMO-to-go yet, but it's the first step towards something really huge in MMO gaming: a character API. An API is an Application Programming Interface-- basically a document or method of how to get computers to talk to each other through different applications. Facebook apps are made with the Facebook API, applications that hook into iTunes use the iTunes API, and so on. With an API, programmers can take information from one source, and do almost anything they want with it in other programs. Players have already done some amazing things with World of Warcraft's Armory (even without an actual API-- I'm pretty sure most of that is just HTML scraping), but now NCSoft's Dungeon Runners has upped the ante-- they've made all the character data in the game available to anyone as an XML file. With just a URL, you can access info on any player in the game, already marked up in XML.What does this mean to you as a player? It means that programmers can create any number of applications using this data-- they can display your DR character's info almost anywhere at any time. And a skilled programmer could even track the info over time-- tell you how fast you leveled, how often you change your armor or gear, or how fast you've earned gold in the last day. And who knows what else people could come up with-- the best part about opening up information like this is that it gets used in all sorts of ways that no one could ever predict.Jeff Freeman's exactly right: "This is really cool... just in case you don't get that." We're just scratching the surface of this stuff, but eventually you'll be able to do things like get text messages on your phone when your WoW auctions sell, or be able to monitor your guild's bank or your PvP team's wins via RSS (which itself can then plug into almost anything) When developers break out data like this for players, the possibilities are endless.

  • Boat vendors still MIA

    by 
    Mike Schramm
    Mike Schramm
    01.24.2008

    Yup, the boat crews are still missing in action. First they were there, then they weren't, and then they were supposed to be back, and they probably won't be back in for the foreseeable future.I'm sure the coding here is complicated (anybody remember how buggy the ships used to be? In the early days of the game, there was probably a 50/50 shot that you would end up out in the middle of the water, having to swim back to shore on your own), but clearly this is a feature players want and Blizzard wants to implement, so why not just buckle down and fix it? Why keep pushing it back farther and farther? Give a programmer a clean room, a fast computer (or two), a case of Mountain Dew, and let him go to town until vendors are sitting on the boats.It's probably not that simple, of course. There are probably a lot of issues with the code, and of course, programmers have lives, too-- even with Mountain Dew. But developers are always saying things like "would you rather us work on your crazy idea, or on something people actually want?" And this is something people actually want-- why not just get it done?