Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:I'm healthy... (Score 1) 134

daily caloric deficit of over 2700 calories, which is beyond a starvation diet. If your RMR was 2000 calories per day

36 year old, 170 cm, 111 kg, male individual has an RMR of about 2000 calories per day.
Running "about 30 miles a week, swimming for about one hour and a half twice a week and doing all sort of exercise" raises his daily calorie needs to about 3800 calories per day.
If he's also working a physical job, that's about 4200 calories per day.

That's a daily difference of 1800-2200 calories from exercise alone.
Diet-vise he could drop bread for one meal, or skip breakfast.
And that's without knowing how many calories he was taking in "after military service".

Army was feeding him AT LEAST 3250 calories per day, possibly up to 6000-7000 calories per day if he was stationed in a high altitude location in Afghanistan.
And that's not counting snacks. Or fighting stress with food.

He probably came home and continued eating 5000+ calories per day.
There's plenty room there to drop all that weight with exercise and moderate calorie restriction.
Particularly for someone used to military standards of exercise.

Comment Re:Refactoring done right happens as you go (Score 1) 247

Newton looked at the spectrum and saw that it contained six distinct colours to the human eye: red, orange, yellow, green, blue, purple. But his alchemist beliefs considered 7 to be a magic number and so wanted the spectrum to have seven colours. He decided that purple should be split into indigo and violet to reflect this, but didn't split any of the others (even where the difference is at least as pronounced) because it contradicted his mystical thinking.

If even Newton 'One of the smartest men to ever live' couldn't manage to keep his science separate from his mysticism, what hope do you think other religious people have?

Comment Re:Uh, what? (Score 1) 91

This is a confusion in terms. Personally I blame Sun. An interpreter IS a form of compiler, it is the term used to refer compilation at run time

No, sorry. A compiler is, in theoretical terms, a partial application of an interpreter to a program. In practical terms, a compiler transforms the input into some other form, which is then executed, whereas an interpreter executes the input directly. JIT compilation is still compilation. A just-in-time compiler is the term given to compilers that produce their output just before it is executed, as opposed to ahead-of-time (AoT) compilers, which produce it all up front, even if some paths are never executed.

There's some complication, because most environments that do JIT compilation also include interpreters that gather profiling information to incorporate into the JIT compiled code and to improve startup times. JavaScript implementations, in particular, often spend a reasonable amount of time in the interpreter because most web pages contain a load of JavaScript that's only run one or two times and the time taken to compile it is more than the time saved to execute it. Some have multiple compilers - JavaScriptCore from the WebKit project has an interpreter and three different JIT compilers that have different points in the space between compilation time and execution time - they'll recompile hot paths multiple times as they're executed more, with more optimisation each time. The key difference between the interpreter and compilers here is that the compilers are each invoked once on a segment of code and it's then executed without involving the compiler. The interpreter is involved every time the bytecode is run. It reads a bytecode and then jumps to the segment of interpreter code that executes it and then returns. The compiler takes a sequence of bytecodes, generates a fragment of native code to execute them, and then this fragment is combined with other fragments to produce a running program.

The shader compilers in drivers, however, are not JIT compilers. They are AoT compilers that are invoked at load time - often at install time. They don't compile the code just before it's run, they typically compile it once and cache the result for multiple invocations of the program. Some drivers (Windows and Android come to mind) have a mechanism that allows you to do the compilation at install time. Unlike most JIT environments, graphics drivers don't tend to use run-time profiling for optimisation, the bytecode exists solely for the purpose of providing an ISA-neutral distribution format.

Comment Re:File extensions? (Score 1) 564

Ugh, trust MS to fuck up a reasonable UI choice. On OS X, by default, it only happens for programs and requires you to close the dialog and then bring up the context menu for the program while holding a modifier key. You don't know how to do it unless you've actually read all of the way to the end of the dialog, so it generally protects people.

There are some interesting corner cases though, such as shell scripts. The file manager doesn't know if the thing that you tell it to open a shell script with is a text editor or a script interpreter, so may warn spuriously.

