Removing High-Pitched Noise from Canon Powershot Videos

One for the Googlers:

My Canon Powershot A630 also records videos. Unfortunately the microphone catches the sound of the internal mechanism (I think it’s the screen) and the video it produces has an annoying ringing noise.

Using this tip on audio removal from the wiki for the software Audacity, I managed to figure out that the high-pitched noise has a frequency of 4290 Hz.

I extracted the audio from the video using VirtualDub, and opened it with Audacity 1.3.4 beta. Like the Wiki page instructed, I used the Nyquist prompt and the command (notch2 s 4290 50), and this removed the noise flawlessly!

All that needs to be done is now to reinsert the audio into the video file. I can combine this with re-encoding the video with a more size- (and web-) friendly codec.

My First Word Processor

Talking about dot-matrix printers, a childhood memory of war (against the computer) comes back to me…

The year was when I was going to 7th grade (I’m 27 now, so calculate it yourself). A teacher wanted an assignment to be handed in computer-typed. No problem, I thought, I have WordStar and a printer.

At home, I booted up my DOS PC, put in the WordStar disk (5.25 inch!), and typed “ws.exe”. Bzzt, bzzt, I was back in DOS. Damnit, the program was infected with a virus!

With the assignment due the next day, I was desperate.

“I know, I’ll use Quick Basic’s features to control the printer, and make it print what I want”. All my program did: wait for input, and print it out. But the variable to hold the input can have a maximum of 255 characters!

“No problem, I’ll just stop after typing 3 full lines with 80 characters each, and press Enter. Put the whole thing in a while loop.”.

So that’s what I did, the printer screeching every time I hit Enter. One time I hit Enter too soon, leaving, aieieie, a big nasty gap in the middle of the page, catastrophe! (Was it in the middle of a word too? Can’t recall).

I was quite proud handing in that piece of paper with unformatted lines filling it. I tried to explain to my physics teacher why there was a gap in the middle, but looking back at it, I don’t think he cared…

F***ing Faceboof!

On my second rant against the most idiotic thing ever invented, Faceboof apps, I shall now rant against the Super Wall…

What is it? Just the “web 2.0″ (or is it just Facebook) equivalent of email chain-letters. It was born to this feature with the fact that you can write, and forward a message, to, per default, ALL of your contacts. What’s in it? The same bullshit, over and over again, forwarded to you by your “friends” because it says “Forward now!”. Somebody should really invent a one-button “Send me money” functionality on the web, imagine how rich he’ll be after posting “Click here now!”.

So anyway, there’s this joke posted on some person’s super wall I wanted to read. It turned out to be a rehash of the old joke of reasons why a computer is male (you got it to solve problems, instead it IS the problem), and reasons why it should be female (only its creator understand its internal logic). Anyway, before I found this out, I had to click “Click here to read the rest of this message” (Haha, I’m just as stupid… Ka-ching!). So I did. “Install Super Wall?”, the stupid thing asked. “Well all right, I’ll delete it afterwards.”. Uncheck all the stupid things it wants to do like write to my status feed, spam my mailbox, put itself on my profile (oh hell no!), and click “Install!”…

“Do you want to invite your friends?” No, f- you, skip that.
“Do you want to send e-cards?” No…
“Do you want [I forget what, I was just looking for the skip message]“.

Ah the stupidity of Facebook apps. If you want to interact with a friend’s installed app, you have to install it too! Because user-base is everything! “We have a million users! Now give us 50 million f’ing dollars you stupid venture capitalists!”

OK, can I now downgrade to Web 1.0 please? Here’s your quote of the day: “Web 2.0 is Windows Vista”.

Faceboof

Wow, Facebook has a pretty cool new feature, “People you may now”, probably those people who have a high number of mutual friends with me, a.k.a. “2nd-degree friends” or nodes on the network with distance = 2 via multiple paths.

Out of the three people it recommended for me, it got 2 wrong, and 1 right, I do know her, but eh, I don’t really want to be “friends” with her, because I think she’s a b***h…

My Take on The Absolut World

