--- Log opened Sun Feb 02 00:00:14 2014 |
00:10 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
00:10 | | mode/#code [+o himi] by ChanServ |
00:22 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
01:04 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
01:04 | | mode/#code [+o himi] by ChanServ |
01:13 | | VirusJTG_ [VirusJTG@Nightstar-lsl.j5i.46.174.IP] has joined #code |
01:15 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds] |
01:26 | | You're now known as TheWatcher[t-2] |
01:27 | | VirusJTG__ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
01:30 | | VirusJTG_ [VirusJTG@Nightstar-lsl.j5i.46.174.IP] has quit [Ping timeout: 121 seconds] |
01:32 | | Vornotron [vorn@Nightstar-sn7kve.sd.cox.net] has quit [[NS] Quit: Leaving] |
01:34 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has joined #code |
01:34 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
01:40 | | You're now known as TheWatcher[zZzZ] |
02:01 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
02:17 | | Turaiel[Offline] is now known as Turaiel |
02:29 | | thalass [thalass@Nightstar-q7lt2g.bigpond.net.au] has joined #code |
02:59 | | thalass [thalass@Nightstar-q7lt2g.bigpond.net.au] has quit [[NS] Quit: brb] |
03:08 | | thalass [thalass@Nightstar-q7lt2g.bigpond.net.au] has joined #code |
03:35 | | Turaiel is now known as Turaiel[Offline] |
03:39 | | thalass is now known as Thalass|away |
03:39 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
03:40 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has joined #code |
03:40 | | mode/#code [+o Orthia] by ChanServ |
03:43 | | Thalass|away [thalass@Nightstar-q7lt2g.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
03:44 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
03:44 | | mode/#code [+o himi] by ChanServ |
04:05 | | VirusJTG__ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down] |
04:20 | | Thalass|away [thalass@Nightstar-q7lt2g.bigpond.net.au] has joined #code |
04:39 | | Kindamoody[zZz] is now known as Kindamoody |
04:58 | | Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds] |
05:15 | | Derakon is now known as Derakon[AFK] |
05:36 | | Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has quit [[NS] Quit: FML.] |
05:41 | | celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
05:46 | | Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code |
05:46 | | mode/#code [+o Alek] by ChanServ |
05:58 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
06:00 | | iospace is now known as io\passed_out |
06:01 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
06:01 | | mode/#code [+o himi] by ChanServ |
06:12 | | Kindamoody is now known as Kindamoody|out |
06:13 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has quit [Connection closed] |
06:16 | | RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.] |
06:19 | | RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has joined #code |
06:42 | | Tamber [tamber@furryhelix.co.uk] has joined #code |
06:42 | | mode/#code [+o Tamber] by ChanServ |
07:53 | | ErikMesoy|sleep is now known as ErikMesoy |
08:02 | | Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds] |
08:07 | | Tamber [tamber@furryhelix.co.uk] has joined #code |
08:07 | | mode/#code [+o Tamber] by ChanServ |
08:07 | | Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
08:54 | | JustLurk [justbob@Nightstar-5smtnf.or.comcast.net] has joined #code |
08:56 | | JustBob [justbob@Nightstar-5smtnf.or.comcast.net] has quit [Ping timeout: 121 seconds] |
09:17 | | Reiv [orthianz@Nightstar-5m8.1ee.224.119.IP] has joined #code |
09:17 | | mode/#code [+o Reiv] by ChanServ |
09:17 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
10:52 | | Tamber [tamber@furryhelix.co.uk] has quit [[NS] Quit: One moment...] |
10:53 | | Tamber [tamber@furryhelix.co.uk] has joined #code |
10:53 | | mode/#code [+o Tamber] by ChanServ |
11:05 | | Syka [the@Nightstar-b31.cmh.126.1.IP] has joined #code |
11:30 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
11:33 | | Syka [the@Nightstar-b31.cmh.126.1.IP] has quit [Ping timeout: 121 seconds] |
11:38 | | Syka [the@Nightstar-b31.cmh.126.1.IP] has joined #code |
11:44 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
11:44 | | mode/#code [+o himi] by ChanServ |
12:02 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
12:12 | | Tarinaky [tarinaky@Nightstar-e99cts.net] has quit [Operation timed out] |
12:13 | | Tarinaky [tarinaky@Nightstar-e99cts.net] has joined #code |
12:13 | | mode/#code [+o Tarinaky] by ChanServ |
12:15 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
12:15 | | mode/#code [+o himi] by ChanServ |
12:22 | | Thalass|away is now known as Thalass |
12:36 | | Reiv is now known as Orthia |
12:37 | | Orthia is now known as NSGuest27508 |
12:38 | | NSGuest27508 [orthianz@Nightstar-5m8.1ee.224.119.IP] has quit [[NS] Quit: Going dooooown...] |
12:38 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has joined #code |
12:38 | | mode/#code [+o Orthia] by ChanServ |
12:56 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
13:06 | | You're now known as TheWatcher |
13:08 | | Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
13:11 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
13:25 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
13:25 | | mode/#code [+o himi] by ChanServ |
13:36 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
13:51 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
13:51 | | mode/#code [+o himi] by ChanServ |
13:53 | | Thalass is now known as Thalasleep |
14:17 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
14:23 | | Red_Queen [Z@Nightstar-ro94ms.balk.dk] has joined #code |
14:30 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
14:30 | | mode/#code [+o himi] by ChanServ |
15:13 | | io\passed_out is now known as iospace |
15:29 | | Derakon[AFK] is now known as Derakon |
15:40 | | Syka [the@Nightstar-b31.cmh.126.1.IP] has quit [Ping timeout: 121 seconds] |
15:53 | | VirusJTG_ [VirusJTG@Nightstar-lsl.j5i.46.174.IP] has joined #code |
15:56 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds] |
16:42 | | ErikMesoy is now known as Rimora |
16:51 | | celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has joined #code |
16:51 | | mode/#code [+o celticminstrel] by ChanServ |
16:55 | | Rimora is now known as ErikMesoy |
17:19 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
17:28 | | Kindamoody|out is now known as Kindamoody |
17:32 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
17:32 | | mode/#code [+o himi] by ChanServ |
17:38 | | VirusJTG_ [VirusJTG@Nightstar-lsl.j5i.46.174.IP] has quit [[NS] Quit: Program Shutting down] |
17:38 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
17:41 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Operation timed out] |
17:50 | | Shiz [mark@Nightstar-3hueb6.shiz.me] has quit [Connection closed] |
17:51 | | mark [mark@Nightstar-3hueb6.shiz.me] has joined #code |
17:54 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
17:54 | | mode/#code [+o himi] by ChanServ |
18:03 | | Netsplit *.net <-> *.split quits: @PinkFreud |
18:18 | <@Tarinaky> | Extremely secure password: http://imgur.com/Nuo6pRY |
18:34 | <@Tamber> | *facepalm* |
18:45 | | SmithKurosaki [SmithKurosa@Nightstar-mnf.153.119.199.IP] has joined #code |
18:45 | < SmithKurosaki> | Hey. Can someone remind me how to run a .sh script in Linux please? |
18:47 | < SmithKurosaki> | Never mind, got it :) |
18:49 | <@Tarinaky> | "head -n1 <filename>" /should/ tell you which binary you need to use. |
18:50 | <@Tarinaky> | Although I'm going off memory for the switches for head. |
18:50 | <@Tarinaky> | It should output something beginning with '#!' |
18:50 | <@Tarinaky> | ie #!/bin/sh |
18:53 | <@Tamber> | If it's got a shebang, you shouldn't need to specify the binary; just ./script.sh |
18:54 | | Azash_ is now known as Azash |
18:55 | | mode/#code [+o Azash] by ChanServ |
18:55 | <@Azash> | Woo, someone added me to axes |
18:55 | <@Azash> | Also what Tamber said really |
18:56 | < mark> | implementing IRCv3.2 for my client |
18:56 | < mark> | always fun. |
18:56 | | mark is now known as Shiz |
18:56 | <@Azash> | Out of curiosity, how does bash handle it? I mean, so I know if you can script for certain interpreters or not |
18:56 | <@Azash> | Goddamnit Shiz |
18:56 | < Shiz> | what do you mean 'how does bash handle it'? |
18:56 | <@Azash> | I was going to say "well Shiz has been working on that recently if he's around" |
18:56 | < Shiz> | every shell should handle it the same |
18:56 | <@Azash> | I used bash as an example because I'm not a hipster |
18:57 | <@Azash> | Jokes aside |
18:57 | <@Azash> | I mean, I've seen people use other binaries in the shebang lines than shells |
18:57 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
18:57 | < Shiz> | it basically does cat scriptfile.sh | binary_in_first_lnie |
18:57 | < Shiz> | line* |
18:57 | <@Azash> | And I was wondering what format the - thanks |
18:57 | < Shiz> | the binary has to be an absolute path |
18:57 | < Shiz> | so a lot of people use |
18:57 | < Shiz> | or should use |
18:57 | < Shiz> | /usr/bin/env realbinary |
18:57 | < Shiz> | to find the binary in the path |
18:58 | < Shiz> | instead of like hardcoding /usr/bin/python |
18:58 | < Shiz> | for instance |
18:58 | < Shiz> | this migitates the binary having to be installed at /usr/bin to env having to be installed there |
18:58 | <@Azash> | So I was going to try to put echo in the shebang to see if the first line is also passed or not |
18:58 | <@Azash> | nano foo.sh |
18:58 | <@Azash> | >#!/bin/bash |
18:58 | <@Azash> | >node $1 $(ls -al | grep -o " [[:alnum:]]*\.js$" | tr "\\n" " ") |
18:59 | <@Azash> | I have no idea |
18:59 | < Shiz> | it will pass any command line arguments |
18:59 | < Shiz> | I used this a while ago to implement self-executing C files |
18:59 | < Shiz> | using the shebang |
18:59 | < Shiz> | ./file.c would compile and execute the file |
18:59 | <@Azash> | Right |
18:59 | < Shiz> | oh no wait |
19:00 | < Shiz> | i didn't use the shebang for that |
19:00 | < Shiz> | i just used a first line that was both valid C and shell |
19:01 | < Shiz> | i wasn't able to use a shebang because a shebang can't chain multiple commands :( |
19:01 | <@Azash> | Shiz: I made a foo.sh like #!/bin/echo \n foo |
19:01 | <@Azash> | $ ./foo.sh lol |
19:01 | <@Azash> | ./foo.sh lol |
19:02 | < Shiz> | heh |
19:02 | <@Azash> | I'm guessing it just gives the file location and any arguments |
19:02 | < Shiz> | it should pipe the file into it |
19:02 | < Shiz> | not use the file location |
19:02 | < Shiz> | e.g. if your file is /foo.sh and the first line is #!/usr/bin/env python -g |
19:03 | < Shiz> | it should do |
19:03 | < Shiz> | cat /foo.sh | /usr/bin/env python -g |
19:03 | < Shiz> | (equivalently in functionality) |
19:04 | <@Azash> | Well, I can't think of any other reason I would get that output from echo |
19:05 | < Shiz> | huh wait |
19:05 | < Shiz> | it seems you're righ |
19:05 | < Shiz> | another thing learnt, I thought it worked differently. |
19:05 | < Shiz> | http://txt.shiz.me/YzUyMDQ5 |
19:09 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
19:09 | | mode/#code [+o himi] by ChanServ |
19:13 | <@celticminstrel> | So, what, it actually passes the file as an argument to the shebang? |
19:14 | <@Azash> | celticminstrel: See the output from my foo.sh |
19:14 | <@Azash> | It seems to just give the filename and the arguments |
19:21 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has joined #code |
19:21 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
19:40 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
19:54 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
19:54 | | mode/#code [+o himi] by ChanServ |
20:18 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
20:31 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
20:31 | | mode/#code [+o himi] by ChanServ |
20:44 | | Kindamoody is now known as Kindamoody[zZz] |
20:44 | | Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code |
20:44 | | mode/#code [+o Reiv] by ChanServ |
20:54 | | Red_Queen [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds] |
21:07 | | JustLurk is now known as JustBob |
21:23 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
21:36 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
21:36 | | mode/#code [+o himi] by ChanServ |
21:51 | | * TheWatcher flails at all the yaks |
21:55 | <@gnolam> | Hmm. Does anyone know of a good Python tutorial? |
21:56 | <@gnolam> | Target audience: experienced but mostly self-taught VB programmer. |
22:10 | <&McMartin> | I recommend it every time but even there I think http://docs.python.org/2.7/tutorial/index.html is a good place to start |
22:10 | <&McMartin> | They may skim a bit at the beginning, especially if I've forgotten about VB having an Immediate mode like QBASIC did. |
22:30 | <@gnolam> | Thanks. |
22:30 | | * McMartin doesn't know a lot of VB, but what he *does* know makes him think Python will have some familiarity |
22:38 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Connection closed] |
22:41 | <&jerith> | gnolam: I've heard good things about Learn Python the Hard Way, but I haven't actually read it myself. |
22:42 | <&jerith> | I learned it from the tutorial in the docs, but that was a decade ago. |
22:47 | | SmithKurosaki [SmithKurosa@Nightstar-mnf.153.119.199.IP] has quit [[NS] Quit: Bye] |
22:51 | <&McMartin> | What I saw of LPtHW looked like it was more interested in teaching discipline in the act of programming than in actually teaching a language |
23:11 | <~Vornicus> | I learned to program /at all/ from the python tutorial |
23:11 | <~Vornicus> | back at 2.1 |
23:35 | <@Azash> | I think LPTHW is the only book I stopped reading because of author attitude |
--- Log closed Mon Feb 03 00:00:30 2014 |