<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:27:56] <payonel> Forecaster: o/
L2[00:30:11] <payonel> Izaya: o/
L3[00:30:15] <Izaya> ey
L4[00:30:27] <payonel> component.disk_drive.?()
L5[00:30:36] <Izaya> ?
L6[00:30:38] <payonel> to return the hardware address of the floppy disk
L7[00:32:11] <Kleadron> C:\PROGRAMS\>noinari.exe
L8[00:32:44] <Izaya> I guess?
L9[00:32:55] <payonel> i need a name!
L10[00:33:14] <payonel> disk_drive.floppy(), or .disk(), or diskAddress() ...
L11[00:33:17] <payonel> i want it short, but good
L12[00:33:52] <Izaya> disk_drive.contents?
L13[00:33:55] <payonel> mmmm
L14[00:33:59] * Izaya hmms
L15[00:34:07] <Izaya> disk_drive.media
L16[00:34:09] <Izaya> eh
L17[00:34:14] <payonel> those are interesting ideas
L18[00:34:23] <Kleadron> media.floppy
L19[00:34:32] <EcmaXp (SkyBox)> hello.py
L20[00:34:36] <Kleadron> media.harddisk
L21[00:34:40] <Kleadron> media.flashdrive
L22[00:34:46] <EcmaXp (SkyBox)> my_secret_folder.lnk
L23[00:35:03] <EcmaXp (SkyBox)> here is my dropbox
L24[00:35:04] <EcmaXp (SkyBox)> C:\Users\EcmaXp\Dropbox
L25[00:35:05] <Kleadron> not files
L26[00:35:06] <Kleadron> functions
L27[00:35:14] <EcmaXp (SkyBox)> file:///C:/Users/EcmaXp/Dropbox/ [Edited]
L28[00:35:17] <payonel> ecmaxp what are you talking about
L29[00:35:30] <EcmaXp (SkyBox)> hahahahaha
L30[00:35:37] <payonel> it's not really that funny ...
L31[00:35:37] <EcmaXp (SkyBox)> check here
L32[00:35:40] <EcmaXp (SkyBox)> file:///C:/Users/EcmaXp/Dropbox/explain.txt
L33[00:35:46] <EcmaXp (SkyBox)> :sad:
L34[00:35:48] <payonel> please be less spammy
L35[00:36:02] <Kleadron> http://tinyurl.com/yd87acpg
L36[00:36:23] <EcmaXp (SkyBox)> sorry
L37[00:36:40] <payonel> Izaya: i like 'media'. is 'floppy' to specific?
L38[00:36:51] <payonel> media is good though
L39[00:36:57] <payonel> well so is contents
L40[00:37:04] <payonel> though contents should return a list
L41[00:37:05] <Izaya> media can be applied to anything with removable ... media
L42[00:37:08] <payonel> even though it'd be a list of one
L43[00:37:08] <Izaya> including tape drives
L44[00:37:16] <payonel> yeah, computronics
L45[00:37:21] <Izaya> and uh
L46[00:37:23] <payonel> i wonder if vex has this already
L47[00:37:33] <Kleadron> print(media.floppy.listcontents(a))
L48[00:37:50] <EcmaXp (SkyBox)> why not just use filesystem
L49[00:37:52] <payonel> anyone have have computronics? with a tape drive comp? does it have this method?
L50[00:38:16] <Izaya> EmcaXp: what if it's in block mode?
L51[00:38:39] <payonel> or, what if you just want to know the address of the floppy disk in the disk drive? :)
L52[00:38:48] <EcmaXp (SkyBox)> just open /dev/something?
L53[00:38:49] <EcmaXp (SkyBox)> [.
L54[00:38:52] <payonel> and you have a floppy in your internal slot
L55[00:39:07] <payonel> i'm adding the method, that's not the point
L56[00:39:11] <payonel> i just want a name
L57[00:39:16] <EcmaXp (SkyBox)> ok
L58[00:39:37] <EcmaXp (SkyBox)> just .address() is good
L59[00:39:47] <payonel> that's the address of the disk_drive
L60[00:39:54] <EcmaXp (SkyBox)> AAAAAAAA
L61[00:39:56] <EcmaXp (SkyBox)> T_T
L62[00:40:11] <EcmaXp (SkyBox)> maybe i need scroll up
L63[00:40:15] <EcmaXp (SkyBox)> bye
L64[00:41:29] <EcmaXp (SkyBox)> well, wait
L65[00:41:36] <EcmaXp (SkyBox)> that is component method? or another api?
L66[00:41:46] <payonel> ok, tape_drive doesn't have any such method
L67[00:41:58] <payonel> ecmaxp: ?
L68[00:42:11] <payonel> i'm talking about adding a method to the disk_drive component
L69[00:42:23] <payonel> which returns the address of the inserted floppy disk
L70[00:43:05] <EcmaXp (SkyBox)> then i like .diskAddress() or getDiskAddress()
L71[00:45:24] <payonel> yeah, it just...
L72[00:45:28] <payonel> Izaya: i like media
L73[00:48:43] <EcmaXp (SkyBox)> payonel: Can i see the mod nor code?
L74[00:48:57] <payonel> "mod nor code" ?
L75[00:49:15] <EcmaXp (SkyBox)> *or
L76[00:49:35] <payonel> https://github.com/MightyPirates/OpenComputers ?
L77[00:49:43] <EcmaXp (SkyBox)> ?!
L78[00:49:44] <EcmaXp (SkyBox)> .
L79[00:50:28] <EcmaXp (SkyBox)> I thought you were developing an add-on.
L80[00:50:28] <EcmaXp (SkyBox)> I should have seen the credit.
L81[00:50:38] <EcmaXp (SkyBox)> I'm so sorry.
L82[00:50:50] <payonel> the credit?
L83[00:51:18] <EcmaXp (SkyBox)> *Contributions list
L84[00:51:49] <payonel> um
L85[00:51:59] <payonel> i'm surprised you dont know who i am
L86[00:52:05] <payonel> but perhaps that is my pride talking
L87[01:00:47] <Forecaster> "Do you know who I am?!"
L88[01:01:29] <Izaya> [probably nsfw cover art] https://www.youtube.com/watch?v=Qo88gc9w3ik
L89[01:01:30] <MichiBot> EODM (Eagles of Death Metal) - Silverlake (K.S.O.F.M.) (Audio) | length: 3m 34s | Likes: 3,491 Dislikes: 254 Views: 1,038,654 | by EaglesDeathMetalVEVO | Published On 18/9/2015
L90[01:01:41] <Izaya> (relevant)
L91[01:03:45] <payonel> forecaster: i need a name for your feature request
L92[01:04:08] <payonel> i picked media
L93[01:04:12] <payonel> component.disk_drive.media()
L94[01:04:23] <payonel> oh, fingercomp ... not Forecaster
L95[01:04:28] <payonel> names are similar, sorry :)
L96[01:04:31] <payonel> fingercomp: !
L97[01:04:34] <payonel> https://github.com/MightyPirates/OpenComputers/issues/2972
L98[01:04:35] <MichiBot> Title: Method to get address of floppy disk in disk drive | Posted by: Fingercomp | Posted: Mon Oct 29 20:12:37 CDT 2018 | Status: closed
L99[01:04:36] <Izaya> can we also get .eject()?
L100[01:04:40] <Izaya> :^)
L101[01:04:43] <payonel> already there
L102[01:04:56] <Izaya> wait really
L103[01:05:00] <Izaya> I can spit disks out of drives
L104[01:05:10] <payonel> yes
L105[01:05:13] <Izaya> neat
L106[01:05:16] <payonel> it even has a velocity param :)
L107[01:05:17] <Izaya> last I checked it wasn't a thing
L108[01:05:21] <payonel> optional
L109[01:05:23] <Izaya> last I checked was probably 2014 or so
L110[01:05:46] <payonel> [0, 1] velocity
L111[01:06:01] <payonel> component.disk_drive.eject(1) <-- full speed eject!
L112[01:06:13] <Izaya> neat
L113[01:06:40] <Izaya> I'll have to try it out some time
L114[01:07:06] <Izaya> though admittedly since I've had a sane network setup I haven't used floppies much at all
L115[01:07:26] <payonel> aye
L116[01:07:36] <EcmaXp (SkyBox)> disk_drive_cannon
L117[01:12:44] <Forecaster> @payonel um, which feature request?
L118[01:13:17] <Forecaster> Oh, wrong name got it
L119[01:14:12] <payonel> yeah, sorry
L120[01:24:30] ⇦ Quits: modmuss50 (modmuss50!sid42264@id-42264.charlton.irccloud.com) (Ping timeout: 183 seconds)
L121[01:24:51] ⇨ Joins: modmuss50 (modmuss50!sid42264@id-42264.charlton.irccloud.com)
L122[01:25:32] ⇦ Quits: Lucifer (Lucifer!sid32492@id-32492.brockwell.irccloud.com) (Ping timeout: 183 seconds)
L123[01:25:47] ⇨ Joins: Lucifer (Lucifer!sid32492@id-32492.brockwell.irccloud.com)
L124[01:43:50] <fingercomp> payonel: wow, that was really quick
L125[01:43:52] <fingercomp> thanks!
L126[01:44:06] <payonel> yeah, it was a good request :)
L127[02:05:58] ⇨ Joins: andreww (andreww!~xarses@c-67-180-86-164.hsd1.ca.comcast.net)
L128[02:05:59] ⇦ Quits: xarses_ (xarses_!~xarses@c-67-180-86-164.hsd1.ca.comcast.net) (Read error: Connection reset by peer)
L129[04:56:18] ⇨ Joins: polyzium (polyzium!~polyzium@89.207.223.202)
L130[06:41:59] ⇦ Quits: polyzium (polyzium!~polyzium@89.207.223.202) (Remote host closed the connection)
L131[06:42:20] ⇨ Joins: polyzium (polyzium!~polyzium@89.207.223.202)
L132[07:33:16] ⇨ Joins: Thutmose (Thutmose!~Patrick@host-69-59-79-181.nctv.com)
L133[08:01:02] <AmandaC> %choose yes or no
L134[08:01:02] <MichiBot> AmandaC: Elementary dear Watson, no is the obvious choice!
L135[08:08:01] <AmandaC> %choose ? or no
L136[08:08:01] <MichiBot> AmandaC: Once you get a taste of no you can't stop.
L137[08:14:25] <MGR> "Not for him, but for his car. I tried to ask how one slanders a car." --- Quote 1/2
L138[09:37:08] <MGR> "Two, not all vulnerabilities have QIDs. As an example- an application of force using a dense object may compromise the integrity of your skull. But the nice people at Qualys haven't assigned a number yet..." --- Quote 2/2
L139[10:07:46] ⇨ Joins: baschdel (baschdel!~baschdel@2a01:5c0:e090:ca91:9809:c242:f038:6cd)
L140[10:26:21] <Saphire> https://github.com/deeppomf/DeepCreamPy/
L141[10:26:43] <Saphire> ... Hentai/anime decensor thing
L142[10:56:44] <Skye> @Saphire decensoring by... neutral network?! oh god
L143[10:57:18] <Skye> I bet that could make hentai from SFW stuff too... but I'm not going near
L144[10:57:20] <Skye> I bet that could make hentai from SFW stuff too... but I'm not going near that [Edited]
L145[10:59:27] <Saphire> Not really
L146[11:00:17] <Skye> huh?
L147[11:35:49] ⇨ Joins: Inari (Inari!~Pinkishu@p5DEC652A.dip0.t-ipconnect.de)
L148[11:36:50] * AmandaC meows at Inari, demands to know where she's been all day
L149[11:37:05] <Inari> Working ofc
L150[11:37:38] <AmandaC> I see
L151[11:37:52] <AmandaC> Well, don't do it again. :P
L152[11:38:09] <Inari> I need money
L153[11:38:10] <Inari> D:
L154[11:38:29] <AmandaC> bah, money-schmony
L155[11:41:49] <Inari> I have to buy that food you steal
L156[11:41:55] <Inari> Well okay, most of that is bought for me
L157[11:41:56] <Inari> :P
L158[11:42:21] <Inari> But a girl needs money for toys and the like you know
L159[11:45:36] <AmandaC> Hey, I don't steal food, I just accept unexpected manditory food donations
L160[12:03:41] ⇨ Joins: Vexatos (Vexatos!~Vexatos@p200300C107205E723AD7F66FAC2E7C81.dip0.t-ipconnect.de)
L161[12:03:41] zsh sets mode: +v on Vexatos
L162[12:09:05] * Inari feeds AmandaC some casein powder
L163[12:09:37] <AmandaC> Some what now?
L164[12:11:23] <AmandaC> All I get when I googled that was bs body builder stuff
L165[12:11:30] <Inari> xD
L166[12:11:35] <Inari> One of the things in milk
L167[12:11:46] <MGR> ^
L168[12:11:53] <MGR> It's protein
L169[12:12:43] <AmandaC> Why are you trying to get me jacked, Inari?
L170[12:13:03] <Inari> I'm not
L171[12:13:09] <Inari> Casein just looks tasty
L172[12:14:16] ⇦ Quits: baschdel (baschdel!~baschdel@2a01:5c0:e090:ca91:9809:c242:f038:6cd) (Ping timeout: 200 seconds)
L173[12:25:30] <polyzium> Hey payonel I checked out the cursor code you provided, since it uses events it interferes with the keyboard handler, causing it to miss some characters
L174[12:27:45] <polyzium> https://i.imgur.com/miI3kcg.gif Here's the GIF I recorded
L175[12:57:02] <payonel> "since it uses events it ... misses some characters" ? this only happens if you are dropping events
L176[12:57:16] <payonel> in short, not cursor's fault
L177[12:57:54] <AmandaC> Not sure how you expect it to get input without events, too
L178[12:58:03] <payonel> there is only 1 queue of events
L179[12:58:14] <polyzium> wait lemme disable the cursor code and see what happens
L180[12:58:20] <payonel> if you drops some events over here ... and try to pull them over there ...
L181[12:59:03] <payonel> polyzium: if you have 1 thread (openos runs on the init thread), then you have to have a single event.pull and filter all events and share them for your different handlres
L182[12:59:05] <payonel> handlers*
L183[12:59:07] <payonel> or use event.listen
L184[12:59:16] <payonel> or use threads...like i said yesterday
L185[12:59:22] <payonel> every thread has its own signal queue
L186[12:59:42] <polyzium> I also tried to pull keyboard event in a separate thread and the cursor in main one
L187[13:00:01] <polyzium> It limits to a window of 2 characters for some reason
L188[13:01:09] <payonel> i might have to review your code to help
L189[13:02:58] <polyzium> Lemme try with event.listen also
L190[13:15:04] <Inari> TIL
L191[13:15:10] <Inari> i^i is about a fifth
L192[13:18:18] <polyzium> OK this is ridicilous
L193[13:18:28] <polyzium> when threaded, still two characters being stuck
L194[13:18:40] <payonel> polyzium: :( let me review
L195[13:18:45] <polyzium> Alright
L196[13:18:49] <polyzium> Lemme upload to gist
L197[13:21:43] <polyzium> https://gist.github.com/polyzium/9aa4ed71d50de3e711b02be31508b3b2
L198[13:22:21] <polyzium> Quick cursor testing program
L199[13:24:22] <payonel> sorry, was afk
L200[13:24:26] <payonel> i'll have a look in a min
L201[13:24:27] <polyzium> No problem
L202[13:24:36] ⇨ Joins: thelounge48 (thelounge48!webchat@host-85-201-74-94.dynamic.voo.be)
L203[13:24:47] ⇦ Parts: thelounge48 (thelounge48!webchat@host-85-201-74-94.dynamic.voo.be) ())
L204[13:24:53] <polyzium> If you take the cursor code out it's being typed correctly
L205[13:25:01] ⇨ Joins: LotuxPunk (LotuxPunk!webchat@host-85-201-74-94.dynamic.voo.be)
L206[13:25:04] <polyzium> with the cursor in thread... it derps
L207[13:25:15] <LotuxPunk> Hello !
L208[13:25:52] <polyzium> Hey what's up
L209[13:26:08] <LotuxPunk> Fine & u ?
L210[13:26:38] <polyzium> I feel a bit tired but I'm alright
L211[13:26:51] <LotuxPunk> Autumn... :D
L212[13:27:04] <LotuxPunk> Can someone told me how i can create a peripheral for OC in my mod ? I've already the code for the CC one
L213[13:27:22] <LotuxPunk> https://github.com/LotuxPunk/Handles
L214[13:28:06] <payonel> LotuxPunk: in oc we call them components
L215[13:28:19] <Inari> love handles
L216[13:28:25] <Inari> ;D
L217[13:28:35] <Inari> %pet AmandaC
L218[13:28:35] * MichiBot pets AmandaC with methanol tea. 4 health gained!
L219[13:28:46] <LotuxPunk> Oh ok
L220[13:29:04] <LotuxPunk> So how can I create a component ? :D
L221[13:29:21] <LotuxPunk> I've seen an integration with CC in the OC code
L222[13:29:38] <LotuxPunk> But I don't know if a peripheral for CC can be used as component
L223[13:30:58] <payonel> Vexatos: do you have a sample for setting up a component LotuxPunk can review?
L224[13:31:43] <Vexatos> A component or a driver
L225[13:32:07] <polyzium> Component
L226[13:32:22] <LotuxPunk> What's the difference in the mod ?
L227[13:32:57] <LotuxPunk> (But yeah, i think i need a component)
L228[13:33:13] <Vexatos> >Drivers are attached to using an Adapter
L229[13:33:45] <Vexatos> components are connected to by any adjacent component (including direct connection with cables), and propagate the network to other adjacent components
L230[13:33:59] <LotuxPunk> Ok
L231[13:34:14] <AmandaC> component is a printer, adapter is a bluetooth dongle
L232[13:34:20] <AmandaC> ( Does that work? )
L233[13:34:27] <Vexatos> so one of the two can be directly connected to with cables, the other needs an adapter inbetween. Generally, unless your block is explicitly meant to be a computer peripheral, you should make it a driver
L234[13:35:09] <LotuxPunk> I've already the tileentity peripheral for CC
L235[13:35:19] <payonel> polyzium: you have two systems writing to the screen. they are likely arguing over cursor position. the cursor blink uses "saved" state to blink. thus if you print and move the window position, and then restore state, it'd push it back
L236[13:35:25] <LotuxPunk> It's basicaly a "cable" to connect a TARDIS with the computer
L237[13:35:34] <payonel> polyzium: i have a feeling that you are getting all of the key downs just fine, but writing over them
L238[13:35:41] <AmandaC> I don't think CC diferentiates between components/adapters like OC does
L239[13:35:48] <LotuxPunk> No
L240[13:35:50] <Vexatos> no CC basically only has the driver system
L241[13:35:55] <Vexatos> except no extra block for it
L242[13:36:14] <Vexatos> it doesn't have any sort of network propagation between adjacent blocks
L243[13:36:21] <polyzium> Hmm
L244[13:36:30] <polyzium> Lemme see what I can do
L245[13:36:52] <payonel> polyzium: it was my intention that you would use the cursor blink IN the same "user input" loop
L246[13:37:10] <Vexatos> LotuxPunk, any particular reason why you made it a separate block?
L247[13:37:22] <Vexatos> If the block does nothing else, then a component does indeed sound like the right way
L248[13:37:23] <LotuxPunk> CC need a peripheral block
L249[13:37:29] <polyzium> Well the keyboard handling/user input is handled by events, idfk how would I do that.
L250[13:37:35] <payonel> polyzium: that blink code could go in the main loop, passing the event data (after echo(not name)) to your handler
L251[13:37:35] <LotuxPunk> And i need to store information
L252[13:37:40] <Vexatos> LotuxPunk, but you could just have made any tardis wall a peripheral, no?
L253[13:37:42] <Vexatos> ah
L254[13:37:45] <LotuxPunk> In this case i need to store the UUID of the placer
L255[13:37:59] <LotuxPunk> Because i'll get the TARDIS TileEntity by the UUID of the owner
L256[13:38:01] <Vexatos> well okay then, if the tardis itself doesn't provide that
L257[13:38:07] <LotuxPunk> Yeah
L258[13:38:19] <LotuxPunk> My mod is an addon for the TARDIS mod
L259[13:38:33] <LotuxPunk> The owner of TARDIS mod haven't the time to look at that xD
L260[13:38:34] <Vexatos> LotuxPunk, which MC version
L261[13:38:39] <LotuxPunk> 1.12.2
L262[13:38:53] <Vexatos> then, you want an Environment capability attached to the block
L263[13:39:10] <LotuxPunk> Huh... Yeah, maybe ?
L264[13:39:13] <Vexatos> check out the javadoc in the API
L265[13:39:26] <LotuxPunk> What do you mean by "Environment capability"
L266[13:39:37] <Vexatos> you attach a capability implementing Environment
L267[13:39:37] <payonel> forge capabilities
L268[13:39:45] <Vexatos> there is an abstract class in api.prefab I think
L269[13:39:47] <Vexatos> to make your life easier
L270[13:40:08] <Vexatos> then, you implement methods annotated with @Callback
L271[13:40:30] <Vexatos> Or, if you want to do it the same way CC does it, having a lot less features due to that, also implement ManagedPeripheral
L272[13:40:40] <Vexatos> that makes the API basically identical to CC's
L273[13:40:54] <polyzium> payonel, so that means I need to modify the handler to include blinking support
L274[13:40:59] <payonel> polyzium: with the cursor in the main loop, after cursor:echo(not name), you call handleEvent(table.unpack(pack))
L275[13:42:09] <polyzium> Oh so we need to yield only once a loop?
L276[13:42:16] <polyzium> lemme see
L277[13:42:25] <payonel> polyzium: you understand queue.pop() ?
L278[13:42:32] <payonel> (i assume so, i'm building context)
L279[13:42:58] <polyzium> Get something out of a queue?
L280[13:43:06] <polyzium> I haven't used that so idk
L281[13:43:17] <payonel> each event.pull (or computer.pullSignal) is (essentially) a queue.pop
L282[13:43:25] <payonel> i'm referring to the concept of queue.pop()
L283[13:43:45] <payonel> but yeah, 1 yield per loop is sufficient
L284[13:43:56] <polyzium> Okay, gotta try
L285[13:44:35] <polyzium> Where did you grab queue from btw?
L286[13:44:40] <polyzium> I can't require it
L287[13:45:05] <payonel> it doesn't exist in openos
L288[13:45:12] <payonel> i'm referring to the IDEA of queues
L289[13:45:23] <LotuxPunk> Vexatos I'll look at that, thanks !
L290[13:45:47] <polyzium> it exists in Cpp stdlib tho
L291[13:45:48] <payonel> polyzium: i was comparing event.pull() (computer.pullSignal()) to behaving like queue.pop()
L292[13:45:56] <Vexatos> LotuxPunk, feel free to poke the code at me once you're done to check
L293[13:47:59] <LotuxPunk> Vexatos Thanks ! I'm not sure how to start but yes ! :D
L294[13:50:35] ⇨ Joins: baschdel (baschdel!~baschdel@2a01:5c0:e090:ca91:9809:c242:f038:6cd)
L295[13:51:31] <LotuxPunk> I've a question !
L296[13:52:08] <LotuxPunk> Vexatos a method is equal to a function ?
L297[13:52:10] <LotuxPunk> https://github.com/MightyPirates/OpenComputers/tree/master-MC1.7.10/src/main/java/li/cil/oc/api#making-a-tile-entity-available-as-a-component--peripheral
L298[13:53:04] <LotuxPunk> According to this example
L299[13:54:22] ⇦ Quits: baschdel (baschdel!~baschdel@2a01:5c0:e090:ca91:9809:c242:f038:6cd) (Ping timeout: 200 seconds)
L300[13:55:22] <payonel> LotuxPunk: "method equal to a function" are you trying to differentiate object _methods_ from global functions?
L301[13:55:39] ⇨ Joins: baschdel (baschdel!~baschdel@2a01:5c0:e090:ca91:9809:c242:f038:6cd)
L302[13:55:41] <payonel> your component will have its own api, functions you call on the object proxy. .. thus "methods"
L303[14:00:45] <LotuxPunk> Arf my english is a problem right now...
L304[14:00:46] <LotuxPunk> Hum..
L305[14:01:21] <LotuxPunk> CC use a method called "callMethod"
L306[14:01:49] <LotuxPunk> In this method i've a switch case for each "lua function"
L307[14:02:15] <LotuxPunk> https://github.com/LotuxPunk/Handles/blob/95b717b8efd3fad750c2ba4cc2792fe22c1dcc1a/src/main/java/com/vandendaelen/handles/object/tileentity/TileTardisInterface.java#L37
L308[14:03:30] <LotuxPunk> my cases (0.1.2.3.4,...) is in fact the index of the lua function set in this method
L309[14:03:40] <LotuxPunk> https://github.com/LotuxPunk/Handles/blob/95b717b8efd3fad750c2ba4cc2792fe22c1dcc1a/src/main/java/com/vandendaelen/handles/object/tileentity/TileTardisInterface.java#L31
L310[14:04:20] <LotuxPunk> Apparently, OC use a system like "A java method with an Object return == a Lua method" right ?
L311[14:04:50] <AmandaC> a java method annotated with `@Callback`
L312[14:05:30] <AmandaC> and a specific signature
L313[14:06:54] <polyzium> payonel, I tried, it actually works but looks like the cursor is messing with its location
L314[14:07:22] <polyzium> I mean messing with the location of the hidden tty cursor
L315[14:22:59] <Vexatos> LotuxPunk, an Object[] return and specific arguments, yes, but as I said, if you prefer the way CC does it, also implement ManagedPeripheral
L316[14:23:06] <Vexatos> that one has two methods equal to what IPeripheral has
L317[14:23:41] <LotuxPunk> Instead SimpleComponent or with ?
L318[14:23:49] <Vexatos> instead of simplecomponent
L319[14:23:54] <Vexatos> wait no
L320[14:23:56] <Vexatos> you can use both
L321[14:24:00] <Vexatos> I think?
L322[14:24:02] <Vexatos> uh
L323[14:24:08] <Vexatos> depends on how you are implementing it
L324[14:24:13] <LotuxPunk> Idk xD
L325[14:24:50] <Vexatos> ah no
L326[14:24:56] <Vexatos> SimpleComponent is only for use with TileEntities
L327[14:24:59] <Vexatos> not for capabilities
L328[14:25:06] <Vexatos> for that, you implement Environment, or use the prefab class
L329[14:25:09] <LotuxPunk> Is a tileentity
L330[14:26:15] <Vexatos> well if you don't want to use a capability, sure >_>
L331[14:26:34] <LotuxPunk> I'll look to use capabilities later
L332[14:26:40] <LotuxPunk> I'm not sure how it's working ^^"
L333[14:26:40] <Vexatos> no
L334[14:26:44] <Vexatos> you use either one or the other
L335[14:27:32] <LotuxPunk> ¯\_(ツ)_/¯
L336[14:27:38] <LotuxPunk> Capabilities is really better ?
L337[14:27:47] <Vexatos> they are identical in features
L338[14:27:56] <Vexatos> it's just the new recommended way, as it is for everything
L339[14:28:30] <AmandaC> %choose ? or no
L340[14:28:30] <MichiBot> AmandaC: Once you get a taste of no you can't stop.
L341[14:28:42] <AmandaC> MichiBot just wants me to be bored all day it seems
L342[14:29:09] <LotuxPunk> I have to look how it's working ^^"
L343[14:29:16] <LotuxPunk> I never use this way ^^"
L344[14:29:25] <Vexatos> or you just use it on the TE
L345[14:29:36] <Vexatos> LotuxPunk, in case of TE, use SimpleComponent and then ManagedPeripheral on the same thing
L346[14:29:41] <Vexatos> it is the most minimal implementation
L347[14:30:03] <Vexatos> note that all calls to ManagedPeripheral happen off-thread just like in CC, so make sure you are the same level of thread-safe on both
L348[14:30:57] <LotuxPunk> Ok !
L349[14:41:46] <LotuxPunk> Ok ok, thanks a lot for your help ! I'll continue that later ! :)
L350[14:41:52] <LotuxPunk> Good evening !
L351[14:43:07] ⇦ Quits: LotuxPunk (LotuxPunk!webchat@host-85-201-74-94.dynamic.voo.be) (Quit: webchat.esper.net)
L352[14:53:18] <polyzium> Alright
L353[14:53:28] <polyzium> I'm tired, gotta go to bed
L354[14:53:31] <polyzium> Cya everyone
L355[14:53:50] ⇦ Quits: polyzium (polyzium!~polyzium@89.207.223.202) (Remote host closed the connection)
L356[15:18:26] <payonel> Inari: https://twitter.com/Kokomothegreat/status/1057299102659174400
L357[15:18:26] <MichiBot> Tue Oct 30 10:52:04 CDT 2018 @Kokomothegreat: Now THAT'S a catwalk: A playful cat crashed a fashion show in Turkey -- and totally stole the show. ? ? <https://t.co/CyWxxF5XM0&gt;
L358[15:25:03] <Inari> payonel: haha :D
L359[15:53:26] <Inari> You know, I just realized
L360[15:53:33] <Inari> PEoplei n RimWorld never need drinks
L361[16:16:11] <Kleadron> i just did a couple minutes of scrolling in here
L362[16:17:22] <Kleadron> someone apparently made a program that reverses censorship
L363[16:17:59] <Mettaton_Fab> why is old music from my childhood so good
L364[16:23:59] <dequbed> Inari: My colonists are drunkards and my colony survives based on alcohol export. Come again please?
L365[16:24:09] <Inari> Like
L366[16:24:11] <Inari> actaul drinks
L367[16:24:13] <Inari> You know, water
L368[16:26:26] <dequbed> Well, yes. But then again they don't need toilets, baths, privacy, free time and are contempt with living as the only single in a colony of couples. It *is* a game after all.
L369[16:34:04] <Inari> They need free time
L370[16:34:05] <Inari> :f
L371[16:34:33] <Inari> Adding bathing and toilets would improve the game XD
L372[16:34:44] <Inari> And as far as I see they value some privacy
L373[16:34:49] <Inari> Like having their own sleeping quarters
L374[16:36:55] <dequbed> No, not really as long as they have at least on level of passion for the job they will happily work 7 days a week. There are mods for that. And shared bedrooms are negligible debuffs and colonists will sleep and have sex while other people are constantly walk through their rooms. And in the latter, without debuff even.
L375[16:50:30] <AmandaC> %choose words or pictures and words
L376[16:50:30] <MichiBot> AmandaC: You'll want to go with pictures and words.
L377[16:50:38] <AmandaC> Hrm
L378[17:06:24] ⇨ Joins: Dragonsice (Dragonsice!webchat@89.186.179.98)
L379[17:08:23] ⇦ Quits: Inari (Inari!~Pinkishu@p5DEC652A.dip0.t-ipconnect.de) (Quit: 'Apple pie is the symbol of friendship.' - Chitose (Galaxy Angel))
L380[17:57:28] ⇦ Quits: baschdel (baschdel!~baschdel@2a01:5c0:e090:ca91:9809:c242:f038:6cd) (Ping timeout: 200 seconds)
L381[18:08:54] <Lizzy> %choose sleep or sleep or more sleep or sleep?
L382[18:08:54] <MichiBot> Lizzy: One the one hand, there's more sleep but then there's also sleep?
L383[18:09:08] * Lizzy sleeps
L384[18:25:06] <AmandaC> %choose ? or ☢️
L385[18:25:07] <MichiBot> AmandaC: If I had a gold nugget for every time someone asked me about ☢️
L386[18:25:14] <AmandaC> Hrm
L387[18:25:35] ⇦ Quits: Dragonsice (Dragonsice!webchat@89.186.179.98) (Quit: webchat.esper.net)
L388[18:26:02] <AmandaC> Know what, no. Space weed. I think I'll explore this frozen planet with a massive ocean some more
L389[18:26:32] ⇦ Quits: pwootage (pwootage!~pwootage@new.pwootage.com) (Quit: Cya)
L390[18:29:25] ⇨ Joins: pwootage (pwootage!~pwootage@new.pwootage.com)
L391[18:40:46] <Kleadron> pootis
L392[18:47:43] ⇦ Quits: Vexatos (Vexatos!~Vexatos@p200300C107205E723AD7F66FAC2E7C81.dip0.t-ipconnect.de) (Quit: Insert quantum chemistry joke here)
L393[20:17:05] <Izaya> I got Elite: Dangerous to run on loonix \o/
L394[20:17:49] <Izaya> It's very slow because you have to force it to run on one core
L395[21:02:30] <Z0idburg> So Izaya
L396[21:02:35] <Izaya> that's me
L397[21:02:47] <Z0idburg> You're great with electronics right?
L398[21:03:05] <Izaya> not really but sure
L399[21:03:21] <Z0idburg> I'm looking to create a fiber optic link that is analog
L400[21:03:54] <Z0idburg> for example, like how I can send a voltage to the base of some emitter transistor, and on the other end a phototransistor that replicates the voltage
L401[21:06:04] ⇨ Joins: Arimil (Arimil!~Renari@70.15.18.61.res-cmts.sm.ptd.net)
L402[21:06:56] <Izaya> right
L403[21:07:41] <Z0idburg> I dunno if I can use something like this maybe
L404[21:07:43] <Z0idburg> https://www.mouser.com/datasheet/2/414/Datasheet_OPV314%20series-1133999.pdf
L405[21:08:30] ⇦ Quits: Renari (Renari!~Renari@70.15.18.61.res-cmts.sm.ptd.net) (Ping timeout: 200 seconds)
L406[21:09:49] <Wuerfel_21> What kind of signal woould you want to send?
L407[21:10:24] <Izaya> I don't know if lasers and stuff, as designed, really do analog
L408[21:10:36] <Wuerfel_21> because using some kind of pulse-width modulation will have less noise and perfect linearity
L409[21:10:43] <Z0idburg> well it wouldn't matter, but if they are fast enough I would love to experiment with some modulation
L410[21:11:13] <Z0idburg> I don't think I have to worry about that so much with this project
L411[21:11:23] <Izaya> that said, my experience with lasers is limited to using a DVD drive laser to set fire to things
L412[21:11:25] <Z0idburg> in fact I think PWM would just make it more complicated
L413[21:11:28] <Izaya> so I'm hardly an authority
L414[21:11:55] <Wuerfel_21> lasers are pretty fast
L415[21:11:58] <Wuerfel_21> https://twitter.com/marcan42/status/1010512100228100096
L416[21:11:58] <MichiBot> Sat Jun 23 08:17:13 CDT 2018 @marcan42: And it's a laser, so it easily works from across the apartment. This is ridiculous. <https://t.co/RTaNtFLry4&gt;
L417[21:12:05] <Z0idburg> well it's the diodes that have to be fast
L418[21:12:13] <Z0idburg> the ramp time needs to be fast enough
L419[21:12:27] <Z0idburg> I did find these which are like $7 a piece
L420[21:12:28] <Z0idburg> https://www.mouser.com/datasheet/2/414/Datasheet_OPV314%20series-1133999.pdf
L421[21:12:41] <Z0idburg> I think that's just the transmitter though? I haven't read the DS through yet
L422[21:12:51] <Z0idburg> that is also a standard connection
L423[21:13:31] <Z0idburg> huh that's nice
L424[21:13:37] <Z0idburg> so what is he using there?
L425[21:14:14] <Z0idburg> @Wuerfel_21 so I have several applications for optics, but most importantly this may be a candidate for my MMU -> CPU physical medium
L426[21:14:19] <Z0idburg> in my homebrew computer project
L427[21:17:31] <Z0idburg> the CPUs actually run on dedicated PCB cards
L428[21:17:51] <Z0idburg> but they take advantage of a mailbox system for memory I/O instead of memory mapped IO
L429[21:18:26] <Z0idburg> I mean technically it is still memory mapped in some ways but you don't interface it the same way
L430[21:24:07] <Z0idburg> the result is a semi scalable system that scales with the drawback of increased latency
L431[21:24:58] <Z0idburg> Each MMU/DMA card has 4 ports on the processor card end and connect directly to each processor card's mailbox.
L432[21:25:40] <Z0idburg> these mailboxes are double buffered and the MMUs can pull messages from the processors while the processors are queueing new messages.
L433[21:26:06] <Z0idburg> they are also seperated for input and output
L434[21:27:05] <Z0idburg> additionally, they are clockless bidirectional serial links. There's no need for a clock signal, so it's sort of asyncronous
L435[21:33:02] ⇦ Quits: jazzpi (jazzpi!~jazzpi@jazzpis.space) (Quit: ZNC - http://znc.in)
L436[21:34:25] ⇨ Joins: jazzpi (jazzpi!~jazzpi@jazzpis.space)
L437[21:42:17] ⇨ Joins: Renari (Renari!~Renari@70.15.18.61.res-cmts.sm.ptd.net)
L438[21:42:47] ⇦ Quits: Arimil (Arimil!~Renari@70.15.18.61.res-cmts.sm.ptd.net) (Ping timeout: 180 seconds)
L439[21:48:25] <Wuerfel_21> sorry for reading late, but digital signals work really well over optics. That's why they're being used for broadband internet. You might get away with components intended for SPDIF/Toslink
L440[21:48:33] <Wuerfel_21> also, betime for me
L441[21:48:38] <Wuerfel_21> also, bedtime for me [Edited]
L442[21:51:50] <Z0idburg> I am avoiding Toslink because the interfaces are really expensive
L443[21:52:24] <Z0idburg> they do work well, but analogous signals work really well in general if you know what you're doing. Especially since I can retransmit it over radio, etc
L444[21:53:28] <Z0idburg> with that said, I also have some homebrew digital communication protocols that would work much better than PWM
L445[21:55:45] <Z0idburg> with that said, it is problematic for negative current draw through a laser, so perhaps I should pursue that
L446[21:56:00] <Z0idburg> (digital protocols)
L447[21:56:30] <Z0idburg> but you can simulate negative current with an AC bias
L448[21:57:26] <Z0idburg> But yeah for fiber I guess using a digital signal would be good. But I'd want to use my own
L449[21:58:00] <Z0idburg> depending on somebody else's interface greatly complicates things in a way that I do not care for
L450[22:19:23] <Z0idburg> Izaya, when thinking about 4B5B this afternoon, which I've used for data transmissions, it is also useful for detecting errors, in fact it is even less expensive at detecting errors than parity
L451[22:19:24] <Z0idburg> imo
L452[22:19:52] <Z0idburg> if you cound a 25% transmission length increase unconditionally inexpensive
L453[22:20:05] <Z0idburg> or 20 is it
L454[23:01:42] ⇦ Quits: Thutmose (Thutmose!~Patrick@host-69-59-79-181.nctv.com) (Quit: Leaving.)
L455[23:32:14] <CompanionCube> https://mobile.twitter.com/Kleissner/status/996955400787423232 lol nice
L456[23:32:16] <MichiBot> Wed May 16 22:27:44 CDT 2018 @Kleissner: Supermicro IPMI License Key (for updating BIOS) = HMAC-SHA1-96(INPUT: MAC address of BMC, SECRET KEY: 85 44 E3 B4 7… <https://t.co/L5jjPh8oMP&gt;
<<Prev Next>> Scroll to Top