--- Log opened Thu Jan 09 00:00:44 2014 |
00:31 | <&McMartin> | Doing something like Intellisense in the general case for Python technically requires you to solve the halting problem |
00:31 | <&McMartin> | I suspect you can get Close Enough with very little effort though. |
00:31 | <&McMartin> | Effort I'm unaware of anyone of yet doing. |
00:45 | | himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has joined #code |
00:45 | | mode/#code [+o himi] by ChanServ |
00:48 | | Orth [Orthia@Nightstar-743.aqc.148.118.IP] has joined #code |
00:49 | | Orth is now known as Reiv|doc |
00:55 | | You're now known as TheWatcher[T-2] |
00:57 | | You're now known as TheWatcher[zZzZ] |
01:00 | <@celticminstrel> | Intellisense? |
01:01 | <&McMartin> | The MS autocompletion stuff |
01:01 | <&McMartin> | Notable for actually working at a decent speed unlike Eclipse's equivalent. |
01:01 | <&McMartin> | I can't speak to XCode. |
01:03 | < Reiv|doc> | Eclipse is great |
01:03 | < Reiv|doc> | As long as it works. |
01:05 | < Reiv|doc> | It always struck me as a jenga sculpture - impressive to behold, all too easy to knock down, and a passion in the ass to fix when it does~ |
01:05 | < Reiv|doc> | ... pain. Stupid predictive. |
01:05 | <@celticminstrel> | XCode is pretty good, as I recall. Eclipse is okay for Java at least. |
01:12 | < RichyB> | "a passion in the ass" sounds like a euphemism for "a fuck in the ass" |
01:12 | < RichyB> | It squeaks by just about making sense, too. |
02:23 | | Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code |
02:42 | | Reiv|doc [Orthia@Nightstar-743.aqc.148.118.IP] has quit [Ping timeout: 121 seconds] |
02:44 | | Orth [Orthia@Nightstar-743.aqc.148.118.IP] has joined #code |
03:17 | | Netsplit *.net <-> *.split quits: @Namegduf, @Shiz, @ErikMesoy|sleep, @Typherix, @iospace, @Syloq, @jeroud, @simon_, @froztbyte, VirusJTG, (+8 more, use /NETSPLIT to show all of them) |
03:18 | | ToxicFrog [ToxicFrog@Nightstar-gtjrvq.dsl.teksavvy.com] has quit [Operation timed out] |
03:18 | | Netsplit *.net <-> *.split quits: @Reiv, @PinkFreud |
03:18 | | Netsplit over, joins: Reiver, jerith, jeroud, froztbyte, McMartin, Vornicus, Derakon, iospace, ErikMesoy|sleep, Syloq (+5 more) |
03:18 | | ToxicFrog [ToxicFrog@Nightstar-gtjrvq.dsl.teksavvy.com] has joined #code |
03:18 | | Netsplit over, joins: VirusJTG, @Tamber, @Ogredude |
03:18 | | ServerMode/#code [+oooooaooaoooqooaooooo ErikMesoy|sleep Syloq simon_ froztbyte Reiver jerith jerith Typherix McMartin McMartin Namegduf jeroud Vornicus Vornicus Shiz Derakon Derakon iospace Azash Tamber Ogredude] by *.Nightstar.Net |
03:18 | | Netsplit *.net <-> *.split quits: @Namegduf, @Shiz, @Typherix, @iospace, @ErikMesoy|sleep, @jeroud, @Syloq, @simon_, @froztbyte, VirusJTG, (+23 more, use /NETSPLIT to show all of them) |
03:19 | | Netsplit over, joins: @Reiver, RichyB, @jeroud, &jerith, ToxicFrog, @Tamber, VirusJTG, Orth, &McMartin, ~Vornicus (+20 more) |
03:19 | | Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds] |
03:20 | | Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code |
03:20 | | Netsplit over, joins: Xon |
03:23 | | Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code |
03:26 | | PinkFreud [WhyNot@Pinkfreud.is.really.fuckin.lame.nightstar.net] has joined #code |
03:26 | | Reiv [NSwebIRC@Nightstar-95746c1f.kinect.net.nz] has joined #code |
03:26 | | ServerMode/#code [+oo PinkFreud Reiv] by *.Nightstar.Net |
03:26 | | mode/#code [+o Alek] by ChanServ |
03:28 | | mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ |
03:37 | | celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has joined #code |
03:37 | | mode/#code [+o celticminstrel] by ChanServ |
03:54 | <~Vornicus> | blarg I hate this stuff. |
03:54 | | * Vornicus finds himself with a list of objects with names, and a name. |
03:56 | <~Vornicus> | why does this have to happen so often |
04:10 | | Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds] |
05:08 | | Netsplit *.net <-> *.split quits: @iospace, @Typherix, @Syloq, @Shiz, Orth, @ErikMesoy|sleep, @simon_, @Reiver, VirusJTG, @froztbyte, (+24 more, use /NETSPLIT to show all of them) |
05:09 | | Netsplit over, joins: Reiver, jeroud, jerith, ToxicFrog, Tamber, McMartin, Vornicus, iospace, froztbyte, Azash (+5 more) |
05:09 | | Derakon[AFK] [Derakon@Nightstar-cb57nb.ca.comcast.net] has joined #code |
05:09 | | Netsplit over, joins: RichyB, @PinkFreud, VirusJTG, Orth, @Reiv, macdjord, @JustBob, @AbuDhabi_, @Ogredude, @ErikMesoy|sleep (+6 more) |
05:09 | | ServerMode/#code [+aooqooooooooaoaoooaooooooooooo McMartin McMartin Reiver Vornicus Vornicus iospace Azash Syloq Namegduf Typherix jeroud froztbyte jerith jerith ToxicFrog ToxicFrog Shiz Tamber Derakon[AFK] Derakon[AFK] AbuDhabi_ Ogredude ErikMesoy|sleep simon_ JustBob ^Xires Tarinaky Araleith Reiv PinkFreud] by *.Nightstar.Net |
05:11 | <~Vornicus> | (I guess in itself that's fine, but the thing is I also have to keep them in order, and) |
05:13 | | Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code |
05:13 | | mode/#code [+o Alek] by ChanServ |
05:33 | | mac [macdjord@Nightstar-c0i1dq.cable.rogers.com] has joined #code |
05:33 | | macdjord [macdjord@Nightstar-c0i1dq.cable.rogers.com] has quit [Ping timeout: 121 seconds] |
05:39 | | ErikMesoy|sleep is now known as ErikMesoy |
05:41 | | Netsplit *.net <-> *.split quits: @iospace, @Typherix, @Syloq, @Shiz, Orth, @Derakon[AFK], @simon_, @Reiver, VirusJTG, @froztbyte, (+23 more, use /NETSPLIT to show all of them) |
05:42 | | Netsplit over, joins: @Reiver, RichyB, @PinkFreud, @jeroud, &jerith, &ToxicFrog, @Tamber, VirusJTG, Orth, @Reiv (+23 more) |
06:36 | | Stalker [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
06:37 | | RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.] |
06:40 | | RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has joined #code |
06:58 | | Harlow [harlow@Nightstar-2dbe3d64.il.comcast.net] has joined #code |
06:58 | < Harlow> | anyone got a good pdf/webpage for understanding inheritance (c++) |
07:03 | | himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has quit [Ping timeout: 121 seconds] |
07:45 | | Harlow [harlow@Nightstar-2dbe3d64.il.comcast.net] has quit [[NS] Quit: Leaving] |
08:43 | | Syka [the@Nightstar-ie0.gka.126.1.IP] has joined #code |
08:50 | | Netsplit *.net <-> *.split quits: @PinkFreud, @Reiv |
08:58 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
09:32 | | You're now known as TheWatcher |
10:47 | | Syka [the@Nightstar-ie0.gka.126.1.IP] has quit [Connection closed] |
10:55 | | Syka [the@Nightstar-nh5.tf9.156.120.IP] has joined #code |
11:13 | | OrthDroid [Orthia@Nightstar-rai.5fd.148.118.IP] has joined #code |
11:15 | | Orth [Orthia@Nightstar-743.aqc.148.118.IP] has quit [Ping timeout: 121 seconds] |
11:19 | | Orth [Orthia@Nightstar-rkmjmu.ihug.co.nz] has joined #code |
11:22 | | OrthDroid [Orthia@Nightstar-rai.5fd.148.118.IP] has quit [Ping timeout: 121 seconds] |
12:09 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has quit [Connection closed] |
13:08 | | Syka [the@Nightstar-nh5.tf9.156.120.IP] has quit [Connection reset by peer] |
13:22 | | Syka [the@Nightstar-925.nuu.151.1.IP] has joined #code |
14:00 | | celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has joined #code |
14:40 | | Syka [the@Nightstar-925.nuu.151.1.IP] has quit [Connection closed] |
14:40 | | ErikMesoy [Erik@Nightstar-ekm.o7n.203.80.IP] has quit [Ping timeout: 121 seconds] |
14:44 | | ErikMesoy [Erik@Nightstar-3kot9q.80-203-17.nextgentel.com] has joined #code |
14:45 | | Syka [the@Nightstar-925.nuu.151.1.IP] has joined #code |
15:23 | | PinkFreud [WhyNot@Pinkfreud.is.really.fuckin.lame.nightstar.net] has joined #code |
15:23 | | ServerMode/#code [+o PinkFreud] by *.Nightstar.Net |
15:24 | < RichyB> | Anyone whose CV/resumé says "system administrator" but who exhibits a fear of automation should be defenestrated using a howitzer. |
15:25 | < RichyB> | *résumé |
15:25 | < ErikMesoy> | How about just a little worry of automation, like the story about the guy who set his home and work emails to CC one another on what each received? :) |
15:26 | < RichyB> | Fire them through a pane of stained glass; fire the pane of stained glass onto them; I'm happy either way. |
15:28 | < RichyB> | ErikMesoy, eh. The Sorceror's Apprentice is a role model, not a warning. ⺠|
15:31 | < mac> | Anyone here familiar with Windows Batch coding? |
15:33 | < ErikMesoy> | Ah-ha, was watching Task Manager and found a source of the CPU spikes I reported a while back. GPU-Z is occasionally grabbing an entire core for itself. |
15:35 | < ErikMesoy> | Not sure what's grabbing the others though. Would one core grab result in other processes shifting over to other cores and causing spikes there? |
15:37 | | Draak [Godbehere@Nightstar-mvi.1dn.197.192.IP] has joined #code |
15:48 | | Derakon[AFK] is now known as Derakon |
15:48 | | Syka [the@Nightstar-925.nuu.151.1.IP] has quit [Connection closed] |
16:03 | | Draak [Godbehere@Nightstar-mvi.1dn.197.192.IP] has quit [Ping timeout: 121 seconds] |
16:05 | | Draak [Godbehere@Nightstar-mvi.1dn.197.192.IP] has joined #code |
16:06 | | Draak17 [Godbehere@Nightstar-mvi.1dn.197.192.IP] has joined #code |
16:07 | | Draak17 [Godbehere@Nightstar-mvi.1dn.197.192.IP] has quit [Connection reset by peer] |
16:10 | | Draak [Godbehere@Nightstar-mvi.1dn.197.192.IP] has quit [Ping timeout: 121 seconds] |
16:30 | <&ToxicFrog> | mac: I've done enough of it to hate it. |
16:30 | <&ToxicFrog> | Why? |
16:35 | < mac> | I need to turn the following (very brief) pseudo-code into batch script: |
16:35 | < mac> | if (process 'x.exe' exists): |
16:35 | < mac> | taskkill /im 'x.exe' |
16:35 | < mac> | for (unsigned int i = 0; i < 10; i++): |
16:35 | < mac> | if !(process 'x.exe' exists): |
16:35 | < mac> | break |
16:35 | < mac> | sleep 1 second |
16:35 | < mac> | if (process 'x.exe' exists): |
16:35 | < mac> | taskkill /im 'x.exe' /F |
16:39 | <&ToxicFrog> | Oh boy. |
16:39 | <&ToxicFrog> | Good luck. |
16:41 | <&Derakon> | For when you really need to make sure a task dies, eh? |
16:42 | < celticminstrel> | Wouldn't it be easier to figure out why it's being relaunched and stop that? |
16:42 | < celticminstrel> | Assuming that's indeed the reason for this... |
16:47 | < mac> | Well, what I'm trying to do is kill a task. However, I want to give it the chance to shut down gracefully (via taskkill) before I kill it forcefully (via taskkill /F). Furthermore, I want to give it a good 10 seconds to exit, since not all programs can stop instantly, but I don't want to wait unnessisarily long if it does exit. |
16:48 | <@Shiz> | this would've been so easy in bourne shell scripts... |
16:48 | | * Shiz whistles |
16:49 | <&ToxicFrog> | celticminstrel: what he's after here is the equivalent of sending SIGTERM, waiting for the task to shut down gracefully, and then sending SIGKILL if it doesn't, a la the standard linux shutdown process. |
16:49 | <&ToxicFrog> | I have no idea what the windows equivalent of pgrep is, though. |
16:49 | <&ToxicFrog> | Or even if it has one. |
16:50 | < celticminstrel> | Ah, I see. |
16:50 | < celticminstrel> | Not quite what I thought he wanted, then. |
16:50 | <@Shiz> | ToxicFrog: tasklist. |
16:50 | <@Shiz> | tasklist /FI "IMAGENAME eq myapp.exe" 2>NUL | find /I /N "myapp.exe">NUL |
16:50 | <@Shiz> | this is what stackoverflow tells me |
16:50 | <@Shiz> | https://stackoverflow.com/questions/162291/how-to-check-if-a-process-is-running- via-a-batch-script |
16:51 | <@Shiz> | (and then check %errorlevel%) |
16:52 | | Thalass is now known as Thalass|afk |
16:52 | < mac> | Shiz: Danke. |
16:53 | <@Shiz> | to be honets I think this would be far easier to do in C |
16:53 | <@Shiz> | just saying |
16:53 | | mac is now known as macdjord|out |
16:55 | < celticminstrel> | But without POSIX? |
16:58 | <@Shiz> | yes |
16:58 | <@Shiz> | windows has an API too, you know |
17:00 | < celticminstrel> | Of course. |
17:06 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds] |
17:08 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
17:19 | | 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!] |
17:59 | | mac [macdjord@Nightstar-c0i1dq.cable.rogers.com] has joined #code |
18:02 | | macdjord|out [macdjord@Nightstar-c0i1dq.cable.rogers.com] has quit [Ping timeout: 121 seconds] |
18:38 | <&ToxicFrog> | Shiz: probably. batch scripting is just powerful enough to make you think you want to use it for something. |
18:39 | <@Shiz> | and then you try a for-loop. |
18:39 | | * Shiz shudders in horror |
18:54 | < ErikMesoy> | My laptop has cooled down! For no obvious reason. |
18:54 | < ErikMesoy> | Idle temperature has dropped 15C since I mentioned heating trouble a few days back. |
18:55 | <&ToxicFrog> | (actual serious suggestion: @ECHO OFF; c:/cygwin/bin/bash.exe script.sh) |
18:59 | <@TheWatcher> | (^--) |
18:59 | | * Tarinaky +1's ToxicFrog's solution. |
19:00 | <@TheWatcher> | (so much less painful) |
19:00 | <@Tarinaky> | Although you'll want the slashes the other way around in a bash script~ |
19:00 | | Thalass|afk is now known as Thalass |
19:01 | | * TheWatcher just uses / everywhere these days; windows will handle it fine provided you remember to quote spaced strings |
19:04 | <&ToxicFrog> | TheWatcher: windows will, but some windows tools completely lose their shit if you pass them a path containing / on the command line |
19:05 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has joined #code |
19:05 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
19:35 | < mac> | Shiz: No C compiler installed. I could do it in Python, but the whole idea of this script is to kill off a process that is causeing my machine to grind practically to a halt, so I want as little overhead as possible. |
19:35 | <~Vornicus> | it's not like python is that much overhead |
19:37 | < mac> | Vornicus: Not actualy runtime or memory overhead, but it's an additional layer that has to go through. And when it takes several seconds to open an application, that's significant. |
19:38 | < mac> | (For example, rather than slapping the batch script into a file, I plan to type it directly into the shortcut's target field.) |
19:38 | < mac> | Can somebody open http://interadcorp.com/ in a browser that is not Firefox? |
19:39 | < ErikMesoy> | 01. Online Applications [See more] [Contact us] |
19:39 | < ErikMesoy> | Is this the general sort of thing I should see in Chrome? |
19:40 | < ErikMesoy> | No obvious errors in IE, either |
19:40 | < ErikMesoy> | Menus at top are Home, About, Portfolio, Contact. |
19:42 | < mac> | ErikMesoy: In FF, all the content seems to be there, but it looks like a normal horzontal layout that's been turned into a vertical one because a CSS file didn't load. |
19:43 | < ErikMesoy> | Aha. Yeah, borked in Firefox all right. |
19:43 | < mac> | Okay. I'll dig out Chrome then. |
20:32 | | celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has joined #code |
20:32 | | mode/#code [+o celticminstrel] by ChanServ |
20:47 | | Reiv [NSwebIRC@Nightstar-95746c1f.kinect.net.nz] has joined #code |
20:47 | | mode/#code [+o Reiv] by ChanServ |
22:11 | | ErikMesoy is now known as ErikMesoy|sleep |
22:11 | | Stalker [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
22:42 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
23:06 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has quit [Connection closed] |
23:56 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has joined #code |
23:56 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
--- Log closed Fri Jan 10 00:00:59 2014 |