code logs -> 2013 -> Sun, 13 Oct 2013< code.20131012.log - code.20131014.log >
--- Log opened Sun Oct 13 00:00:01 2013
00:44 You're now known as TheWatcher[T-2]
00:46 You're now known as TheWatcher[zZzZ]
00:53
<&McMartin>
RichyB: That's pretty cool
00:54 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
00:54 * McMartin ponders his .emacs file
00:54
<&McMartin>
My elisp-fu is incomplete
00:54
<&McMartin>
I want to define commands that alter the current C indentation style in bulk, but they don't seem to be working.
00:56
< RichyB>
I would do that by piping the buffer or region's contents through a copy of 'indent' (bleh) or, better, 'astyle'.
00:57
<&McMartin>
That's not what I want.
00:57
< RichyB>
No point repeating the work that other people have already put into those tools.
00:57
<&McMartin>
Among other things, the two codebases I'm switching between disagree on tabs vs. spaces.
00:57
<&McMartin>
That means I need to change what the tab and return keys do.
00:57
<&McMartin>
I need to reebind c-basic-offset and indent-tabs-mode, but everything else is BSD style between the two.
00:58
<&McMartin>
But just setq-ing them as part of a defun didn't work and also didn't expose the defun.
00:58
<&McMartin>
So I'm wondering if I've put it in the wrong place or something.
00:58
<&McMartin>
(Right now I'm trading off two .emacs files as needed)
01:11 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
01:24 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
01:24 mode/#code [+o himi] by ChanServ
01:30 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Operation timed out]
01:44 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
01:44 mode/#code [+o himi] by ChanServ
01:47 Turaiel[Offline] is now known as Turaiel
02:21 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Client exited]
02:40 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
02:48 Turaiel is now known as Turaiel[Offline]
02:51 Turaiel[Offline] is now known as Turaiel
02:59 Vorntastic [Vorn@Nightstar-140fd763.sub-70-211-5.myvzw.com] has joined #code
03:12
< Turaiel>
Anyone have suggestions for a good PHP Framework?
03:14
< Vorntastic>
Python.
03:14
< Turaiel>
Has to be PHP, sorry.
03:15
< Turaiel>
Partly because I'm currently more comfortable with it, and mostly because of host limitations
03:15
< Vorntastic>
(I am now working in php, and I wish that were facetious)
03:16
<&ToxicFrog>
Turaiel: I am so, so sorry.
03:17
< Vorntastic>
Idunno. As I work in php I find myself thinking "javascript and a minimalist middleware can get me everywhere I'd want to be"
03:18
< Vorntastic>
And as terrible as js work can be, it's nothing compared to php's stupidity.
03:19
< ktemkin>
Depends a lot who your target audience is.
03:20
< Vorntastic>
?
03:20
< ktemkin>
If your target audience is "everyone", doing most of your business logic in javascript is going to be problematic at best. If your target audience is "me and the three coworkers whose time I'm saving", it's definitely doable.
03:20
< ktemkin>
Assuming client-side javascript, anyway.
03:21
< Vorntastic>
If I had my way, the server would do nothing for the presentation layer except give you a static page to fill.
03:22
< Turaiel>
:(
03:23
< ktemkin>
Turaiel: You'll need to define what you're looking for in a framework.
03:24 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
03:24
< Turaiel>
I'm not looking for something to generate an application. I'm looking for a framework that acts like a library.. Looks like CodeIgniter MIGHT be what I'm looking for.
03:24
< Turaiel>
I mostly just need it to handle database transactions
03:25
< ktemkin>
Are you looking for an ORM? A database abstraction library?
03:25
< Turaiel>
I guess I could just use a library for databases, sure
03:26
< Turaiel>
Might be lighter.
03:28
< Turaiel>
I'm thinking about separating the TK site from the backend and having it just make API calls instead of doing its logic directly.
03:28
<&ToxicFrog>
"acts like a library" in what sense?
03:29
< Turaiel>
ToxicFrog, as in, it provides helpers and classes to use, but it doesn't just crank out an application skeleton
03:29
< ktemkin>
Not every framework mandates you use "scaffolding".
03:31
< ktemkin>
Really, the phrase "framework" is kind of ill-defined at best-- most of them are just "well-integrated" sets of libraries, often packaged with some tools to ease their use.
03:31
< ktemkin>
Not every framework tries to be Rails. >.>
03:36
< Turaiel>
I think having an API to work with will make it easier to modify things in the future, especially when the public site and admin panel both make the same types of interactions. It also opens up the possibility for mobile apps.
03:37
< Turaiel>
On the downside, getting Keenspot to allow a database... that's an entirely different story.
03:37
< Turaiel>
Maybe I shouldn't start working on this until I get that option opened up.
03:44
< Vorntastic>
Keenspot, or comicgenesis?
03:54 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
04:01 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:01 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:02 Vorntastic [Vorn@Nightstar-140fd763.sub-70-211-5.myvzw.com] has quit [[NS] Quit: Bye]
04:04 Kindamoody[zZz] is now known as Kindamoody
04:06 VirusNotAtWork [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
04:07 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
04:07 mode/#code [+o himi] by ChanServ
04:08 VirusHome [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
04:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
04:44 ktemkin is now known as ktemkin[awol]
04:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
04:53 mode/#code [+o himi] by ChanServ
04:58 Harlow [Harlow@Nightstar-2dbe3d64.il.comcast.net] has joined #code
05:19 Kindamoody is now known as Kindamoody|gaming
05:44
< [R]>
Turaiel: framework for /what/
05:44
< Turaiel>
Vornicus, Keenspot. [R]: eh?
05:45
< [R]>
I can give you an IRC bot framework in PHP
05:45
< [R]>
Is that what framework you wanted?
05:47
< Turaiel>
I'm just looking for something that provides libraries to make database transactions (and probably a few other things that I haven't noticed that I need yet) easier. CodeIgniter is probably what I'll end up using.
05:48
< [R]>
Don't use homebrewed DBAL if you can, I'd suggest PDO but AFAIK it's still pretty shit. I think it was PEAR::DB2 that was decent.
05:49
< [R]>
ADODB is also pretty popular, haven't used it though.
05:50
< [R]>
On the framework level, I've also heard of CakePHP.
05:51 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
05:54 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
06:00 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
06:07 ErikMesoy|sleep is now known as ErikMesoy
06:13 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
06:13 mode/#code [+o himi] by ChanServ
06:39 AverageJoe [evil1@Nightstar-9da8df73.ph.cox.net] has joined #code
06:50 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:03 Turaiel is now known as Turaiel[Offline]
07:34
<&McMartin>
Argh, python
07:34
<&McMartin>
I do not want you to enfore alignment restrictions in struct pack/unpack, plz
07:35
<&jerith>
What are you Pythoning?
07:35
<&McMartin>
I'm trying to rip apart some of the more opaque bits of UQM saves so I can match them up to code.
07:36
<&McMartin>
I have a byte-by-byte breakdown, but it's a mixture of 8 and 16-bit values that struct is resisting
07:36 Kindamoody|gaming is now known as Kindamoody
07:36
<&jerith>
If it's easier to work with C structures, you can write a thing with cffi.
07:36
<&McMartin>
That's exactly what I want to *not* do
07:37
<&McMartin>
I just want something more convenient than a hex dump.
07:37
<&McMartin>
I can work around it with judicious slicing and resplicing, but ew.
07:37
<&jerith>
What I mean is that you define the structs you want in C and then do everything else with Python code.
07:37
<&McMartin>
Right, no
07:37
<&jerith>
Ah, cool.
07:38
<&McMartin>
The structs are right there, and I have a file that is a dump of it
07:38
<&McMartin>
I want to look at it
07:38
<&McMartin>
To make sure it makes any sense at all
07:38
<&McMartin>
But they're specified as "absolute offset in this file that is not a file"
07:38
<&McMartin>
And I can't parse it all at once in struct, it seems.
07:41
<&jerith>
If you really want to extract arbitrary bits from a bytestream, Erlang is the language you should be using.~
07:42
<&McMartin>
No, that is not what I want, god damn it
07:42
<&jerith>
That was a troll.
07:42
<&McMartin>
I want a hexdump that's easier to fucking navigate
07:42
<&McMartin>
I am now using hexdump -C, less, and a calculator
07:44
< [R]>
xxd is where it's at.
07:44
< [R]>
Hexdump likes to rearrange bytes for some fucking reason.
07:44
<&McMartin>
That's what -C fixes.
07:44
<&McMartin>
That rearrangement is *what I want, though, very selectively*
07:44
<&McMartin>
Which is what struct is *supposed to fucking do* but it also cheerfully skips padding bytes that "must" be there.
07:45
<&McMartin>
This is a mixture of 8, 16, and 32-bit little-endian values, and I want to read them.
07:45
<&jerith>
McMartin: You've tried putting "=" or whatever in front of your struct format string, I assume?
07:45
<&McMartin>
Yes, that's "standard alignment"
07:45
<&McMartin>
In fact, *all* the options are "standard alignment"
07:46
<&jerith>
According to the docs, "@" has "native" alignment, everything else has "none".
07:46
<&McMartin>
That is not what my docs say
07:46
<&McMartin>
However, it is what they *do*
07:46
<&McMartin>
So that's what I want
07:46
<&McMartin>
Looking at those docs was what prompted me to ask in here
07:47
<&jerith>
Ah.
07:47 * jerith has only ever actually used struct once, and it seemed to work as advertised when he did.
07:56
<&jerith>
It shouldn't be that hard to write a function that popped the front character off the format string, looked at its length, popped the required number of bytes off the front of the data and then unpacked just that one thing.
07:56
<&jerith>
But it's ugly and messy.
07:57
< [R]>
Uhh, that's pretty much how unpacking works.
07:59
<&jerith>
[R]: I know, but it should avoid the alignment issues.
07:59
< [R]>
Unless you have node.js' Buffer, which might have something more what you want: it has .toUint32LE(offset) and the like as methods.
07:59
<&jerith>
node.js ;_;
07:59
< [R]>
:p
08:00
<~Vornicus>
vstruct supremacy, on this one
08:09
< AverageJoe>
there's gotta be a way i can write apps for my phone in plain old C
08:09
< AverageJoe>
a way to not suck oracle's cock
08:12
<&jerith>
AverageJoe: Considering that most phone apps written in Java actually run in a JVM on the phone, that's likely to be tricky.
08:13
< Syka>
AverageJoe: android, or java me?
08:13
< AverageJoe>
driod
08:13
< Syka>
because if its the former, Google went to court to actively stop sucking Oracle's cock :p
08:14
< AverageJoe>
go on...
08:14
<&jerith>
That was about patents on Java, I think.
08:14
< Syka>
yeah
08:14
< AverageJoe>
i mean a driod is linux right? meaning i can code something to work on it
08:14
<&jerith>
Because Dalvik isn't a traditional JVM.
08:14
< Syka>
you dont write Java on android phones
08:15
< Syka>
you write Dalvik :D
08:15
< Syka>
AverageJoe: try the ndk
08:15
<&jerith>
Syka: You do. It's just that the JVM bytecode gets further compiled to Dalvik's bytecode.
08:15
< Syka>
the native development kit
08:15
<&jerith>
AverageJoe: Different phones have different processor architectures.
08:15
< Syka>
thats what games use for high perf things
08:16
< AverageJoe>
and on that note, i dont really know what architecture they use. take a typical droid phone. i know iphones use arm, but whats my droid using?
08:16
< Syka>
depends
08:16
< Syka>
mostly will be a variant of ARMv6 or ARMv7
08:16
<&jerith>
So you're generally much better off writing Java unless you really need native machine code for some reason.
08:16
< Syka>
so either ARM9 or ARM15, I think
08:16
<@froztbyte>
<AverageJoe> there's gotta be a way i can write apps for my phone in plain old C
08:17
<@froztbyte>
there kinda is.
08:17
< Syka>
native development kiiiiiit
08:17
<@froztbyte>
but you get to first learn the platform stuff, as jerith mentioned
08:17
<@froztbyte>
then you get to port a whole bunch of support libs if they're not there
08:17
<@froztbyte>
and only *then* do you get to write your app
08:17
<&jerith>
AverageJoe: What's your actual objection to Java?
08:17
<@froztbyte>
this is, of course, assuming you have a toolchain that allows you to compile all these things appropriately for the environment
08:18
<@froztbyte>
otherwise you get to write those too ;p
08:18
< Syka>
uhm
08:18
< AverageJoe>
im a C# dev. i get them confused
08:18
< Syka>
NDK is heavily used in games
08:18
< Syka>
so
08:18
<@froztbyte>
but literally, all of that said
08:18
< Syka>
that infrastrure already exists
08:18
<@froztbyte>
I would seriously check out Syka's answer
08:18
< AverageJoe>
ok
08:18
<@froztbyte>
it *is* a viable alternative to doing all this crap yourself
08:18
<@froztbyte>
still has limits, but so do all things.
08:19
<&jerith>
But seriously, unless you're writing something that absolutely needs the performance (or access to things that the JVM doesn't give you, which is rare), Java's the way to go.
08:19
< AverageJoe>
i dont really know the arm instruction set that well. its rare if im debugging something written for it.
08:19
< [R]>
AverageJoe: you need a rooted phone to run C programs AFAIK
08:19
<@froztbyte>
oh yeah, that too
08:19
<@froztbyte>
forgot about that
08:19
< AverageJoe>
no problemo
08:20
<@froztbyte>
AverageJoe: your editor should allow you to get unconfused :)
08:20
<@froztbyte>
otherwise write python with kivy
08:20
<@froztbyte>
the payload is gigantic, but It'll Work
08:20
< Syka>
idea
08:20
< Syka>
write C#
08:20
<@froztbyte>
(9MB baseline payload for an app)
08:20
<@froztbyte>
Syka: I don't like where I think this is going
08:20
< Syka>
use that C# to JS thing
08:20
< Syka>
then usen
08:20
< Syka>
phonegap!
08:21
<@froztbyte>
ding. I knew where this was going.
08:21
< AverageJoe>
someone wrote a c# to java syntax converter and didnt get sued by both ms and oracle?
08:21
< AverageJoe>
cool
08:21
<@froztbyte>
no
08:21
<@froztbyte>
javascript
08:22
<@froztbyte>
anyway, it sounds like you're just trying to avoid typos, so I wouldn't go C/NDK/any other funnies for this
08:23
< AverageJoe>
phonegap?
08:23
<@froztbyte>
phonegap is a thing to convert html/js to phone apps
08:23
<@froztbyte>
so that people who can haw2webs can easily get started on a mobile platform
08:24
< AverageJoe>
ooo
08:24
< Syka>
'easily'
08:24
< Syka>
you still need a fucking mac for iOS apps :(
08:24
< AverageJoe>
vm
08:24
< Syka>
you still need a fucking apple developers account for iOS apps :(
08:24
< AverageJoe>
dont you have to pay for that?
08:24
< Syka>
yes
08:25
< Syka>
that's the portion that i'm annoyed about
08:25
<@froztbyte>
hehe
08:25
<@froztbyte>
Syka: is your hackintosh still alive?
08:25
< Syka>
froztbyte: yes
08:25
< AverageJoe>
even microshit doesnt charge you to develop
08:25
< Syka>
I stopped using it because lag was getting to me
08:25
< AverageJoe>
RMS is rolling over in his grave
08:25
<@froztbyte>
Syka: ah
08:25
< Syka>
AverageJoe: uhhh
08:25
< [R]>
RMS isn't dead yet
08:25
< AverageJoe>
oh yeah
08:25
< Syka>
AverageJoe: Microsoft charge you /more/
08:25
< AverageJoe>
dennis ritchie
08:26
< AverageJoe>
he died
08:26
< Syka>
because to get into the MS app store, you have to have something capable of making Metro apps
08:26
< [R]>
DR charge money for his SW
08:26
< Syka>
which iirc you need to pay for
08:27
< Syka>
bloody visual studio, man
08:27
< Syka>
i'm happy I don't have to deal with that crap anymore
08:28
< AverageJoe>
i use VS for C#. idk why, but when i want a C compiler, i take VS out of the equation settling for pelles, mingw, or intel's compiler
08:28
< Syka>
my favourite bit was when, like, you would reopen your project
08:29
< Syka>
and the manifests would be all stuffed
08:29
< AverageJoe>
you know, i never did get into mono
08:29
< Syka>
so you'd have to go in and manually edit them
08:29
< Syka>
:(
08:32
< AverageJoe>
Build apps for Android devices using C#, Visual Studio or MonoDevelop, and the Mono Framework
08:33
< AverageJoe>
no shit?
08:34
< Syka>
well since it involves c# and mono, i'd say theres a lot of shit in there
08:35
< AverageJoe>
Wow, mono on my lunix! Hallelujah! im in love
08:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
08:41
< AverageJoe>
haha, that's fuckin awesome
08:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
08:53 mode/#code [+o himi] by ChanServ
08:59 Kindamoody is now known as Kindamoody|afk
09:05 Harlow [Harlow@Nightstar-2dbe3d64.il.comcast.net] has quit [[NS] Quit: BED]
09:31 * McMartin eyes UQM.
09:31
<&McMartin>
I've been maintaining this program for over 10 years
09:31
<&McMartin>
Why do I feel like I'm cracking it?
09:31 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
09:34
<&jerith>
Isn't that basically what you're doing?
09:34 You're now known as TheWatcher
09:35
<&jerith>
Your goals are different, but the process sounds similar.
09:35
<&McMartin>
Yeah, it turns out three parts of the savegame are basically a scratch space of bytes that can be interpreted as data in various ways, and the game state stores important information as indices into these bags of bytes.
09:36
<&McMartin>
It turns out that one of these three parts is actually totally awesome as a savegame serialization format.
09:36
<&McMartin>
The other two... are not.
09:36
<&McMartin>
(The one that turns out awesome represents exactly which minerals you've picked up from every planet in the universe)
09:36
<&McMartin>
(The other two involve tracking all the fleets presently in flight)
09:39 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Operation timed out]
09:40 Kindamoody|afk is now known as Kindamoody
09:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:53 mode/#code [+o himi] by ChanServ
10:05 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has joined #code
10:05 mode/#code [+o cpux] by ChanServ
10:10
<&McMartin>
OK, I think I've done it.
10:23
<~Vornicus>
How is it awesome?
10:28
<&McMartin>
It's just eminently reasonable as a save file format; it's a list of offsets and then data of variable but computable length at those offsets, with no data stored for data that has not yet been generated.
10:29
<&McMartin>
(It's thus 1 integer for every star system, and then for every visitable celestial object in any star system you've visited it's three 32-bit integers representing which of the blobs you have picked up.)
10:40
<&McMartin>
Really, it's more "adequate"
10:40
<&McMartin>
But the other two are bags of bytes used as scratch pads and their contents are largely undefined in normal play.
10:40
<&McMartin>
This is complicating my attempts to rationalize the savegame format.
10:41
<&McMartin>
(They were originally actual scratch files kept around for use as random-access swap.)
11:10 AverageJoe [evil1@Nightstar-9da8df73.ph.cox.net] has quit [[NS] Quit: Leaving]
11:51 Syka_ [the@Nightstar-4d47e121.iinet.net.au] has joined #code
11:52 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
11:53 Syka [the@Nightstar-30958c70.iinet.net.au] has quit [Ping timeout: 121 seconds]
11:59 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
11:59 mode/#code [+o PinkFreud] by ChanServ
12:28 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
12:40 Kindamoody is now known as Kindamoody|out
12:54
< AnnoDomini>
Is there a way to determine the name of the script that a perl process is running?
12:55
<~Vornicus>
Usually that's in the command line, which shows up in ps.
12:55
<~Vornicus>
If you're on windows I don't know if you can access the command line
12:55
<~Vornicus>
Well, okay
12:56
<~Vornicus>
I would be surprised if you can't, but I don't know how.
12:56
< AnnoDomini>
This is Linux.
12:57
<~Vornicus>
okay, ps will tell you.
12:57
<~Vornicus>
you shouldn't need any flags on that
12:59
< AnnoDomini>
So what would be the ps command to "tell me the process ID of the process matching this here pattern"?
13:01
<@Tamber>
`pgrep <pattern>`?
13:01
<&McMartin>
MELNORME_YACK_STACK0
13:01
< AnnoDomini>
Tamber: Isn't pgrep only the command, not its arguments?
13:02
<@Tamber>
pgrep is a separate command, yes.
13:02
< AnnoDomini>
In this instance I want to kill a specific perl process, not all perl processes.
13:02
<@Tamber>
But I don't know of any way to do something similar using just ps.
13:03
<@Tamber>
Use pgrep, get your list of perl processes, run ps on them to get the arguments?
13:04
<@Tamber>
Actually, scratch that.
13:04
<@Tamber>
pgrep has an option to match on the full command-line
13:04
<&McMartin>
perl has the $$ variable that is your current pid
13:05
<&McMartin>
You can thus have it report somewhere who it is for your delectation
13:05
<@Tamber>
Doesn't much help if you want to murderise a currently-running script, though, surely?
13:06
<&McMartin>
Well, it's perl, so you can make it friendlier for murderization.
13:06 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
13:06
< AnnoDomini>
OK!
13:07
< AnnoDomini>
Now I can "sudo kill `pgrep -f 'perl smth.pl'`".
13:16
< AnnoDomini>
Is there a perl command to just verify that the script is compilable?
13:16 * AnnoDomini balks at the perl man page.
13:17
<&McMartin>
IIRC, Perl doesn't roll that way as a design decision. It can modify its own parsing routines at run-time.
13:17
<&McMartin>
This is one of several reasons I kinda prefer Python for general-purpose programming.
13:17
<@Tamber>
http://www.perlmonks.org/?node_id=663393
13:18
<@Tamber>
Short answer: No. Long answer: Hahahahahahahahahahaaa, no.
13:18
<&McMartin>
I thought the long answer was "you are a bad person who hates programmer freedom for wanting this in the first place"~
13:20
<@Tamber>
That's the 'extra long' answer.
13:20
< AnnoDomini>
How bizarre.
13:21
<@Tamber>
McM: There's a step beyond *that*, too; but that's a 250 page essay on how it's a Bad Thing, how you're a Bad Person for wanting it, and how to implement it *anyway* if you decide you hate freedom that much. :p
13:21
<&McMartin>
After all, it is not permissible for Perl to be incapable of doing something!
13:22
<@Tamber>
Of course.
13:23 * AnnoDomini produces yet another doomed attempt at making his bot stand up after falling down. http://pastie.org/8398913
13:24 * AnnoDomini thinks it's silly that perl can't tell me if there are syntax errors in the code without running the code.
13:25
<&McMartin>
This literally requires solving the halting problem, for Perl.
13:25
<&McMartin>
By the time it reaches that code, it might be syntactically legal.
13:28
<@Tarinaky>
No wonder Sys Admins like it :/
13:29
< AnnoDomini>
Well, it seems my watchdog program runs fine. I'll see how it goes after the server's connection goes down in 1d6 hours.
13:48 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Operation timed out]
13:49 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
13:49 mode/#code [+o Syloq] by ChanServ
13:52
<&McMartin>
There. http://sourceforge.net/p/sc2/uqm/ci/master/tree/sc2/doc/devel/statefiles
13:56
<&McMartin>
I'm still kind of unclear as to how GLOBAL(BattleGroupRef) interacts with the group info files. It never seems to be assigned to anything except for use as a temp variable of sorts.
14:24
<~Vornicus>
Sleper Mario Brothers
14:24
<@froztbyte>
haha
14:24 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
14:38 gnolam [lenin@Nightstar-f7705974.cust.bredbandsbolaget.se] has quit [[NS] Quit: Long, long gone]
14:40 * TheWatcher eyes, readsup
14:46
<@TheWatcher>
I note that one way to do a partial check on perl code, something that will pick up the most serious syntax errors, without necessarily executing the code is to put all the actual functionality in modules, and create a minimal bootstrap script to load the module(s) and call the functions as needed to run your code, while `perl -e "use Thingy;"` will simpload load Thingy.pm and do basic syntactic checks.
14:46
<@TheWatcher>
*simply
14:46
< Xon>
using perl. I see what you did wrong
14:47
<@TheWatcher>
Isn't exhaustive by a long way, but it is enough to pick up on things like missing parenthesis, brackets, and semicolons
14:48 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
15:15 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
15:26 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has joined #code
15:26 mode/#code [+o celticminstrel] by ChanServ
15:34 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
15:35 gnolam [lenin@Nightstar-a86e27d9.addr.tdcsong.se] has joined #code
15:36 gnolam is now known as NSGuest1340
15:37 NSGuest1340 is now known as gnolaptop
15:37 gnolaptop is now known as gnolam
15:38 mode/#code [+o gnolam] by ChanServ
15:47 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
15:47 mode/#code [+o himi] by ChanServ
15:49 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
15:49 mode/#code [+o Orthia] by ChanServ
15:53 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
15:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:06 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:06 mode/#code [+o himi] by ChanServ
16:15 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:15 iospace is now known as io\parents
16:27 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:28 mode/#code [+o himi] by ChanServ
16:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
17:06 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
17:06 mode/#code [+o himi] by ChanServ
17:15 Turaiel[Offline] is now known as Turaiel
17:49 Kindamoody|out is now known as Kindamoody
18:21
<@Tarinaky>
Meanwhile, in the second year http://stackoverflow.com/questions/19345679/why-does-my-project-produce-a-code-t oo-large-error-at-compile-time
18:25
< ErikMesoy>
"Stop that."
18:25
<@gnolam>
>_<
18:26
<@Tarinaky>
I want to know if they wrote the code with a second program or opy+pasted.
18:26
< AnnoDomini>
Wrote it by hand.
18:26
< AnnoDomini>
Typed each individual character.
18:26
<@Tamber>
...wow
18:27
<@Tamber>
At what point do most people stop and think "Surely there must be a better way."? >_<
18:27
<@Tarinaky>
As far as Trolls go, this was masterful.
18:27
< ErikMesoy>
AnnoDomini: How do you know?
18:28
< Syka_>
"It is not true, I am gonna work as programator and do things in CONSTANT time instead of that O(n) approach"
18:29
< AnnoDomini>
ErikMesoy: He "worked on this for weeks".
18:31 Turaiel is now known as Turaiel[Offline]
18:34
<@Tarinaky>
You know your code is Enterprise when you need Industrial hardware to even compile it~
18:35
<@Tamber>
Mmmm, Enterpris-y
18:36 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
18:36
<@Tarinaky>
*whistle* Cloud Cloud Enterprise Cloud Cuthbert Dibble Grub *whistle*
18:37
<@Tarinaky>
(Do not attempt to get the reference unless you're from the UK >.>)
18:43 Harlow [Harlow@Nightstar-b902fba7.chi.megapath.net] has joined #code
18:49 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
18:49 mode/#code [+o himi] by ChanServ
18:52 Harlow [Harlow@Nightstar-b902fba7.chi.megapath.net] has quit [[NS] Quit: BED]
18:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
18:58
<@froztbyte>
<Tamber> At what point do most people stop and think "Surely there must be a better way."? >_<
18:58
<@froztbyte>
usually, not many do
18:58
<@froztbyte>
they go "urgh, this sucks"
18:58
<@froztbyte>
but few take the next step of "jeez, maybe I can find another way"
18:59
<@Tamber>
How annoying.
19:00
<@Tarinaky>
I'm surprised, if this is a troll, there isn't a Troll Face ascii art midway through it.
19:00
<@Tarinaky>
Like... Line 10k5
19:00
<@froztbyte>
haha
19:01
<@Tarinaky>
Or something.
19:05 gnolam [lenin@Nightstar-a86e27d9.addr.tdcsong.se] has quit [[NS] Quit: Je suis arrivĂ©]
19:05 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
19:05 mode/#code [+o himi] by ChanServ
19:18 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
19:32 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
19:32 mode/#code [+o himi] by ChanServ
19:35
<&jerith>
That question has been moderated away, pparently.
19:35
<&jerith>
+a
19:39
< ErikMesoy>
jerith: But the pastebin is preserved. He offered up this http://pastebin.com/NbyTTAdX
19:40
< ErikMesoy>
Because he wanted the sudoku solver to run in CONSTANT time O(k) rather than O(n), and therefore he didn't want to use loops.
19:40
< ErikMesoy>
Also he disliked arrays.
19:51 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
19:51
< simon_>
I want to say "idiomacy", but apparently that's not a word.
19:52
< simon_>
the meaning is supposed to be "according to idioms"
19:52
< simon_>
or rather, "the property of doing something according to idioms"
19:56
<&ToxicFrog>
Hmm. Like, something "is idiomatic", you want the equivalent "has ____"?
19:56
< ErikMesoy>
has the idiomatic property?
20:02 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
20:06
<&jerith>
Idiomaticity?
20:15 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
20:15 mode/#code [+o himi] by ChanServ
20:30 Stalker [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
20:38 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
20:52 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
20:52 mode/#code [+o himi] by ChanServ
20:59
< Stalker>
Anyone here terribly proficient with anydice.com?
20:59 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:04
< Stalker>
I figured it out.
21:04 Kindamoody is now known as Kindamoody[zZz]
21:13 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
21:13 mode/#code [+o himi] by ChanServ
21:16 Turaiel[Offline] is now known as Turaiel
21:25 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:33
< [R]>
Trying to think of a work that invokes or means "too pure to be useful", as a polar opposite to "taint"
21:34
< [R]>
s/work/word/
21:34
<@Tamber>
"Academic"? *ducks, runs*
21:35
< ErikMesoy>
something like "immutable"?
21:35
< ErikMesoy>
Incorruptible?
21:35
<&McMartin>
Those both actually mean different, relevant things, though, especially in #code.
21:35
<&McMartin>
"Impractical"
21:36
< ErikMesoy>
Imperturbable
21:38 * simon_ kills himself over correcting assignments. this one assignment has an average line length of 150 across 300 LOCs.
21:38 * McMartin grants simon_ a NeckPunch 3000 (tm)
21:39 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
21:39 mode/#code [+o himi] by ChanServ
21:39
< [R]>
simon_: return his grade as the program rewritten in perl golf.
21:39
< simon_>
my comments degrade into the likes of "Please spare humanity from ever writing this long lines again."
21:39
< simon_>
[R], fortunately I don't have to grade them, only point out their mistakes.
21:39
< [R]>
Heh
21:43 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:46
<&ToxicFrog>
simon_: Java?~
21:53
< Ogredude>
hrmm
21:53
< Ogredude>
okay, anyone know much about electronics?
21:54
< Ogredude>
I'm wondering why it is that you can wind a coil of uninsulated resistance wire with spread coils like http://imgur.com/bJF8eTe at 1.8ohm, and then squeeze the coils into contact and anneal them into place like http://imgur.com/s0vOa5B and the resistance doesn't change
21:55
< Ogredude>
it doesn't make sense, I'd expect there to be a drastic change in the resistance
21:55
<&ToxicFrog>
The wire isn't sheathed or anything?
21:55
< Ogredude>
nope, it's totally uninsulated
21:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
21:56 mode/#code [+o himi] by ChanServ
21:57
< Ogredude>
maybe the contact points are resistive enough that it's an easier path to just continue through the wire as normal
22:01
< Ogredude>
either that, or instead of the electricity going through 1.8 ohms of wire, it's now going through 1.8 ohms of tube.
22:01
< Ogredude>
it lights up pretty good though http://imgur.com/1gGDv4t
22:03 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
22:04
< AnnoDomini>
:D
22:04
< AnnoDomini>
This solution worked!
22:06 Turaiel is now known as Turaiel[Offline]
22:10
< Ogredude>
ToxicFrog: any idea?
22:14
<&ToxicFrog>
None whatsoever. Like you I'd expect squashing it to result in a change from resistors in serial to resistors in parallel and a corresponding change in resistance.
22:15 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
22:15 mode/#code [+o himi] by ChanServ
22:16 ErikMesoy is now known as ErikMesoy|sleep
22:18 * McMartin delivers an array of carefully curated murder thoughts at the UQM game state representations
22:18
<&McMartin>
It turns out there *are* things worse than global variables
22:18
<&ToxicFrog>
Oh?
22:19 * Tarinaky glares at /r/gamedev for being wrong loudly.
22:19
<&McMartin>
Random-access swapfiles serialized out with the information about what parts of it are relevant squirreled away in different chunks of state entirely elsewhere
22:19
<&McMartin>
http://sourceforge.net/p/sc2/uqm/ci/master/tree/sc2/doc/devel/statefiles
22:24 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
22:28 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has joined #code
22:29 mode/#code [+o gnolam] by ChanServ
23:04 celticminstrel [celticminst@Nightstar-1afc984c.dsl.bell.ca] has quit [Ping timeout: 121 seconds]
23:05 celticminstrel [celticminst@Nightstar-ce5d0ae9.dsl.bell.ca] has joined #code
23:05 mode/#code [+o celticminstrel] by ChanServ
23:35 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
23:35 mode/#code [+o Orthia] by ChanServ
23:50 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has quit [Connection reset by peer]
23:50 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has joined #code
23:50 mode/#code [+o gnolam] by ChanServ
23:52 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has quit [Connection reset by peer]
--- Log closed Mon Oct 14 00:00:17 2013
code logs -> 2013 -> Sun, 13 Oct 2013< code.20131012.log - code.20131014.log >

[ Latest log file ]