Comment Sure... (Score 0) 467

This guy is the best dad this girl could have right now.

Sure he is.
Until someone sues them.
Or pulls the same thing on them on account of him painting that huge target on their backs.
Except now they can just wave any civil suit away on account of that he was just doing what her dad did.
Or it is simply seen as a Streisand effect taunt to any idiot out there. How many trolls CAN he handle?
And it is always smart to react to verbal insults in a way that will leave someone with a lot of free time on their hands, no prospects for the future AND angry.

But hey... It may be a hassle to remember that now the saying goes "Sticks and stones may break my bones, but words may get me fired/expelled." - but it's nice to see sayings change during your lifetime.
It means we are living in interesting times.

Movies

Gritty 'Power Rangers' Short Is Not Fair Use 255

Bennett Haselton writes: Vimeo and Youtube are pressured to remove a dark, fan-made "Power Rangers" short film; Vimeo capitulated, while Youtube has so far left it up. I'm generally against the overreach of copyright law, but in this case, how could anyone argue the short film doesn't violate the rights of the franchise creator? And should Vimeo and Youtube clarify their policies on the unauthorized use of copyrighted characters? Read on for the rest.

Comment Re:Both those Jar Jar movie sucked. (Score 1) 233

Next thing I guess is someone making a suit out of lightsaber handles.
Or an impenetrable lightsaber light-beam emitter shield which projects lightsaber beams all around the wearer - who promptly falls down through the core of the planet, comes out on the other side, falls back in...
And yo-yos like that until enough energy cells run out dumping his long mummified corpse into the core of the planet.

Comment Sounds more a call for torches and pitchforks... (Score 1) 538

...to burn the witch.

To me at least.
I think it may be something regarding that whole... "THIS IS LIKE THE AFTERMATH OF WORLD WAR III" thing.
When it is actually closer to an overzealous former librarian complaining about overdue books turned in late.

From TFA:

It was only two months ago, in response to a new State Department effort to comply with federal record-keeping practices, that Mrs. Clinton's advisers reviewed tens of thousands of pages of her personal emails and decided which ones to turn over to the State Department. All told, 55,000 pages of emails were given to the department.
...
"It's a shame it didn't take place automatically when she was secretary of state as it should have," said Thomas S. Blanton, the director of the National Security Archive, a group based at George Washington University that advocates government transparency. "Someone in the State Department deserves credit for taking the initiative to ask for the records back. Most of the time it takes the threat of litigation and embarrassment."
...
"I can recall no instance in my time at the National Archives when a high-ranking official at an executive branch agency solely used a personal email account for the transaction of government business," said Mr. Baron, who worked at the agency from 2000 to 2013.
...
Before the current regulations went into effect, Secretary of State Colin L. Powell, who served from 2001 to 2005, used personal email to communicate with American officials and ambassadors and foreign leaders.
...
Penalties for not complying with federal record-keeping requirements are rare, because the National Archives has few enforcement abilities.
...
"It is very difficult to conceive of a scenario - short of nuclear winter - where an agency would be justified in allowing its cabinet-level head officer to solely use a private email communications channel for the conduct of government business," said Jason R. Baron, a lawyer at Drinker Biddle & Reath who is a former director of litigation at the National Archives and Records Administration.

Comment Re:File extensions? (Score 2) 564

There are two problems. The first is that the OS allows you to run porn.jpg.exe having downloaded it from some random place on the 'net. I don't think that either OS X or Windows do: they'll both pop up a thing saying 'You are trying to run a program downloaded from the Internet, do you really want to?', which isn't normally something that happens when people try to open a file so ought to trigger them to avoid it (if it doesn't, then seeing the .exe extension probably won't either).

The second is that the OS allows programs and other file types to set icons at all before their first run. This also leads to confused deputy-like attacks where you think you're opening a file with one program but are actually opening it with something that will interpret it as code. The solution to this is probably to have programs keep their generic program icon until after their first run. If you double click on something that has a generic program icon, then you probably intend to run it...

Slashdot Top Deals

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...