Skip to main content
 

LSL tests: recursive function

It's good practice to make code easy to maintain, so sometimes you'll want to use less code using recursive functions. In order to find out how to this works in Second Life I created this small recusive example:

integer i = 0;
integer top = 0;
integer Monkeys()
{
    llOwnerSay("monkeys");
    i++;
    if (i <= top)
        return Monkeys();
    else
        return i;
}
default
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }
    touch_start(integer total_number)
    {
        i = 0;
        top = Monkeys();
        llOwnerSay((string)top);
    }
}

This script says monkeys an increasing amount of times every time you touch it by calling itself if and keeping track of the total amount of times the function is called. First time there will be 1 monkey, next time 2 monkeys etc. Find more products at our shop in Badmoon.

 

LSL tests: walking states

I had to create a simple script to turn a neon sign on and off. I decided to have both versions of the sign in a single texture and changing the offset with a script. Instead of using a timer and using llSetTimeout() instead I opted to pause the script for a small amount of time. The script does not respond when it's sleeping which should be less laggy then the timeout. All i do then at the start of a state is offsetting the texture to show the on/off alternatively.

default
{
    state_entry()
    {
        llOffsetTexture(0.0,0.25,ALL_SIDES);
        llSleep(1.37);
        state off;
    }
}

state off
{
    state_entry()
    {
        llOffsetTexture(0.0,0.75,ALL_SIDES);
        llSleep(.723);
        state default;
    }
}

Hope this is of use to you. See the result in our Higher / Lower game at Badmoon.

 

Youtube Dreamweaver CS3 Tips

Brian Wood presents an excellent Dreamweaver tips video on Youtube. Many people just use DW as a text-editor but it's capable of a lot more even in code view. The following video might open your eyes:

Very nice.

 

Recommended: Instapaper

I'd like to start recommending webservices  and software that I use frequently. Any product recommended has been evaluated for at least several weeks. In today's recommended we feature Instapaper. (Recommendation articles are personal opinions with no benefit for the author)

What does Instapaper do? Instapaper facilitates easy reading of long text content.

We discover web content throughout the day, and sometimes, we don’t have time to read long articles right when we find them.

Instapaper allows you to easily save them for later, when you do have time, so you don’t just forget about them or skim through them.

http://www.instapaper.com/

 

Piracy and pc gaming

Interesting article regarding piracy and pc gaming:

Recently there has been a lot of talk about how piracy affects PC gaming. And if you listen to game developers, it apparently is a foregone conclusion - if a high quality PC game doesn't sell as many copies as it should, it must be because of piracy.

Now, I don't like piracy at all. It really bugs me when I see my game up on some torrent site just on the principle of the matter. And piracy certainly does cost sales.  But arguing that piracy is the primary factor in lower sales of well made games? I don't think so. People who never buy software aren't lost sales.

Is it about business or glory: http://draginol.joeuser.com/article/303512/Piracy_PC_Gaming

 

It should be free?

Should simple software be free:

During the chat, the entire MacBreak Weekly crew discussed the danger to the music industry that comes from younger listeners having a built-in expectation that music should be free.

On this episode I believe [Leo Laporte] has inadvertently helped to perpetuate the same kind of thinking about software that the panel had just finished expressing concern about with regard to music: the idea that the hard-earned fruits of somebody’s creative labor should be free.

http://www.red-sweater.com/blog/481/it-should-be-free

 

Getting started with Powershell

PowerShell is a complete replacement for any of Microsoft's DOS or Windows command line interpreters. It is a full fledged object oriented system administration scripting language. With PowerShell knowledge you would run circles around any sysadmin that works predominantly from through the GUI, as well as be able to get Windows to do things that you just can't do through a GUI alone.

http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/index.mspx

 

Games for Windows Live Marketplace likely

From Eurogamer: Unangst said Microsoft would "continue to invest" in Games for Windows, which apart from giving its games an Xbox Live-style service layer with friends lists, Achievements and the like, also insists that games be easy to install, support widescreen displays and include parental controls.

It all sounds promising. The one thing I was most impressed with on Xbox 360 is the whole integration and lack of configuration for games, if they can bring that to Windows Vista then a lot of people will be very happy.

