The display uses 3 colours:
- Green - new text on the left
- Blue - new text on the right
- Red - changed text/area
This is mainly somewhere for me to dump interesting tidbits of tech info. Stuff that I may forget but will need again in the future. For a proper blog, visit my electronics blog (http://www.fangletronics.com) or my wife's pre-school crafty blog (http://www.filthwizardry.com).
curl -d "param1=value1¶m2=value2" http://myhost.com/server.cgi
INSERT INTO faketable(blob1, name, bitfield) values(b'001011101', "Beeblebrox", b'1');
SELECT name, HEX(blob1), BIN(bitfield) from faketable;
+--------------------+--------------+----------------+
| name | HEX(blob1) | BIN(bitfield) |
+--------------------+--------------+----------------+
| Beeblebrox | 005D | 1 |
+--------------------+--------------+----------------+
data = seq(0,1,0.01);
quantile(data);
0% 25% 50% 75% 100%
0.00 0.25 0.50 0.75 1.00
0% 0.1% 0.2% 0.3% 0.4% 0.5% 0.6% 0.7% 0.8% 0.9% 1%
0.000 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.010
shell1> screen -t data_loading -S data_loading
shell2> screen -ls
There are screens on:
21802.data_loading (Attached)
20237.pts-10.hamilton (Attached)
1376.variance_analysis (Attached)
6639.pts-8.hamilton (Attached)
9881.cluster_jobs (Attached)
5 Sockets in /var/run/screen/S-paul.
This post is very out of date now - I recommend using GitHub and Gists for adding code to blog posts.
... older post below ...<script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js'/> <script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js'/> <script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js'/> <script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js'/> <script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js'/> <script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js'/> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script language='javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.all() </script>
int main(void)
{
uint8_t i = 0;
char c = 'a';
while(1)
{
i++;
}
}
for i in `ls *.c`; do echo $i; done
SELECT name FROM mydb.test_table WHERE id IN (1,2,3,4,5); INSERT INTO mydb.test_table VALUES(1) WHERE name = "test";
private static final class MyClass extends YourClass implements Cloneable
{
public int mMyInt = 145;
private String mString = "blarg";
protected double mDouble = 23.45;
public void main(String[] pArgs) throws Exception
{
System.out.println("Hi there");
}
}
use warnings;
use strict;
my $i = 10;
for my $j (0 .. $i)
{
print "This is line $j. How lovely!\n";
}
warn "this does nothing.";
This is an example of a long line that shouldn't wrap. Dwi eisio ddweud rhiwbeth yn Cymraeg ond dwi wedi anghofio popeth. How long can we make these bars?
perl -F'\t' -lane 'print if $h{$F[0]}++;END{print "$_\t$h{$_}" for keys %h}' averyververververlongfilename.tsv
delay_ms(delay);
if(i==0)
delay--;