logo

 

     
 
Home
Site Map
Search
 
:: Bitwise Courses ::
 
Bitwise Dusty Archives
 
 
 

rss

 
 

ruby in steel

learn aikido in north devon

Learn Aikido in North Devon

 



Rails Recipes

Seventy recipes for cooking Ruby On Rails applications...
Tuesday 26 September 2006

Rails Recipes
by Chad Fowler
ISBN: 0-9776166-0-6
$32.95 / £23.50 (PDF: $21.50; combo paperback/PDF: $40.45)
Pragmatic Bookshelf: http://www.pragmaticprogrammer.com/titles/fr_rr/index.html

So you've made a simple Rails Blog, you've got to grips with the basics of Ruby programming – and now you're ready to move on to create more interesting and complex web applications. But how do you do all the important stuff like, well, add auto-completion features to help users fill in text fields semi-automatically; add internationalization support to display times and currency appropriate to the user's geographical location; send emails with attachments from your rails application, syndicate your site's content using and RSS feed– and so on…? These are just a few of the things which are explained in Rails Recipes. The book is divided into seven themed chapters – User Interface recipes, Database Recipes, Controller recipes, Testing Recipes, Big-Picture (...)
- more...


Publish (Yourself) And Be Damned!

Now’s the time to make your movie and write your book...
Thursday 14 September 2006

The record, TV, movie, magazines and book publishing companies have every reason to be worried. In the past it was difficult and, often, cripplingly expensive, for aspiring singers, actors or writers to get themselves onto vinyl (or whatever CDs are now made of), celluloid, video tape or the printed page.

These days, who needs all that plastic and paper anyhow? If you want to reach a global audience, you can bypass the physical medium and go straight-to-blog, podcast or YouTube. What a fantastic thing YouTube is! Not to mention highly addictive. Admittedly, a lot of the stuff people put online is sheer nonsense. One of the most popular videos recently showed a Scottish student making pancakes! Nonsense, yes, but more fun than working… YouTube also has a great collection of obscure pop videos – everything from the original Weather Girls video of It's Raining Men to Taco's wonderfully creepy version of Putting On The Ritz. For more serious content – I've recently watched entire programmes made for the UK's Channel 4 TV and the US's History Channel – Google (...)
- more...


Introduction To Delphi

Follow our quick-start guide to developing applications with Delphi
Tuesday 5 September 2006

With the release of free versions of the Borland language products, there has never been a better time to learn to program in Delphi.

Right-click to download the source code In this article, we'll take a quick tour of the ‘classic' version of Turbo Delphi For Win32. Once you are up to speed with the IDE, move on to our Guide to the Object Pascal language. Download Turbo Delphi from: http://www.turboexplorer.com This is the Turbo Delphi environment, showing the form designer in the middle of the screen, with the Object Inspector at the bottom-left and the Tool Palette bottom-right. Design The User Interface Click New on the File menu. A submenu pops out listing the available project types. Select ‘VCL Forms Application - Delphi For Win32'. At this point, a blank form appears. Note: To switch between the form designer and the code editor, click the code and design tabs at the bottom of the working area. (...)
- more...


Learn To Program Delphi Part One

First steps in Delphi coding…
Tuesday 5 September 2006

If you are new to Delphi, you make want to start off by reading our Introduction To The Delphi IDE. This will guide you through your first twenty minutes with Delphi and it introduces you to the fundamentals of Delphi programming. Once you’ve read that, come back to this feature to delve a little more deeply into Delphi’s Object Pascal language…

Right-click to download the source code Part Two of this series For more advanced Delphi tutorials, see the Bitwise Delphi Study Guide. Delphi is a wonderful development system featuring an excellent set of visual design, coding and debugging tools. The principal problem for many programmers is that its Object Pascal language is unfamiliar. Object Pascal is a great language which benefits from a clean and unambiguous syntax. But if you happen to be more familiar with C++, PHP, VB or Java, you may be baffled by numerous simple but important matters such as – well, where do the semicolons go and how do you write a while loop? This series aims to get you over these hurdles to let you start serious Delphi programming as rapidly as possible… Delphi or Object Pascal? (...)
- more...


Delphi Study Guide

Check out the Bitwise Delphi features for coders of all levels…
Tuesday 5 September 2006