Funny to see that most of the photoshops have been from the “America is great, get a brain you morans!” side of the blogosphere. I suppose the don’t-have-a-brain-big-enough-for-a-sense-of-humour conservatives are the ones being offended by Absolut’s humourous ad.

And apparently the war’s even reached Wikipedia’s talk page on Absolut Vodka, with these dolts being outraged that Wikipedia is, I would convey it as “taking Absolut’s side” on this “controversy.”. Talk about sounding like 5 year old kids. One commenter even wrote that they are outraged that a company redrew the border of a sovereign nation. Oh boo-hoo mate, it’s a joke! So what if some ad-executive (or whoever) wants to draw the borders in any way he or she pleases? It’s called free speech and even if the conservative dolts can’t accept it (like a lot of things in the world that they can’t accept), it’s still the law!

Next Vacation Destination

Pictures in Google Maps

Wow, so Google Maps now has geo-tagged pictures from Panoramio. At least my account has it, I think it’s a limited beta which I got a lottery for.

Panoramio

I must admit, it’s pretty cool, to see pictures of Monaco, you just browse to Monaco. How intuitive!

The first time I visited Panoramio, I wasn’t really impressed with it: it had the Google Maps Javascript application embedded in every page, which slowness-effect just annoys you on a Gigahertz computer. And every time you click an image you navigate away from the current page, loading another page, with another JS-bloat, argh! [And here I am with a cool answer to this problem, but I'm just sitting on it!]

But then, even something as simple as that can be bought by Google. Geez, I wish I had thunk of that! :)

Wish List

INSERT INTO `amazon`.`wishlist` (id) VALUES (SELECT id FROM `products` WHERE `name`=’Aston Martin DB9′);

User is Online

Can’t believe how much I am online…
- Go to work: boot up, start the IM client formerly known as Gaim.
- Go home: boot up, same procedure, sit in front of the computer the whole night.

I should get a phone with a flatrate data option and a mobile messenger… hah.

Schadenfreude

After all the bullshit Ferrari’s done to McLaren last year, it was great to see McLaren winning the race and Ferrari getting it all fucked up…

Bad luck for Kovalainen having the safety car just before he stopped for fuel, but what a great move against Alonso 3 laps from the finish, I think Ron Dennis enjoyed it too.

Stupid Bleeping MySpace…

What is it with MySpace and other sites’ insistence, that because I visit them from a German IP, they should supply me with the German interface? It’s so f-ing irritating to read profiles in English and then having German words and thinking “What now? Oh wait that’s a German word.”.

Can’t they respect the browser’s setting of preferred content language? They probably think “Users are too dumb to be able to set that!”. Well fuck you for disrespecting your users!

Serves me right for visiting MySpace…

This is (not) A Joke!

Yesterday I was browsing with my ad blocker turned off, when I saw one of those annoying epilepsy-inducing blinking ads

This is not a joke! You are the 965,467,695th visitor to this website! Congratulations! Click here for your prize!

With 2 Windows-XP style buttons on the bottom: “Cancel”, and “Claim”. Surprisingly clicking “Cancel” doesn’t do anything - I would’ve thought it would open up whatever stupid “Give us your email address and we will f’ing spam you (no we won’t, promise, trust us, we’re an honest bunch of toilet scum!)!” website, but it didn’t.

It used to be that you’d be the millionth visitor. That got old, so you’d be the 10 to the power of whatever minus or plus 1th visitor. But no, this time you were the [some random number like above]th visitor.

And I especially like the first sentence; “This is not a joke!”. I suppose it’s enough to fool another x percent of gullible people, who would otherwise not be fooled because they realize it is a joke… ‘Wait, you’re being serious? OK then!’.”.

I suppose the next step on this evolution of scum is a banner ad that says “This is a joke! You are not the millionth visitor. You are just some number. You are not going to win anything other than lots of spam! Click here if you want some spam!”.. I’d fall for that.

I wasn’t going to blog about this stupid banner ad, but then today reading about the adventures of toilet scum president in Iraq, I realize in the next couple of days there’s going to be an American soldier who’s going to win another prize…

