u/munio73

1 post karma · 62 comment karma · joined Dec 2017

munio73

you can actually get rid of the "tail" part, shuf also accepts the -n flag with the same effect.

munio73

i think you're looking for the -t flag, i use it quite a lot to launch directly into a tui like vim from the ssh command, skipping the shell. the man page says that "Multiple -t options force tty allocation, even if ssh has no local tty."

EDIT: sorry, i completely missed the width part. might still be worth a try.

munio73

i wrote a small script that lets me go beyond 2x, i often watch at 2.5 to 3x. somehow it's still suddenly morning after i "barely watched anything"

munio73

It is not returning documentation, what you are seeing is a table of functions. You can call these functions ( like stack.all() ) to get data about the stack. ^

munio73

i always disable password login on anything public anyways. keyfiles are both more secure and more convenient.

munio73

you could always just directly get the raw data from pastebin, so for pastebin.com/PasteID, instead of using pastebin get PasteID, you would enter a lua prompt and write

f=fs.open("filename","w") f.write(http.get("http://pastebin.com/raw/PasteID").readAll()) f.close()

munio73

if you're completely new to programming you should learn the basics first. i recommend you watch direwolf20's tutorial series, since in it he also uses computercraft: link. he also later works with monitors in that series but here's the tl;dw:

first you'll need to make the monitor available by wrapping it as a peripheral: local mon = peripheral.find("monitor")

you can then write to it like you would to the terminal): mon.write("hello world")

once all buttons are drawn to the screen you have to use os.pullEvent to wait for user input and find out where they clicked: local _,_,x,y = os.pullEvent("monitor_touch") (here i use the variable name _ for the first two values since they are not important for this use case. they would be the event name and the side of the computer that the monitor is on.)

x and y are now the monitor coordinates the user clicked on, so if he clicked the second character in the first row (from the top-left corner) they would be x==2 and y==1.

the next step is to check which button these correspond to, if the button for example goes from x=2, y=2 to x=7, y=4; you would check with something like if x>=2 and y>=2 and x<=7 and y<=4 then ... end where ... is the code that runs if the user clicked inside the button.

for that you'll need the redstone api), more specifically rs.setBundledOutput.

then just put everything in an infinite loop and you're done.

munio73

reminds me of the degasi base on the floating island

munio73

and even more have a bobby pin or old beer can

munio73

You could take a look at minihud... it has a TON of hud info.
Everything from coords, light level and all the f3 stuff to current speed, estimated server tps, a light level overlay, a slime chunk renderer and so much more.
it can even display mob pathfinding in singleplayer.

munio73

This... This is not normal! This is wrong! There is nothing normal about this! How dare you dig straight down...

munio73

you mean off the other cat

munio73

ok. you win.

munio73

don't even get me started on how we do it in germany:

​

21 -> einundzwanzig

ein=one

und=and

zwanzig=twenty

so we literally say oneandtwenty which may not sound that bad but it means you have to do quite a bit of jumping for bigger numbers:

​

175321 -> einhunderdfünfundsiebzigtausenddreihunderdeinundzwanzig

175.321
1         einhundert  (one hundred)
  5       fünf        (five)
 7        undsiebzig  (and seventy)
   .      tausend     (thousand)
    3     dreihunderd (three hundred)
      1   ein         (one)
     2    undzwanzig  (and twenty)

one hundred five and seventy thousand three hundred one and  twenty.

we also use , fordecimal places and . to seperate groups of three.

​

but at least we use metric.

munio73

you mean the 4th of july? (DMY)

munio73

that is the reason it works this way, which I think doesn't mean that it is limited to that. We are talking about a notebook which can not just kill people but also modify their final actions after all

munio73

As i implied in my comment i think it is about intention. The fact you have to think about the person's face shows, that the deathnote has at least some mind reading capabilities.

munio73

well... My theory is by killing criminals he would intentionally save lifes which isnt exactly healthy for shinigami...

munio73
munio73

I see nothing wrong with javascript's type system, i mean []+{} is in Fact not a Number /s

munio73
munio73

python

letters = "abcdefghijklmnopqrstuvwxyz"
munio73

relevant xkcd https://xkcd.com/353/

munio73
munio73

*DO NOT POKE A SWOLLEN BATTERY. EVER.