Delphi is a powerful programming system with an excellent, tightly integrated development environment that gives you a large toolset for designing a user interface, editing code and debugging the application. Now the Borland Developer Tools Group has released free versions of Delphi called Turbo Delphi Explorer (download from http://www.turboexplorer.com/). These come in two versions – one for .NET development and another for Win32. There are also editions of Turbo Explorer for C++ (Win32) and C# (.NET).

This month in Bitwise, we are beginning a series of features aimed at newcomers to Delphi programming. We shall concentrate on the ‘traditional' version of Delphi For Win32 whose heritage stretches back over ten years to the original Delphi for Windows. In fact, Delphi's ancestry can be traced to earlier Borland Pascal programming products such as Borland Pascal For Windows, and the Turbo Pascal compiler for MS DOS. The first version of Turbo Pascal was released in 1981 and was designed and programmed by Anders Hejlsberg who is currently Microsoft's lead architect of C#. If you have never used Delphi before, download Turbo Delphi Explorer and follow our step-by-step tutorial... Introduction to the Delphi environment. Once you've done that, follow the first in a new series of (...)
- more...


Podcasting - Something To Shout About?

Is this the future of broadcasting…?
Thursday 31 August 2006

Just like blogging, it started out with something of a ‘computer geek’ image and then rapidly became mainstream. So mainstream, in fact, that even established broadcasting companies such as the BBC, CNN and ABC News now provide programmes in the form of podcasts.

Read The Bitwise Podcasting Features Loudblog Chinesepod LifeType Feedburner The name itself is misleading; there is still a widespread misconception that you need a portable audio player (like the Apple iPod from which the name ‘podcast' derives) in order to listen to a podcast. You absolutely do not. I regularly listen to podcasts and I don't own an iPod or anything remotely resembling one! A podcast is just an audio file (normally, a regularly updated series of audio files) which is distributed via an RSS or Atom ‘feed'. You may be able to subscribe to a podcast using your existing RSS reader (for more on RSS see HERE) or you can use a dedicated podcast-management application such as Apple's iTunes. If you are using suitable software, whenever new audio files (...)
- more...


Podcasting Secrets - LifeType

a blogging platform for podcasters...
Thursday 31 August 2006

If you want to attach a podcast to a regular blog, it makes sense to choose a blogging package with podcasting features ‘built in’ – such as, for example, LifeType. Here Oscar Renalias, lead developer of LifeType, gives bitwise an inside view on what makes a great podcasting platform…

bitwise: Can you explain how LifeType supports podcasting? If I were to use LifeType to create a blog, how would I add sound files and make sure they were syndicated? Oscar Renalias: Podcasting is supported in LifeType via its 'resource centre' feature. All users need to do in order to publish podcasts via LifeType is upload the sound file with the podcasts to the blog's media archive, write a new post and then get the blog to include a link to the sound file via one of the icons in the toolbar of our editor, in the same way a picture would be added to an article. Once the article is published, LifeType will detect that there is a podcast linked to this article and will add the correct enclosure tags to the RSS 2.0 feed of the blog. bitwise: I hear a lot about the importance of (...)
- more...


Rocket Science

Dermot Hogan gets all fired up with a Visual Basic control
Monday 28 August 2006

Last month, I showed how to build a control that could move itself. Normally, this behaviour is not very desirable and, if a data entry control started to wander about over a form, you might well want to ask the programmer for an explanation. Either that or lay off the hard stuff yourself.

Right-click to download the source code See also the final part of this series But there are circumstances where this sort of behaviour makes life simpler. Take my esteemed colleague, Wilf Hey, for example. Some time ago now, Wilf started messing about with rockets - water powered rockets at that. These devices are not things to be taken lightly - there's a serious danger of getting wet. For a strict theoretician like myself, this is taking applied science too far. Anyway, I decided that rocketry was best done from an armchair (well, keyboard) and set about trying to emulate Mr Hey - without getting wet. The traditional way of doing theoretical rocketry is to hire a rocket scientist and get him or her to model the rocket's flight. This involves deriving and then solving the (...)
- more...


Podcasting Secrets - FeedBurner

A free service to syndicate your podcast...
Sunday 27 August 2006

One of the simplest ways of turning your Blog into a podcast is by using FeedBurner – a free service that sucks in an RSS feed and spits it out in a ‘podcastable’ format. But how does it work and why shouldn’t you just let your Blog software create its own podcast feed? These are just a couple of the questions we put to FeedBurner’s Rick Klau…

bitwise: Can you explain what FeedBurner is? I mean, let's say I have a Blog and I upload some audio files to it. Now I subscribe to FeedBurner and, so, what actually happens… Rick Klau: FeedBurner offers more than just great services for podcasters. At the very highest level, we offer services to help content producers of all kinds promote, distribute and track all manner of syndicated content on the Web. We specifically help podcasters make their content "subscribable" so they can build a loyal fan base, track downloads within the feed, understand how many people are subscribing and what they like best, as well as optimize distribution to top destinations like iTunes, including details like album art and categorization. In short, we help our customers get more value out of (...)
- more...


Podcasting Secrets - Loudblog

Blogging in sound...
Monday 21 August 2006
JPEG - 35.8 kb
Can Loudblog do for podcasting what WordPress does for blogging...?

If you want to publish your podcast, maybe you should think of using a dedicated podcast publishing package? Yes, such a thing really does exist. It’s called Loudblog, it’s written in PHP – and it’s free. Here Huw Collingbourne talks to Loudblog’s developer, Gerrit van Aaken…

Huw: Can you explain what Loudblog is, exactly? I mean, how is it different from a standard Blog system such as WordPress? Gerrit van Aaken: Loudblog is a lightweight Content Management System with a straight focus on the publication of audio and video files. Users have to install it on their own web space, so it's not a public web service. Although it might be used as a regular blogging tool like Textpattern or WordPress, it only offers a quarter of their functionality. Loudblog is for Podcasting, not for Blogging! Huw: If I were to use Loudblog to create a podcast, how would I add sound files and make sure they were syndicated? Gerrit van Aaken: Loudblog offers you four different ways of adding media files into the system: You can upload it via your web browser, use a built-in (...)
- more...


Internet Business

Podcasting Secrets – ChinesePod

Podcasting for pleasure and profit…?
Friday 18 August 2006
JPEG - 35.9 kb
ChinesePod - free podcasts with ’paid for extras’. Is this the secret of making a successful business from podcasting?

It only seems like yesterday that Blog-fever was sweeping the Internet. But already a Blog without audio is starting to seem quaintly old-fashioned. These days, if you want to make an impression on the web you really need a podcast. Many podcasts are purely amateur affairs, little more than ‘audio diaries’. Some podcasts, however, have higher ambitions. One such is ChinesePod – a professionally produced podcast and Bitwise Recommended Award Winner, made by an International team in Shanghai, China. To get an idea of what it takes to make a successful business out of podcasting, Huw Collingbourne spoke to ChinesePod’s co-founder, Hank Horkoff…

Huw: Was ChinesePod your first podcast? Hank Horkoff: Yes, it was. We just added a new feed for advanced students as well. Huw: It seems very ambitious for a 'first go'. What persuaded you that there was an audience for a podcast aimed at Chinese learners? Hank Horkoff: I think we just approached it differently. We first started by looking for ways that technology could solve problems of the average language student here in Shanghai. From our research we found that students often spent more time traveling to/from class and waiting for class than they actually spent in class. This seemed like a big inefficiency to us and we speculated how things would change if students were able to listen to their instructional materials on the way to class and then use their actual class time more (...)
- more...


eXtreme Programming - comments on comments

...view from a Smalltalker
Saturday 12 August 2006

As you may know, when it comes to ‘programming methodologies’ I tend to be something of sceptic (see Programming, Methodologies and Buzzwords). I was interested, therefore, to read Vassili Bykov’s critique of ’extreme programming’ (XP) on his Cincom Smalltalk Blog. This is all the more interesting since XP is often associated with the Smalltalk language. Just like me, Vassili is rather keen on documentation (something to which ‘Extreme’ and ‘agile’ programmers pay scant attention).

Says Vassili: “Somehow in Smalltalk, the birthplace of extreme programming, it's often pretty much taken for granted that in order to be an eXtreme Programmer one has to stop writing method comments. Because "if a method needs comments it needs to be rewritten", or because "good code is self-documenting" or because "comments lie, code doesn't". Or even because "Beck teaches so". Indeed this is what we Smalltalkers were told when it was all just starting. I say that is bullshit.” I like a man who speaks his mind! Read it all over on his Blog
- more...


Turbo Delphi - The Return!

...and this time it’s free!
Friday 11 August 2006

I remember, at a Borland conference in San Francisco, some time in the mid 90s, listening to the company’s boss, Philippe Kahn, waxing lyrical about object orientation while the software’s chief architect, Anders, Hejlsberg, admitted that he had been extremely reluctant to add all those ‘nasty objects’ to his lovely elegant Pascal.

Well, time moved on and so did both Kahn and Hejlsberg – the former branched out into mobile camera phones; the latter went to mess around with more objects than you could shake a stick at as Microsoft's C# Chief Architect. During that time, Borland and its software changed. The company become big and corporate and so, alas, did its software. These days when I install Borland's Delphi the first thing I do is untick most of the setup options. If you go ahead and install all the stuff in Delphi Architect whenever you run the software you'll end up sitting watching the thing load with the speed of treacle running uphill. How many times, over the years, have I yearned for the good old days when Borland software was known for its speed: small, fast and inexpensive - these were the (...)
- more...


New product from RemObjects

Hydra 3

Helping Delphi developers to mix managed and unmanaged code...
Friday 11 August 2006

Delphi developers should soon be able to bridge the gap between Win32 and .NET thanks to a new product from RemObjects. Currently under development, Hydra 3 will provide a way of creating hybrid applications which combine elements using both managed and unmanaged code.

For example, you could write a managed .NET plugin written in C# or RemObjects' own Chrome Object Pascal, compile this as a DLL and then load the control into an unmanaged (Win32) application in Delphi. According to RemObjects this gives Delphi developers the opportunity to “migrate and replace existing modules (and even host applications) over time and at their own pace – arriving at a fully managed solution eventually, or they can keep moving the project forward as a mixed solution indefinitely.” Hydra 3 will let you create .NET plugins for use in Win32 Delphi programs Hydra 3 can be used from within Visual Studio and Delphi (versions 6 and above), to simplify the creation both of the managed code plugins and the target application in which those plugins will be (...)
- more...


New Games For Old

...in which Wilf plays his cards right, has a Eureka! moment and creates the next big craze.
Monday 7 August 2006
GIF - 11.2 kb
Sitting in the bath one day, Wilf (just like Archimedes) has a stunning insight...

Mathematical games often have a delightful compulsion to them: think back a few decades to the Rubik cube, which gradually swept much of the world’s population under its power. In other times we have seen the “Fifteen-Sixteen” puzzle – a square divided into fifteen squares (and one missing gap) where you could slide an adjacent square into the gap, leaving the gap behind it.

Here's a game with the sort of simplicity that may lead to its becoming a craze at some point. The rules are easy and the apparatus simple: nine playing cards will do fine. In “Triptych” you will need nine distinctive pieces: cards ace to nine in one card suit will be fine. The object of this two-handed game is to pick up a single card in each turn until you have three cards that total to fifteen. (You may of course end up with four or even five cards, but you get to identify any three in your hand that total exactly fifteen). The game only lasts a short time: the longest game finishes when the first person has taken the last card; that will be his fifth turn. If by then neither person identifies a winning triplet, the game is drawn. If you become expert at Triptych, you (...)
- more...


Tricks Of The Podcasting Masters

Book Review
Friday 4 August 2006

Tricks Of The Podcasting Masters
by Rob Walch and Mur Lafferty
Que Publishing www.quepublishing.com
Available from Computer Manuals (UK)
ISBN: 0789735741
$24.99 / £17.99

OK, so I've got my microphone and I know how to record MP3 files. I have a Blog set up and an RSS feed so that people can either log on and listen or download the content to listen offline. All I need now are some subscribers to my podcast. Which is where Tricks Of The Podcasting Masters comes into the picture. This isn't a ‘to do' book for complete podcasting novices. If you haven't yet figured out the hardware and software required to record, edit, upload and distribute your audio files, you would be better off with Podcast Solutions – a book which we reviewed previously. However, if you've got past the initial stages and now want to find out how to make your podcast stand out from the crowd, Tricks Of The Podcasting Masters could be just what you need. In around 360 (...)
- more...


S# - Smalltalk :: The Next Generation

We talk to David Simmons, developer of S#, about Smalltalk, Ruby, .NET and dynamic languages on the web…
Tuesday 1 August 2006

S# - Smalltalk :: The Next Generation S# (‘S-Sharp’) is a superset/dialect of classic Smalltalk-98 which offers transparent cross-language integration and component based deployment. With a new version of S# on the horizon, we decided it was time to get the inside info from the man at the top...

Huw: I haven't noticed much signs of development on S# recently. Your web site hasn't been updated since 2004 so what's brought the project back to life again? David Simmons: Actually the development never stopped. What happened was that I joined Microsoft and became deeply involved in some other projects. I knew that there was some revamping that needed to occur to take it from a demo / open trial to a release language. The core group of people who contribute to the project have been in discussion with me all the time – so development has never stopped at all. Huw: What's going to be new in the new release? David Simmons: The licensing agreement will be different. The license that's there states that you can try it but you can't ship anything with it. The language itself (...)
- more...


Do Lawyers Improve Software?

...is intellectual property just patent nonsense?
Monday 31 July 2006

There’s a saying in the music industry: “where there’s a hit there’s a writ”. Meaning, if you have a nice tune and make some nice money from it, someone, somewhere will try to get a slice. The usual claim in the music industry is that the whole or part of the tune was ‘borrowed’ from an existing piece of music, which, naturally, the party to the writ claims to have written, so to speak.

Normally, if you have a great idea, you can try to prevent others from cashing in on your invention by patenting it. The pharmaceuticals industry is the major one these days. Drugs take such a long time to get to market and have to go through so many tests and regulatory hurdles that the standard 20 or 25 year patent really doesn't seem to give the pharma companies long enough time, even with a patent monopoly, to get their money back. Still, they don't seem to be going bust. But what about software? Can you patent a software program? Should you be able to? Now this is a legal minefield, and I have to say I'm not a lawyer (if I was, I'd be a good deal richer than I am now). But it seems to me that, in most cases, software copyright should be sufficient to protect the author of a (...)
- more...


Microsoft Ruby?

Yes, there really is one. Or, anyway, there used to be…
Thursday 27 July 2006

Way back in the 1980s, Microsoft embarked upon a Ruby project. This was to be a user-friendly programming language which even had its own point-and-click visual-programming user interface.

These days the language known as Ruby has no such visual programming tools as standard (though a few can be bolted onto it). So what happened to MS Ruby? Turns out the company decided to rename it and it ended up being the product known as Visual Basic. Anyone think it ironic that just as VB is going through the lowest phase in its career (due largely to Microsoft's faltering attempts to kill off VB, create a different language called VB .NET and hope that nobody notices), another language called Ruby is starting to occupy the same simple, user-friendly niche that VB once had all to itself? Now, all that this latest incarnation of Ruby needs is the ‘visual' (...)
- more...


From Encapsulation to Extender Objects…

VB6 - On The Move

Dermot Hogan finds poetry in motion as Visual Basic 6 controls follow him around.
Thursday 27 July 2006

One of the more useful ideas in programming is ‘data hiding’. Fundamentally, you put information inside an object so that it can’t be modified or even seen from programs external to the object. This is taken to its extreme in Smalltalk, but even in a humble Visual Basic 6 program, it finds its uses.

(See also: Part 2 of this series) This relates to what seems to be a basic fact of human psychology (and computer programming). Most people can hold only a half dozen of so things in their mind (their 'working memory') at the same time. When you are writing a program, it's quite common to think as you go along - 'I must fix that' or 'this needs to be changed'. Of course, as the number of things 'to do' grows, some things get forgotten - and become bugs. You can avoid this limitation to some extent by hiding functionality within a control or subroutine. If a single fact is all you have to remember about a subroutine – say, for example, that it dials a number - then you've got more working memory to hold other important facts. In several ways, Visual Basic controls are like (...)
- more...


More..

... | 260 | 280 | 300 | 320 | 340 | 360 | 380 | 400 | 420 | 440

Home