11.14.11

I post on Google Plus most of these days

Posted in Uncategorized at 12:16 pm

And that’s about it. I don’t want to kill off this blog completely, actually I have a dozen articles in mind, but for now, I’m posting update-like things and thoughts on current developments on Google+.

11.22.10

Duplicate selection/line in Komodo IDE/Edit

Posted in development at 08:49 pm

Before I forget: duplicate.komodotools

{
“keyboard_shortcut”: “Ctrl+D”,
“name”: “duplicate”,
“language”: “JavaScript”,
“trigger_enabled”: false,
“value”: [
"// Duplicate Line or Duplicate Selection",
"komodo.assertMacroVersion(3);",
"if (komodo.view) { komodo.view.setFocus() };",
"",
"var ke = komodo.editor;",
"",
"if (ko.views.manager.currentView.scimoz.selText){",
" // Copy the current selection",
" new_selection = komodo.interpolate('%s');",
" var pos = ke.currentPos;",
" ke.insertText(pos,new_selection);",
"}else {",
" ke.lineDuplicate();",
"}"
],
“trigger”: “trigger_postopen”,
“rank”: 100,
“version”: “1.0.7″,
“async”: false,
“type”: “macro”
}

12.19.09

svn propset svn:externals under windows

Posted in development, projects, svn, webdev at 03:43 pm

Problem:
I am working on a project (with svn repo), and wanted to add some libraries (Propel) from external svn – so that I wouldn’t have to update them constantly – whenever someone would check out or update working copy of my project, those 3rd party libraries would be loaded from their own repository.

Intro:
I’ve googled around, read the manual, but I couldn’t find any simple solution. I’m using svn 1.6.5 under Windows 7 x64, and all the contradictory advice I’ve found in different blogs and forums was pretty confusing.

Further reading:
If you need details, I guess SVN book (1.5MB HTML!) could help some – but it didn’t help me much. Reading the help from command line seemed more helpful:

svn -h propset

Some error messages I got:

svn: Setting property on non-local target ‘http://svn.phpdb.org/propel/branches/1.5/runtime/lib’ needs a base revision
svn: warning: ‘classes\lib” is not under version control
svn: Error parsing svn:externals property on ‘.’: ”http://svn.phpdb.org/propel/branches/1.5/runtime/libclasses/lib’
svn: Syntax error in revision argument ‘ HEAD http://svn.phpdb.org/propel/branches/1.5/runtime/libclasses/lib classes/lib’
svn: Invalid svn:externals property on ‘.’: target ‘/classes/lib’ is an absolute
path or involves ‘..’
svn: warning: Error handling externals definition for ‘classes\lib’:
svn: warning: URL ‘http://svn.phpdb.org/propel/branches/1.5/runtime/libclasses/lib’ at revision 1370 doesn’t exist

Problem causes:

  1. I used single quotes instead of double quotes. Typing something like
    D:\web\project>svn propset svn:externals ‘http://external.example.org/dir localdir/targetdir’ .

    (including the dot at the end) resulted in error.

  2. Trying to add the target directory manually. Don’t need to do that.
  3. Trying to add HEAD revision as the parameter. It should work, but it didn’t work for me.
  4. Parameter order has changed between svn 1.4 and 1.5. That’s why you’ll find different syntax while googling around.
  5. Used space instead of tab. I’ll explain in the example.

Solution:
Let’s assume D:\web\project is our working copy,
http://external.example.org/dir is the external repository we want to link with our repository,
localdir/targetdir is the path to our result – where we want to have the external stuff – full path would be D:\web\project\localdir\targetdir,
assuming you have localdir already versioned, but you have not yet created targetdir.

So,

  1. Open command line, get into to the root of your working copy (D:\web\project)
  2. create a temporary file (let’s say “external.txt”) with this in it:
    http://external.example.org/dir localdir/targetdir

    You need to have a tab between those two. Newline at the end is optional, not necessary.

  3. Run
    svn propset svn:externals -F external.txt .

    (including the dot at the end).
    svn propset is the command we’re issuing, svn:externals is the name of property we’re changing, -F external.txt just “includes” the properties saved in that file and the “.” at the end means we’re applying it to the current directory.

  4. To test it and get the external files right now, run
    svn update .
  5. Commit your changes.
  6. Done!

There are probably more ways to do this (for example, using TortoisSVN, right-clicking the working copy, selecting TortoiseSVN/Properties, clicking New, selecting svn:externals as the property name and entering the same thing that I saved into external.txt (in format [externalrepo][tab][localdir]) – but that would have been too easy, wouldn’t it?), but I just wanted to help people who are stubborn like me and like to get distracted by occasional error messages.

11.01.09

Reasons to use CVS instead of Subversion, Mercurial, Git or Bazaar.

Posted in Uncategorized at 02:39 pm

None.

10.06.09

Why Flash 10.1 is a big deal

Posted in development, Flash, game, hardware, web, webdev at 05:20 pm

Flash 10.1 is no minor update. Even if you can live without the improvements on desktop (you probably can, actually) – GPU-accelerated HD video encoding, streaming improvements, etc; you still most probably won’t ignore what I think is the greatest news for mobile internet lately – Adobe’s decision to release players for every mobile platform they can get it on – Windows Mobile, Android, Symbian S60, BlackBerry OS, Palm’s webOS (and hopefully also iPhone, eventually, but that’s not their decision).

Here’s the reason why you can’t ignore it – assuming you have something to do with web development: other developers will be able to (1) quickly create (2)rich, (3) highly interactive, (4) multiplatform applications. Now let me explain why those aren’t empty buzzwords.

  1. rapid application development. While Flash or ActionScript quite possibly aren’t the best development tools ever, they’re more than good enough. AS3 is an amazing language, well documented, very fast, sensible, powerful, rather easy to learn. It’s what JavaScript should be – only without the headache of optimising for 20 different browsers.
  2. Rich Internet Applications. Okay, you all know this one. MP3s, videos, vector animations, data push, that sort of thing.
  3. Highly interactive. What? Multi-touch. Accelerometer. Orientation detection. Asynchronous server request combined with sensible transitions and tasteful animation and highly responsive, persistent interface (not disappearing with every pageload).
  4. Multiplatform. Think hundred million handhelds. Maybe not right now, maybe not without delays and hiccups when they launch, but seriously, there is no other way of developing one application for this many hendhelds (and web) at the same time.

11.12.08

notes on the New Cyberspace

Posted in New Cyberspace at 04:10 am

It needs a name, but Cyberspace is too vague (and long), and web 4.0 is for technological wankers.

Cyberspace is not a virtual reality. It’s a real reality with metadata and other things – apps, media, web, networks.
Cyberspace is not the Internet. Internet is just one network, an optional part of the Cyberspace. (Actually, it’s more like Cyberplain; or Cybercanvas, once HTML5 arrives.)
Cyberspace is not a cyberpunk future. Cyberspace shouldn’t turn people into asocial, detached hackers. Cyberspace shouldn’t harm Earth. Cyberspace shouldn’t be controlled by politics, politicians, money, corporations, lunatics, fanatics, technocrats or Luddites.
Cyberspace is not a cell phone network. Cyberspace is not dependent on cell phone networks.

Cyberspace isn’t meant to replace the Internet, not in the first decade of its existence.
Cyberspace isn’t incredibly complex, not in the first few years of its existence.
Cyberspace isn’t for geeks, nerds and dorks any more than it is for everyone else.
Your 6 year old grandchildren will be able to set up and use Cyberspace.
Your 60 year old grandmother will be able to set up and use Cyberspace.
Cyberspace isn’t a place for hackers and viruses any more than current computer systems and networks are.
Cyberspace probably won’t be any less of a place for hackers and viruses than any current computer systems and networks are.

Cyberspace will be more decentralized than you can handle.
There will be no W3C for Cyberspace. There will be a plethora of confusing, ridiculous and poorly designed standards. First come, first served.
Cyberspace will be a spiritual descendant of the Open Web and Semantic Web.
In the best-case scenario, Cyberspace will mostly separate users from underlying hardware and ‘tekmology’.

