I'm as guilty as the next folk of not commenting my code. However, I've found that the new Folding ability that vim has really helps me to get into the habit. I tell the editor to fold all {..} blocks, then I can comment arbitrary blocks of code.
Here's a block:
var x=x2-x1; var y=y2-y1; var x2=x*x; var y2=y*y; var dist=Math.sqrt(x2+y2);
And here it is, commented:
/* dist = distance from (x1,y1) to (x2,y2) */ { var x=x2-x1; var y=y2-y1; var x2=x*x; var y2=y*y; var dist=Math.sqrt(x2+y2); }
In vim, that folds up into this:
/* dist = distance from (x1,y1) to (x2,y2) */ { ----
To tell the truth, the only "improvement" I've noticed is the tabs, but tabs have been available as extensions for quite some time.
I was hoping for some CSS improvements. When I first installed it, I immediately went to a few of the more difficult CSS sites, to see if they'd render correctly. Nope - no such luck. See http://meyerweb.com/eric/css/edge/ for example.
The toolbar has been moved around. In my copy of it, at least, the URL bar is just below the titlebar, then there are the tabs, then another bar with text buttons on the left, and some icons on the right for home, favourites, history, rss, and print.
A search bar has been integrated into the same bar as the URL entry box. I expected it to use MSN by default, but it's set to Google. Or maybe that's just on mine?
As a web developer, I was hoping for better CSS support and better debugging tools.
According to their documentation, they've addressed at least two CSS bugs. I haven't seen any improvements at all yet. I will be using Dean Edwards' script for some time yet, it seems...
On the JavaScript end, there does not seem to have been any work done on the debug tools there at all - still the old crappy "error on line X" (of what file? a bit more detail please?).
The RSS doesn't seem as good as Firefox's.
In Firefox, an icon appears on the bottom of the page you're on. You click the icon, then add the feed with another click. Immediately, you have Live Feeds, where you can open your bookmarks, scroll to the feed you want, and a list of the article headlines is immediately available.
In IE7, however, an icon highlights on the top of the page. You click the icon, which opens up the RSS and renders it (nyeh - whatever). Then you click add to favourites. Then you click to confirm that. Now, when you want to view the feeds, you open your favourites from the text toolbar, scroll down and click on the feed.
The main difference is that in IE7, you must click each feed that you want to view, whereas in Firefox, you get a preview of the new items.
Overall, I am not impressed in the slightest. Nothing innovative at all, and their CSS is still nowhere near as good as Firefox, Opera, KDE or Safari's (I know the latter two are basically the same engine...).
The method described in the article ignores the board, and instead focusses on the history of moves.
A better method might be to train the filter to read from a description of the board state (ignoring the moves taken to reach that state), and a list of possible moves, then return the move that is most likely to win.
If you allow it to also choose from impossible moves, then it will learn the rules of the game as well.
I've known about that style of widget replacement for a while (I've even written something similar myself (example)), and graphical widgets always impress the hell out of me, as I couldn't draw to save my life, but there are a few things that irk me about the example given.
There are excessive elements! Ideally, the script should work with exactly what is given, and not require extra code to be added.
There are onLoad JavaScript calls in the <body> tag. These should be added automatically by the external script.
The example is similar in philosophy to Unobtrusive JavaScript, where the point of the game is that the HTML should be written as if for a non-JavaScript browser, and all JavaScript effects should be added appropriately by an externally included file.
That way, the page will have a very good chance of being accessible, as well as technically modern and something to be proud of.
Face it, no matter how hard you try, some users are just not going to get it. I've had to explain to my mother how to drag and drop a file to copy it in Windows 30 times over the past 5 years and she keeps forgetting. Sure, it's probably a convenient excuse to get me to talk to her for more than 5 minutes, but I've got other shit to do.
The problem here is that she is learning to follow step-by-step instructions - and not learning to abstract what is actually happening. I notice this a lot when I'm helping non-techy people.
Maybe she would remember what was going on if you showed her how to do it, then asked her to repeat back to you exactly what you just described, using completely different words. That way, she would have to assimilate what was going on, in order to rephrase it.
brute force not necessary... the most common three TLDs are.com,.net, and.org
your email obviously does not end in.org..com cand be ruled out almost as easily by adding 2 to the.arg ext. that leaves.net.
A quick count shows the key is...13...
I've just wasted my time, haven't I...
Interesting - and as it's a mass produced product, my guess is that the password would be the same on every one.
So, it might be possible to hack -: 1. boot from external device 2. mount appropriate HDD partition 3. chroot 4. "more/etc/shadow | grep root" 5. run a cracker on the resulting string 6. use newfound master root password to hack every Sony media center in existance 7. release $evilempire's secret plans simultaneously to all media centres world-wide, ala Johnny Mnemonic or Antitrust
I had a laptop, which I bought for 1800 Punt (Irish) back in the 20th century.
I had a flu.
I made myself a glass of lemsip (hot lemon drink for flus) and continued working.
My girlfriend, who I'm still with (despite the rest of this story) came up behind me, to give me a surprise hug.
She knocked the lemsip all over the laptop, which was the end of that machine...
it's part of the monologue Deckard used while looking through an old photo. He managed to catch a glimpse of some snakeskin in a rendered part of a mirror image, which wasn't actually in the original photo.
If I understand this correctly, this would be similar to holding an array of marbles in the square "holes" in a tennis racket.
I wonder if the laser lattice affects the atoms in any way other than keeping them in one position? Is there a danger of the lasers changing the atom in a way that renders the qubit useless?
The -moz-border-radius does not conform to the W3C standard. If I remember right, the Mozilla version was coded before the W3C had a draft for the radius.
The main difference is that Mozilla corners are circular (one radius), while W3C corners may be elliptical (an x and y radius).
I'm working on correcting that difference. My JavaScript rendition of a solution can be seen here: http://verens.com/demos/borders/borders.html
I know that when I'm buying hardware, I first make sure that there's at least a reasonable chance that it will work in my operating system (Linux, by choice).
So, in this case, if I was choosing a RAID card, and my system was BSD-based, then Adaptec would be down a few quid.
I'm as guilty as the next folk of not commenting my code. However, I've found that the new Folding ability that vim has really helps me to get into the habit. I tell the editor to fold all {..} blocks, then I can comment arbitrary blocks of code.
Here's a block:
And here it is, commented:
In vim, that folds up into this:
I'm writing this post in IE7.
To tell the truth, the only "improvement" I've noticed is the tabs, but tabs have been available as extensions for quite some time.
I was hoping for some CSS improvements. When I first installed it, I immediately went to a few of the more difficult CSS sites, to see if they'd render correctly. Nope - no such luck. See http://meyerweb.com/eric/css/edge/ for example.
The toolbar has been moved around. In my copy of it, at least, the URL bar is just below the titlebar, then there are the tabs, then another bar with text buttons on the left, and some icons on the right for home, favourites, history, rss, and print.
A search bar has been integrated into the same bar as the URL entry box. I expected it to use MSN by default, but it's set to Google. Or maybe that's just on mine?
As a web developer, I was hoping for better CSS support and better debugging tools.
According to their documentation, they've addressed at least two CSS bugs. I haven't seen any improvements at all yet. I will be using Dean Edwards' script for some time yet, it seems...
On the JavaScript end, there does not seem to have been any work done on the debug tools there at all - still the old crappy "error on line X" (of what file? a bit more detail please?).
The RSS doesn't seem as good as Firefox's.
In Firefox, an icon appears on the bottom of the page you're on. You click the icon, then add the feed with another click. Immediately, you have Live Feeds, where you can open your bookmarks, scroll to the feed you want, and a list of the article headlines is immediately available.
In IE7, however, an icon highlights on the top of the page. You click the icon, which opens up the RSS and renders it (nyeh - whatever). Then you click add to favourites. Then you click to confirm that. Now, when you want to view the feeds, you open your favourites from the text toolbar, scroll down and click on the feed.
The main difference is that in IE7, you must click each feed that you want to view, whereas in Firefox, you get a preview of the new items.
Overall, I am not impressed in the slightest. Nothing innovative at all, and their CSS is still nowhere near as good as Firefox, Opera, KDE or Safari's (I know the latter two are basically the same engine...).
and what if you had no fingers, or you have nerve damage that made typing difficult?
The method described in the article ignores the board, and instead focusses on the history of moves.
A better method might be to train the filter to read from a description of the board state (ignoring the moves taken to reach that state), and a list of possible moves, then return the move that is most likely to win.
If you allow it to also choose from impossible moves, then it will learn the rules of the game as well.
- There are excessive elements! Ideally, the script should work with exactly what is given, and not require extra code to be added.
- There are onLoad JavaScript calls in the <body> tag. These should be added automatically by the external script.
The example is similar in philosophy to Unobtrusive JavaScript, where the point of the game is that the HTML should be written as if for a non-JavaScript browser, and all JavaScript effects should be added appropriately by an externally included file. That way, the page will have a very good chance of being accessible, as well as technically modern and something to be proud of.no moose were harmed in the production of this message, which is presented in glorious llamavision, if your browser is capable of it. Ni!
The problem here is that she is learning to follow step-by-step instructions - and not learning to abstract what is actually happening. I notice this a lot when I'm helping non-techy people.
Maybe she would remember what was going on if you showed her how to do it, then asked her to repeat back to you exactly what you just described, using completely different words. That way, she would have to assimilate what was going on, in order to rephrase it.
brute force not necessary... the most common three TLDs are .com, .net, and .org
your email obviously does not end in .org. .com cand be ruled out almost as easily by adding 2 to the .arg ext. that leaves .net.
A quick count shows the key is ...13...
I've just wasted my time, haven't I...
Interesting - and as it's a mass produced product, my guess is that the password would be the same on every one.
/etc/shadow | grep root"
So, it might be possible to hack -:
1. boot from external device
2. mount appropriate HDD partition
3. chroot
4. "more
5. run a cracker on the resulting string
6. use newfound master root password to hack every Sony media center in existance
7. release $evilempire's secret plans simultaneously to all media centres world-wide, ala Johnny Mnemonic or Antitrust
I had a laptop, which I bought for 1800 Punt (Irish) back in the 20th century. I had a flu. I made myself a glass of lemsip (hot lemon drink for flus) and continued working. My girlfriend, who I'm still with (despite the rest of this story) came up behind me, to give me a surprise hug. She knocked the lemsip all over the laptop, which was the end of that machine...
bladerunner
it's part of the monologue Deckard used while looking through an old photo. He managed to catch a glimpse of some snakeskin in a rendered part of a mirror image, which wasn't actually in the original photo.
If I understand this correctly, this would be similar to holding an array of marbles in the square "holes" in a tennis racket. I wonder if the laser lattice affects the atoms in any way other than keeping them in one position? Is there a danger of the lasers changing the atom in a way that renders the qubit useless?
The -moz-border-radius does not conform to the W3C standard. If I remember right, the Mozilla version was coded before the W3C had a draft for the radius.
The main difference is that Mozilla corners are circular (one radius), while W3C corners may be elliptical (an x and y radius).
I'm working on correcting that difference. My JavaScript rendition of a solution can be seen here: http://verens.com/demos/borders/borders.html
Kae
That's not the point - if it was easy to get specs for hardware, then /all/ operating systems would benefit - not just the well-used ones.
I know that when I'm buying hardware, I first make sure that there's at least a reasonable chance that it will work in my operating system (Linux, by choice). So, in this case, if I was choosing a RAID card, and my system was BSD-based, then Adaptec would be down a few quid.