2009/8/18-9/1 [Computer/SW/Database, Computer/SW/Languages/Perl] UID:53283 Activity:low | 8/18 trying to write an intentionally slow regex.
what is your worst regex ever?
this is using MySQL regexp but I'll also accept
perl format --brain
\_ you need to know how regex is implemented internally in order to
have a worst regex in terms of running time. Something that uses
...
|
2008/5/2-8 [Computer/SW/Compilers] UID:49874 Activity:low | 5/2 How do I get the L1/L2 cache size and cache line size on my machine?
Can I find this stuff out at compile time somehow?
\_ You aren't planning on running your code on any other processors?
\_ May I ask what it is you want to achieve ultimately? If you don't
know your architecture and want to find out dynamically, there are
tools that can peek/poke to give you definitive answers, plus you get
...
|
2007/11/27-30 [Computer/SW/Languages/C_Cplusplus, Computer/SW/OS/Solaris] UID:48701 Activity:high | 11/27 I'm using select to do a nonblocking check to see if a single socket
has anything to read off it. Problem is, I can have up to 12228
file descriptors, and Linux fd_set only supports up to 4096. Any idea
what I can do about this? (Or a better solution?) -jrleek
\- 1. who are you
2. i am busy this week and you didnt mention language
...
|
2006/10/5-7 [Computer/SW/Unix] UID:44692 Activity:nil | 10/6 locale question
is en_US equivalent to POSIX and/or en_US.UTF-8?
What does Redhat default to? UTF-8? en_US? POSIX? - danh
\_ no, POSIX is essentially C. en_US.UTF-8 is, UTF-8.
...
|
2006/3/27-28 [Computer/SW/Languages/Perl] UID:42473 Activity:nil | 3/27 Anyone have experience with embedded Perl in C/C++ apps? I've been
using this for a while but now I find out I can't "use POSIX" for
example in the Perl code, and trying to follow instructions on
the internet for how to load extensions like this doesn't seem to
work. So, maybe someone can help describe what should be done...
I tried putting in an xs_init function generated by ExtUtils, but
...
|
2006/2/7-9 [Computer/HW/Memory, Computer/HW/Drives] UID:41761 Activity:kinda low | 2/7 I have a little multi-threaded server I'm writing, and I log at
the start of each call and at the end of each call. I log by
having a global lock file, lock, write, flush, unlock. This
seems like a bottleneck, is there a better way to log from a
multi-threaded server? Perhaps something like syslogd where I
could send messages to another process that would log for me?
...
|
2005/6/14-16 [Computer/SW/Unix] UID:38127 Activity:low | 6/14 Does anyone know the POSIX specified way to get the fully
qualified domain name of the local machine in a C program?
gethostname just returns the name of the box without the domain.
\_ There probably isn't a POSIX-specified way, as there is no
single way to map machine->FQDN. (What if a machine has
two, or 1000 FQDNs?) -tom
...
|
2005/2/17 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:36210 Activity:high | 2/17 I need to write some code using sockets that will work on both
Windows and LINUX. Ideally, I'd like to just use the standard
POSIX sockets and have the code work on both platforms. Based on
info from MSDN, it looks like this is possible but I'd like to
ask people on the MOTD if they've encountered any inconsistencies
or other issues doing things this way. Thanks. -emin
...
|
2004/12/14 [Computer/SW/Unix] UID:35279 Activity:nil | 12/13 The manpage for fflush says that fflush(NULL) will flush all open
buffers-- is this POSIX (or another standard), or just a BSDism?
...
|
2004/9/16-17 [Computer/SW/OS/Windows, Computer/SW/Compilers] UID:33574 Activity:kinda low | 9/16 I want to compile a simple Windows console app, are there any
gnu/free compilers for windows that would do it? I'd rather not
install visual studio and all its crap... my app is in C and calls
windows APIs.. thanks.
\_ I'd say Cygwin but it probably doesn't support your Windows calls.
Just out of curiosity, what sort of console app could you write
...
|
2004/8/19-20 [Computer/SW/Unix, Academia/Berkeley/CSUA/Motd] UID:33030 Activity:high | 8/19 So, can someone explain Posix to me?
\- POSIX IS THE STANDARD --psb
\_ I usually hear about it with respect to POSIX threads. Writing
threaded programs can be a mess if the API for each architecture
is different. So, every architecture supports POSIX threads.
Write once, run everywhere (with lots of #ifdefs). Win32 does
...
|
|