This is not a joke! You are the 4000th US soldier to be killed in Iraq! Congratulations! Your prize: just like everybody else before you, a free ticket out of this hellhole!* And… 15 minutes of fame on CNN!**

* in a flag-draped coffin.
** posthumously.

YouTube via VLC, 3rd attempt

Well, YouTube changed itself a while ago, and I fixed my script, but was too lazy to upload it…

But now I did, here it is: vlcflvplayer.user.js

Deluded

So anyway, I’ve been following the news stories about the murder of Meredith Kercher for the past few weeks, I suppose because it’s quite the mystery, what the hell did happen, what was the motive, what really happened.

Anyway, one interesting aspect of this story is that one of the three suspects, Amanda Knox, is a white American girl from Seattle, who’s so far lead an exemplary life; a good student, well-behaved, etc, etc.

What thought process made her decide to take away someone else’s life is the question I ponder.

Because of her image of innocence, there’s a lot of people that has been defending her. Her parents and friends, of course (that’s just a default mode to take isn’t it?). A “news” reportage interviewed them recently and they testified to her good nature, kindness, how warm her hugs were, and so on and so forth.

Of course the TV channel probably filtered the message, and people who could testify to her evil side (if there were any witnesses) weren’t even asked for an interview.

I remember watching a TV ad where the actor says “I am really healthy! Well except for that bit of back-ache. And the bit of … [some other things]“.

“Wow, that’s true!”, I thought. I’ve always thought that I am a healthy person, since I rarely get sick. But in reality I sit in front of the computer all day, rarely exercise, and sometimes when I go to lie down in bed at night (or, in the morning) that I notice, ouch, my back hurts. But through the power of delusion I ignore and forget the little things and think, “Oh, I am fine.”

I am sure Ms. Knox has had a temper tantrum once in her life, or has done something wrong that upset her friends and family. Of course those sort of things don’t look good when you’re being asked to describe the character of your murder-suspect friend/daughter, so you don’t mention them.

In the same note, you can always find somebody to say “Yeah he was always a bit strange” when asked about a criminal who’s been caught of some non-petty crime.

So you lie about the bad things to other people, or if you are a GWB-”conservative” American, you lie about them to yourself.

Ms. Knox not only has her friends and family who defend her, she has plenty of fellow Seattleite and Americans doing so. And for some reasons this has turned into a US vs EU cultural war.

Now I live in the EU, so I guess you can call me biased for the EU. And some Americans have displayed so much ignorance, stupidity and arrogance lately (best represented by the monkey that they even chose to be their president) that I don’t expect much difference from them.

For one thing there’s probably a thought unwritten in blog articles and comments that the Italian justice system is useless, perhaps filled with idiots and people not knowing what they are doing. I think in the minds of their authors there’s a representation of USA’s superiority in criminal forensics in the form of CSI episodes.

I admit, at first I also thought “I hope those Italians do the investigation correctly.”, as if they are a bunch of incompetents. But the truth is, I don’t know how well, or how bad their expertise in the field is. But it is wrong to dismiss them as inferior based on the evidence of “Well, they’re Italians, not Americans.”.

Because I am really annoyed at USA at the moment, who says they always knows best in what they are doing anyway? Look at FEMA, to name one example.

And because the USA has been greatly humiliated through their major fuck-ups in the past 7 or so years (Long shall the GWB presidency live in the history of the world), I feel the proud Americans are even more eager to show that they are still superior to the world.

The aforementioned cultural war is perhaps a bit one-sided though, with Americans fuming about how their girl is being portrayed in the British and Italian media (well, I guess it’s not exactly the whole EU in this war), while the British media (well, I can’t read Italian) so far has been “la-la-la”-ing and going about its business.

Some of the American “news” articles are accusing that the Brits are portraying Ms. Knox as a sex-crazed drug-addict party girl. Too bad the Brits that are doing can not be exactly said to represent their media though, the Daily Mail being a tabloid that shock and sensationalize stories to wow their readers.

