<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:02:27] <ShadowKatStudios> Anything interesting happening... anywhere?
L2[00:05:01] <Stary2001> not really
L3[00:06:57] <ShadowKatStudios> So SpiritedDusty The IP that was my server now has another server on it, one user max lol
L4[00:07:08] <ShadowKatStudios> I'm implimenting multiprocessing
L5[00:10:41] <ShadowKatStudios> Maybe the issue I'm having issues with Morph is because it's 40 versions old
L6[00:12:03] <Stary2001> maaybe
L7[00:14:25] <ShadowKatStudios> Just maybe
L8[00:16:11] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Quit: I'll probably come back in either 20 minutes or 8 hours.)
L9[00:30:52] ⇦ Quits: finkmac (~finkmac@68-68-13-12.applecreek.pathcom.com) (Quit: Nettalk6 - www.ntalk.de)
L10[01:22:16] ⇨ Joins: Vexatos (~Vexatos@p5B31E071.dip0.t-ipconnect.de)
L11[01:55:26] ⇦ Quits: Vexatos (~Vexatos@p5B31E071.dip0.t-ipconnect.de) (Quit: Greetings from Pastry Fork, Inc. ✔)
L12[02:14:34] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L13[02:18:12] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Client Quit)
L14[02:18:53] ⇦ Quits: Forecaster (~Forecaste@83.223.1.173) (Ping timeout: 194 seconds)
L15[02:40:03] ⇨ Joins: Forecaster (~Forecaste@83.223.1.173)
L16[02:40:12] *** ShadowKatStudios is now known as SKS
L17[02:40:55] *** SKS is now known as ShadowKatStudios
L18[02:45:41] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L19[02:50:46] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Quit: Yui <3)
L20[03:23:58] ⇨ Joins: LordJoda (webchat@141.84.9.209)
L21[03:23:58] zsh sets mode: +o on LordJoda
L22[03:35:39] *** MrHohenheim is now known as MrHohen_city
L23[03:36:49] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L24[03:40:45] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Client Quit)
L25[03:52:57] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L26[03:59:11] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Quit: Yui <3)
L27[04:08:40] ⇦ Quits: ShadowKatStudios (~chatzilla@c211-31-42-102.rochd5.qld.optusnet.com.au) (Ping timeout: 190 seconds)
L28[04:12:34] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L29[04:22:33] *** JoshTheEnder|BackInTheEther is now known as JoshTheEnder
L30[04:24:16] ⇨ Joins: ShadowKatStudios (~chatzilla@c211-31-42-102.rochd5.qld.optusnet.com.au)
L31[04:24:33] *** manmaed|AFK is now known as manmaed
L32[04:35:00] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Quit: Yui <3)
L33[04:37:30] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L34[04:51:53] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Quit: Yui <3)
L35[05:00:27] *** alekso56_off is now known as alekso56
L36[05:03:03] *** manmaed is now known as manmaed|AFK
L37[05:09:06] *** ` is now known as Biohazard
L38[05:14:35] *** alekso56 is now known as alekso56_off
L39[05:30:30] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L40[05:33:52] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Client Quit)
L41[05:36:13] *** MrHohen_city is now known as MrHohenheim
L42[05:45:29] *** alekso56_off is now known as alekso56
L43[05:49:21] <ShadowKatStudios> Is any form of chrooting possible?
L44[05:49:32] <ShadowKatStudios> Or would I have to function replace the API?
L45[05:49:55] <ShadowKatStudios> Shell or fs or something
L46[05:52:10] ⇨ Joins: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl)
L47[05:53:01] <ShadowKatStudios> I attempted that with ComputerCraft once
L48[05:53:09] <ShadowKatStudios> Overall result: I bricked the computer
L49[05:57:40] <asie|tab> attempted what?
L50[05:57:52] <asie|tab> also it's hard to brick a computer without blocking disk/startup
L51[05:59:39] <ShadowKatStudios> I attempted a form of chroot by overriding APIs
L52[06:02:32] *** alekso56 is now known as alekso56_off
L53[06:11:41] ⇦ Quits: asie|tab (~asietab@apn-37-248-40-181.dynamic.gprs.plus.pl) (Quit: Yui <3)
L54[06:45:20] ⇦ Quits: ShadowKatStudios (~chatzilla@c211-31-42-102.rochd5.qld.optusnet.com.au) (Quit: I want to be a robot D:)
L55[07:52:13] ⇨ Joins: Sorroko (~Sorroko@cpc15-chms4-2-0-cust140.20-1.cable.virginm.net)
L56[07:52:32] *** Kenny|AFK|Offline is now known as Kenny
L57[07:57:56] ⇦ Quits: prassel|off (~Prassel@5.231.51.109) (Ping timeout: 380 seconds)
L58[08:16:16] <Kenny> anyone around who knows how to use the shell to find the current location of a running program
L59[08:30:10] ⇨ Joins: asie (~textual@078088168214.elblag.vectranet.pl)
L60[08:45:53] ⇦ Quits: LordJoda (webchat@141.84.9.209) (Ping timeout: 198 seconds)
L61[09:02:47] ⇨ Joins: Vexatos (~Vexatos@p5B31E071.dip0.t-ipconnect.de)
L62[09:11:21] *** alekso56_off is now known as alekso56
L63[09:18:36] *** alekso56 is now known as alekso56_off
L64[09:19:06] *** alekso56_off is now known as alekso56
L65[09:20:19] *** alekso56 is now known as alekso56_off
L66[09:22:31] *** alekso56_off is now known as alekso56
L67[09:26:05] *** alekso56 is now known as alekso56_off
L68[09:49:55] <Kenny> Sangar, when you get a chance i need a little help
L69[10:06:51] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Quit: I'll probably come back in either 20 minutes or 8 hours.)
L70[10:08:11] ⇦ Quits: Vooloo (~adad@78-72-42-123-no186.tbcn.telia.com) (Ping timeout: 194 seconds)
L71[10:10:11] ⇨ Joins: asie (~textual@078088168214.elblag.vectranet.pl)
L72[10:12:48] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Client Quit)
L73[10:13:04] ⇨ Joins: Vooloo (~adad@78-72-42-123-no186.tbcn.telia.com)
L74[10:16:29] *** SuPeRMiNoR2|Away is now known as SuPeRMiNoR2
L75[10:35:51] *** AngieBLD|Off is now known as AngieBLD
L76[10:42:03] ⇨ Joins: asie (~textual@078088168214.elblag.vectranet.pl)
L77[10:49:27] *** alekso56_off is now known as alekso56
L78[10:50:47] *** JoshTheEnder is now known as JoshTheEnder|BackInTheEther
L79[11:12:17] *** JoshTheEnder|BackInTheEther is now known as JoshTheEnder
L80[11:12:37] *** LordFokas|off is now known as LordFokas
L81[11:31:08] <asie> Sangar:
L82[11:31:08] <asie> 18:30:35 [WARNING] Failed creating ZIP file system.
L83[11:31:09] <asie> com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key /home/asiepack/asieserver/mods/OpenComputers-MC1.6.4-dev142.jar:assets/opencomputers/lua/rom/.
L84[11:31:13] <asie> got this in the logs booting up the server
L85[11:51:01] ⇨ Joins: Wobbo (~Wobbo@5ED58A7C.cm-7-6c.dynamic.ziggo.nl)
L86[11:51:01] zsh sets mode: +v on Wobbo
L87[12:31:13] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Quit: I'll probably come back in either 20 minutes or 8 hours.)
L88[12:49:46] <MrHohenheim> oc updated?
L89[12:49:49] <MrHohenheim> of...
L90[12:51:12] ⇨ Joins: asie (~textual@078088168214.elblag.vectranet.pl)
L91[12:53:15] <Kenny> hey Wobbo: how do i find the current path of a running program on an OC computer
L92[12:53:29] <Wobbo> What, in the devbuild?
L93[12:53:35] <Kenny> yep
L94[12:53:39] <Wobbo> echo $PATH from shell
L95[12:53:47] <Wobbo> of =shell.getPath() form lua shell
L96[12:54:09] <Kenny> cool. thannks!
L97[12:54:44] <Kenny> i'm porting over a CC program and it's going to take a while to get it done. but when it's finished you and Sangar will love it hehe
L98[12:54:44] <Wobbo> I don't know if you can set shell variables from the shell yet though, so to set you path you would still have to do shell.setPath()
L99[12:54:57] <Wobbo> But maybe Sangar will know more about that
L100[12:56:06] <Wobbo> Kenny, I am waiting in anticipation ;)
L101[12:56:21] <Wobbo> Is that even correct English? :/
L102[12:56:27] <Kenny> i want to set a program variable: defaultPath=shell.getPath() *hoping that works. if not it will be a while before i can actually try to run it
L103[12:56:52] <Wobbo> defaultPath as in the default path that the system uses?
L104[12:57:12] <Wobbo> that is /bin:/usr/bin:/home/bin
L105[12:57:19] <Wobbo> If I am not mistaken
L106[12:58:45] <Wobbo> Yep, that is the default path that is set at boot
L107[12:59:31] <Kenny> the path after you mount the drive. so it would be the path to your computers 'ingame drive'
L108[12:59:53] <Kenny> which should be in the mnt folder
L109[12:59:53] <Wobbo> the path to your computers in game drive… Hmm
L110[13:00:24] <Kenny> in may case i always label my drives to be descriptive of what they are for
L111[13:01:10] <Kenny> *DOH* it would be the address for that drive
L112[13:01:23] <Wobbo> Kenny, I always label they after UNIX folders and by function, so my field go into /home, file niaries and libraries go into /usr/local
L113[13:01:30] <Wobbo> Derp
L114[13:01:43] <Kenny> i know you meant binaries hehe
L115[13:02:11] <Wobbo> No, I meant the address thingy :P
L116[13:02:16] <Kenny> ahhh
L117[13:02:25] <Wobbo> Anyway, you can use filesystem.mounts to loop over all the mounts
L118[13:02:28] <Kenny> file niaries?
L119[13:02:39] <Wobbo> no, that were binaries.
L120[13:02:46] <Kenny> :P
L121[13:02:54] <Kenny> thta's what i said hehe
L122[13:03:07] <Wobbo> Kenny, filesystem.get(path) to get the filesystem a path is mounted at
L123[13:03:53] <Kenny> thanks, Wobbo :)
L124[13:04:01] <Wobbo> so I guess that fs.get(path).address is the address of the filesystem that path lives at
L125[13:04:34] <Wobbo> yw
L126[13:15:46] *** DaeDroug_ is now known as DaedDroug
L127[13:16:42] *** DaedDroug is now known as DaeDroug
L128[13:36:52] <Sangar> evenin'
L129[13:37:33] <Wobbo> Gutenabend herr Sangar,
L130[13:37:47] <Sangar> :P
L131[13:37:58] <Wobbo> Wie gehts Ihnen?
L132[13:37:59] <Wobbo> :P
L133[13:38:12] <Sangar> heh. i'm fine ;)
L134[13:38:41] <Wobbo> I didn't learn German to let it be useless
L135[13:38:44] <Sangar> Kenny: i'm assuming you mean the path to the program that's running? try filesystem.path(shell.running())
L136[13:38:47] <MrHohenheim> finally my modpack works so time to test oc :)
L137[13:38:50] <Wobbo> I learned German because I had to
L138[13:38:55] <mallrat208> is there supposed to be an 'es' in there
L139[13:39:02] <Sangar> guess why i learned french
L140[13:39:10] <MrHohenheim> bonapetite
L141[13:39:12] <MrHohenheim> :D
L142[13:39:22] <Sangar> bonsoir :P
L143[13:39:32] <Wobbo> I dropped French after three years, as soon as I could :P
L144[13:40:39] <Sangar> asie: huh, so the synchronizing didn't do much :/ does this always happen? or at random?
L145[13:40:49] <asie> Sangar: the 3 times I ran it
L146[13:40:53] <asie> it is always near the end of the server's bootup
L147[13:40:56] <asie> is printed 3 times in a row
L148[13:41:29] <Sangar> probably for each computer / robot in the chunk that gets loaded at that point? would that make sense?
L149[13:41:45] <asie> Sangar: We had no computers placed, IIRC. But I'd have to check
L150[13:41:56] <asie> I'll do that later when I have time
L151[13:41:57] <Sangar> ... well *then* that really doesn't make sense
L152[13:42:06] <Sangar> ok
L153[13:43:07] <Kenny> thanks, Sangar :)
L154[13:44:13] <Kenny> I think you will like what i'm working on at the moment, if i can get it ported :)
L155[13:45:01] <Sangar> now i'm curious :P
L156[13:45:49] <Wobbo> You better :P
L157[13:47:31] <asie> Kenny: what is it?
L158[13:49:13] <Kenny> oh, something i will put on the OC forums and i am fairly certain will be downloaded and used by quite a few people hehe
L159[13:49:36] <Kenny> thta's if it doesn't get added in to OC directly lol
L160[13:54:19] <Kenny> what i;m doing may just turn out to be a little over my head but i don't think so :)
L161[13:54:50] <Wobbo> Kenny: otherwise you can always outsource the project :P
L162[13:55:07] <Kenny> i'll just ask for your help hehe
L163[13:56:12] <Kenny> rather than outsource (which wouldn't help me learn) i'll just bring a team member or 2 onboard to work on it :)
L164[13:57:31] <Kenny> but i don't think it will really be all that hard. this isn't the first one i've ported over, the others will just simple games and the Star Wars text video hehe
L165[13:58:38] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Quit: I'll probably come back in either 20 minutes or 8 hours.)
L166[14:01:06] <Wobbo> Kenny, that is true, you will learn more with a second member
L167[14:05:49] ⇨ Joins: asie (~textual@078088168214.elblag.vectranet.pl)
L168[14:21:40] <Kenny> sorry, had to deal with the police hehe
L169[14:22:09] <Cisien> hmm...
L170[14:22:57] <Kenny> i spent 2 hours this morning shoveling out my little 40ft long driveway and the neighbor ladies drive so we could get out in case of meidcal emeergency (lady next door is disabled)
L171[14:23:34] <Kenny> city plows came by and just flat out buried the end of the drive with about 1.5 ft of snow
L172[14:23:59] <Kenny> i raised a littel hell with the driver and he evidently called his supervisor who contacted the police
L173[14:24:25] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Quit: I'll probably come back in either 20 minutes or 8 hours.)
L174[14:24:38] <Kenny> but before they got here I had called the Mayor's office and bitched them out about burying in handicapped people's drives
L175[14:24:40] <Cisien> i'm sure the conversation between the supervisor and the police was something along the lines of "This crazy guy has a gun and is threatening my driver!"
L176[14:25:29] <Kenny> not sure about that, but the cop they did send is a straight asshole, i've dealt with him before
L177[14:26:45] * Cisien thinks it's time to get food
L178[14:26:52] <Kenny> i was witness to a fight and this idiot decided that because he didn't like the teens in the group that got jumped he was going to cause them trouble. didn't quite work out that way cause i called his superior and him brought up oin the carpet about it
L179[14:27:28] <Kenny> upshot is, the city is getting someone to come and clear our drives
L180[14:27:41] <Cisien> nice
L181[14:28:30] <Kenny> well, i'm known at the mayor's office for rasing hell abouth things. this is the 3rd mayor in 5 years hehe
L182[14:29:00] <Cisien> :)
L183[14:29:46] <Kenny> i pick my issues to raise hell about :)
L184[14:29:47] ⇦ Quits: Vexatos (~Vexatos@p5B31E071.dip0.t-ipconnect.de) (Quit: Greetings from Pastry Fork, Inc. ✔)
L185[14:31:32] <Wobbo> Kenny: as long as they are valid reasons, that is only your duty as an inhabitant of a somewhat functioning democracy.
L186[14:32:16] <Kenny> well, i also take an unofficial survey of the people in the neighborhood and see what they think hehe
L187[14:32:35] <Kenny> that way when i start in on the city, i know the poeople in the city will be behind me lol
L188[14:32:49] <Kenny> people*
L189[14:33:37] <Kenny> the current Mayor i know. His brother wa smy dad's divorce lawyer years ago and he knows me hehe
L190[14:33:48] <mallrat208> three days later, I think I finally figured out how to use the adapter
L191[14:33:49] <Wobbo> LOL
L192[14:33:52] * mallrat208 isn't terrible fast
L193[14:33:56] <mallrat208> terribly even..
L194[14:34:10] <Kenny> mallrat208, all you had to do was ask :P
L195[14:34:51] <Kenny> that's been what i have been doing the most with when testing OC hehe
L196[14:35:03] <mallrat208> I generally retain things better when I work it out myself
L197[14:35:24] <Kenny> as do i, but pointers don't hurt either
L198[14:35:49] <Wobbo> mallrat208: Just work with them a lot :P that also works
L199[14:36:05] <Kenny> yep, that's how i learned them :)
L200[14:37:18] <Wobbo> That would have actually been a great question for the assignment I am finishing now… Damn
L201[14:38:03] <Kenny> the really crazy thing is, it's not so much learning to use the adapter but what the adapter gives you access to
L202[14:38:12] <Wobbo> Not the adapter thing by the way, but if you retain items more easliy if you find it out yourself or when someone tells you how to do it :P
L203[14:38:48] <Wobbo> Just place it next to all the blocks! :D
L204[14:39:20] <Kenny> yep, and then go into lua and do for k,v in component.;ist() do print (v) end
L205[14:39:37] <Kenny> that will tell you if it recognizes the block
L206[14:40:01] <Kenny> *for k,v in component.list() do print (v) end*
L207[14:40:25] <Kenny> had to correc spelling error hehe
L208[14:40:28] <Wobbo> You could also filter for the block if you know what it is called
L209[14:40:56] <mallrat208> My first problem was not enough cpu for the number of components I had
L210[14:41:00] <Kenny> i've found that not all blocks show up in the component list the same as they are named in NEI
L211[14:41:15] <Wobbo> And assignment done! :D
L212[14:41:29] <Wobbo> *cough* redsonte enigne *cough*
L213[14:41:34] <Wobbo> *redstone
L214[14:41:37] <Kenny> School's Out!
L215[14:42:00] <Kenny> yeah, it has one loooonnnnngggg name hehe
L216[14:42:16] <Wobbo> It is starting tomorrow again :( and tomorrow I probably won't even go to the robolab
L217[14:42:43] <mallrat208> mastery for components seems to have been pulling up the list of attached ones.. and discovering the functions of said component
L218[14:42:56] <Kenny> you sound like me when i was in college and couldn't go ot the computer lab :P
L219[14:43:39] <Wobbo> I could go to the robolab, but I won't be able to do anything, since someone has to work on the computer and someone has to stand next to the robot, in case it might fall over :P
L220[14:43:39] ⇨ Joins: Symmetryc (webchat@pool-71-99-213-24.tampfl.fios.verizon.net)
L221[14:43:55] <Wobbo> So yeah, robotics is hard and stuff
L222[14:43:56] <Symmetryc> Wobbo: Hey
L223[14:44:00] <Wobbo> Hi
L224[14:44:28] <Kenny> to fond the functions of the component you would do: cn = component.stargate for k,v in pairs(cn) do print(k) end
L225[14:47:45] <Wobbo> Symmetryc, did you play around with OC?
L226[14:48:12] <Symmetryc> Nah, sorry I had to work on History homework
L227[14:48:19] <Symmetryc> I'll try again today, but I'm not sure
L228[14:48:27] <Wobbo> Well homework is important as well
L229[14:48:52] <Symmetryc> Wobbo, does your OOP lib support multiple inheritance?
L230[14:49:19] <Wobbo> No, I haven't found a satisfactory solution to the diamond problem yet
L231[14:49:42] <Symmetryc> Pfft
L232[14:49:44] <Kenny> that will give you the list of functions you have access to with the adapter. i used stargate as an example of the component name
L233[14:49:47] <Symmetryc> Diamond problem :P
L234[14:50:00] <Symmetryc> Just make priority inheritance
L235[14:50:38] <mallrat208> Ok, that's a big name
L236[14:50:46] <mallrat208> http://puu.sh/71jbK.png
L237[14:51:05] <Wobbo> I find something about job scheduling, but I don't think you meant that
L238[14:52:21] <Symmetryc> So like `o extends(x, y, z)` -> `o __index = x`, `x __index = y`, `y __index = z`
L239[14:52:33] <Symmetryc> Of course using copies of x, y, and z
L240[14:52:46] <Wobbo> But that won't work if x also inherits form p
L241[14:53:10] <Symmetryc> Oh yeah
L242[14:53:13] <Symmetryc> Hmmm
L243[14:53:31] <Wobbo> You could also look through x first, but I had a problem with that aswell
L244[14:53:57] <Symmetryc> Maybe just deep copy x into a table t, then deep copy y to t so long as that name is not already within t, then do the same with z
L245[14:55:38] <Wobbo> The problem with com pies is that it breaks Lua's dynamics. If you change the parent after you created the child the child doesn't support all the methods of the parent anymore
L246[14:56:07] <Symmetryc> com pies?
L247[14:56:12] <Symmetryc> components?
L248[14:56:36] <Wobbo> copies
L249[14:57:06] <Symmetryc> Oh wow, I just realized better way
L250[14:57:23] <Symmetryc> based on what you just said
L251[14:57:37] <Wobbo> Sangar, when I am in the /usr/man directory, I can't call any program anymore
L252[14:57:38] <Symmetryc> __index = function(self, key)
L253[14:58:02] <Symmetryc> for k, v in pairs(self.extends) do if k == key then return v end end end
L254[14:58:14] <Wobbo> It tries to execute /usr/man/ls when I type ls etc
L255[14:58:17] <Sangar> Wobbo: well, of course. since the name resolves to the local files first. you can still call them explicitly (/bin/ls e.g.)
L256[14:58:46] <Sangar> ls.lua should also work
L257[14:58:52] <Wobbo> But that is not the intended behaviour when /bin is in the front of your path :P
L258[14:59:03] <Kenny> mallrat208: just have it print v when doing the components.list() that will give you the component names
L259[14:59:35] <Wobbo> Symmetryc: I considered that, but I had some problem with it, can't remember what though. But that would work perfectly fine
L260[14:59:36] <Kenny> when doing pairs() just have it print k which will give to ou the function names
L261[14:59:39] <Sangar> hmm, right. / is implicitly always in front of the path. isn't that normal?
L262[14:59:56] <Sangar> errr .
L263[14:59:57] <Wobbo> That isn't normal
L264[15:00:09] <Sangar> well, time to change that then.
L265[15:00:26] <Wobbo> I had to explicitly set ./ into my path when I wanted to run programs from $PWD
L266[15:00:59] <Wobbo> Also, typing in cd $MANPATH works :)
L267[15:01:11] <Sangar> does explain the ./script on linux, never thought about that
L268[15:01:22] <Wobbo> :P
L269[15:01:42] <Wobbo> Sangar, is $TMP already set or not?
L270[15:02:00] <Sangar> it is not (see boot/os for the defaults)
L271[15:02:14] <Wobbo> alright, have to add that as well then.
L272[15:03:15] <Wobbo> But first, NAME=value syntax
L273[15:03:28] *** manmaed|AFK is now known as manmaed
L274[15:04:52] <Kenny> brb, need to reboot
L275[15:05:28] *** Kenny is now known as Kenny|Offline
L276[15:06:20] *** SuPeRMiNoR2 is now known as SuPeRMiNoR2|Away
L277[15:06:55] <Sangar> shell with fixed path resolving is up, now checks command for absolute (starts with /), then for local (starts with ./) then searches path
L278[15:07:32] <Wobbo> it should search path before ./ if you ask me, since ./ might not be in your path and shouldn't be searched at all
L279[15:08:55] *** Kenny|Offline is now known as Kenny
L280[15:09:18] <Wobbo> Also, Sangar, should NAME=value behaviour be in shell.execute? or in os.execute?
L281[15:10:23] <Sangar> if you explicitly type ./blah in your shell you'd expect it to run a file in pwd, no?
L282[15:10:49] <Wobbo> They you would. I thought you meant that it searched through ./ to find the file
L283[15:11:01] <Wobbo> my bad
L284[15:11:06] <Sangar> ah, no. i meant if the entered command starts with ./
L285[15:12:00] <Sangar> as for env var assignment... shell.execute i'd think.
L286[15:12:35] <Wobbo> Then I guess I will wait until I start working on the parser, but I guess I will add set/unset
L287[15:13:09] <Sangar> ok
L288[15:13:16] <Wobbo> Sangar, could I pairs the shell env?
L289[15:13:35] <Sangar> hm?
L290[15:14:18] <Wobbo> for k, v in pairs(os.environ) do print(k..'='.v) end
L291[15:15:47] <Sangar> for `set`? i guess. though that won't work right now because the actual table isn't accessible directly.
L292[15:16:12] <Wobbo> That would be one really useful and two POSIX :P
L293[15:16:20] <Sangar> yes
L294[15:16:30] <Wobbo> That is actually the only POSIX thing that makes sense to implement now
L295[15:17:06] <Sangar> i'll make os.getenv return the table if no name is passed
L296[15:17:17] <Wobbo> That would work
L297[15:18:23] <Sangar> or pairs(env)... hmmm. i'm always torn when it comes to encapsulation in lua.
L298[15:18:44] <Wobbo> pairs(os.getenv()) seems good enough for me
L299[15:19:29] <Sangar> then again, pairs returns the table as the second result anyway. yeah, i'll just return the table.
L300[15:21:02] <Wobbo> Sangar, does unicode.match exist?
L301[15:22:32] <Wobbo> or only string.match?
L302[15:22:33] <Sangar> no. my hope was that the underlying implementation wouldn't care for unicode :P (i.e. even if it looks at it in non-unicode 'ä' still would match 'ä')
L303[15:23:08] <Wobbo> Well then, the setting of variables seems to work :P
L304[15:23:51] <Wobbo> You can "unset" a variable by typing set VAR=
L305[15:24:09] <Wobbo> That will make the shell regard it as both null andd user set
L306[15:25:18] <Sangar> nice
L307[15:28:00] <Wobbo> And unset should work as well. They aren't perfect, but it will work for now
L308[15:28:22] <Wobbo> Sangar, scopes for shell vars don't exists either, do they?
L309[15:29:16] <Wobbo> No, they don't :P
L310[15:29:46] <Sangar> nope. scopes are somewhat hacky anyway (for io e.g.) since they have to explcitly ... hook themselves to the env of the running program using shell.running due to luas scoping.
L311[15:29:50] ⇨ Joins: asie|tab (~asietab@078088168214.elblag.vectranet.pl)
L312[15:31:01] <Wobbo> Yeah, I don't think they would add that much anyway
L313[15:32:26] *** Biohazard is now known as `
L314[15:32:40] *** ` is now known as Biohazard
L315[15:32:51] <Sangar> i think so, too
L316[15:33:38] <Wobbo> Glob expansion isn't in the shell yet either, is it?
L317[15:34:34] <Sangar> that's stuff like ls/* right? it isn't, no.
L318[15:35:04] <Wobbo> Well, maybe with the new parser :P
L319[15:35:19] <Sangar> indeed :D
L320[15:35:28] <Wobbo> xargs is also still missing
L321[15:38:54] <asie|tab> modpack creation is insanely hard
L322[15:38:58] <asie|tab> *sigh*
L323[15:39:28] <Wobbo> I was testing positional arguments, but I mad those impossible myself :P
L324[15:41:04] <Sangar> there's tons of stuff still missing :P
L325[15:41:20] <Wobbo> Indeed
L326[15:42:01] <Wobbo> But apart from positional arguments set is working :P
L327[15:43:27] <Wobbo> you can even do set PATH=/some/dir:$PATH! :D
L328[15:44:10] <Sangar> :)
L329[15:44:59] ⇦ Quits: Symmetryc (webchat@pool-71-99-213-24.tampfl.fios.verizon.net) (Quit: I'll be in #computercraft)
L330[15:45:19] ⇨ Joins: Symmetryc (webchat@pool-71-99-213-24.tampfl.fios.verizon.net)
L331[15:46:36] <Wobbo> Also, Sangar, I wanted to keep shell vars limited to strings, numbers and booleans and nil. Is that okay with you?
L332[15:46:55] <Sangar> absolutely
L333[15:47:08] <Sangar> i originally wanted them to be all strings
L334[15:47:20] <Sangar> but then decided 'screw it, let people do what they want' :P
L335[15:47:24] <Wobbo> XD
L336[15:47:30] <Sangar> so that sounds like a sane compromise ;)
L337[15:47:58] <Wobbo> Actually, I want everything to be a string as well, but you can to string all of those :P
L338[15:48:10] <Wobbo> exempt for nil, that should just unset a key
L339[15:56:01] <Sangar> indeed. the convention could then still be that actual false boolean values mean 'unset' - any actual values should be stored as strings. if people do anything else it's their problem :P
L340[15:56:29] <Wobbo> I just changed my function to use ''! :P
L341[15:56:49] <Sangar> ^^
L342[16:01:34] *** alekso56 is now known as alekso56_off
L343[16:01:48] <Wobbo> Derp, my new expansion thing is bugged :P
L344[16:02:03] <Wobbo> Oh well, it is actually the parser
L345[16:02:42] <Kenny> does that mean you are bugged too? hehe
L346[16:02:57] <Wobbo> No, not really
L347[16:03:05] <Wobbo> The parser is going to change anyway :P
L348[16:04:09] * Kenny sits back waiting......
L349[16:04:47] * Kenny wonders just how much
L350[16:10:22] <Wobbo> Kenny, the actually expansion code works :P
L351[16:10:23] <Kenny> May you live to be a hundred years With one extra year to repent. ~Author Unknown
L352[16:11:01] ⇦ Quits: asie|tab (~asietab@078088168214.elblag.vectranet.pl) (Quit: Yui <3)
L353[16:12:38] ⇨ Joins: asie|tab (~asietab@078088168214.elblag.vectranet.pl)
L354[16:14:27] <Wobbo> Hehe, the weird table I didn't understand seems to be working now :P
L355[16:14:28] <Kenny> Error. Keyboard not found. Press any key to continue...
L356[16:14:35] <Wobbo> Durr
L357[16:14:36] <Kenny> The first sign of maturity is the discovery that the volume knob also turns to the left. ~Jerry M. Wright
L358[16:15:09] ⇦ Quits: asie|tab (~asietab@078088168214.elblag.vectranet.pl) (Client Quit)
L359[16:18:07] <Wobbo> Even ${#PATH} works :)
L360[16:18:08] <Kenny> A diplomat is a man who always remembers a woman's birthday but never remembers her age. ~Robert Frost
L361[16:19:56] <Wobbo> Funny commits:P (because i got tired of typing for _,n in component.list() do print(n) end)
L362[16:19:57] <Kenny> The world is filled with crazy people - and I'm one of them!
L363[16:23:51] <Kenny> i turned it off Wobbo hehe
L364[16:25:25] <Kenny> i type that one all the time when i'm checking a block with the adpater hehe
L365[16:25:52] <Kenny> done it so much i can do it in my sleep now :)
L366[16:26:19] *** SuPeRMiNoR2|Away is now known as SuPeRMiNoR2
L367[16:26:30] <Kenny> SuPeRMiNoR2!
L368[16:26:30] <Wobbo> Haven't worked with components yet really :P
L369[16:27:10] <SuPeRMiNoR2> Kenny!
L370[16:27:15] <Kenny> you know i've been checking toi see what mods blocks we could use with OC. so it's a line i type constantly
L371[16:28:01] <Kenny> i'm only on line 500 of the program i'm porting and it is almost 2500 lines long hehe
L372[16:28:19] <Kenny> it's gonna be a while re-formatting it
L373[16:30:17] <Wobbo> Sangar, pull request
L374[16:30:38] * Kenny runs for cover
L375[16:30:44] <Wobbo> :P
L376[16:31:23] * Kenny dives behind a boulder, peeking over the top :P
L377[16:31:55] * Kenny takes his backpack off and looks inside....
L378[16:32:40] * Kenny pulls out a shoebox, couple of mirrors, and some duct tape....
L379[16:33:03] * Kenny begins making a homemade periscope to stay below fire level hehe
L380[16:33:37] <Sangar> this brings up a good point i've avoided so far - print vs io.write. the lua manual says print always prints to stdout, which from my understanding is not the same as io.output.
L381[16:33:54] <Sangar> so right now print will do just that
L382[16:34:04] <Sangar> print()ed stuff cannot be redirected
L383[16:34:06] <Wobbo> print will always print to stdout?
L384[16:34:10] <Kenny> io.ouput could be set to terminal or file
L385[16:34:15] <Wobbo> Damn
L386[16:34:55] <Kenny> isn't stdout normally the monitor unless set otherwise
L387[16:34:59] <Sangar> http://www.lua.org/manual/5.2/manual.html#pdf-print
L388[16:35:12] <Sangar> so i'd suggest changing the prints in the pr to io.writes
L389[16:35:12] <Wobbo> stdout is, as far as I know, always redirectable
L390[16:35:46] <Sangar> io.write == io.output():write, though, and io.output(...) changes io.output(), not io.stdout
L391[16:36:44] <Sangar> so if anything the shell redirects would have to ignore io.output/input and change io.stdout/in instead
L392[16:36:59] <Sangar> unlike how it is now - which seemed more... intuitive, since the framework is there, after all
L393[16:38:41] <Sangar> alternatively we could ignore the lua manual and just make print write to io.ouput instead of io.stdout
L394[16:39:05] ⇦ Quits: Sorroko (~Sorroko@cpc15-chms4-2-0-cust140.20-1.cable.virginm.net) (Quit: Leaving)
L395[16:39:27] <Wobbo> Sangar, I created a quick script that uses prints, and executed it using lua schijven.lua > test.txt
L396[16:39:41] <Wobbo> all the output ended up in test.txt
L397[16:39:44] <Sangar> wat
L398[16:40:21] <Kenny> the > rdirected it to the file
L399[16:40:35] <Kenny> old DOS command
L400[16:41:17] <Kenny> you could do a dir *.* > filelist.txt and it would send the directory listing to the text file. same principle
L401[16:41:24] <Wobbo> So the prints should be redirect able.
L402[16:41:31] <Kenny> http://www.lua.org/pil/21.1.html
L403[16:41:52] <Kenny> on there it says to use printsd for dirty/debugging and writes for clean code
L404[16:41:55] <Sangar> if i do a print it doesn't redirect it to the file
L405[16:42:08] <Wobbo> Not? that is weird.
L406[16:42:15] <Sangar> it is indeed
L407[16:42:22] <Wobbo> According to the pil, you are right. I will change it to io.write
L408[16:42:29] <Kenny> the stdout would have to be reset to a file name for print to send it to a file
L409[16:42:50] <Sangar> yes. i think it is more conformant the way it is now.
L410[16:42:56] <Kenny> done by using io.open()
L411[16:43:00] <Sangar> it's just a little awkward when used to print()ing
L412[16:43:49] <Wobbo> Sangar, then the error print should go to print, because that is stderr right?
L413[16:43:59] <Sangar> Wobbo: print explicitly uses io.stdout, which isn't touched anywhere, so I have no idea why it gets redirected for you :X
L414[16:44:18] <Kenny> Sangar: look at what he wrote
L415[16:44:20] <Wobbo> Maybe I redirect lua itself
L416[16:44:25] <Sangar> i think i thoughtlessly io.wrote all errors up to now
L417[16:44:42] <Kenny> Wobbo redirected lua to send the info to a text file
L418[16:44:55] <Kenny> that was what the > did
L419[16:45:05] <Wobbo> Anyway, I changed set to use io.write instead of print
L420[16:45:11] <Sangar> ah
L421[16:45:27] <Sangar> ok
L422[16:45:33] <Kenny> it's an old DOS trick for piping data to a file
L423[16:46:16] <Sangar> i know what the > does Kenny ;) I implemented it after all, the weird thing was that print got redirected when it shouldn't
L424[16:46:35] <Kenny> if he did it from command line it would redirect
L425[16:46:45] <Sangar> as for the errors, there's a io.stderr, which is actually stdout, might make sense to use that?
L426[16:47:03] <Wobbo> I dunno, maybe error should use that then
L427[16:47:03] <Sangar> i'm thinking of adjusting the existing programs to do so
L428[16:47:28] <Kenny> means i'm gonna have even more fun with this port lol
L429[16:48:01] <Wobbo> Anyway, I am going to bed now, so I will speak you all later
L430[16:48:07] <Kenny> l8r
L431[16:48:12] <Sangar> io.stderr also makes it clearer its an error message. i'll go for that.
L432[16:48:14] <Sangar> gnight!
L433[16:48:16] <Sangar> thanks for the pr
L434[16:48:20] <Wobbo> yw
L435[16:48:22] ⇦ Quits: Wobbo (~Wobbo@5ED58A7C.cm-7-6c.dynamic.ziggo.nl) (Quit: Wobbo)
L436[16:50:20] <Kenny> Sangar, his info going to a text file was because he redirected it on the command line. he used: lua schijven.la > test.txt
L437[16:50:45] <Sangar> yes. and it shouldn't have, even with the redirect :P
L438[16:51:06] <Sangar> because print should *always* go to stdout, not io.output, which is what gets redirected
L439[16:51:35] <Sangar> 'should' as in that's how its coded right now
L440[16:51:51] <Kenny> but the > redirected lua to send the printed output to a text file
L441[16:52:18] <Kenny> lua is primarily a DOS based language
L442[16:52:28] <Sangar> if anything it would have redirected lua's "header info"
L443[16:52:36] <Sangar> lua.lua doesn't take arguments
L444[16:53:00] <Sangar> (i.e. the Lua copyright blah stuff)
L445[16:53:24] <Kenny> okey dokey :)
L446[16:53:43] <Kenny> i didn't realize you had written a file called lua.lua
L447[16:53:53] <Sangar> that's why i assumed he just ran `prog.lua > blah` ^^
L448[16:54:36] <Sangar> we'll see if anyone else gets weird effects with output redirects :P
L449[16:55:03] <Kenny> now he has me wondering just how he did run it. in an oc computer or using lua itself
L450[16:55:44] <Kenny> in an oc computer it wouldn't do that. but from the actual lua interpreter(compiler) it would
L451[16:55:52] <Sangar> yes
L452[16:56:00] <Sangar> we will never know! well, we might, tomorrow :D
L453[16:56:13] <Kenny> i'll find out tomorrow hehe
L454[16:56:59] <Kenny> does this mean i'm going to have more fun porting this program over with print being redone?
L455[16:58:08] <Sangar> it isn't being redone
L456[16:58:27] * Kenny wipes brow with relief :)
L457[16:59:09] <Kenny> too many print statements in it to want to have to redo them lol
L458[17:01:08] <Sangar> hehe. well even if it had changed, you wouldn't have noticed the difference in that case.
L459[17:01:24] <Kenny> that's good
L460[17:02:38] <Kenny> well, back to reformatting. only about another 2000 lines to go hehe
L461[17:53:52] <SpiritedDusty> Sangar, how do I create a lua iterator using the C API??
L462[17:53:58] <SpiritedDusty> whoops double question marks
L463[17:54:16] <Sangar> using next()
L464[17:54:45] <SpiritedDusty> but how do I return the next function from C?
L465[17:57:19] <Sangar> oh, you mean how to implement something like pairs() in c?
L466[17:57:33] <SpiritedDusty> yeah
L467[17:57:57] <SpiritedDusty> I'm trying to do component.list and I saw that it returns an interator
L468[17:59:46] <Sangar> ah. not really. the "real" component.list returns a table.
L469[17:59:56] <Sangar> see kernel line 280-ish
L470[18:00:15] <Sangar> i honestly can't remember why i'm wrapping that with an iterator...
L471[18:00:40] <Sangar> if you're still interested, though, have a look at how lua's pairs is implemented: https://github.com/fnuecke/eris/blob/lua/src/lbaselib.c#L226
L472[18:01:31] <SpiritedDusty> ah ok thanks
L473[18:02:31] <SpiritedDusty> whats component.doc do?
L474[18:02:51] <Sangar> return the docstring for a method of a component
L475[18:05:57] <SpiritedDusty> whats a doctoring?
L476[18:05:59] <SpiritedDusty> docstring*
L477[18:06:22] <Sangar> short documentation. provided via the @Callback annotation.
L478[18:11:19] <SpiritedDusty> so the only 'real' component APIs are the ones in libComponent in kernel.lua?
L479[18:13:07] <Sangar> the ones used in there, but yes. basically have a look at https://github.com/MightyPirates/OpenComputers/blob/master/src/main/java/li/cil/oc/server/component/machine/NativeLuaArchitecture.scala#L195 to see the 'real' api stuff.
L480[18:13:30] <Sangar> component stuff starts at line 411
L481[18:13:38] <SpiritedDusty> oh ok thanks
L482[18:20:47] *** MrHohenheim is now known as MrHohen_sleep
L483[18:26:08] *** JoshTheEnder is now known as JoshTheEnder|BackInTheEther
L484[18:43:46] <SpiritedDusty> Sangar, any idea why luaL_checkstring is converting numbers to strings?
L485[18:44:56] <Sangar> because it's supposed to. http://www.lua.org/manual/5.1/manual.html#lua_tolstring
L486[18:45:00] <Sangar> "If the value is a number, then lua_tolstring also changes the actual value in the stack to a string."
L487[18:45:19] <SpiritedDusty> oh
L488[18:46:11] <Sangar> (and http://www.lua.org/manual/5.1/manual.html#luaL_checkstring states it uese tolstring, just for reference)
L489[18:46:18] <Sangar> *uses
L490[18:52:00] *** Michiyo is now known as Michiyo[Off]
L491[18:54:02] *** Michiyo[Off] is now known as Michiyo
L492[19:00:55] ⇦ Quits: Ir7_o (~JBouncer@irocast.net) (Read error: Connection reset by peer)
L493[19:01:07] ⇨ Joins: ^v (~Kevin@2601:4:4500:887:fd51:ea8:533f:a16)
L494[19:10:40] ⇦ Quits: ^v (~Kevin@2601:4:4500:887:fd51:ea8:533f:a16) (Ping timeout: 190 seconds)
L495[19:15:34] <Vooloo> do I need both files here or is the api for devs only: http://ci.cil.li/job/OpenComputers/142/
L496[19:16:05] <Stary2001> devs
L497[19:18:48] <Kenny> Sangar: an update on thta port, I have finally finishing re-formatting it, getting ready to start editting after i eat dinner :)
L498[19:30:11] *** manmaed is now known as manmaed|AFK
L499[19:37:28] <JZTech101> Kenny: any updates from Benimatic?
L500[19:40:20] <JZTech101> oh also Sangar OC needs a chatbox
L501[19:40:28] <JZTech101> I miss that from misc peripherals
L502[19:42:21] <Kenny> nothing from Beni yet
L503[19:44:22] <Kenny> Sangar, are all OC computers capable of writing colors?
L504[20:23:27] ⇨ Joins: ^v (~Kevin@2601:4:4500:887:fd51:ea8:533f:a16)
L505[21:09:41] ⇨ Joins: finkmac (~finkmac@68-68-14-65.applecreek.pathcom.com)
L506[21:57:04] <mallrat208> Heyo
L507[22:02:32] <^v> ohai
L508[22:04:23] *** SuPeRMiNoR2 is now known as SuPeRMiNoR2|Away
L509[22:08:52] ⇨ Joins: ping (~Kevin@2601:4:4500:887:9008:c58e:b349:2da8)
L510[22:09:40] ⇦ Quits: ^v (~Kevin@2601:4:4500:887:fd51:ea8:533f:a16) (Ping timeout: 190 seconds)
L511[22:45:06] *** Kenny is now known as L52
L512[22:45:27] *** L52 is now known as Kenny
L513[22:45:52] *** Kenny is now known as L52
L514[22:53:56] ⇨ Joins: pong (~Kevin@2601:4:4500:887:98bb:8096:35e4:8ef4)
L515[22:56:00] ⇦ Quits: ping (~Kevin@2601:4:4500:887:9008:c58e:b349:2da8) (Ping timeout: 190 seconds)
L516[22:58:21] ⇦ Quits: Lathanael|Away (~Lathanael@p5497227F.dip0.t-ipconnect.de) (Ping timeout: 380 seconds)
L517[23:01:20] ⇨ Joins: Lathanael|Away (~Lathanael@p54971D60.dip0.t-ipconnect.de)
L518[23:10:58] ⇨ Joins: asie (~textual@078088168214.elblag.vectranet.pl)
L519[23:11:58] *** L52 is now known as Kenny
L520[23:39:37] ⇨ Joins: ShadowKatStudios (~chatzilla@c211-31-42-102.rochd5.qld.optusnet.com.au)
L521[23:40:23] <ShadowKatStudios> Afternoon o/
L522[23:43:05] ⇦ Quits: asie (~textual@078088168214.elblag.vectranet.pl) (Quit: I'll probably come back in either 20 minutes or 8 hours.)
L523[23:44:10] <Kenny> evening :P
L524[23:44:26] <pong> almost 1 AM
L525[23:44:32] <Kenny> actually, morning :P
L526[23:45:21] <Kenny> afternoon for SKS though, it's almost 4pm
L527[23:47:15] ⇨ Joins: asie|tab (~asietab@apn-31-1-159-36.dynamic.gprs.plus.pl)
L528[23:48:36] <ShadowKatStudios> Back to digging out my factory :D
L529[23:50:02] ⇨ Joins: Din (~DinFer@31.176.213.76)
L530[23:50:36] *** LordFokas is now known as LordFokas|off
L531[23:51:09] <ShadowKatStudios> It's not the most interesting thing to do, but I have decided on lighting.
L532[23:51:49] <ShadowKatStudios> Are pumpkins usable as fuel?
L533[23:56:40] ⇦ Quits: mallrat208 (Mibbit@68.204.184.175) (Quit: http://www.mibbit.com ajax IRC Client)
L534[23:56:49] ⇨ Joins: mallrat208 (Mibbit@68.204.184.175)
L535[23:57:25] <ShadowKatStudios> Also would an amount of RAM be cheaper than that amount of storage with a hard drive?
L536[23:59:12] *** AngieBLD is now known as AngieBLD|Off
<<Prev Next>> Scroll to Top