Cyberspace won’t rely on a single technology for any of its individual elements. It doesn’t matter if it will use XML or YAML, HSDPA or CDMA, WiFi or WiMAX, Flash or Silverlight, widgets or gadgets, RISC or CISC, solar power or body heat, handheld devices or apparel, keyboard or mind-reading, C# or Java or even BASIC; what will matter is if it will all work together, because given the past of any technical domain, any and all usable an unusable technologies will be used.

And guess what. No one will care if you application is optimized for IE 5 on 1024×768.


About author: I am not insane. I am not joking. I am not a sci-fi or cyberpunk or manga nut. I am manic.

10.24.08

Google Developer Day Prague

Posted in design, development, IDE, tools, web, webdev at 12:39 pm

I’m attending Google Developer Day. You can read my thoughts at my twitter page. I might even blog about that later. I am working on some articles about my thoughts on it all, especially the Open Web thing.

You can watch the recordings of the sessions on YouTube, so it’s a great way to catch up if you weren’t able to attend the Google Developer Day. [As of November '08, videos are still being added.] I recommend especially Brad Neuberg‘s The State of the Open Web [57 minutes], but there is something for everybody (Gears, Python, Open Social, App Engine, Android, Geo, etc).

10.05.08

a few hardware micro-reviews

Posted in hardware at 06:53 pm

So, I’m not selling hardware anymore, but I’ve had money to buy some. A headset, earphones, mouse, 2 CPU coolers, a PSU, 2 silent fans, a PowerBall, a sound card, and a lappy.

The laptop was a Toshiba A210, which was on sale, because it’s an older model. Automatically, I’ve bought 4GB RAM with it and installed it before even turning the lappy on for the first time. After all, it came pre-installed with Windows Freaking Vista, which would swap the hell out of my patience with the original 2x512MB. The only thing that I don’t really like about the lappy is 120GB hard drive, which is not enough for my needs and extensive music taste. I’ve been using it for what, 3 months now? It’s still perfectly functional, despite my not-so-tender manipulation. The battery life is what I expected, 3 hours on power saving mode, under 2 hours on full power. It serves my purposes, which I won’t elaborate on, since making a review on 4 month old notebook is as useful as writing a LinkedIn recommendation for a zombie. But still, I’m satisfied with the Toshiba.

The mouse that I’ve bought recently is Toshiba Mini Retractable Laser USB mouse. I didn’t have any strong reason for choosing Toshiba over any other laser mouse in that category, but I thought that the retractable cable might come in handy, because I plan to use lappy on my travels. It works fine, although not perfectly, and it’s pretty small, but not microscopic, so that suits its purpose. One thing that scares me a little is that the cable itself is ridiculously thin, and I think I’ll break it any moment now. But I haven’t yet.

A PowerBall is a PowerBall. It works as expected, except that I’m annoyed that I still didn’t manage to start it just by thumb. It’s a little loud to be just a toy that you’ll have in open space office and use anytime you need to wait 2 minutes for something to finish, but it’s nice both for relaxing and exercise.

CPU coolers. I’ve tried a Thermaltake TMG A3. It was terrible, huge, hard to install, and didn’t cool any better than stock AMD cooler, and it was only tiny bit quieter. But it was cheap. (I’ve had a problem installing it at first, which may be a specific of my motherboard; however I’ve solved it by inserting some junk in the middle of the cooler, under the V-shaped console that holds the cooler in place.

The second one was Arctic Cooling Freezer 64 Pro. It’s huge, it’s not too expensive… but it was loud as hell. It was much louder than the stock cooler or the Thermaltake TMG A3 cooler. Why? Because it uses 4-pin fan connector and my motherboard has only 3-pin fan connector. And, my BIOS doesn’t have any fan control capabilities. The cooler didn’t work well enough as a passive solution, so I ended up extracting the fan from Thermaltake cooler and putting it on top of the Freezer 7 Pro (while its fan was disconnected). That worked relatively well for a while.

Finally, I’ve decided to end this still-too-loud-for-a-good-sleep solution by purchasing two Noctua NF-P12 fans. I would sing ballads about those, but everything you need to know is in that review. Well done. I use one for cooling CPU and the other one for cooling my Asus EAH3650 card – which was the loudest element of my computer until now. With Noctua fan next to it, I could disconnect the fan on my video card, significantly reducing the noise.

Also, few months back, I’ve bought “Seasonic S12II-380HB Energy 80-Plus” PSU; I didn’t have the opportunity to test the power efficiency, so I leave that to other reviewers; but the noise level is excellent – by which I mean very low. It’s the most quiet part of my computer.

Sound card. Ridiculous name, buggy drivers, excellent sound. Yes, I’m talking about Creative. I’ve been using Sound Blaster Live! Player (an old, budget, EAX2 solution), and now I’ve migrated to PCI Express X-Fi Titanium Fatal1ty Pro – it’s got EAX5, excellent sound and even 64MB of RAM on board for sounds. How fancy can you get? Not much else I can say, really. It just works how it should – except for the stock drivers, which complicated my life for a while when they refused to switch the modes – which is essential for turning on EAX5 for gaming (yes, I realize there are not actually so many games that support EAX) – so I’ve had to perform a clean reinstall. But ever since then, it just works again.

Second Creative product I’ve purchased was headset HS-400; the sound quality is very good for what I use it – Skype calls – and those few times I’ve had them on for gaming or music, I was pleased with the price/quality ratio. The microphone can be plugged from either side (or completely unplugged) and is adjustable very well. The headset itself feels slightly uncomfortable on my left ear, but I guess that’s just me. And it also feels uncomfortable when I’m with by back against the wall.

The last Creative product I’ve purchased so far were Creative Earphones EP-380 – clip-on earphones. Good sound quality, relatively good price, very comfortable, good for sporting; not good for listening to music alone in silence (because the sound isn’t fantastic really; Belkin earbuds I’ve used before offered better sound quality). Also not really good for office, if you want to listen to your music loud to forget about the rest of the world; the coworkers will hear your music and you will hear your coworkers. However, if you want to listen to the music AND hear what’s happening around you, they are a very good solution.

12.25.07

New addiction (note to self)

Posted in game at 10:21 pm

EVE Online 30 day Game Time card

10.17.07

So it’s past year 2000, we all have video chats, right?

Posted in evil, Flash, web at 06:47 pm

Left. I mean wrong. Yes, I’ve recently bought Canyon webcam, I’ve edited the .inf file (from drivers) to be able to use it under Windows Server 2003 and… since 10 years back, I’ve been able to watch some guys with webcams talk to each other through some Flash application, I’ve expected that it will be easy to find chatroom like that on every other server.

After long hours wasted, I have found that most of the webcam services are concerned about porn or half-porn (i.e. “communities” that weren’t propagated as porn, but boasted with pictures of scantily clad women and asked for your credit card number to verify age before joining. No way, suckers.). The other part was made of Flash or Java-based chat services, and desktop clients with poor feature list – unless you pay. Some 160×120 preview window for only one person at a time? Kthxbai. I will not pay to talk to people who use large violet font with italics and spell like 6-year-olds.

The last piece of the pie included few websites that didn’t even require registration for you to join the chat. Most often, out of 10 people only 2 had web camera, but at least you could watch more people at once. And you didn’t have to install crap into your computer, because you surely (I’m 98% sure) have Flash player installed already. Which is no crap anyway.

So, what I wanted to say is COME ON, PEOPLE! What’s the matter with you? Afraid to show your face? Wearing sunglasses in front of webcam, showing your left arm and a piece of wall? Privacy, security? Come on. You submit unencrypted data that’s more sensitive than your face. You know what? I’m gonna find a software that will always broadcast my unshaven face just to show you I have a webcam and broadband Internet connection. Losers.