One defender of Ms. Knox is Candace Dempsey, an Italian-American writer based in Seattle. What does she write about? Food. She also has a blog hosted on the site of the newspaper Seattle Post-Intelligencer. Perhaps that is why her articles show up in Google News, and through GNews is how I found her blog.

Her blog is presumably about food, being called “Italian Woman at the Table”. But lately she has also been writing about the case of Meredith Kercher. This has gathered the attention of a lot of the followers of the case, both defenders and accusers of Ms. Knox, who’s been leaving her with abundant comments, some praising her voice, some accusing her of being blind to the facts.

I suppose Ms. Dempsey is new to the blogosphere (TM!), that she’s only discovered what “trolling” is after a blog post she wrote about the case, having to look it up in Wikipedia and feeling the need to explain to her readers what it is, inventing the terms “trollarazzi” and “trollerazzi”. She had been “trolled” by commenters being rude in reply to a blog post.

In her blog, she’s been defending the innocence of Ms. Knox in the murder. Or to be more accurate, the chance that Ms. Knox may be innocent, based upon her good character and the to her sheer improbability of such a sweet, innocent, girl to be a murderer.

Her outlandish theories of how Ms. Knox can be innocent are amusing. For example, she believes it is the prosecutor’s job to explain, why, if the cause of the murder was Ms. Kercher catching Ms. Knox stealing money ouy of her bag to buy drugs off another suspect - Rudy Guede - could Ms. Knox not have gone to the bank instead?

To respond to that: So what? Some people get killed over a parking spot. I don’t think anybody ever asked “Gee, how do you explain that the man chose fatal violence over looking for another parking spot?”.

In her latest blog post, she interviews another author and journalist, this time an author with expertise in crime, Doug Preston.

It angers me though that Mr. Preston was also very biased towards Amanda Knox, saying

Amanda had absolutely nothing to do with the murder. The outpouring of abuse toward her is extremely disturbing. I am convinced she is innocent, and I cannot understand why there has been such a bloodthirsty rush to judgment.

and, “the evidence is overwhelming that she had nothing to do with it. Absolutely not.”.

Of course before the interview a small disclaimer says his comments “speculation, but informed speculation”. But it sure reads like he was very certain of what he was saying…

I was just going to post a small comment in response to the post, asking what their opinion might be about a piece of evidence that goes against Mr. Preston’s absolute certainty that Ms. Knox was no where near the scene of the crime. Unfortunately after scrolling through the comments supporting the 2 authors, I saw that she’s closed commenting for the post, claiming

Readers,
I’m closing down for the night, right on the cusp of a troll invasion! See you in the morning.

it got me a bit annoyed…

Now, she wrote this comment at 1:37 am local Seattle time, which is 10:37 am in Central Europe and 9:37 am in the UK, all times Saturday morning. It smacks me as a bit of censorship, which has the purpose of denying European readers and commenters a fair discussion on the blog post and interview. What is the cusp of troll invasion that she talks about? Does she perhaps mean the European readers, who at 1:37 am Seattle time were just waking up and getting online?

Of course, I can understand not wanting to read and respond to the comments who were about to rip apart her post and its bias, especially not on the eve of a Saturday and a weekend. But I am not the one who’s been blogging trying to convince everyone of the case one way or the other. I find her cutting off the dialog before “the other side” has a chance to respond displays her fear of dialog.

Now, why is it does she fear dialog? I am only speculating, but I feel it is probably because she’s created a whole delusion that Amanda Knox is innocent, and she doesn’t want to face the facts again and again in the comments, which would either cause her to doubt her conviction, if she’s smart, or upset and lead her into more denial, if she’s the kind of person who functions like a GWB-believer.

Kudos to her that she actually read and responded to the hundreds of blog comments people have left.

To return to the original small comment that I wanted to leave that got me to writing this monstrosity, I wanted to ask Mr. Preston, “If you are so certain of Amanda Knox’ innocence, what do you say to the report [assuming it is true] that, when the police found Knox and her boyfriend at the murder scene, they were in the process of washing Meredith’s bloodied clothes in the washing machine?”.

