Search Results

Search: Posts Made By: figaro
Forum: Programming 01-03-2019
2,687
Posted By durden_tyler
First of all - thank you very much for providing...
First of all - thank you very much for providing the CREATE TABLE and INSERT statements. Those really help!
If you have MySQL version < 8.0.2, then you could find the previous level by joining the...
3,317
Posted By sea
The || represents an unconditional else of an if...
The || represents an unconditional else of an if block.
Use OR instead.

Anyhow.. in your case i'd suggest a case block..
ext=h
case $ext in
cpp|h|js) echo "Do this" ;;
ph|php|lua) echo "Do...
Forum: What is on Your Mind? 10-23-2013
3,587
Posted By alister
Your histrionic lead-in to a post bereft of...
Your histrionic lead-in to a post bereft of concrete examples suggests that, instead of a genuine technical discussion, your primary goal is the promotion of your automation product. The fact that...
7,372
Posted By RudiC
You've been close! Try sed '/NEW/{1d;$d}' file
You've been close! Try sed '/NEW/{1d;$d}' file
8,040
Posted By RudiC
Well, try this one series of statements "...
Well, try this one series of statements " with double spaces" in between // some comments here
sed -r 's/([[:alnum:]]) +([[:alnum:]])/\1 \2/g' file
series of statements " with...
8,040
Posted By Scrutinizer
Not a regular expression, nor with sed: awk ' ...
Not a regular expression, nor with sed:
awk '
{
for(i=1; i<=NF; i+=2) {
n=split($i,F,"//")
while(match(F[1],/[^ ] +[^ ]/)) F[1]=substr(F[1],1,RSTART) " " substr(F[1],RSTART+RLENGTH-1)...
8,040
Posted By RudiC
First attemptsed -r 's/([[:alnum:]]) ...
First attemptsed -r 's/([[:alnum:]]) ([[:alnum:]])/\1 \2/' file
series of statements " with double spaces" in between // some comments here
(Doesn't work between double quotes.)
Forum: Infrastructure Monitoring 08-08-2013
10,484
Posted By Smiling Dragon
"Load average" in top is actually the run queue...
"Load average" in top is actually the run queue average length.
Over 1 means on average things are waiting on the cpu, below 1 means on average no-one has to wait. Don't confuse this with %cpu -...
Forum: IP Networking 08-05-2013
2,101
Posted By DGPickett
Ports are fields in UDP and TCP packet headers...
Ports are fields in UDP and TCP packet headers that allow the flow to be divided on a host to 65K different apps. For instance tcp cpnnections could be made from 63K different apps on one host to...
Forum: What is on Your Mind? 07-02-2013
9,003
Posted By alister
The hallmarks of Web 2.0 are (1) rounded corners...
The hallmarks of Web 2.0 are (1) rounded corners and (2) web apps which can modify a web page's contents without modifying the browser's history (so you cannot bookmark where you are or share a...
1,028
Posted By balajesuri
seq 0 25 100000You may do this too, but it's...
seq 0 25 100000You may do this too, but it's gonna take a while:
i=0; while [ $i -le 100000 ]; do echo $i; i=`expr $i + 25`; done
Forum: Web Development 03-25-2013
1,863
Posted By hanson44
I personally feel that CSS frameworks are a bad...
I personally feel that CSS frameworks are a bad idea.

If you stick with regular CSS, you are using the lowest common denominator and will be 100% compatible with anyone, can go anywhere. With the...
Forum: Debian 02-16-2013
4,068
Posted By love_debian
The Debian Administrator's Handbook
Hi, would like to share a complete reference about Debian GNU/Linux.
TBH, i've never seen a complete reference book like this one here ...
...
Forum: Programming 02-04-2013
6,718
Posted By Corona688
Why this is needed in C goes to the heart of how...
Why this is needed in C goes to the heart of how C compiles and links.

Including <stdio.h> tells the compiler that "somewhere, there exists a function named fgets, which takes arguments of char *,...
1,978
Posted By Scrutinizer
You would need to properly quote the characters...
You would need to properly quote the characters on the command line and put double quotes around variable references inside the script..

$ cat script
echo "$3"
$ ./script foo bar '!@#.:;_'\'\" ...
7,777
Posted By Neo
The new code detection algorithm is not live...
The new code detection algorithm is not live yet... so it would not influence anything.
7,777
Posted By Corona688
Dropping the font button would be a great relief.
Dropping the font button would be a great relief.
Forum: BSD 10-25-2012
11,733
Posted By DGPickett
The mtab is usually /etc/mtab. The device is a c...
The mtab is usually /etc/mtab. The device is a c character not a b raw device. If there is no parallel raw device, it may be that the USB is being mounted raw as a character device, not through a...
Forum: Hardware 09-01-2012
3,609
Posted By ijiboom
Well, we actually got a good handbook for the...
Well, we actually got a good handbook for the included OS and are getting it up and running right now, so no need to switch... But thanks a lot anyway!
2,178
Posted By methyl
Further to post #5 , you'd need to read the file...
Further to post #5 , you'd need to read the file line-by-line, then sort the contents of the line. Also lose the "-s" switch to "tr".

cat filename.txt | while read line
do
sorted=`echo...
Forum: What is on Your Mind? 06-22-2012
2,791
Posted By kduffin
The real advantage to learning assembly language...
The real advantage to learning assembly language is a low-level understanding of pointers and memory handling. You'll have a better understanding of the real operation and cost versus someone who...
1,846
Posted By DukeNuke2
try "edit" -> "go advanced" and you should be...
try "edit" -> "go advanced" and you should be able to change the tilte of your posts!
3,195
Posted By balajesuri
[user@host ~]# cat input this is code line 1 ...
[user@host ~]# cat input
this is code line 1
this is code line 1 // code comment
this is code line 2 // code comment
this is code line 3 // there may be good reasons to keep...
1,846
Posted By bakunin
I'd start with removing blanks before doing...
I'd start with removing blanks before doing anything else. In C/C++ blanks can only serve two functions: to make code easier to read (indentation) or in output (like "printf( " \n");"). Replace in...
Forum: High Performance Computing 05-21-2012
8,277
Posted By otheus
"Understanding" isn't so important. At the end of...
"Understanding" isn't so important. At the end of the results, there is a number labeled "GLOPS". It looks like this:

WR00L2C2 8192 16 1 1 327.60 1.119e+00
...
Showing results 1 to 25 of 91

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