 |

|
When you write Objective-C code, it eventually turns into machine code – the raw 1s and 0s that the ARM CPU understands. In between Objective-C code and machine code, though, is the still human-readable assembly language. Understanding assembly gives you insight into your code for debugging and optimizing, helps you decipher the Objective-C runtime, and also satisfies that inner nerd curiosity. Think iOS is a toy OS? Hate all those square brackets in Obj-C? A little Assembly might help.
|
|
|
|

|
We have this trope in programming that you should hate the code you wrote six months ago. This is a figurative way of saying that you should be constantly learning and assimilating new ideas, so that you can look at what you were doing earlier this year and have new ways of doing it. It would be more accurate, though less visceral, to say “you should be proud that the code you wrote six months ago was the best you could do with the knowledge you then had, and should be able to ways to improve upon it with the learning you’ve accomplished since then”. Beware of Setting the Bozo Bit, including on your younger self.
|
|
|
|

|
This session provides an overview of several Sysinternals tools, including Process Monitor, Process Explorer, and Autoruns, focusing on the features useful for malware analysis and removal. These utilities enable deep inspection and control of processes, file system and registry activity, and autostart execution points. You will see demos for their malware-hunting capabilities through several real-world cases that used the tools to identify and clean malware, and conclude by performing a live analysis of a Stuxnet infection’s system impact. Mark Russinovich goes hunting for malware.
|
|
|
|

|
You can offer too much code. By this I mean something subtly but critically different from “you can write too much code,” as when you are needlessly complicated or verbose. Offering too much code means that you’re giving users of the public interface of your classes too many options. Before my TDD days, this was something with which I constantly struggled. Consider carefully where your classes fall on the functional-immutable-mutable spectrum.
|
|
|
|

|
Oh yeah, I hear you, I hear you. "My StringUtils class, has this toUppercase() method and I test this very method, right?" Well, not really. What you really test is the functionality that the StringUtils provides, and because this functionality is so trivial that it fits within one method, this makes you think that you test a method. But in reality you test a functionality. Isn't it exactly the difference between the test-first and test-last approaches?
|
|
|
|

|
Associating numbers with specific characters has proved necessary to allow automated telegraph printers (teleprinters) and then computers to represent text. The most widely used mapping between numbers and letters was that approved on June 17, 1963, by the American Standards Association. It is the American Standard Code for Information Interchange, better known as ASCII. Make a wish and blow out the candles: iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
|
|
|
|

|
Once at a picnic, I saw mathematicians crowding around the last game I would have expected: Tic-tac-toe. As you may have discovered yourself, tic-tac-toe is terminally dull. There’s no room for creativity or insight.... But the mathematicians at the picnic played a more sophisticated version... The extra dimensions add a little challenge to a dusty old game.
|
|
|
|

|
Today, pretty much everyone has a CPU, a DSP and a GPU, buried somewhere in their PC, phone, car, etc. Most don't know or care that they bought any of these, but they did. Will everyone, at some future point, also buy an FPGA? The market size of FPGAs today is about 1% of the annual global semiconductor sales (~$3B vs ~$300B). Will FPGA eventually become a must-have, or will its volume remain relatively low? Programmability is a feature, not just a tax on efficiency.
|
|
|
|

|
While your quote there is a good one the article is not that well. I had trouble getting past his gaping error in power consumption:
Quote: …we estimated that high-end FPGAs implementing demanding DSP applications … consume on the order of 10 watts, while high-end DSPs consume roughly 2-3 watts. Our benchmark results have shown that high-end FPGAs can support roughly 10 to 100 times more channels on this benchmark than high-end DSPs…
So for that benchmark, FPGAs offer 10x-100x the runtime performance, and 2x-30x the energy efficiency of DSPs - quite impressive!
Ahhh... the FPGA is actually 3x worse on power is what that says.
Anyway, I continued. He then went into to say how it "cheats" but not really by including DSP slices and refers back to how much faster it is now etc.
What it seems the writers is failing to realize is FPGAs MUST be better than high end DSPs and many other chips sets because of the purpose (which he claimed in the beginning is not their purpose). Putting a fixed chip set on them to enhance them makes sense. Especially to further enhance/design new DSP chips.
Programmability is a feature. However FPGAs will never make it to the consumer. It simply does not make sense. Thats not to say that some other technology won't come along and provide us reprogramable CPUs and such. But FPGAs as they stand are intended to design such circutry.
WITH THAT SAID, there are cases where there are FPGAs on board various devices and users are already using them and unaware. However this is not because they are intended to be reprogrammed. It is purely separation of design and development. On company will make a board with various chips and hand of to another and give them better hardware control with an on-board FPGA. That company will then program the FPGA and resell the board in some other device. That company could also strap another FPGA on for other companies to integrate with.
Once design is done however anywhere in the chain it is likely cheaper to remove the FPGA and have the company sell you their component with a provided chip set.
Truth is though technology moves so fast we never get to that phase. We end up with the tech being obsoleted before the SOC (system on chip) can be made and provided. HOWEVER, we also obsolete it before the FPGA is ever "reporgrammed". The only purpose of it was for design parallelism.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
|
|
|
|

|
By day, David Auld is an Offshore Installation Manager (OIM) in the oil and gas industry. But when the production platform is humming along without him, Auld indulges his hobby as a devout “petrol-head” (car enthusiast). He also finds time to feed a passion for programming, which led to him earning a 2012 BSC Honours Degree in Computing. Surprisingly, these three facets of the native Scotsman all converged when Auld won the Entertainment Category of the Intel App Innovation Contest. From Top Gear to Top Winner: Our own Dave Auld wins!
|
|
|
|

|
Congratulations, Dave!
/ravi
|
|
|
|

|
Thomas Ptacek tweeted yesterday that "If you're not learning crypto by coding attacks, you might not actually be learning crypto." Judging by the number of twitter "favourites" and "retweets" of this comment, it seems to have struck a chord; but with all respect to Thomas, I absolutely disagree. Not only is it possible to learn cryptography without writing a line of code, but coding attacks is entirely useless for learning about modern cryptography; the best route to learning modern cryptography is a study of mathematical proofs. Attacking modern security is mostly looking for bugs in code, not the underlying cryptography.
|
|
|
|

|
We are shocked, shocked…[^]
Is it just me or does the entire news media — as well as all the agitators and self-righteous bloviators on both sides of the aisle — not understand even the rudiments of electronic intercepts and the manner in which law enforcement actually uses such intercepts? It would seem so.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|

|
and he lost me immediately at "inevitable and understandable"
|
|
|
|

|
Bit long and rambling but he makes a good point.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Those who seek perfection will only find imperfection
nils illegitimus carborundum
me, me, me
me, in pictures
|
|
|
|

|
I think we all need to buy those applications we can find at the Apple AppStore which enable us to summarize our daily activities and post it on Facebook.
Rather, we might as well mail it straight to NSA so that they are spared the effort of going through Facebook.
I have always felt that rather than carrying cellphones which report our whereabouts to the provider which data has to be summoned by the NSA we might as well have a chip implanted in our bodies powered by our own muscle movements that directly transmits our locations to the NSA.
One chip to rule them all!
|
|
|
|

|
I'm interested in people's current predictions on what will happen to the various languages over the next few years. Java has had a bad press in recent years but has a major new release. Is this a new lease of life, particularly with Android taking off so rapidly? What languages and frameworks are on your radar today... and tomorrow?
|
|
|
|

|
Did that get lost in the mail for a few years?
|
|
|
|

|
Terrence Dorsey wrote: What languages and frameworks are on your radar today... and tomorrow?
Still learning Python - a nice but boring language. I like Perl better, crazy as it sounds.
Also C++ 11.
|
|
|
|

|
Terrence Dorsey wrote: What languages and frameworks are on your radar today... and tomorrow?
Java and Android.
|
|
|
|

|
Norm .droid wrote: Java and Android.
At least do yourself a favor and ditch Eclipse. They introduced something based on IntelliJ: Android Studio[^]
|
|
|
|
|

|
At the moment its .net but then I write in house software where I work and Windows 8 is a very very long way off (years more than likely).
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|

|
Many years ago, back in Uni, I saw 2 guys in a computer lab writing a whole programming assignment without running it even once. The program was of relatively decent size written in C and consequently there were hundreds of compilation errors. That’s so silly, I thought.... After graduation I used to be a C++ programmer. The syntax sometimes was quite tricky and you would often compile after every new line of code. Sometimes, you would dare to write a whole function, just to find 10 compilation errors. Since then the way I code has changed with help of modern IDE... Do IDEs help you code better, or just keep up with ever more complicated systems?
|
|
|
|

|
Interesting the C# questions are not as common. Java seemed to be on the ropes at one time, but has had a resurgence. The weakness of C# may be an indication of the bad strategic moves the Microsoft has recently made in basically eliminating support of Silverlight, and making an OS (Windows 8) that does not provide precieved enhancement for desktop users. Is Android the future. Maybe. Meanwhile I am a C# programmer working with WPF.
|
|
|
|

|
I avoid IDEs whenever I can.
|
|
|
|