As to Ms. Dempsey, I guess I am to her just another “trollarazzi” attacking her arguments, and by proxy, the sweet and innocent Amanda Knox. Reading the comments on her blog posts, there are already hundreds others like me, posting level headed rebuttals to her biased writing. They don’t seem to have had any effect on what she believes, so I’m not keeping my hopes up.

USA! USA!

From the New York Times:

Real sacrifice wouldn’t be required, however, because living standards are not tightly coupled to consumption rates. Much American consumption is wasteful and contributes little or nothing to quality of life. For example, per capita oil consumption in Western Europe is about half of ours, yet Western Europe’s standard of living is higher by any reasonable criterion, including life expectancy, health, infant mortality, access to medical care, financial security after retirement, vacation time, quality of public schools and support for the arts. Ask yourself whether Americans’ wasteful use of gasoline contributes positively to any of those measures.

Somehow “EU! EU!” doesn’t have that ring…

Rant du Jour: The USA

Anyway, allow me to rant about the USA. Mostly about its government, but also the public that’s allowing the government to happen…

Anyway, what the hell is it with the Congress, Senate, public, what-the-fuck-ever which is still allowing the Idiot-In-Chief to run their country (to hell)? He’s been caught lying about Iraq, firing the supreme court judges, wire-tapping, heck-of-a-job-Brownie, and now, Iran (”we told him that Iran stopped working on nukes in 2003″, “I didn’t know that!”). WHY THE HELL DON’T YOU IMPEACH THE ASSHOLE ALREADY!!!

As far as I am concerned, the public should be pushing their representative to kick that guy’s ass out of the white house, and into a jail of some sort. Enough tolerating and being frustrated at his actions, and only whining about it, do something!

But then again, the people opposed to Bush don’t have a better solution… on the topic of Iraq: “We have to leave Iraq, the civil war is not our problem.”. Fuck, don’t you have a conscience. Your (moron, but still yours) president created that mess, you, through whoever is president, have the moral duty to fix it. The fuck-ups lead to the civil war in the first place, so, you, the USA, is responsible for that civil war. No cutting and running, fix it!

Of course, Bush and Rumsfeld’s way of doing it til now is not the way, but leaving is not the answer either. In my mind the answer would be more troops and more money. Yeah trillions of dollars are now going up in smoke, too bad, it’s going to cost you more to fix the problem. Of course running away is a solution.. but what a cowardly solution it is…

The Myspacing of Facebook

So, I didn’t get enough sleep this morning so the neurons are firing and I am being random…

Goddammit, Facebook sucks, It’s turning to MySpace nowadays. Useless crap is being added at an incredible level, people are probably behaving like monkeys clicking on everything clickable on their stupid pages. You had email chain-letters and in the old days you’d get 4 or 5 copies if your have enough dumb people who have you in their address books and you have a lot of loops in your network of email friends. On Facebook is n idiots who all decide they have to paste the same stupid Flash video or pixely image into your “Super”-Wall (Note to self: 1) Make a Facebook app called Hyper-Wall. 2) … 3) Profit!).

And if someone isn’t getting crap from his/her friends, he/she is putting crap on his/her own page. Hey, how about a f’ing name analyzer that turns OMG, your name, into an acronym of feel good words that supposedly describes you. At least it’d be interesting if it involved AI which can read your mind, but it’s most likely just PHP with output += feelgoodword[i] for each i being the letter of your name.

And with all that, the main idea, of connecting people (TM, (c) Nokia!) is being lost.

But wait… maybe I’m just being anal. Why not let people have their fun the way they like it?

Yeah, I probably am. But I have a feeling with all this “fun and games” the actual idea of allowing people to communicate and connect to each other is being lost. We’re not talking anymore. It’s easy to talk to somebody, it’s just one wall post (what is it with people abusing the wall for personal messages anyway, are people that narcissistic and want to be seen talking to the other person?), so we don’t do it.

