updated. JavaScript: Fade a Element Fixed a Google Chrome bug. See the tip at bottom to StackOverflow on a interesting JavaScript Google Chrome issue.
The Unfortunate Fate of Music MIDI File
MIDI is really a great tech, but unfortunately, it never picked up in computer.
MIDI is tiny in size, especially great for piano music. For example, a 5 minute piano piece is only 11k bytes.
10 years ago, i'd expect by now that on each computer we have high quality sampled sound library for MIDI, so that perhaps just a 100 mega bytes you'd have entire collection of piano music in history, recorded by professionals. Not so.
Today, on the web, MIDI isn't supported in html5 audio.
〔☛ HTML5 Audio Tag Example〕
〔☛ HTML5 Tags〕
And it won't play on Linux by default.
there are lots JavaScript libs and even alternative js langs. For example, CoffeeScript, Google's Dart, Microsoft's TypeScript. My recommendation is, don't use any of it. Master JavaScript+DOM fair and square.
recently discovered the CSS display:inline-block. It's relatively new. It basically is like float:left but you don't have to worry about side-effects on the rest of the page, such as stopping float by clear:both. For a example of using display:inline-block, see Second Life Screenshot Gallery
wrote a JavaScript app. Goto
Unicode Emoticons, Faces 😸,
hover your mouse over (or click if you are on tablet). Unicode name and char number will show.
btw, i remember reading more than one blog, by supposedly design gurus, who tell us that we should use low-contrast, because, they say, in nature nothing is in high-contrast. LOL.
Google is banning me left and right. Now, this page 〈GNAA Weev Troll Song (Kesha — TiK ToK)〉
http://xahlee.org/music/gnaa_weev_song.html , they say is violating their AdSense rules.
Here's other moral-sensitive songs. 〈Sensitive Songs Index〉
http://xahlee.org/music/music_index_sensitive.html
I started to put Google ads in 2005. Within one month, they ban'd me, probably because i say f�ck George Bush in front page. See: 〈Google AdSense Ban on XahLee.org〉
http://xahlee.org/Periodic_dosage_dir/tr/google_adsense_ban.html
So, since 2005 to 2011, i did not run any ads.
In 2012 July, i separated out my articles to different domains, so that all my none-controversial articles (which is about 95%) can benefit from ads.
Then, Google ban'd my xaharts.org for ads. See 〈Google AdSense Ban on Ancient Asian Goddess Sculpture Page〉
http://xahlee.info/w/Google_AdSense_ban_on_ancient_sculpture_2012-09-02.html
and now is warning me about that troll song.
the moral here is, if you wanna make money, stay in line! Or, be one of those unscrupulous ad-ridden SEO site or a spammer!
China's Sina Weibo's UI is much better than twitter. You can list all replies to you, or all your replies to others, list mutual follower, and list private chat that also act as INSTANT chat, and pic upload that works, faster too despite lots ads. It's somewhat more like Facebook than Twitter.
+1 for China. Thumbs down on tweeter.
According to Wikipedia, Sina Weibo has 3M users, while Twitter has 5M. Sina Weibo has 1M posts per day, while Twitter 3.4M.
Safari 6 is released, but no more Windows version. Also, RSS reading feature is removed.
The fact that Apple removed RSS reader feature in Safari probably means that they've done market research and not many people are using it. I myself never used any RSS reader in browsers.
Popular RSS aggregate sites all went dead a year or two ago. The only one left and won't go away is Google Reader.
Technorati seems still alive, though i haven't heard about it in gossips for years.
LOL. The WTF group split with W3C. So now there'd be 2 HTML5.
[whatwg] Administrivia: Update on the relationship between the WHATWG HTML living standard and the W3C HTML5 specification By Ian Hickson. @ lists.w3.org…
Welcome back 1999.
If i want a living standard, i can just subscribe to Vogue. I no need Google and Apple telling me what's correct thru their front group.
/* adding a pdf icon to pdf file links */
a[href$=".pdf"] {background:url(http://example.org/img/pdf_icon-s.png) no-repeat left center;padding-left:20px}
However, if user is accessing your site using https, then the browser will warn about mixed insecure content «This Page Contains Both Secure and Non-Secure Items».
What you want, is that if user is using https, then fetch using https. You can do that with what's called protocol-relative URL, by omitting the protocol all-together, like this:
a[href$=".pdf"] {background:url(//example.org/img/pdf_icon-s.png) no-repeat left center;padding-left:20px}
The exclamation makes the function a expression. (it's the boolean “not” operator.) People do this hack to save one character worth of source code file size. Silly.
Microsoft Classified FSF Donation site as Gambling
There's this piece of news going around:
How Microsoft Threat Management Gateway Classifies donate.fsf.org (self.gnu) By Rebbsitor. @ www.reddit.com…
In summery, a Microsoft security site “Microsoft Reputation Services” classified Free Software Foundation's donation site 〔https://donate.fsf.org/〕 as in the “gambling” category. (but also {Technical Information, Shareware/Freeware})
This means, corporations using Microsoft's services will automatically block visiting such site. More about this is has been written by FSF:
Dear Microsoft: fsf.org is not a “gambling site” By Posted John Sullivan. @ www.fsf.org…
I was curious about what Microsoft thought of my website.
hi, your service classified my site xahlee.org as Pornography, Blogs/Wiki, Shareware/Freeware. I think the porn and shareware/ware labels are quite inaccurate.
My site has 5 thousand pages. There are about maybe 10 pages that features explicit images of sex, and is accompanied by social commentary. There are about 20 pages featuring nudity or swimsuit, they are collections of a cultural phenomenon of wearing flags as underwear. And maybe 20 more pages about human sexuality. All in all, less that 100 page has anything to do with sex. Also, my site doesn't host any shareware/freeware. The rest 4 thousand nine hundred pages are about mathematics, computer programing, classical english literature, arts (gallery, some nudity), architecture (gallery), linguistics, as references, tutorials, or essays/blogs.
It's more correct to be: {Education/Reference, Blogs/Wiki, Nudity, Technical Information}.
if you meet a guy who's a designer and is going over the fine points of design, whack their heads immediately and walk out.
designers in general are the type of guy that's the charlatan types. Language design, website design, architecture, even movie director (⁖ Quentin Tarantino), and verging into the general wishy-washy arts department.
⁖ Larry Wall f���head about language and English. Paul Graham about language design (arc) and “hackers”, and painters! Gazillion website design “lectures” or “guides” all over the web, whose recommendations change with weather. Then UI design hubbub hubbub. Then the writing guilds on style. The entirety of typography idiots who ado about nothing (⁖ Knuth, greatest idiot of this arena among computer scientists who fell for it). Then, art of photography, haute couture, fashion design, …. Then, at the edge of the universe, there comes the real artsy folks who lectured on music composition that doesn't contain a single note, or splash of paint as finest art, in museums all over the world.
Sure, design exists, is necessary, and there's good ones and bad ones, with some science based principles. But, more often than not, designers are just a bunch of losers who have too high a opinion of themselves. The successful ones, sell snake-oil.