Skip to content

Avian Bone Syndrome Posts

How to use resizeTo in Safari (if it doesn’t work)

Many people are probably familiar with the fact that most browsers allow Javascript code to be entered in the address field. That’s the magic behind bookmarklets, which simply spare the user the hassle of manually typing long, convoluted and obfuscated Javascript statements. While it’s usually pointless to do so, there is one case in which it makes perfect sense: resizing the browser window to an arbitrary size, in order to test what a website looks like. Essentially, by setting the browser window to a size such as 1024 x 768, one can have a relatively reliable idea of what the current website would look at that screen resolution. In truth, one would have to take the graphical elements of the operating system in question, but it’s usually a fine way to get an idea. The code to do so is very simple: window.resizeTo(width, height); Therefore, if we want to set…

Languages: the strange case of Pirahã and Aymara

In my last post, I wrote about the connections between language and thought, ie. linguistic relativity / determinism.

In today’s highly globalized world, languages get mixed and evolve at a much faster pace than ever before. English, for instance, is no longer only divided into British, American, Canadian and Australian English; we could say that there is a variety or dialect of English for any other natural language: Spanglish, Chinglish and so on. When French was the de-facto lingua franca of diplomacy (and, by extension, Western Europe), it was not substantially modified by other local languages; yet when English replaced it, after World War I and especially after World War II, it started changing immediately.

English, in particular its American variety, was not only originally used for international diplomacy; rather, as the United States rose a superpower in many fields (technology, business, etc.), one could argue that its language became widespread from the bottom. The average Joe in most other Western countries was exposed to American words: they wore blue jeans, they put coins into juke-boxes, they went to a bar. English words became commonplace over time, and this ultimately led to the creation of what could be easily considered a series of creoles that are, for the most part, mutually intelligible.

Languages: linguistic relativity, words vs. thought

One of the most intriguing concepts in linguistics is the so-called Sapir-Whorf hypothesis, or linguistic relativity principle. Simply put, it states that the language we speak can influence the way we think. Another common name for this theory is linguistic determinism. There are some subtleties in the usage of these different names (no pun intended), but in order to avoid confusing them and giving wrong information, I’ll refrain from attempting. There are many resources online about the details of this topic for those who wish to delve deeper. For the sake of this post, I will freely use the terms interchangeably.

Anybody who studied a foreign language, even without reaching fluency, has most likely had an experience with the linguistic relativity principle. The farther the language in question is different from the native language, the more the phenomenon is obvious.

Manual duplex printing on a laser printer

My laser printer, a Samsung CLX-3175, does not have any tool for automatic duplex printing. Achieving such result manually is not difficult, but may take some trial and error in order to get the settings right. That’s exactly what I’ve done, and I’m writing this post as a note to myself. Should it be useful to anybody else, however, by all means let me know with a comment. Keep in mind that this is for my own printer, and that I use OS X 10.6 “Snow Leopard.” Results may vary with different printers and/or operating systems, so make your own tests. If your printer outputs pages “face down,” this will probably work as it is. Most ink-jet printers on the other hand output prints “face up,” so some adjustments will be necessary. In any case the steps for my own printer are very, very easy (once you’ve figured them out…

TV shows I’ll be watching

In case anybody cares, here is what I will be watching: Weeds (season 6), Showtime, Mondays — in progress Cougar Town (season 2), ABC, Wednesdays — starting Sept. 22nd The Big Bang Theory (season 4), CBS, Thursdays — starting Sept. 23rd 30 Rock (season 5), NBC, Thursdays — starting Sept. 23rd Of course, if you — like me — don’t live in the US, there are ways to watch them almost live. You could start looking at the sidebar of this blog, for instance. Why am I saying this? Well, I may write about the shows here as I have done in the past, so be warned. Incidentally, you may notice that they’re all sitcoms, aside from Weeds which is somewhat difficult to classify, but definitely has quite some humor. That’s because the days are getting shorter, the weather is getting worse and S.A.D. is lurking in ambush behind the…

Prettifying URLs with fake subdirectories using mod_rewrite

Lately, I have been trying to define a common basis for most of my web projects, since I often end up reinventing the wheel every time. I have tried a few PHP frameworks, but none of them tickled my fancy, but I have complicated tastes. I am known for reimplementing something from scratch rather than wasting time adapting other people’s code to my needs, and it’s often much faster too. Therefore I have been working on JBFW, my very own PHP/Javascript framework. One of the key components of it is pretty URLS and a centralized index.php to handle most of the things. If you access http://mysite.com/news?lang=en, the server will transparently route that to http://mysite.com/index.php?pagename=news&lang=en. At that point, index.php runs the news module if it’s present, and then loads the news template (possibly showing the result of what was done in the module, if it was called at all.) I find that…

20 tips to run a business without committing suicide

Starting earlier this year, I have been a “professional” IT consultant (libero professionista in Italian.) In practice I mostly deal with web development and computer repairs. It’s what I’ve been doing for over a decade now, since I was still in school, only now I get to pay my own taxes (yay) and therefore I get angrier when people try to rip me off. So, here’s a collection of tips about running a business I put together based on my experience. Note that I refer to the client as a “he,” but that’s just for simplicity. Befriend a lawyer. You will need one sooner or later. Most likely sooner. Assume the client doesn’t have any clue on the details of your job. Listen to his ideas, make a mental note of how you’ll approach the problem in practice, and be ready to explain to him why his “perfect” solution just…

Cougar Town, a lighthearted sitcom worth watching

Cougar Town is an ABC sitcom focusing on the life of Jules Cobbs, a recently-divorced 41-year-old woman (played by Courteney Cox) who struggles to find a new partner and ultimately her place in the world, as most men her age are either married or going after younger girls. The name of show is obviously a reference to the slang word “cougar,” which refers to an older woman who pursues younger men (see Wikipedia), and to the football team mascot of the local high school. However, do not expect to see a woman chase young man after young man, because — despite what the first few episodes might suggest — that’s not how the story unfolds at all. Indeed, the first season explores the life of a group of 40-something friends (both married and divorced), and that of Jules’ son. The writers chose a lighthearted approach to all the topics touched…

Dream Theater’s responses to Portnoy’s departure

A few hours after Mike Portnoy left the band, the other members of Dream Theater have started to comment on the issue. James LaBrie wrote on his website’s forum: Hi Everyone, Thought I would give you time to digest the news of Mike’s departure. MIke stated that he was burnt out with the DT world and needed a break. We have to respect where he is at and where this will lead him at this particular point in time. With that being said, we are more than pumped to continue the legacy of DT and jump full on into the next chapter. Rest assured it will be great. You can count on it. On another positive note. Matt and I are psyched with the reaction and reviews ‘Static Impulse is receiving around the world. We can’t wait until everyone can get their hands on the complete disc. and hear it the…