Search Results

Search: Posts Made By: bigearsbilly
Forum: Programming 09-30-2016
4,773
Posted By bigearsbilly
It is dead easy to read gz files if you use this:...
It is dead easy to read gz files if you use this:

http://http://www.zlib.net/manual.html#Utility (http://www.zlib.net/manual.html#Utility)

It works on plain files too so you don't need to worry...
Forum: Programming 05-31-2016
3,940
Posted By bigearsbilly
I do similar operations where the reply contains...
I do similar operations where the reply contains the size in the metadata in FIX data.
I use the following:

MSG_PEEK
This flag causes the receive operation to return data from the
...
Forum: Programming 01-17-2016
4,195
Posted By bigearsbilly
You seriously don't need to worry about overhead...
You seriously don't need to worry about overhead of an extra line of code.
Lets do some rough guess calculation here...
What you got a 2GHZ processor? That's 2000,000,000 cycles per second.

Lets...
Forum: Programming 01-17-2016
4,242
Posted By bigearsbilly
Its always best to keep it simple. Most texts...
Its always best to keep it simple.
Most texts you read on signals recommend getting out of the handler ASAP.
A simple way it just use the handler to set a flag.

static int signal;

void...
25,570
Posted By bigearsbilly
Is it a SYN flood attatack? I found...
Is it a SYN flood attatack?

I found net.ipv4.tcp_syncookies helped for my servers, and I would use
ip route add blackhole x.x.x.x

and in our case the attacker would get bored.

Not too...
Forum: Programming 01-05-2015
2,779
Posted By bigearsbilly
have you got GDB on cygwin? if it creates a core...
have you got GDB on cygwin? if it creates a core file you can use it to find where it fails?

or strace this can often give good clues too.
Forum: Programming 11-18-2014
5,967
Posted By bigearsbilly
You are wasting your time trying to control how a...
You are wasting your time trying to control how a shell does it output from outside.
you can set and flush all you want but when the shell starts it can change any of those settings,
or even...
Forum: Programming 07-31-2014
8,531
Posted By bigearsbilly
if you just want to do it you can use dd...
if you just want to do it you can use dd (http://pubs.opengroup.org/onlinepubs/007908799/xcu/dd.html)
4,417
Posted By bigearsbilly
Here is my own little concoction I use for such...
Here is my own little concoction I use for such things.
Produces output like:

=====================================
host total FIN_WAIT2 ESTABLISHED
192.168.1.115 | ...
Forum: Programming 07-28-2014
3,634
Posted By bigearsbilly
search what linus torvalds thinks of C++ ...
search what linus torvalds thinks of C++

That's good enough for me ;)
Forum: Programming 07-28-2014
2,836
Posted By bigearsbilly
why does the ConvertIDToName prototype say "void...
why does the ConvertIDToName prototype say "void * id" instead of "struct ID_t *" madness!!!

That's probably where your warning is. Don't use void * explicitly generally.

Is it really worth...
Forum: Programming 07-28-2014
1,958
Posted By bigearsbilly
What you say does not make sense. If you...
What you say does not make sense.
If you specify a space in the format multiple white space is skipped:



fscanf (http://pubs.opengroup.org/onlinepubs/007908799/xsh/fscanf.html)

"A directive...
3,131
Posted By bigearsbilly
No, In the end i added a bit to copy /proc/pid/io...
No, In the end i added a bit to copy /proc/pid/io just before exit.

a bit naff but there you go
3,131
Posted By bigearsbilly
I got off my chair went upstairs and picked up my...
I got off my chair went upstairs and picked up my stevens.

The command acct does process accounting, writing data on termination of all processes. Ideal.

Hmm I tried but...
but i get zero...
3,131
Posted By bigearsbilly
I am running debian on a virtual hosting...
I am running debian on a virtual hosting provider.
no package for dtrace.

iostat is sort of what I want but it only works on running processes, I want to do comparison runs
one shot with the...
3,131
Posted By bigearsbilly
'time' for disk stats
we all know the time shell command

Is there a way to test disk i/o of a process in a similar fashion?

I am trying different methods to limit disk writes in a 24/7 daemon process and would like...
Forum: Programming 09-04-2013
3,441
Posted By bigearsbilly
yeah you should use one or the other, iostream or...
yeah you should use one or the other, iostream or stdio and not mix and match, ideally.
Forum: Programming 09-04-2013
1,883
Posted By bigearsbilly
this...
this (http://www.amazon.co.uk/The-Programming-Language-2nd-Edition/dp/0131103628/ref=sr_1_1?ie=UTF8&qid=1378289438&sr=8-1&keywords=c+programming+language) is the bible.

Don't bother with cheap...
Forum: Programming 09-04-2013
1,589
Posted By bigearsbilly
I would suggest: strsep, argz, envz
I would suggest:

strsep, argz, envz
Forum: Programming 09-04-2013
2,332
Posted By bigearsbilly
Yes they are embedded in the code, if you do a...
Yes they are embedded in the code, if you do a strings(1) on your program you will see them.
Forum: Programming 09-04-2013
2,737
Posted By bigearsbilly
alternatively like so: #include...
alternatively like so:



#include <stdio.h>
#include <string.h>

const char * names[] = {
"yahoo",
"rediff",
"facebook",
...
4,347
Posted By bigearsbilly
if you administer multiple servers search: ...
if you administer multiple servers search:

clusterit
and cssh

They can seriously cut down your workload.
3,152
Posted By bigearsbilly
use "exists" to test a hash unless...
use "exists" to test a hash


unless (exists $OPT{p})
2,967
Posted By bigearsbilly
Ok it was just a try. That's why I asked to see...
Ok it was just a try.
That's why I asked to see if that command worked.

OK we'll need to do some proper stuff,
do you have perl or C?
try:
man strftime

see if it's available.
...
1,597
Posted By bigearsbilly
this is fun! perl -pe...
this is fun!


perl -pe 's/(?:=)(\w+)\w/\1__ /g ; 1 while s/(\w)(\w)((__ )+)/\1__ \3/' < input-text-file

Truth be told, this is the c__ __ __ __ __ __
I've e__ __ __ g__ __ __ __ __ to a...
Showing results 1 to 25 of 245

 
All times are GMT -4. The time now is 08:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy