Poetry Collection

Poems in true chronological order by post date

« First‹ Prev │ Page 973 of 1150 │ Next ›Last »

Menu

 -> file: fediverse/5944
═════════════════════════════════════════════════════════════════════──────────────
 I swear, Lua has the worst manual out there.
 
 I was looking for a definition of this function called io.flush(). Here's what
 I found: [picture 1]:*io.flush ()
 
 Equivalent to io.output():flush().
 
 
 okay, so what's io.output():flush()? [one result found] and it's the thing I
 just found. great.
 
 okay, so how about io.output()? [third picture]:io.output
 ([file])
 
 Similar to io.input, but operates over the default output file.
 
 
 andio.write (···)
 
 Equivalent to io.output():write(···).
 
 
 I know the text is blue, but it's not clickable. It's just text, not a
 hyperlink to more comprehensive documentation.
 
 There's also file:flush(), but that doesn't seem relevant to what I'm looking
 for, because I'm working with lines and not files:file:flush ()*
 
 Saves any written data to file. 
 
 
 there are no more references to flushing, nor outputting of input nor output.
 this manual sucks.
 
 ah, well, back to vibe coding I go.
 
 EDIT: at least it's all on one page.
picture of one section of the lua manual documentation.  io.flush ()  Equivalent to io.output():flush(). picture of a ctrl+f search on a web page. It's searching for io.output:flush() and there's 1 result found, which is the exact same place I found the first picture. two results:  io.output ([file])  Similar to io.input, but operates over the default output file.   and...  io.write (···)  Equivalent to io.output():write(···).

                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘

 -> file: fediverse/5945
═════════════════════════════════════════════════════════════════════──────────────
 lua is my favorite language
                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘

 -> file: fediverse/5946
═════════════════════════════════════════════════════════════════════──────────────
 at least io.input() has something tangible:*io.input ([file])*
 
 When called with a file name, it opens the named file (in text mode), and sets
 its handle as the default input file. When called with a file handle, it simply
 sets this file handle as the default input file. When called without arguments,
 it returns the current default input file.
 
 In case of errors this function raises the error, instead of returning an error
 code.
 
 
 but... still no idea what io.flush() does. There's no arguments, so I guess it
 calls flush() on the default input file? what the heck is an input file?6.8 –
 Input and Output Facilities
 
 The I/O library provides two different styles for file manipulation. The first
 one uses implicit file handles; that is, there are operations to set a default
 input file and a default output file, and all input/output operations are done
 over these default files. The second style uses explicit file handles.
 
 
 
 that's helpful I think. I'm gonna take a nap or something, snuggle cat
picture of lua documentation:  io.input ([file])  When called with a file name, it opens the named file (in text mode), and sets its handle as the default input file. When called with a file handle, it simply sets this file handle as the default input file. When called without arguments, it returns the current default input file.  In case of errors this function raises the error, instead of returning an error code. picture of lua documentation:  6.8 – Input and Output Facilities  The I/O library provides two different styles for file manipulation. The first one uses implicit file handles; that is, there are operations to set a default input file and a default output file, and all input/output operations are done over these default files. The second style uses explicit file handles.

                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘

 -> file: fediverse/5947
═════════════════════════════════════════════════════════════════════──────────────
 you're supposed to try it out and see. or are you not a hacker?
                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘

 -> file: fediverse/5948
═════════════════════════════════════════════════════════════════════──────────────
 worth
picture of my cat sleeping on my lap at my computer desk.

                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘

 -> file: fediverse/5949
═════════════════════════════════════════════════════════════════════──────────────
 @user-138 
 
 I don't know what it does yet T.T
 
 it's Lua, not C
 
 what's the message? maybe I can help, I'm much better at bash than... actually
 I'm not very good at bash, but only the cool kids are.
                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘

 -> file: fediverse/5950
═════════════════════════════════════════════════════════════════════──────────────
 @user-138 
 
 wao I'm a cool kid _^
 
 Hmmmm I googled "Network: file exists" and got this link:
 https://access.redhat.com/solutions/1340713
 
 my understanding of that is that maybe you're creating static routes, and for
 some reason you're trying to create one that already exists? Maybe there's
 something in your .bashrc config, if the file appears when you open a terminal,
 or perhaps if it appears randomly then maybe there's a service or something
 that's doing it.
 
 Did you say it stopped when you swapped sim cards? ... on your phone? that's
 bizzare... Maybe you were trying to create an ip route (whatever that is) that
 was pointing to the same ip address as your phone? and when you swapped sims it
 changed the ip address? If it appears again, maybe try setting static IP
 addresses for both the phone and the computer in your router settings and see
 if that fixes it. Though if you've ever seen the error while out and about at
 like, a coffee shop or library or whatever, then that wouldn't apply since the
 router is only for home base...
                                                           ┌───────────┐
 similar different═══════════════════════════════════════════════════════════════════─┴───────────┘


« First‹ Prev │ Page 973 of 1150 │ Next ›Last »