I don’t know what the point of this rant. Maybe it’s to proclaim I hate the so called “social networks”.

Oo, Geeky: Opera Wikipedia Direct Access

Anyway, I usually access Wikipedia articles by trying to predict the URL of the topic instead of using Wikipedia’s in-built search (which, when I tried it back in the old days, was usually overloaded and not working) or Google. It’s very easy, just figure out what you want to read about (e.g. “Formula One”), convert the spaces to underscores (”Formula_One”), and append this term to the end of the Wikipedia URL (”http://en.wikipedia.org/wiki/Formula_One”).

Opera, like other browsers, support searches using the “%s” parameter, so that before today, I’ve automatized the 3rd step, saving me the typing of the long URL before the search term. But until now I’ve been manually adding the underscores.

But I tried something today, and it worked!

Apparently the search also support javascript: URLs (there’s probably an exploit in there somewhere), so I used Javascript to convert the spaces to underscores, and to go to the Wikipedia page.

Anyway, the “search” URL turns to:

javascript:searchstr="%s";window.location="http://en.wikipedia.org/wiki/"+searchstr.replace(/\+/g, '_');

As you can see, this breaks when the search term contains the double quote. You might also notice the function replaces the plus character, instead of the space, with the underscore. This is because Opera’s already replaced the space with the plus-sign before converting it as the search URL.

Damn, apparently if you want to search something that really contains the + sign, it also breaks. Ah well. :)

Get Off My Internet!

Achtung, I am now going to rant about idiots on the internet…

I can’t believe how full of stupid people the internet has been. Take for example Ubuntu help pages…

Type these commands into the terminal: [bla bla bla]…

No longer do the writers bother to explain what these commands do. I doubt the readers are interested in reading them either, they are the so-called “noobs” who thought installing “Linux” would be cool, so they try it out, not knowing what the fuck they are doing, and resorting to asking questions in forums and googling about how to accomplish things. Sure it will get you somewhere, but will you understand what’s happening on the way?

I remember the good old days of reading man pages, well written ones that begin with the background of what’s what, before giving you an explanation of what each command does, and example command lines. None of the “Copy & paste this. If it doesn’t work come back and ask for more hand-holding.”

Reminds me of a girl who wanted to know how to get the text-mode console from X.
“Press Ctrl-Alt-F1″, I said.
“And to get back to X?”
“Ctrl-Alt-F7. Well, not always F7, you see there are these virtual consoles…”
She’s pressed those buttons already, and wasn’t listening to my explanation anymore.

This rant was inspired by the Tabloid-like Slashdot headline Ubuntu May Be Killing Your Laptop’s Hard Drive, which overblows an issue of a bad parameter in a script (which everybody can, and should, fix themselves) to a problem that sounds like something has gone horribly wrong with Ubuntu itself. This brings me nicely to the second class of Internet-idiots: The sensational-headline-writing dolts that are Digg submitters. Who are forced to write ready-for-tabloid bullshit headlines and summaries because that’s what grabs idiot user’s miniscule attention spans…

I got nothing… tabloids and reality shows are popular because they cater to the less intelligent, so I guess I can see why Digg is so popular…

Disclaimer: I do read Digg (although avoiding the site and lame commenters using the excellent Sitening’s Digg Feed), and am continuously disappointed at the level of bullshit in the content they link to.

Stupid Computers…

foo.zip contains executable files. For security reasons, Google Mail does not allow you to send this type of file.

“Fine. Rename foo.zip to foo.zip.yeszip. Attach. Send.”

It works.

“Dumbasses.”

Not to mention it was a ZIP file that didn’t contain EXEs, just HTML and JavaScript files. Oh no, is somebody afraid of JS files?

OK, it’s for the protection of the idiots on the receiving end of the file. If it’s ZIP they’ll open it without thinking, whereas giving it the “yeszip” extension will stop them. But really, I’m sick of computers telling me what I can’t do.

Next Page »


 

May 2008
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Reverse

To reverse the order of the entries (chronogical top-to-bottom), paste this into your address bar, and hit Enter: