/srv/irclogs.ubuntu.com/2013/07/16/#ubuntu-uk.txt

omerhi05:51
knightwisemorning06:27
Myrttisomething to that effect06:42
MooDoomorning all07:11
MartijnVdS  \o07:19
=== alan_g is now known as alan_g|afk
* popey chuckles at http://www.gigabyte.com/products/product-page.aspx?pid=4456#kf (specifically http://www.gigabyte.com/fileupload/keyfeature/294/images/S1185-keyfeatures-11.jpg) vs http://www.canstockphoto.com/images-photos/young-woman-headphones-laptop.html#file_view.php?id=1197135608:02
Garythats quite funny08:03
Garycompanies should make sure to take their own marketing photos08:04
popeyhttp://www.dreamstime.com/royalty-free-stock-image-relaxed-young-man-cup-tea-using-laptop-image1671719608:06
popeyalso08:07
=== alan_g|afk is now known as alan_g
=== msm is now known as Guest47448
brobostigongood morning everyone,08:20
MooDoomorning brobostigon08:20
brobostigonmorning MooDoo08:21
=== Guest47448 is now known as msm_
=== joseph is now known as Guest64546
=== Guest64546 is now known as jlebrech
JamesTaitGood morning all, happy Corn Fritter Day! :-D08:45
MartijnVdSJamesTait: that sounds American08:45
JamesTaitI really need to find more sources for these things if that's the best we can do. :-/08:45
JamesTaitIt's one year since Jon Lord died.08:46
* brobostigon curses at the hay fever.08:47
=== graingert is now known as Guest61873
JamesTaitbrobostigon, I don't think he died from hay fever.08:48
brobostigonJamesTait: dont think who died ?08:48
JamesTaitbrobostigon, 09:46 < JamesTait> It's one year since Jon Lord died.08:49
JamesTaitbrobostigon, immediately followed by 09:47  * brobostigon curses at the hay fever.08:49
brobostigonah, ok, i dont know the name, i dont think.08:49
JamesTaitbrobostigon, http://en.wikipedia.org/wiki/Jon_Lord08:51
brobostigonJamesTait: ah,08:53
etyuiohello08:54
etyuioa question ?08:54
etyuioi got list of server name on file sometime the same server name appear 2 times sometime appear only one time : i m looking for a command that can filter and count the number of the server in one time08:55
MartijnVdSetyuio: sort -c and sort -u08:55
MartijnVdSwait.. not -c\08:56
MartijnVdSah08:56
BigRedSsort | uniq -c08:56
MartijnVdSuniq -c08:56
brobostigonanything i can use, which will be around the house, for my hayfever untill i get into toen this afternoon ?08:57
MartijnVdSbrobostigon: gas mask?08:59
* BigRedS wonders what MartijnVdS has around his house08:59
MartijnVdSbrobostigon: surgical mask?08:59
brobostigonquite, yes.08:59
MartijnVdSBigRedS: don't you have "Prepare for the worst!" government ads?08:59
MartijnVdSBigRedS: "Get 100 liters of water, a gas mask, duct tape, a flash light and a radio"09:00
MartijnVdSor something similar09:00
BigRedSprepare for the worst government?09:00
MartijnVdSBigRedS: maybe09:00
etyuiowhat is the difference between sort -c and u  ?09:01
BigRedSwe definitely get those ones09:01
MartijnVdSetyuio: man sort :)09:01
brobostigonclosest i have, are probably some oil and hydraulic fluid filters.09:01
BigRedSetyuio: they're quite different. Do you mean between sort -u and uniq?09:07
BigRedSthe former doesn't keep count09:07
etyuioi got 3 different result09:08
etyuiouniq file | nl & sort file |uniq|nl & sort file |uniq|wc -l09:10
etyuiowhich one is correct ?09:10
SuperMattyou want to sort first09:10
SuperMattideally, you'd also want to convert them all to the same case09:10
mungbeanwhat's the best performing X server for windows?09:10
mungbeantrying xming and it's minging09:10
MartijnVdSetyuio: it helps if you understand what the commands actually  DO09:10
MartijnVdSetyuio: which you can learn by reading their manual pages (man commandname)09:11
SuperMattsort -hf <file> | uniq09:11
etyuioi can't understand anything09:13
etyuioi got 3 different result for this : uniq file | nl & sort file |uniq|nl & sort file |uniq|wc -l09:13
etyuiowhich one is correct ?09:13
MartijnVdSetyuio: depends on what you wnat to do :)09:13
MartijnVdSetyuio: uniq = list only unique lines in a file (if a line is in the file more than one time, list it only once)09:14
MartijnVdSnl = add line numbers09:14
MartijnVdSsort = sort lines in a file09:14
MartijnVdSwc -l = count lines in a file09:14
MartijnVdSas the manual would have told you09:14
SuperMattetyuio: I really suggest you learn what each command is actually doing so you can determin for yourself which is giving you the correct answer09:14
etyuiowell i can understand all those thing09:17
MooDoopopey: you loosing your man cave?09:17
MooDoolosing even09:17
etyuiomy question is as i grep uniq is there all 3 commands are equivalent or not ?09:18
etyuiouniq file | nl & sort file |uniq|nl & sort file |uniq|wc -l09:18
SuperMattthe first one will give you a different result to the other two09:19
SuperMattbecause uniq only removes indentical stuff if they're next to each other09:19
etyuioi got an 4rth result with this command : uniq file | wc -l09:19
SuperMattyou *must* sort first09:19
etyuiohold down i give the result09:20
popeyMooDoo: indeed09:20
etyuiouniq file | nl => 122 result09:20
etyuiosort file |uniq|nl => 120 result09:20
SuperMattyup09:21
etyuiosort file |uniq|wc -l => 121 result09:21
SuperMattthat's because some of those additional servers weren't directly next to their duplicate09:21
BigRedSuniq goes through the file and if one line is the same as the preceeding one it removes one of them; all it does is compare adjacent lines09:21
SuperMattso ignore the first one09:22
MooDoopopey: denied :( as Myrtti mentioned on g+ let's hope you get a good shed ;09:22
SuperMattetyuio: when writing bashy type stuff, do everything one bit at a time09:22
SuperMattso start off with sort, and see if you get what you expect09:23
SuperMattthen run uniq09:23
SuperMattthen run nl and wc -l09:23
MyrttiI sense a disturbance in the force09:23
etyuiowell let me the ask different the question differently09:23
etyuiohow to identify the one increasing each time ?09:24
SuperMattaha, wc -l will include blank lines, nl will not09:24
etyuiouniq file | nl & sort file |uniq|nl & sort file |uniq|wc -l09:24
MartijnVdSetyuio: are you sure you don't want "sort file | uniq -c"09:24
etyuiodone what you want to know ?09:26
MartijnVdS?09:29
SuperMattetyuio: have you actually read the man pages of any of these commands? I really suggest you do because it's important to learn what the commands do. That way you can then decide for youself which commands you should be running and in what order, for the task that only you know the end goal09:29
etyuionow i got an other result => 12109:30
etyuiowhich one is correct ?09:30
SuperMattwe don't know because we don't have the same input as you!09:30
MartijnVdSetyuio: you have to decide that yourself, by reading up on what the commands *do*09:30
SuperMattwhat MartijnVdS said09:30
MartijnVdSand if that's what you want them to do09:30
SuperMattit's like me coming in here and saying "I have two answers, 'b' and '89475.' Which one is right?"09:31
SuperMattno one in here will know because they don't have the input09:31
MartijnVdSSuperMatt: "b" obviously09:31
mungbeandiscovers that mobaxterm is much better than xming09:31
MartijnVdSmungbean: xming has a .. dubious .. name09:31
SuperMattstill not as dubious as gimp09:31
mgdmyou'd be better with xmung09:31
MartijnVdSSuperMatt: "I started GIMP in Xming"09:32
SuperMattstill, I find it funny installing mongo09:32
SuperMattlet me just man gimp09:32
mungbeanin the 90s i naively typed manpages.com09:32
mungbeanthinking it was a solaris site09:33
SuperMattlol09:33
SuperMattI don't think I'll be doing that right now09:33
mungbeanbig willy wangers on the first page09:33
SuperMatthilarious09:33
mungbeangot whiplash from trying to shut the browser09:33
SuperMattwe've all been there09:33
mungbeani was at work in full view of the office09:33
BigRedSMy brother used to keep checking his mail at hotmale.com09:34
SuperMattmmm there's something quite satisfying naming our nagios server "hubble"09:34
mungbeanoog09:34
MartijnVdSmungbean: Dutch for "eye" :)09:34
MartijnVdSalso a good name for a Nagios server09:34
JohnRobertnagios nags you09:34
mungbeani meant to say oof09:34
=== graingert is now known as Guest45961
SuperMattnagios only nags you if you're a bad sysadmin ;)09:35
GaryMRTG ftw09:35
directhexnaggy os?09:36
MartijnVdSGary: ...09:36
directhexzabbix!09:36
mungbeancacti>mrtg09:37
MartijnVdSWhat's wrong with what we call the "whine system"?09:38
MartijnVdS"<service> seems to be down" "Let's look at that.."09:38
GaryMartijnVdS: multi router traffic grapher09:39
MooDooI love wine ;)09:39
MartijnVdSGary: I know.. but that doesn't warn if it detects bad stuff, does it?09:39
Garyproduces pretty graphs for bandwidth, and shows if stuff goes eeeeeek09:39
MartijnVdSMooDoo: "whinge" then09:39
Garyand we have it tied in somehow to nagios09:39
MartijnVdSGary: sure, but it doesn't actually go EEEEK itself09:39
MartijnVdSGary: by texting you09:39
Gary(I don't set up these systems, just break them)09:39
MooDooMartijnVdS:  ;09:40
MooDoo:)09:40
Garynagios emails, I think it can do more09:40
MartijnVdSGary: yeah, it can start scripts09:41
MartijnVdSGary: you could even make nagios restart the service all by itself if you wanted to09:41
Garyooo, I just want to con my boss into making it restart EVERYTHING upon recieving an email from my unknown external freemail address :p09:43
MartijnVdSGary: or a text from that new pay-as-you-go number from free SIM from the supermarket ;)09:44
Garypaid for in cash, whilst wearing a hoodie09:45
MartijnVdSyeah, and then not used for a month so the security tapes expire09:45
Garyactually, sod restart, can it just shutdown all?09:45
MartijnVdSwhy not?09:45
Garywipe config, shutdown :p09:46
MartijnVdSa script is a script09:46
MartijnVdSGary: easier to do that with puppet09:46
Garymy cow-workers are puppets09:46
Garydo I come across as a little erm, whats the word...09:47
etyuiopeffect this one is correct command sort file |uniq -c|nl09:48
etyuionow i would like to change the  name of the server which is on the file from BIG letter to small letter ?09:48
MartijnVdSetyuio: man tr :)09:48
MartijnVdSetyuio: or, easier to understand but not as comprehensive: http://www.cyberciti.biz/faq/how-to-use-linux-unix-tr-command/09:49
=== emmy is now known as Guest98781
SuperMattetyuio: you could do sort -f, which does case insensitive sorting09:51
etyuioi don't want to sort anything09:51
SuperMattright, are you sure? What if you have something like: Server1 and server1. They will appear differently in sort file | uniq | nl09:52
SuperMattoh wait, uniq needs to be insensitive too09:52
etyuiofrom this command sort file |uniq -c|nl i would like to add something like  sort file |uniq -c|nl | convert MAJ to MIN09:52
MartijnVdStr A-Z a-z file | sort | uniq -c | nl09:52
SuperMatt^09:53
SuperMattyou wanna do your conversion first09:53
MartijnVdStranspose all capital letters to lowercase letters09:53
MartijnVdSthen sort (so the same names are next to each other)09:53
MartijnVdSthen count how often each line is in the file09:54
etyuiohow ?09:54
MartijnVdSthen number the lines09:54
davmor2Morning all09:54
MartijnVdSetyuio: I'm just describing what that command line does09:54
SuperMattoooh, there's an awk way too09:54
SuperMattI like awk09:54
MartijnVdSetyuio: Really, read some man pages :)09:54
etyuiohow awk ?09:54
etyuiowith awk ?09:54
SuperMattMartijnVdS already gave you the answer at 10:5209:54
SuperMattusing tr09:55
BigRedSSuperMatt: there's an awk way to do almost everything. It's like Perl but worse09:56
etyuiobut not work09:56
etyuiotr A-Z a-z file | sort | uniq -c | nl09:56
etyuionot workign tr A-Z a-z file | sort | uniq -c | nl09:56
MartijnVdSetyuio: what isn't working about it?09:56
etyuio Usage: tr [ -cds ] [ String1 [ String2 ] ]09:57
SuperMatttry tr '[A-Z]' '[a-z]' file | sort | uniq -c | nl09:57
etyuionot at all09:57
etyuiosame result09:57
SuperMattwait, we can just dict the -c | nl09:57
SuperMattbecause you want a list09:58
SuperMattso  tr '[A-Z]' '[a-z]' file | sort | uniq09:58
SuperMattthis is why *you* need to learn the commands09:58
etyuioi would like to understand how with awk ?09:58
SuperMatthttp://stackoverflow.com/questions/2264428/converting-string-to-lower-case-in-bash-shell-scripting09:58
SuperMattor importantly http://lmgtfy.com/?q=bash+convert+to+lowercase09:59
SuperMattthat's how I managed it09:59
SuperMattI'm going to be honest *again*09:59
SuperMatt*learn* the commands09:59
SuperMattwe are tying to help, but we don't see what you see, we don't know what you know. we are pointing you at commands, but we can't tell you what's wrong with them because we don't know what result you're expecting to see. If you want generic help, like 'what command does x?' we can help, but we can't get the right answer for you10:00
etyuiook i can understand10:02
etyuiothis command is wroking  echo "Hi All" | tr "[:upper:]" "[:lower:]"10:05
etyuioin output i got hi all10:05
SuperMattexcellent10:05
SuperMattso now you can do tr "[:upper:]"  "[:lower:]"10:05
SuperMattso now you can do tr "[:upper:]"  "[:lower:]" filename10:05
SuperMattsorry10:05
etyuiobut this one not working but instead of10:06
etyuiotr "[:upper:]" "[:lower:]" file  | sort | uniq -c | nl10:06
etyuiowhat i would like to do  is :10:07
etyuiowith this command10:07
etyuioecho "Hi All" | tr "[:upper:]" "[:lower:]"10:07
SuperMattyou can do cat file | tr...10:07
etyuioinstead of Hi All in echo "Hi All" | tr "[:upper:]" "[:lower:]" i would like to input my file name to have something like this10:08
etyuioecho "$filename" | tr "[:upper:]" "[:lower:]" | sort | uniq -c | nl10:09
etyuiohow to do ?10:09
SuperMattcat filename instead of echo filename10:09
SuperMattor jusy use tr "[:toupper:]" "[:tolower:]" filename10:09
SuperMattit does work because I've tried it10:09
etyuioperfect10:09
etyuioit's working thanks a lot10:10
SuperMatthooray!10:10
SuperMattnow, I want you to run these commands10:11
SuperMattman sort10:11
SuperMattman uniq10:11
SuperMattman wc10:11
SuperMattman nl10:11
SuperMattman tr10:11
SuperMattand learn exactly what they do10:11
SuperMattthat way, when you have a question like this, you will know exactly how to answer it yourself10:12
etyuiook perfect10:12
etyuiobut i got some difficulty to understand that10:12
SuperMattyou may not *remember* each switch, but you will remember "oh hey, I know sort is what I need, I'll look to see what functionality it has"10:12
SuperMattis english not your first language?10:13
etyuioi m expecting an answer in 2 lines but gots several pages10:13
etyuiofrench10:13
SuperMattyes, man is sort for manual10:13
etyuiois it possible to convert the man page in french ?10:13
etyuioor open the man page temporarely in french ?10:13
etyuioor choosing the language what we would like to read ?10:14
SuperMattcan I ask why you're not in #ubuntu-fr?10:14
SuperMattbecause I don't know about reading man pages in french10:14
SuperMattbut they would be able to help you10:14
SuperMattthey'd help you understand a lot more than we could10:14
SuperMattaha, it looks like you can install manpages-fr10:15
etyuiobut there people are not UP  2 date10:16
SuperMatthow so?10:16
etyuiothat's why i m here10:16
SuperMattok, I just checked and there *loads* of people in #ubuntu-fr10:18
SuperMattthey could have helped you10:18
SuperMattand I'm sure if you stay in there for a long period of time and be patient, you will learn a lot from them10:18
SuperMattand the commands we used today? decades old. No one in there needs to be up to date to help you10:20
etyuiowell10:21
etyuioon the same file i got  list of server in DNS shortname10:22
etyuionow i would like to add the complete name10:23
etyuiohow add the extension from the short name of the server ?10:24
=== Hornet- is now known as Hornet
SuperMattok, maybe now I think you're using the wrong tools10:33
SuperMattit's doable, but we're getting really complex, and you'd be best just copying the data in to something like excel/calc, and manipulating it there10:34
SuperMattthen pasting it back in10:34
SuperMattbut to answer your question awk '{print $0 "domainname" }'10:35
SuperMattbut now you have to work out what to do with that10:35
etyuioprint $0 means what ?10:36
ewkbrhii10:36
SuperMattthis is the problem etyuio, you're *way* out of your comfort zone here10:36
SuperMattit'd be prudent for you to do things in a way you're more comfortable with10:37
ewkbri make a script in python10:37
MartijnVdSetyuio: man bash -> search for "\$0"10:37
JohnRobertiirc $0 is the first argument (probably the script name itself)10:38
ewkbrnow i want to use it like a service / demon (in /etc/init.d)10:38
MartijnVdS0 = script name10:38
SuperMattnot in awk it's not ;)10:38
ewkbrhow i can do it?10:38
SuperMattewkbr: that's not easy *at all*10:38
ewkbrnow i want to use it like a service / demon (in /etc/init.d) with start, stop restart10:39
SuperMattwhat does it do?10:39
MartijnVdSewkbr: you need  to write it in a special way for that10:39
SuperMattthere is a python pip for creating daemons, I suggest you look that up10:39
SuperMattbut it's not a simple question to answer10:40
MartijnVdSit's also packaged10:40
ewkbrwhat do you mean?10:40
ewkbrto run it like this?10:40
MartijnVdSewkbr: there's a library you can use, python-daemon, to write daemons in python10:40
MartijnVdSewkbr: you have to write your program to make use of that library10:40
ewkbrpython script.py | service   ??10:40
MartijnVdSewkbr: do you even read what we're telling you?10:41
ewkbrbut i dont want to re-write the code,, i want only the ability to start it and stop simply..10:42
SuperMattMartijnVdS: I have a feeling no one today has been reading what we've been saying10:42
SuperMattwhois ewkbr10:42
SuperMattoops10:43
MartijnVdSewkbr: that's not how daemons work10:43
SuperMattyou *have* to write new code to convert it to a daemon10:43
SuperMattbecause it needs clever stuff, like the ability to fork new processes, etc10:43
SuperMattthe ability to receive a stop signal10:44
MartijnVdSand then actually stop10:44
SuperMattthere is *so much* to it10:44
ewkbrok..10:44
etyuioperfect working awk10:44
MartijnVdSetyuio: but do you know what it's actually doing?10:45
SuperMatt^this10:45
etyuioyes of course adding extension on the file10:45
MartijnVdS!xyproblem10:46
MartijnVdS!xy10:46
lubotu3The XY problem is when you need to do X, and you think you can use Y to do X, so you ask about how to do Y, when what you really should do is state what your X problem is. There may be a Z solution that is even better than Y, but nobody can suggest it if X is never mentioned.10:46
SuperMattewkbr: https://pypi.python.org/pypi/python-daemon10:46
etyuioperfect working awk10:46
etyuiobut the problem is i got 3 types of server name ; starting with10:46
etyuio3 different name10:47
MartijnVdSetyuio: It might work, but I'm afraid it's fragile and you won't actually know how to fix it if it breaks10:47
SuperMatthang on10:47
SuperMattI have a great answer for all this10:47
MartijnVdSSuperMatt: stackexchange?10:47
SuperMattcvbnm,m, nbgvb cxc10:47
etyuioi would like to add the 3 different in 3 case10:47
SuperMatthanging my head of the keyboard10:47
MartijnVdSSuperMatt: awww..10:48
etyuiowhat will work ?10:48
SuperMattthen the command line is not the tool for you, etyuio10:48
SuperMatteither learn to script in bash, python, whatever10:48
* MartijnVdS gives up as well10:48
SuperMattor do it manually10:48
SuperMattand we cannot teach you this in 10 minutes on irc10:48
etyuiodon't worry i found it with for i in10:51
etyuiothanks here for valuable support10:51
SuperMattok great10:51
SuperMattnow *learn* all this10:52
SuperMattthrow yourself deeply in to it10:52
etyuiosure10:52
BigRedSStart knocking out 2KB oneliners that make your colleagues weep10:52
SuperMattfeel free to ask questions, but make sure they're the *right* questions10:52
etyuiook perfect thanks a lot10:53
SuperMatt*phew* all that stuff is over now, I feel like I can breathe11:03
MartijnVdSwe can talk about perl scripts again :)11:06
SuperMatthooray11:06
ali1234NO11:12
* penguin42 notes the lyrics on 'The final countdown' are wonderfully cheesy11:13
=== schwuk is now known as schwuk_away
davmor2penguin42: I don't know what you mean.  "We're leaving together, but still it's fairwell, and maybe we'll come back, to Earth who can tell....."  Nothing cheesy there :D11:23
MartijnVdSdavmor2: same subject as Queen - '39 then11:23
davmor2MartijnVdS: or Flash :)11:24
=== schwuk_away is now known as schwuk
davmor2penguin42: if you want cheesy you need to look to popstars trying to cash in on rock ballards, power of love Jennifer Rush, Just died in your arms tonight cutting crew...........11:27
MooDooanything from the 80's nuff said11:28
MooDoolol11:28
davmor2MartijnVdS: Queens cheesiest song starts "I was just a skinny lad, never knew no good from bad, but I knew life before I left my nursery"11:29
BigRedSI just exchanged GPG keys with RMS. That might be the most nerdy thing I've ever done.11:29
MartijnVdSBigRedS: would you need to send him anything then?11:31
davmor2MooDoo: Aaaaaaaaaaaaaaaaaaaaggggggggggggggggggggggggggggaaaaaaaaaaaaaaaaaaaaaaaaaaadododo11:32
BigRedSMartijnVdS: we host a machine for hi11:32
BigRedSm11:32
davmor2MooDoo: I don't know what you mean the 90's brought us boybands and girlbands you really want cheesy that is the era to look at :)11:33
MartijnVdSMooDoo: http://open.spotify.com/user/martijnvds/playlist/4sXUFBP520n3SC2o8bg0TF11:34
MooDoodavmor2: sorry can't talk i'm pushing a pineapple and shacking a tree11:34
MartijnVdSdavmor2: they also brought us proper gangsta rap11:34
MartijnVdSdavmor2: and Eurodance11:34
MooDooIt's hammer time, that's all you need to know11:34
MartijnVdSMooDoo: stop, collaborate and listen!11:35
davmor2MartijnVdS: the 80's brought proper gangster rap, NWA when they were not mainstream etc11:36
BigRedSHah, I can't get that playlist top open in spotify11:36
MartijnVdSdavmor2: hm, true11:36
davmor2MartijnVdS: Also a lot of the dance house music that Eurodance is based off kicked off in the 80's and a lot of the demo music used is also from the 80's :P11:37
davmor2demo was meant to be sample11:37
MartijnVdSdavmor2: but the 90s gave us Ace of Base, and happy hardcore.. and Aqua11:37
MooDoonot in my barbie world11:37
MartijnVdSBigRedS: spotify:user:martijnvds:playlist:4sXUFBP520n3SC2o8bg0TF  then ? paste that in the search box11:38
BigRedSah! I was just trying to remember that syntax11:38
BigRedShaha, your '90s playlist dwarfs mine11:39
davmor2MartijnVdS: Ace of base 87 dude, happy hardcore were formed in the late 80'2 inorder to be popular by the early 90's and Aqua well it's Aqua.  The 90's also brought us spice girls, boyzone, take that, etc etc etc11:40
BigRedSmake me feel a bit better about that11:40
MartijnVdSdavmor2: best music is from the late 80s, early 90s anyway11:40
penguin42davmor2: No way; the Final countdown rhymes 'we're heading for Venus (Venus)' with 'Cause maybe they've seen us'  - you can't get cheesier than that11:46
davmor2MartijnVdS: I agree, only I also include late 70's, all of the 80's, and up to about 94-95, then it just started to go downhill bar the odd exceptional group  for example fatboy slim, prodigy , moby, Armon Vanheldon (probably spelt wrong), Adele, blur, oasis etc11:46
MartijnVdSdavmor2: every time I hear someone say "music from Adele" I hear "music from a Dell"11:48
davmor2penguin42: Power of love by Frankie goes to hollywood "I'll protect you from the Hooded Claw  and keep the vampires from your door"11:48
davmor2MartijnVdS: how do you know it isn't11:48
MartijnVdSdavmor2: no logo11:48
davmor2MartijnVdS: and no intel jingle in the background :)11:49
MartijnVdSdavmor2: exactly11:49
davmor2penguin42: then you get the stalker song from the police, the pervert song by the police, the murder song by Phil Collins, that everyone thinks are lovely love songs, (every breath you take, don't stand so close, in the air tonight)11:52
MartijnVdSdavmor2: Fiction Factory - (Feels Like) Heaven, a very happy-sounding *break-up song*11:53
MartijnVdSdavmor2: but at one time, everyone used it at weddings11:54
davmor2MartijnVdS: 10cc I'm not in love11:54
davmor2MartijnVdS: Lucy in the Sky with Diamonds, that is nothing to do with drugs11:55
MartijnVdSbut that's not 80s11:55
davmor2MartijnVdS: I know but all the ones in the 80's that were about drugs, were about drugs :D11:56
penguin42reminds me, I need to get some 10cc; I had Rubber Bullets going round in my brain the other night11:56
ali1234ebeneezer goode?11:57
davmor2MartijnVdS: Then there is the 1979 Christmas number on no drugs in that song what so ever :)11:58
ali1234i don't think pop music gets much more blatant than that11:58
ali1234why is the phil collins song about murder tho?11:58
davmor2ali1234: If you told me you were drowning I would not lend a hand11:59
MartijnVdSdavmor2: that's just hating someone12:00
ali1234"It's the first time, the last time we ever met "12:00
ali1234it's a song by a murder victim to the murderer?12:01
=== alan_g is now known as alan_g|lunch
ali1234i would almost have more respect for phil collins if that were true12:03
ali1234but according to wikipedia he doesn't know what it's about12:04
davmor2ali1234, MartijnVdS: I think it is actually more about pent up hate and what he saw12:04
davmor2the three things that spring to mind is rape, murder or child abuse of some sort12:04
MartijnVdSdavmor2: maybe he saw the police12:06
davmor2MartijnVdS: yeah sting was stalking him12:06
MartijnVdSthe 80s all make sense suddenly!12:06
ewkbrhi12:08
ewkbri want to do someting like that12:08
ewkbrps -ef | grep "test.py" | grep "python" | awk '{print $2}' > variablename | kill -s 15 variablename12:08
ewkbrhow i can do it?12:08
MartijnVdSewkbr: that looks very dangerous12:09
ewkbrbut how i can find the pid by name..12:10
MartijnVdSewkbr: that tends to be solved by leaving a pidfile when starting12:10
davmor2MartijnVdS: and NWA were obvious sent in to kill the police, with MC Hammer but they can't touch this, so run dmc walked this way following the bangles walking like egyptians, until Frankie said Relax!12:11
MartijnVdSdavmor2: and it's like that, and that's the way it is.12:11
ewkbri get this answer in other place12:12
davmor2MartijnVdS: welcome to the pleasure dome that is sentences made up of songs12:12
ewkbrpkill --signal 15 -f 'python.*test.py'12:12
MartijnVdSewkbr: that's VERY fragile12:12
ewkbris work fine!12:12
MartijnVdSewkbr: sure it works now, until you run a python script with a similar name12:13
ewkbrand if i make something like this   pkill --signal 15 -f 'python.test.py'12:13
MartijnVdSewkbr: no, you want to kill _that specific_ script12:14
ewkbrit will be better?12:14
MartijnVdSewkbr: so you make the script drop a pidfile in a known location12:14
MartijnVdSewkbr: with its PID in it12:14
MartijnVdSewkbr: then later, you check if that PID still exists, and the name of the program matches what you expect12:14
MartijnVdSewkbr: and if so, you kill it12:14
MartijnVdSewkbr: start-stop-daemon has this figured out for you12:14
MartijnVdSewkbr: man start-stop-daemon12:14
ewkbri try..12:15
MartijnVdSewkbr: you need to read ALL of it, it will teach you a lot about daemons12:16
=== msm is now known as Guest36046
=== alan_g|lunch is now known as alan_g
ewkbri cant join to # python :((13:10
BigRedSewkbr: there shouldn't be a space between the # and the 'python' : /join #python13:10
ewkbrhow i can convert the BaseHTTPRequestHandler, from send stderr to stdout13:10
MartijnVdSewkbr: it's a base class, you make a subclass13:10
ewkbr#python-unregistered! You've been put here because #python requires you to register13:11
MartijnVdSthis is #ubuntu-uk13:11
MartijnVdSewkbr: also, registering your nick isn't hard13:11
popey!register | ewkbr13:12
popeybah13:13
JohnRobertircfail13:14
MooDoohttp://freenode.net/faq.shtml#contents-userregistration13:20
MooDoohttp://freenode.net/faq.shtml#nicksetup13:21
mungbeani don't like these gmail different inboxes13:25
mungbeanprimary/social/promo13:25
popeywat?13:26
JohnRobertpriority inbo13:26
JohnRobertx13:26
mungbeangmail webmail has suddenly changed my inbox13:26
mungbeanand has 3 tabs13:26
mungbeanprimary, social and promotions13:26
MooDoo mungbean yup they are rollowing that out13:27
mungbeango to settings -> inbox13:27
mungbeanand unselect categories to remove them13:27
mungbeanmaybe i'll switch it on when i'm comfortable with the idea13:28
mungbeannot sure how they decide whats a promotional email?13:28
mungbeanwhitelist of 100s of vendors/13:28
popeyi use priority inbox..13:28
brobostigoni just use imap,13:29
popeyooh, compact view, much nicer13:29
mungbeani use default but set the zoom level to 75%13:29
BigRedSI've had it for a couple of weeks, and it's basically 100% correct in its sorting, which is a tad sinister13:35
BigRedSI just haven't yet got used to the idea of my inbox being subdivided so I keep not looking at the tabs and not seeing mail13:35
JohnRobertI ought to use imap13:36
ali1234i already filter everything with labels13:36
JohnRobertand pgp13:36
JohnRobertgpg rather13:37
ali1234i have about 40 labels already13:37
ali1234so just turned this thing off13:37
BigRedSMy gmail account is largely read-only, so I just check it on my phone when I'm bored13:40
mungbeani have an outlook.com account with some cool aliases that only the NSA read. i don't even read them13:41
penguin42my gmail just gets the stuff where I've used google account to login to blogs etc13:56
BigRedSyeah, that's wht mine's for now13:59
mungbeanseen the forthcoming zimbra release?14:40
mungbeanblog.zimbra.com/blog/archives/2013/04/zimbra-judaspriest-release-update-1.html14:40
MooDoolol the judaspriest update :)14:42
=== alan_g is now known as alan_g|tea
=== alan_g|tea is now known as alan_g
Laney"damn I want some tea" … "WAIT! I made a pot 5 minutes ago!"14:57
* Laney celebrates14:57
MooDooo/14:59
mungbeanhttp://toys.usvsth3m.com/maths/15:15
mungbean\o/15:15
ali1234i completed level 5 on the first try15:20
ali1234after that it starts asking silly questions like 132/1115:20
mungbeanit does finish15:21
mungbeanlevel 9 i think15:21
mungbeanits worth getting to the finish15:21
mungbeanthere's always an obviously right and wrong answer15:21
ali1234no theres 10 levels15:22
ali1234on level 9 it starts throwing algerba at you15:22
mungbeanwasn't counting levels :P15:22
ali1234like 2x+6 = 16 (x=4) (x=5)15:22
ali1234it says "level x of 10" in the bottom left corner at all times15:22
ali1234"is 14 prime?"15:22
mungbeanyeah, my brain has hardware accel for those15:22
mungbeandon't need to think15:23
ali1234now the website has messed up and the timer isn't working properly15:24
mungbeanaww you missed out on the carol vorderman with her boobs out15:24
mungbean*may not be true15:24
=== RadiumCat is now known as goofle
LaneyI'm giving in and buying a fan15:42
mungbeanyou'll break the weather15:43
mungbeanoh, it's already borken here15:43
directhexLaney, i'm sat in the path of a 12000btu air conditioner :D16:14
penguin42aaarrrrrggggghhhhh btu16:15
Laneyhaha16:15
LaneyI don't know what that unit is but it sounds pleasant16:15
Garyor cold16:15
directhexBritish Thermal Unit16:15
penguin42the Americans use BTU, you end up with data centres that take kW of electricity in, then spit BTUs of heat out - it's mad!16:16
nimeshhi can someone help me when i boot into ubuntu 12.04 lts it just goes to a black screen and i can't login16:21
MartijnVdSpenguin42: you're not much better.. putting litres of petrol in your tank then measuring fuel consumption in miles per gallon16:21
MartijnVdSpenguin42: and using a different gallon from the one across the ocean as well16:21
MartijnVdSnimesh: what kind of graphics card do you have?16:21
directhexMartijnVdS, americans use british wine gallons. because wine.16:21
MartijnVdSdirecthex: why not French liters, because wine?16:21
nimeshi'm using a laptop so i will check16:21
directhexMartijnVdS, British colony, for a long time. so imports of goods measured by british units16:21
MartijnVdSdirecthex: sure, but helped to independence by the French16:21
directhexhttp://en.wikipedia.org/wiki/Wine_gallon16:22
nimeshits a  VGA compatible controller: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter16:22
penguin42MartijnVdS: Well we did put gallons into our tank until maybe 10 years ago16:22
MartijnVdSpenguin42: stränge16:22
penguin42MartijnVdS: I think it's when gallons of petrol became unpallatably expensive16:23
MartijnVdSpenguin42: your litres are still cheaper than ours :)16:23
MartijnVdS!pm | nimesh16:23
lubotu3nimesh: Please ask your questions in the channel so that other people can help you, benefit from your questions and answers, and ensure that you're not getting bad advice. Please note that some people find it rude to be sent a PM without being asked for permission to do so first.16:23
directhexnimesh, i just said "oh gods" out loud16:23
MartijnVdSdirecthex: ALL of them?16:24
nimeshwhat, ok16:24
MartijnVdSnimesh: what happens if you plug your monitor into the other graphics card?16:25
nimeshsorry new to ubuntu and irc so again sorry16:25
nimeshits a laptop16:25
directhexnimesh, SiS cards are extremely rare these days, extremely poor hardware, and the drivers are barely tested at all due to the low number of users16:25
MartijnVdSah, so it's one of those "switch between built-in and nvidia card" things?16:25
nimeshno16:25
nimeshits just sis16:26
MartijnVdSthen why do you have a SiS PCI/AGI _and_ a PCIE display adapter?16:26
nimeshthat is what come up when i do lspci16:26
nimeshin terminal16:26
nimesh11.10 work perfectly but there is no support as you know16:27
MartijnVdSnimesh: like directhex said: SiS isn't well-supported16:27
MartijnVdSnimesh: you could check /var/log/Xorg.0.log16:27
MartijnVdS(does ctrl+alt+f1 work?)16:27
nimeshyeah i thnk16:28
nimeshno it does16:28
nimesh!pastebin16:31
lubotu3For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.16:31
nimeshhere is /var/log/Xorg.0.log http://paste.ubuntu.com/5881396/16:31
MartijnVdS[    28.268] (--) SIS(0): Detected LCD/plasma panel (1024x768, 1, non-exp., RGB18 [12c500])16:32
MartijnVdSso it's doing something..16:32
MartijnVdSI don't know, sorry..16:33
nimeshi have told you that i have downgraded to use my laptop16:33
MartijnVdSoh this is the 11.10 log?16:33
nimeshyeah because i can't access 12.0416:34
MartijnVdSnimesh: but it's hard to debug like this :)16:34
MartijnVdSnimesh: does a 12.04 live CD work?16:34
MartijnVdS(to test)16:35
nimeshso how do i resolve this16:35
penguin42nimesh: When you installed 12.04 which 12.04 did you use ? (I know it's an odd question) - 12.04, 12.04.1 or 12.04.2 ?16:35
MartijnVdSnimesh: or just "upgrade" from 11.10?16:35
nimeshhow do i tell16:35
penguin42not too sure to be honest - did you download the 12.04 iso yourself? In the last few weeks?16:35
nimeshit was a clean install16:36
MartijnVdSnimesh: and the installation CD worked correctly?16:36
nimeshi can make a live use in a min16:36
nimeshyeah it worked on my pc16:36
nimeshand it booted up every time16:36
MartijnVdSnimesh: so you put the 12.04 CD in the laptop, and it worked with graphics?16:37
nimeshno it was about 5 months ago16:37
nimeshit did live mode16:37
penguin42nimesh: Hmm ok, so the thing is that 12.04.1 and 12.04.2 have different kernels/X stacks installed by default (and different from 12.04) - it's possible one is better or worse16:37
nimeshand then after 2 boot after install it happend16:38
nimeshi have to go soon so here is my email assistantcall@hotmail.com16:39
nimeshok i have gone really deep into this now16:39
nimesh:)16:39
nimeshhow do i download them16:40
nimeshof the ubuntu website16:40
penguin42ah, I always find that hard to find16:40
MartijnVdSnimesh: go to releases.ubuntu.com16:41
MartijnVdSnimesh: there are separate directories for each 12.04 and 12.04.216:41
MartijnVdSdon't know where .1 went16:41
penguin42nimesh: http://old-releases.ubuntu.com/releases/12.04.0/  I think?16:41
nimeshok when i have will have a go later16:41
nimeshsorry i mean when i have time later16:42
nimeshthanz for all your help16:42
nimeshcan i give help points or something16:42
nimeshto you guys16:42
nimeshwill download both of them now to try later16:43
chaleaveI want inspiration for learning  to  program.  What  I  must  learn?16:44
MartijnVdSa lot of things16:44
chaleaveto start of  it16:44
Laneypopey: your currentcost graphs are broken16:45
popeyyeah16:46
popeythe btrfs volume on the server went squiffy16:46
popeyreboot and it's fine ☻16:46
popeybut i am missing something16:46
chaleavei  am  reading  manual  of  ubuntu16:46
chaleavebut  the  next  what16:46
MartijnVdSchaleave: first determine what you want to write16:47
MartijnVdSchaleave: what kind of program, what should it do16:47
popeyi think maybe a usb serial issue16:47
MartijnVdSchaleave: then, pick a language and start doing its tutorial16:47
MartijnVdSchaleave: know that REALLY learning how to program takes years of practice16:47
MartijnVdSbut simple things should be possible a lot earlier16:48
chaleaveWhat  language  to  start  learning16:48
chaleavefor  ubuntu16:48
MartijnVdSchaleave: doesn't really matter. Python is a popular choice, I think16:48
chaleaveI  had  learned  php16:49
chaleavebut  my  ability  that  low  class16:50
chaleaveI  don't  know  the  next16:50
bigcalmGood afternoon peeps :)16:53
bigcalmAnybody here use git submodules come across this sort of thing? http://paste.ubuntu.com/5881465/16:53
chaleaveok.  I  will  try  about  python.Thank  you  for  talking.16:53
chaleavepython  can  writing  about  program  typing  tutor?16:55
MartijnVdSchaleave: it's easy to find using google16:55
MartijnVdSchaleave: just search for python tutorial16:55
MartijnVdSchaleave: http://docs.python.org/2/tutorial/16:56
=== alan_g is now known as alan_g|EOD
=== PaulGit_ is now known as PaulGit
=== Darael_ is now known as Darael
MartijnVdShttp://www.youtube.com/watch?v=BUY6HGqYweQ18:25
MartijnVdSpopey: http://www.youtube.com/watch?v=e59guruVL4o18:52
popey18:58
MartijnVdSpopey: BREATHE IN18:59
=== schwuk is now known as schwuk_away
bigcalmMartijnVdS: aspirations of being our monarch eh?19:19
bigcalmWho here knows git well enough to help me? :)19:22
MartijnVdSbigcalm: what do you want to know?19:23
bigcalmMartijnVdS: http://paste.ubuntu.com/5881465/19:23
MartijnVdSlooks like curl can't find SSL certs to check github's authenticity19:24
MartijnVdSbigcalm: if you don't care, you can git config --global http.sslverify "false"19:24
bigcalmIs the ca cert something that the hosting company should keep on top of with updates?19:25
MartijnVdSyes, but the /usr/local path doesn't look right19:26
MartijnVdSare you on a linux machine?19:26
bigcalmYes19:26
bigcalmNo19:26
bigcalmFreeBSD19:26
davmor2MartijnVdS: you forgot the BREATH OUT bit popey is turning purple19:26
MartijnVdSdavmor2: the dalek took care of that19:26
MartijnVdSbigcalm: check where the CA certs are (in /etc/ssl on Linux)19:27
MartijnVdSbigcalm: and set http.sslCAPath to that directory (using git config --global, or as root git config --system19:27
davmor2MartijnVdS: the darleks have exterminated popey for breathing in ;)19:28
MartijnVdSif freebsd puts all SSL CA certs in a single file, use http.sslCAInfo19:28
MartijnVdSdavmor2: poor popey19:28
bigcalmThere's this: /usr/local/share/curl/curl-ca-bundle.crt19:29
davmor2MartijnVdS: what do you mean poor popey it's all your fault you told him to breath in ;)19:29
MartijnVdSbigcalm: is that up to date, and does it contain the cert of github's CA?19:29
bigcalmMartijnVdS: I have no idea :)19:30
MartijnVdSbigcalm: I'm not a FreeBSD guru, sorry19:30
bigcalmOh, hold on19:30
MartijnVdSdavmor2: he didn't have to.. I mean, what am I going to do if he doesn't?19:30
bigcalmlocate was lying19:30
MartijnVdSlocate always lies19:30
bigcalmlocate .crt returned that file. But it isn't actually there19:30
bigcalmOf course I can't run updatedb19:30
MartijnVdSbigcalm: any other .crt or .pem files around?19:31
MartijnVdSbigcalm: t'interweb says you should look in /usr/local/share/certs19:31
bigcalm/usr/local/share/certs/ca-root-nss.crt19:32
MartijnVdSok19:32
MartijnVdSgit config --global http.sslCAInfo that_file19:32
davmor2popey: don't worry maybe one of these will save ya http://www.youtube.com/watch?v=xDj7gvc_dsA19:33
MartijnVdSor if you're root and want to set system-wide configs, git config --system19:33
bigcalmMartijnVdS: progress, thanks :)19:33
bigcalmBut...19:34
bigcalmfatal: https://github.com/PHPMailer/PHPMailer.git/info/refs download error - The requested URL returned error: 40319:34
bigcalmClone of 'https://github.com/PHPMailer/PHPMailer.git' into submodule path 'codebase/htdocs/vendors/PHPMailer' failed19:34
bigcalmWhich is confusing as it worked from my dev server19:34
MartijnVdSbigcalm: have you tried the git:// URL instead?19:34
MartijnVdSbigcalm: compare ~/.gitconfigs19:35
MartijnVdS~/.gitconfig19:35
penguin42bigcalm: I was having some hit problems as well - but from git.kernel.org getting some 404s19:36
davmor2me is starting to warm to musictube :)19:36
penguin42^hit^git19:36
bigcalmThis is odd. I have a .gitmodues and a submodule section in .git/config19:37
bigcalmSetting the one in .git/config to use git:// works \o/19:37
bigcalmThank you peeps :)19:37
MartijnVdSyay19:38
bigcalmSpectraball feels as though somebody really enjoyed the power ball stages of Metroid Prime19:49
bigcalmThis could be why I like it :)19:50
=== goofle is now known as RadiumCat

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!