Actually, a decent logging system goes a long way towards making a debugger unnecessary. They're a good tool to have, but if you're spending more time in the debugger than you are writing code, you're doing it wrong. I've been developing system applications for close to 25 years now, and I have found that this philosophy serves me well. I rarely use a debugger, I know how, but I have found that good application logs and a working knowledge of the source code allows me to debug code much quicker than a debugger does.
A profiler, though, should be mandatory. I remember the first time I used one, I was able to improve my code to the extent that over 90% of its run time was spent in the database driver. It's also educational to do things like move loop invariants (which the compiler should do for you) and see how much your code's efficiency improves. Playing around with code and a profiler is pretty much the only way you'll learn what things really improve performance, and which are just folklore. You're correct that modern compiler optimizations takes care of most of this. Profilers are useful, though perhaps not as useful as they used to be. I personally have not used one in years, with experience, you come to write fairly optimized code the first time through and the additional time spent profiling and refactoring isn't worth the effort if an experienced coder has done his job right. This is coming from someone who spends most of his time writing I/O intensive applications, not computationally intensive applications, so YMMV of course.
Doesn't get much shorter than that, though I will admit that I roll my own kernels and initramfs.
[1] initrd is a really awesome feature and it shouldn't go away. Seconded. If you use your distro's stock kernel you may require an initrd/initramfs unless the controller your root fs is on just happens to have a driver compiled into the kernel, and you have the correct filesystem code compiled in. You really don't want every possible controller/filesystem driver compiled in.
Compile your own, and you may find that you still need an initrd/initramfs because there's userspace initialization required to mount your root fs (e.g. your root fs is under volume management [EVMS/LVM], or it's encrypted).
No, it's bad becaues it stops all javascript. Today more and more sites are using ajax because it actually enhances the browsing experience. Funny, I don't recall asking anyone to "enhance my browsing experience". It's a fact that not all web-enabled devices can support Javascript, and those that can offer an option to disable it. If your site won't work without scripting disabled, I submit that it is your site, and not my browser, that is broken. If your site depends on a particular browser configuration in order for your site to work at all, you are far too dependent on scripting. Scripting is an enhancement, not a requirement.
Run a website of your own I do.
see how many people call or email with problems that are caused by noscript and adblock Thanks, my site's fully functional with adblock and noscript enabled.
It's one thing to run those extensions because you know what they do and you know the consequences. It's quite another to recommend that other, not so tech savvy, people install those extensions. And it's quite another thing to make gratuitous assumptions about the capabilities of your audience's browser or it's configuration.
The internet is absolutely critical for our operations. Not only do we have separate internet service for backoffice and production use, we have a backup data center for production and both of our production data centers have fault-tolerant connectivity. All of our office sites and data centers are interconnected so that we can route around any failure, up to and including complete destruction of any of our sites.
When compared against the loss of revenue due to an outage, the cost is actually quite low.
Have you ever even played poker in a casino? You are NOT playing against the house, no one is. Yes, the house does indeed make money on the game, either via a rake (around here, the house takes 10% of the pot up to $3 in a 3/6 game) or through seat rental. In the game I play in ($1/$2 no-limit with a $2/hr seat rental), the house take is inconsequential.
I'm sorry, you're wrong. The house edge is ~2% in blackjack, depending on local rules variations (stand/hit soft 17, double down on 10/11 or any two cards, 1 deck vs. shoe, etc.). There are no casino blackjack games where the house has no edge.
Heh.. I've tried that. My card was stolen once, and they signed up for aol w/ the stolen number. There was no way for me to cancel the service w/ AOL, since I didn't have the account. Even after the card number was changed, they were still billing the account. I had to dispute the charge every month for many many months. Saying the card was lost or stolen doesn't work the way it should. btw, this was an AMEX card!!
This happened to me as well, about six years ago on a VISA card.
Certainly bullets can and do ricochet - this is precisely why one must be sure of one's backstop and what lies downrange before pulling the trigger. The folks who set up a practice range for thier kids with a lake downrange were negligent - shooting into or across water is extremely dangerous, and should never be done without knowing what lies downrange out to the maximum range of the cartridge/firearm combination in question. (In the case of the.22LR, this is at best 1560 yards when firing a high velocity.22LR cartridge from a 20" target barrel with an angle of departure of about 35 degrees.)
(As an aside: parents, if you want your kids to learn how to shoot, take them to a NRA-certified safety class first, and make sure that they understand and abide by the safety rules. Whatever you may think of the politics of the NRA-ILA, the safety instruction provided by NRA's instructors is the best available.)
Avoiding ricochets is one reason why I laid out the scenario as I did - firing at a target on the ground four feet in front of the shooter, which is a situation not prone to produce dangerous ricochets. For example, one produced when the projectile hits a surface at a very low angle, such as you would get when firing across water. Bullets striking surfaces at a high angle either do not ricochet at all (when striking soft material), or are have so much kinetic energy transferred during the impact and depart at such a high angle that they are incapable of producing serious injury.
As a practical example, during a steel match, I was struck with (what was left of) a 230gr.45cal projectile after it ricocheted straight back off of a steel plate at about 25 yards. I estimate that the bullet hit the target at about 750fps and hit me at under 150fps. Yes, that convinced me that I didn't want to shoot steel matches any more - it hurt a bit but didn't produce injury.
Whether or not a.22LR ricocheting off water and travelling 1/2 mile is capable of producing injury really depends on the angle of departure and the initial velocity after the ricochet - at that point, it's assumed a new ballistic trajectory and the math is fairly simple, provided the ballistic coefficient can be approximated. Without knowing the specifics, it's really hard to say what the velocity of the projectile might be.
A 22 slug can travel a hell of a lot farther then you think. A.22LR rifle can put a bullet a mile away. You could fire at a toad and hit a kid down the road.
If you want to kill a toad with a 22, use "snake shot". That is tiny pellets in a 22 cartridge.
Why fight nature? Get rid of the dog and make pets of the toads?
If I'm shooting at a toad on the ground four feet in front of me, it's not going to put the bullet a mile away or in the kid down the road, even if I miss, as it's going to be stopped by the best backstop known to man - planet Earth. A.22LR is only going to "put a bullet a mile away" (and I *seriously* doubt that claim) if you fire it at approximately a 45 degree angle to the ground. Which, incidentally, is why it's an insanely bad idea to hunt birds using a rifle - notwithstanding that it's incredibly difficult to hit a flying target with one. Though the next time I'm hunting poisonous flying toads, I'll consider your advice.
For you to "hit the kid down the road" you've got the violate at least two of the three fundamental rules of firearms safety - and if you're that stupid and careless, you shouldn't be allowed to feed yourself much less own and operate a firearm.
Ok, smartass comments aside - provided you are competent enough to handle a firearm at all, snakeshot is a great idea - unless you live in an area where it's not safe to discharge a firearm, it's probably not legal either, even with snakeshot. For those of you who live in such areas, I'd recommend a pellet gun or slingshot - provided you're competent to be handling dangerous weapons at all - for the rest of you, may I suggest a nerf bat?
In my area of the country, we have Charter "High Speed" "Internet" and Verizon as a choice. Yeah, the free market is sure going to be great for my little neck of the woods.
Yes, and you have 100% more choice than almost half of the U.S.
There is nothing even remotely resembling a free market in broadband service nearly anywhere in the U.S.
The "net congestion" excuse is a lie. If the telco drops a TCP packet (or delays it until the window closes and the packet is considered dropped), that packet gets sent again and again until it gets through or until the TCP connection times out. Anything they do that would cause more packets to be dropped would make congestion worse.
This is true for TCP (e.g. ftp, http), but not true for UDP (e.g. voip, bittorrent).
So what if SBC decides to implement a tiered system of bandwidth! Consumers just stop renewing their contracts if they hate it enough. [...]
I presume you live in an area where you have plenty of choices for internet providers? I don't. Well, actually I do. I could choose from a variety of dialup providers, a handful of satellite providers, one business-class DSL provider (144Kbps SDSL at $130/mo) or one consumer DSL provider (1.5Mbps ADSL). No digital cable, and in fact I cannot even get analog cable TV at any price.
But hey, at least I can get ADSL now - it wasn't even offered at my address until 6 months ago.
I think the harm being addressed here is that consumers and businesses need more alternatives for obtaining net access. They shouldn't be in a market where they only have one ISP to choose from.
Oh I agree that there should be competition - but what are you going to do? Force people to move where there is competition, or force providers to service areas that are not profitable or feasible to service?
To use myself as an example, the only way I can obtain DSL access in my apartment complex is by getting SBC phone service first. SBC could double the prices of a landline, and I'd have no choice but to swallow it.
SBC cannot, at least not on a whim. Your basic phone line is a tarriffed service.
I use this to back up three entire systems (minus certain directories such as/tmp and/var/tmp) every night to a central volume. Only the deltas get backed up, and you have the ability to do point-in-time recovery from past backups. Periodically, I move the backup directory off to a removable drive and start fresh.
a vast majority of the population consist of people that were too liberal for california and decided to move north
Sure, if you're talking about the extended Seattle metro area. The majority of the rest of the state is very rural and quite conservative on average.
It's an extremely 'no government is good government' kind of mentality.
From liberals? What planet are you from?
It's also the LAST place I'd expect that religious fundamentals have infiltrated.
You don't get around much, do you? The area where I live is overrun by Apostolic Lutherans.
I would agree with you on this point: this law has nothing to do with religious fundamentalism and everything to do with protecting state and tribal interest in legal gaming.
You can get most of the remaining 40% by blocking all US IP blocks.
HTH. HAND.
title=Gentoo (2.6.16-r13)
root (hd0,0)
kernel
Doesn't get much shorter than that, though I will admit that I roll my own kernels and initramfs. [1] initrd is a really awesome feature and it shouldn't go away. Seconded. If you use your distro's stock kernel you may require an initrd/initramfs unless the controller your root fs is on just happens to have a driver compiled into the kernel, and you have the correct filesystem code compiled in. You really don't want every possible controller/filesystem driver compiled in.
Compile your own, and you may find that you still need an initrd/initramfs because there's userspace initialization required to mount your root fs (e.g. your root fs is under volume management [EVMS/LVM], or it's encrypted).
Do yourself a favor and grow a set of balls.
The internet is absolutely critical for our operations. Not only do we have separate internet service for backoffice and production use, we have a backup data center for production and both of our production data centers have fault-tolerant connectivity. All of our office sites and data centers are interconnected so that we can route around any failure, up to and including complete destruction of any of our sites.
When compared against the loss of revenue due to an outage, the cost is actually quite low.
Have you ever even played poker in a casino? You are NOT playing against the house, no one is. Yes, the house does indeed make money on the game, either via a rake (around here, the house takes 10% of the pot up to $3 in a 3/6 game) or through seat rental. In the game I play in ($1/$2 no-limit with a $2/hr seat rental), the house take is inconsequential.
I'm sorry, you're wrong. The house edge is ~2% in blackjack, depending on local rules variations (stand/hit soft 17, double down on 10/11 or any two cards, 1 deck vs. shoe, etc.). There are no casino blackjack games where the house has no edge.
... Bwhahahahahahaha!
...and north of the river, we refer to Portland as "that shithole to the south". It cuts both ways.
At least Avast got that part right.
Better question - when will it be ported to run under EMACS? Or better yet, when will Emacs be ported to run as a plugin?
Certainly bullets can and do ricochet - this is precisely why one must be sure of one's backstop and what lies downrange before pulling the trigger. The folks who set up a practice range for thier kids with a lake downrange were negligent - shooting into or across water is extremely dangerous, and should never be done without knowing what lies downrange out to the maximum range of the cartridge/firearm combination in question. (In the case of the .22LR, this is at best 1560 yards when firing a high velocity .22LR cartridge from a 20" target barrel with an angle of departure of about 35 degrees.)
.45cal projectile after it ricocheted straight back off of a steel plate at about 25 yards. I estimate that the bullet hit the target at about 750fps and hit me at under 150fps. Yes, that convinced me that I didn't want to shoot steel matches any more - it hurt a bit but didn't produce injury.
.22LR ricocheting off water and travelling 1/2 mile is capable of producing injury really depends on the angle of departure and the initial velocity after the ricochet - at that point, it's assumed a new ballistic trajectory and the math is fairly simple, provided the ballistic coefficient can be approximated. Without knowing the specifics, it's really hard to say what the velocity of the projectile might be.
(As an aside: parents, if you want your kids to learn how to shoot, take them to a NRA-certified safety class first, and make sure that they understand and abide by the safety rules. Whatever you may think of the politics of the NRA-ILA, the safety instruction provided by NRA's instructors is the best available.)
Avoiding ricochets is one reason why I laid out the scenario as I did - firing at a target on the ground four feet in front of the shooter, which is a situation not prone to produce dangerous ricochets. For example, one produced when the projectile hits a surface at a very low angle, such as you would get when firing across water. Bullets striking surfaces at a high angle either do not ricochet at all (when striking soft material), or are have so much kinetic energy transferred during the impact and depart at such a high angle that they are incapable of producing serious injury.
As a practical example, during a steel match, I was struck with (what was left of) a 230gr
Whether or not a
If I'm shooting at a toad on the ground four feet in front of me, it's not going to put the bullet a mile away or in the kid down the road, even if I miss, as it's going to be stopped by the best backstop known to man - planet Earth. A
For you to "hit the kid down the road" you've got the violate at least two of the three fundamental rules of firearms safety - and if you're that stupid and careless, you shouldn't be allowed to feed yourself much less own and operate a firearm.
Ok, smartass comments aside - provided you are competent enough to handle a firearm at all, snakeshot is a great idea - unless you live in an area where it's not safe to discharge a firearm, it's probably not legal either, even with snakeshot. For those of you who live in such areas, I'd recommend a pellet gun or slingshot - provided you're competent to be handling dangerous weapons at all - for the rest of you, may I suggest a nerf bat?
What is Google's "original business model"? Is it search? No. That's merely one vehicle by which they deliver product.
Thier product is...
wait for it...
ADVERTISING.
I presume you live in an area where you have plenty of choices for internet providers? I don't. Well, actually I do. I could choose from a variety of dialup providers, a handful of satellite providers, one business-class DSL provider (144Kbps SDSL at $130/mo) or one consumer DSL provider (1.5Mbps ADSL). No digital cable, and in fact I cannot even get analog cable TV at any price.
But hey, at least I can get ADSL now - it wasn't even offered at my address until 6 months ago.
Oh I agree that there should be competition - but what are you going to do? Force people to move where there is competition, or force providers to service areas that are not profitable or feasible to service?
SBC cannot, at least not on a whim. Your basic phone line is a tarriffed service.
Try rdiff-backup.
/tmp and /var/tmp) every night to a central volume. Only the deltas get backed up, and you have the ability to do point-in-time recovery from past backups. Periodically, I move the backup directory off to a removable drive and start fresh.
I use this to back up three entire systems (minus certain directories such as
When will people learn that you can't legislate away social problems?
You misspelled "competition". Hope this helps. Have a nice day.
a vast majority of the population consist of people that were too liberal for california and decided to move north
Sure, if you're talking about the extended Seattle metro area. The majority of the rest of the state is very rural and quite conservative on average.
It's an extremely 'no government is good government' kind of mentality.
From liberals? What planet are you from?
It's also the LAST place I'd expect that religious fundamentals have infiltrated.
You don't get around much, do you? The area where I live is overrun by Apostolic Lutherans.
I would agree with you on this point: this law has nothing to do with religious fundamentalism and everything to do with protecting state and tribal interest in legal gaming.