|
Terrence Dorsey wrote: Do IDEs help you code better
I like a good IDE - just haven't seen one since VS 2003.
|
|
|
|

|
Terrence Dorsey wrote: whole programming assignment without running it even once.
A girl I worked with would start editing in the morning and only compile her code late in the afternoon. Astonishingly, her compile failure rate was really very low which is a testament I suppose to her ability to master the methods and syntax, all without Intellisense. Quite incredible how she could do that.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|

|
At the age of 13 I wrote ~500 lines of Sinclair BASIC over 5 to 6 hours one Saturday without running it to check it. When I did run it there were 2 syntax errors, just typos which I fixed then and there.
The code then ran without error and did exactly what I expected.
I knew that was a very special day and nothing like that would probably ever happen again.
It was 20 years before with the help of an IDE I could hope to write 500 lines of boilerplate C++ in a day with as few mistakes. I'm not sure if I've ever done it but I've probably got close on a few occasions.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|

|
Ever wondered how the pro’s physically manage to make a module? Well ok, you can get a fancy pick and place machine or send off for someone to assemble your module, but you can do it by hand. It is not as hard as expected. As part of a .NET Gadgeteer hands on event at the Modern Jago in Shoreditch we were delighted to have Justin Wilson from Ingenuity Micro attend and show us how things are done (www.ingenuitymicro.com). He has designed and built an nice collection of .NET Gadgeteer modules and mainboards and expects to have them available shortly. Old-school .NET hacking... with solder.
|
|
|
|

|
Code review is a tricky business. Code is full of hidden mines that lay dormant while you test just to explode in a debris of stack trace at the most inopportune time – when its in the hands of your users. The many times I’ve run into such mines just reinforce how important it is to write code that is intention revealing and to make sure assumptions are documented via asserts. Such devious code is often the most innocuous looking code. We are miners, code bug miners. To the code base we must go...
|
|
|
|

|
When I use the term “enterprise” to describe software, I typically mean “software that helps people get work done more efficiently.” In this sense, Angry Birds and your favorite Twitter client are not enterprise applications. A Twitter client that has additional features to facilitate and track a company’s social engagement, on the other hand, might fall into the enterprise category. An application that is used in a call center to track incoming support requests is definitely “enterprise”. A system that connects several “legacy” systems and presents employees with a unified interface and saves 1000s of man-years every month of application context switching? Enterprise. Do you write "enterprise JavaScript"? Tell us about it.
|
|
|
|

|
I remember how in University my photography class and I struggled to grasp exposure and how it worked. We had exercises where for hours on end we were asked to "play" with the settings and get a feel for what they do. I don't like getting a "feel" for something. I like knowing how it works.... The trick was learning what each of the vertices afforded and cost you. That was the key to our DSLR simulator. Smile for the Canvas.
|
|
|
|

|
Haswell is Intel’s new family of processors targeted at the PC and server market. With Haswell Intel has designed a processor suited to new PC form factors – laptops no thicker than 25mm, PC/tablet hybrids, pure tablets and all-in-one PCs. In particular Intel has targeted the fourth generation chip at serving what it calls the ‘ultrabook’ market. Intel defines ultrabooks as mobile computers thinner than 25mm, with touchscreen and voice control as standard and possibly convertible into either a tablet or laptop. Everything you need to know about the fourth generation of PC processors from Intel.
|
|
|
|

|
Microsoft researchers say they have come up with a novel approach to boost the accuracy of speech recognition and rev up the speed in which it's rendered by creating a computation model that mimics the way the brain works. By applying so-called deep neural networks to speech recognition, Microsoft researchers claim that users in the United States, composing a text message or searching via Bing with their voices, will see results twice as fast as they did with Microsoft's previous technology. And the researchers say accuracy has improved by 15 percent. Earn more sessions by sleeving.
|
|
|
|

|
Much of what I’ve heard when I hear about UX is: How do we arrange everything on the screen so that a user can figure it out and quickly accomplish their goals? How do we make use of graphic design, layout, text, interactivity, affordances, animation and so on to make things easier for the user? Lately I’ve start learning to build electronics with Arduino and it’s made me much more sympathetic to the designers of simple hardware. How much can you convey with a single button and lights?
|
|
|
|

|
Terrence Dorsey wrote: How much can you convey with a single button and lights?
Depends on how many lights... I have ... let me see ... 1296000 available here to use in the UI. Seems to work ok for me.
|
|
|
|

|
Microsoft is reaching out to two main audiences this year at Build, said Steve Guggenheimer, Corporate Vice President of Microsoft's Developer and Platform Evangelism Group: The existing Win32, line-of-business/commercial developer community and the startup community. "We need a good conversation with that community," said Guggenheimer about the existing .Net developer base, many of whom have felt disenfranchised by Microsoft's recent developer push toward HTML/JavaScript. Going to Build? What do you hope to see?
|
|
|
|

|
Some days... some days it's frustrating to be on the web. We're compiling C++ into JavaScript and running Unreal in the browser but at the same time, here in 2013, we're still making the same mistakes. And by we, I mean, the set of web developers who aren't us, right Dear Reader? Because surely you're not doing any of these things. All of these are solvable problems. They aren't technically hard, or even technically interesting. 9 lazy problems often found in web apps.
|
|
|
|

|
Yes! Though (in reference to 404 redirects), I will say that the redirect file we have at my company is already several thousand lines long. Can't wait until we move to MVC (supposing we do) and I can create a vanity URL component (based on MVC routing) that can use a database lookup to see destinations for vanity URL's. Then I can just build a simple user control into the CMS so anybody who wants to make a vanity URL can, without any developer intervention.
I can dream, can't I?
|
|
|
|

|
You're such a silly little Dreamer![^]
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|

|
On Apr 17, 2012 Jordan Mechner released the source code of Prince of Persia. Even though it is the Apple II version written in 6502 assembly language, it was a pleasant experience to dive in the code of that mythical game: As usual there were many fascinating sofware wizardries to discover. The Apple II apparent poor environment for game programming was actually ground to unmatched innovation and creativity : From self-modifying code, in-house bootloader, clever floppy disc format to skewing lookup tables: Prince Of Persia features engineering treasures in every modules. You - and this code - are the only obstacle between Jaffar and the throne.
|
|
|
|

|
I see three main reasons why people might not be thinking about — or even doing! — backups as much any more: Time Machine, cloud services, and new bogeymen.... Needless to say, not paying attention to backups is a dangerous trend — despite Apple’s excellent work with automatic iOS backups to iCloud and Google’s cloud-focused Chrome OS, we’re still years from a mainstream computer operating system that will automatically and reliably back up all local data. (Of course, if the NSA is keeping copies of all our files, perhaps they could let us restore too!) Once in a while, You got to burn down your house, keep your dreaming alive.
|
|
|
|

|
I have very little need to back up. All I back up anyway is all my install files, which are readily available. All my work, code, docs etc. are backed up on bitbucket. And for a bonus, administered and versioned.
The only think I need back up is my media collection, but I've heard or watched them all before, and they're also available everywhere.
|
|
|
|

|
Terrence Dorsey wrote: NSA is keeping copies of all our files, perhaps they could let us restore too!
They have to take care of privacy. Which means that your data are protected from you accessing them!
|
|
|
|

|
Feel like someone is snooping on you? Browse anonymously anywhere you go with the Onion Pi Tor proxy. This is fun weekend project that uses a Raspberry Pi, a USB WiFi adapter and Ethernet cable to create a small, low-power and portable privacy Pi. Be smart and paranoid about your TOR usage.
|
|
|
|

|
In the Linux and Unix operating systems, everything is treated as a file. Whenever possible, those files are stored as human- and machine-readable text files. As a result, Linux contains a large number of tools that are specialized for working with texts. Here we will use a few of these tools to explore a textual source. DIY cyberintelligence.
|
|
|
|

|
A month or two ago, I made a conscious decision that I would return to using as much Free Software as possible. The PRISM debacle of the last week confirmed my fears and reasoning, and so I made the decision to accelerate the schedule. Here’s what I did, and how you can, too. Free software developed by volunteers all over the world. What could possibly go wrong?
|
|
|
|

|
Bloomberg came out with quite a bombshell last night, discussing how lots of tech companies apparently work with the NSA and other government agencies, not to pass data on users over to the government, but to share exploit information, sometimes before it's public or patched -- in some cases so it can be useful for the US government to use proactively. Last month, we had written about how the feds were certainly collecting hacks and vulnerabilities for offensive purposes, but it wasn't clear at the time that some of these exploits were coming directly from the companies themselves. With friends like this, who needs hackers?
|
|
|
|

|
The Hon. David Nuffer has ruled on the SCO v. IBM motions, granting SCO's motion for reconsideration and reopening the case, which IBM did not object to.... The thing that makes predictions a bit murky is that there are some other motions, aside from the summary judgment motions, that were also not officially decided before SCO filed for bankruptcy that could, in SCO's perfect world, reopen certain matters. I believe they would have been denied, if the prior judge had had time to rule on them. Now? I don't know. It will be the year of the Unix desktop before this case finally gets resolved.
|
|
|
|
 |