Some ideas:
You can see how they could potentially take the experience index benchmarking framework and develop that into something that can adjust games visual quality, automatic updating and applying of patching without user intervention, matchmaking and the community features could all be very useful and add value to PC gaming. Even some sort of integrated anti piracy tool developed for Microsoft that doesn't rootkit your machine which would be less painful to consumers would also be an improvement over the current situation.

 

Tracklist @ Drome

Breaks Friday with Cloudseer @ the Drome! It's my new spot: 3pm-5pm PST! Start off your weekend with the best breaks mixed by live DJ Cloudseer Writer, with a little bit electro thrown in! Bring all your friends to the Drome :D

It was good, managed to cram in a lot of breaks in two hours!

# Title Artist
1 Rattle Ya Cage General MIDI
2 Bone Snow HELL, Sam
3 No Rockstars (Bass Kleph Remix) Hyper
4 Loving You (Atomic Hooligan Remix) - Ils Ils
5 Soul Of Man - Foxy Moron Drummatic Twins
6 Rusko v.s. the 80s Crendore
7 Jahova Rusko
8 Shake It Up (Hook n Sling Remix) Stanton Warriors
9 Slyde - Vibrate To This (Dt's Re-Edit) Drummatic Twins
10 Tell Me How You Feel (Kid Kenobi vs Rogue Element Remix) Krafty Kuts
11 Pop Ya Cork Stanton Warriors
12 Message 2 Love (Alex Metric remix) Sharam Jey
13 Plump Djs - Black Jack Drummatic Twins
14 Everybody Get Up (Circuit Breaker Remix) - Transformer Man Transformer Man
15 Cockney Thug Rusko
16 Good To Go General MIDI
17 Undertow feat. Patrick Scott - Oracle's Man Overboard Mix Summer Channel
18 Control (original mix) AUDIO DEALERS
19 Rock This Place General MIDI
20 Drummatic Twins - Feelin Kinda Strange (Bass Kleph & Nick Thayer Remix) Drummatic Twins
21 Shredder Far Too Loud
22 Da Virus Various Artists - XL Recordings
23 Pop Ya Cork Stanton Warriors
24 Turn It Loud General MIDI

 

Responsible browser vendors are hard to come by

Mike Davies works as a web developer for Yahoo Europe and has some insightful comments on the Internet Explorer rendering switch (see source).

When a user upgrades from IE7 to IE8, they will be upgrading from IE7 to IE7. When a user upgrades from IE8 to IE9, they will be upgrading from IE7 to IE7. Notice the trend. [...]
Effectively, with this meta tag proposal, Microsoft have either absolutely guaranteed that they will remain the dominant browser on the web, or it has sown the seeds for its ultimate destruction. If it's dominant IE7 will be the instrument to hold back all standards compliant progress, just like IE6 before it.

Source [isolani.co.uk]

I can only agree. It seems to me the switch will result in better fitting websites, but not by using more standards. But I noticed this at the whole Eolas patent debacle: the IE team doesn't take enough responsibility regarding standards. Even though the code was fine they wanted developers to implement a javascript workaround for their own workaround solution in all their pages with embedded content. They didn't want to (or couldn't) pay Eolas so people now have to click to start embedded media. Even though it's a browser issue.

And the same happens in this case: if the browser vendor took its responsibility and improved its implementation, the whole issue  wouldn't exist for webdevelopers' if their sites written to standards (and valid) don't display properly. So the whole "the users have to be protected from broken pages" card is a smoke screen in my opinion.

Just be frank then: corporate partners costcutting is more important to Microsoft than the freedom of the web.

 

Top sites for inexpensive videogames

The following sites might prove useful if you suffer from a games addiction:

 

Improving someone's code

Don't call your submit button 'submit' if you want to change the submit event with Javascript:

If you do, the browser (please read “Firefox 1.5 or IE 6? - that’s what I tested at the moment) will consider submit is an object. And an object is not a function (although you might enjoy later on the paradox that a function is an object).

Source [webprodevelopment.com]

 

Wifi detector shirt

wi-fi-shirt All you need now is a mirror to see your own shirt:

This Wi-Fi Detector Shirt will detect Wi-Fi hot spots around you and will show you a signal each time it detects a working Wi-Fi spot.The Wi-Fi shirt will even show you the signal strength of the Wi-Fi hot spot around you and will animate the signal dynamically.

Source: Sizelopedia via Cybernetnews

 

Facts from Microsoft

Apparently they have not processed my 200+ logs I sent to them:

  • Windows Vista users generally experience 20 percent fewer application “hangs” than those running Windows XP.

Source (Microsoft)

 

Top 10 Crazy laws still in existence (uk)

  • It is illegal to die in the Houses of Parliament
  • It is an act of treason to place a postage stamp bearing the British monarch upside-down
  • In Liverpool, it is illegal for a woman to be topless except as a clerk in a tropical fish store
  • Mince pies cannot be eaten on Christmas Day
  • In Scotland, if someone knocks on your door and requires the use of your toilet, you must let them enter
  • A pregnant woman can legally relieve herself anywhere she wants, including in a policeman’s helmet
  • The head of any dead whale found on the British coast automatically becomes the property of the king, and the tail of the queen
  • It is illegal to avoid telling the tax man anything you do not want him to know, but legal not to tell him information you do not mind him knowing
  • It is illegal to enter the houses of Parliament in a suit of armour
  • In the city of York, it is legal to murder a Scotsman within the ancient city walls, but only if he is carrying a bow and arrow

Sourced from BBC thanks to Cybernetnews

 

AltTabFingertips

What it does
I made a small AHK script I thought you might want to use: AltTab Fingertips. Press a configurable hotkey (F10 by default), and get a menu at the mouse with all the current windows on it. You can exclude processes using the tray menu.

Many thanks to ak_ for creating "menu at cursor" idea with FileDraft, which inspired this. It's like alt-tab but quicker. A lot of code comes from my PutAside script.


Small screencast:

Changelog:
v1.3 - Recompile, shiny new icon, INI in the same folder as the script for portability!
v1.2 - startup message is now only shown once. Added "show desktop|restore programs" option to menu, (windows-d)
v1.1 - allows to exclude processes via system tray menu.

Download the latest version

Comments are welcome either here or on the related Donationcoder thread.

 

Discussing Oliver Rist of PcMag.com

Oliver Rist brings us the latest rant on Leopard not being as rock-solid as Tiger. His informative article *cough* starts like this:

I'm not sure what ticks me off more about Leoptard (I can't take credit for that nickname—some Brit coined it): the fact that so many of the semi-important changes don't work, the fact that Apple turned a stable OS into a crash-happy glitz fest, or that the annoying, scruffy Live Free or Die Hard actor infecting my TV (and our Web site, by the way) is pretending that Leopard is better than Vista.

Lesson 1: Any article that starts with a sentence like that is not journalism. I thought better of pcmag.com! Well not anymore. Between that and the sidebar enty "Why social networking stinks" pcmag just lost a lot of credit in my book. No thanks Oliver Ristard.

Thanks to the Donationcoder thread (yeah I am the user justice, I'm not ripping off other people's posts)

 

Avoid spyware by running applications with SetSAFER

Everybody who's ever tried it knows the problem. Life as a regular user on Windows is a pain: who wants to switch users just to install software, sometimes even to run it? However running software as a non-admin increases security. It's impossible for spyware to install itself into the system when it is not allowed to.

Using SetSAFER, a program created by Microsoft employee Michael Howard we can run just any applications as a regular or limited user, while still using an administrator account. After testing for side effects, which I explain below, I recommend you give this a try. I no longer have to run a realtime spyware scanner, and now just schedule routine scans.

As one of the articles Michael has written on the subject is not available anymore I'll quote the nonadmin site for an complete explanation of the program:

SetSAFER is a policy-setting tool written by Michael Howard that can force applications to always run with lower privileges. You can download it and read about it in his MSDN article "Browsing the Web and Reading E-mail Safely as an Administrator, Part 2".

For example, you could mark you favourite  browser to always run as a user, regardless of whether it starts by invoking an URL on the desktop, a link in email, a newly spawned browser and so on.

SetSAFER uses the SetSAFER.xml file to configure the applications that should be run with lower privileges. You can edit this with any text editor such as notepad to add applications and even folders. My configuration can be found below. This way I run my browsers, e-mail software and messengers without worrying about spyware:

<?xml version="1.0" encoding="UTF-8"?>
<safer>
<app comment="Internet Explorer" path="c:\program files\internet explorer" user="true" />
<app comment="Mozilla Firefox" path="c:\program files\mozilla firefox" user="true" />
<app comment="Opera 9.5 Alpha" path="c:\program files\opera 9.5 alpha\opera.exe" user="true" />
<app comment="Outlook" path="c:\program files\microsoft office\office12\outlook.exe " user="false" />
<app comment="Outlook Express" path="c:\program files\outlook express" user="true" />
<app comment="Windows Messenger" path="c:\program files\messenger" user="true" />
<app comment="Windows Live Messenger" path="c:\program files\windows live\messenger" user="true" />
</safer>

Side Effects

Some applications are not built to run in a mixed privileges environment and seem to cause issues when run like this. However, this is not SetSAFERs fault as it just uses the built-in windows policy settings!

Google Desktop and Google Toolbar for Internet Explorer monitor the browser history for pages that are visited and add them to their database. I assume this is not allowed as a regular user. Whatever the reason, it causes the browser to freeze whenever you go to a webpage. I've uninstalled Google Toolbar and Google Desktop until I have found a solution. Any help would be appreciated.

The website for Windows Update and Microsoft Update and certain Java applets will not  function if the user is not an administrator. This can be a pain if you want to manually check for updates. The solution: navigate to the installation folder for Internet Explorer (c:\program files\internet explorer ) and copy the iexplore.exe program to another location. The copy will run with full rights.

Finally, any program started from another application inherits the security settings from the parent program. This means that installations run directly from the browser will run with lower privileges. They'll let you know you do not have enough rights to install it. This is intended and exactly what we want: a secure browsing environment. However, it might prove a slight annoyance at first. Just browse to the file yourself and run it yourself.

Downloads and Resources

 

No-one knows the value of software but let's not guess

It's impossible to know if software is worth the asking price, even if it's free, if you haven't used it. Value of software only becomes apparent over time. It takes time to evaluate and learn the software, to manage your information with it, and to fit it in your workflow. Only after that you know how valuable the software is to you. So how much should you pay the next time you hit that buy button?

Well that depends how much the developers are asking for it of course. And they're guessing as much as you do. They can prize their product out of the market, by being too expensive. Or they might prize it so low that you think it isn't up to the task.  They might not tell you the price at all and have you call their 'representatives'. They might give it away for free!

And God help you if an A-list blogger finds out that your premium printer is identical to the cheap printer, with the speed inhibitor turned off. Joel Spolsky

ANY price SOFTWARE bring its own problems

So recently there seems to be a trend to allow customers to set their own price for the latest audio-cd or software package. If you want to pay £1 for it, that's fine. If you think it deserves £100, that's ok too. That's a very brave move on the part of the creators and I have respect for that. It must be hard to hand over the responsibility of valuing your software to people who do have no idea about the value.

As for letting people name the price they pay for the album, he said "It's fun to make people stop for a few seconds and think about what music is worth, that's just an interesting question to ask people."

But I have no idea how much more valuable the latest operating system is before I use it. Especially not if one variety is available for free and another costs me my monthly salary. How much money would you be prepared to pay for an iPhone for example? Other people paid $200 less, are you still happy?

Don't worry be happy

So it's almost impossible to value software, and nobody really knows how much it's worth. This only leaves us with two other options that I have not explored: donationware and software-as-a-service (SAAS). Use the software for an amount of time and decide how much money it's worth to you. And then just make the most of it.

 

Site comments

I'm still working on the looks of the site. If you're using Opera, you might have noticed the horizontal scrollbar. It will be gone soon! But in the meantime, press ctrl-F11 and it will be gone.

There are some positioning issues too but I'm working on this in my spare time, so watch this space.