|
Ok not a happy bunny - Van TBoned me whilst exiting a roundabout yesterday morning and the nearside wheel (at almostfull right lock took) the full impact leaving only very light scratches on the arch plastic. Drove it slowly to the nearest car park to...
Started by G60Dub on
, 16 posts
by 8 people.
Answer Snippets (Read the full thread at com):
As mentioned you have a figure to aim for now and it sounds like it should.
It does not sound like a terrible disaster of a situation though.
Car hit after so much work that you have put in .
|
|
I've been digging through some parts of the Linux kernel, and found calls like this:
if (unlikely(fd < 0)) { /* Do something */ }
or
if (likely(!err)) { /* Do something */ }
I've found the definition of them:
#define likely(x) __builtin_expect((x),...
Started by terminus on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
These are GCC functions for the programmer to give a hint to the compiler about what the most likely branch to the compiler to....
The compiler to reorder the control-flow graph to reduce the number of branches taken for the 'likely' path.
|
|
Which one of the following new lisp implementations is more likely to gain the momentum and more mainstream acceptance, arc by Paul Graham or clojure by Rich hickey?
They both launched at the same time, but seems there is more community interest in clojure...
Started by Dev er dev on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Split communities like a high level of productivity due to various....
In response an unofficial fork called Anarki has appeared.
VHS all over again...)
It seems to me that Clojure has been getting a lot progress .
(@joking: Feels like BETA v.
|
Ask your Facebook Friends
|
I would like to play a sound for only a short span of time, shorter than the duration of the sound file. Therefore, at the same time as I start playing, I would like to queue up a task that will stop the sound.
I see two choices for queuing up the stop...
Started by mahboudz on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Have a NSTimer, but with a much smaller time interval... .
Run a bunch of tests and record the exact time, then see which is closer .
However, the best way to figure this out is to test it yourself .
From my understanding, they should be pretty much the same .
|
|
I'm building my webapp using the wicket java web framework. there is one page that i'm building right now contains 20+ external links, a lot of them are pointing to the wikipedia pages. i'm currently hardcoding the url for all these links in the html ...
Started by fei on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It's a minimal amount of effort to....
In my opinion, all of the text and links in a web application should be externalized .
You can always refactor and add complexity later if it turns out you need to be more dynamic .
When in doubt, go the simple route.
|
|
Suppose you've got a server that runs insecure software and you have to make it publicly accessible, what ports are "safest" for providing that service on the internet. By "safest" I mean least likely to be port-scanned and probed for vulnerabilities....
Started by Brian M. Hunt on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at serverfault):
Is this likely? No, not as likely as well-known ports) is probably the least likely to get scanned, but given that it only takes one scan to find on the service you could use something like....
I said they CAN scan all ports.
|
|
I came across these 2 macros in Linux kernel code. I know they are instructions to compiler (gcc) for optimizations in case of branching. My question is, can we use these macros in user space code? Will it give any optimization? Any example will be very...
Started by vinit dhatrak on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In the Linux kernel, they are defined as
#define likely(x is likely to be true, so that the ....
The likely() and unlikely() macros are pretty names defined in the kernel headers for something that is a real gcc feature
Yes they can.
|
|
I am starting to learn ocaml, and am really appreciating the power of recursion in the language. However, one thing that I am worried about is stack overflows.
If ocaml uses the stack for function calls, won't it eventually overflow the stack? For example...
Started by a_m0d on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Most code, which you're more likely to do in a functional language, you have to be aware of non-tail calls.
like Unison have actually replaced the Caml standard List library with a stack-safe version.
|
|
Hi all,
I have a project built around Subsonic 3.0.0.3 and have run into the dreaded medium trust issue, can anyone tell me is there a way I can mod the code myself to get this working or what the expected timescale for 3.1 version is? Its looking increasingly...
Started by Mike on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
No timeframe for SubSonic 3.1 (or 3.0.0.4), but here are the current plans: http://groups.google.com/group/subsonicproject/browse_thread/thread/caae09418ce4d975/
The SubSonic Google discussion group is the best place to find out about the current development... .
|
|
I have a Shuttle SG32G2 PC that I'm using as a small home server. It has two 240-pin DDR2 RAM slots, and officially supports 2GB per slot, for a maximum of 4GB of RAM, which I already have installed. I'd like to upgrade it to 8GB, using two 4GB sticks...
Started by cosmic.osmo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
If you would like to spend money to speed up your system and your RAM is maxed out, a solid-state.
|