Search Results

Search: Posts Made By: bigearsbilly
Forum: Programming 09-30-2016
3,714
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,457
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
3,055
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
3,680
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...
21,810
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,466
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,205
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
7,230
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,003
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
2,959
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,177
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,667
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...
2,110
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
2,110
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...
2,110
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...
2,110
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
2,876
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,699
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,363
Posted By bigearsbilly
I would suggest: strsep, argz, envz
I would suggest:

strsep, argz, envz
Forum: Programming 09-04-2013
1,866
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,255
Posted By bigearsbilly
alternatively like so: #include...
alternatively like so:



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

const char * names[] = {
"yahoo",
"rediff",
"facebook",
...
3,908
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.
2,842
Posted By bigearsbilly
use "exists" to test a hash unless...
use "exists" to test a hash


unless (exists $OPT{p})
2,644
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,457
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 05:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy