« first day (2267 days earlier)      last day (2562 days later) » 

4:00 AM
@Dennis You can do that?
 
@Dennis In fact anyone can check with stack exchange data explorer
 
> x86_64-linux-fake.rb
D: what if I want real ruby
@DownWat .__. still gives error, do I need to link re-symlink /usr/bin/gem
 
@DownWat Sure, by temporarily lowering their reputation to 1. Has some side effects.
 
though resymlink is kinda defnition of redundant
 
@Dennis ah
@Downgoat use /usr/local/bin/gem
and /usr/local/bin/ruby
 
4:02 AM
@Dennis I'm sorry I didn't mean to it was there for literally two seconds
 
@DownWat yeah using that
 
I just wanted to see what the close reason was
 
FFS RVM
 
user165474
@Pavel Don't you need to press the VTC button though?
 
$ grep -rn ~ -e "gem ()"
/home/vihan/.zsh_history:1731:: 1492142607:0;grep -rn ~ -e "gem ()"
idk if to laugh or punch grep
 
user165474
4:04 AM
lol
 
user165474
How about do both?
 
$ which gem
/usr/local/bin/gem
$ gem install
ERROR:  Loading command: install (LoadError)
	cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
why do you hate ruby :(
@DownWat can you actually just send me your compiled versions
actually that might not work
@DownWat am I hopeless case or are they other idea
 
@Pavel No harm done. We're down to one close vote now.
 
What does Wat owe you 7.50?
*why
 
4:12 AM
I'm pretty sure it's Wat.
 
Right, why does Wat owe Thomas money?
 
wait what why is nodejs a ruby dependency O_o
 
o_0 no sense
 
@Dennis o_O what happened?
 
@DJMcMayhem Some people VTC'd the Sandbox
 
4:15 AM
ruby 2.4 is compatible with 2.1 right?
 
user165474
@DJMcMayhem There are closevotes on the sandbox
 
user165474
ninja'd >_>
 
By like half a minute.
 
Huh
 
@Dennis I came up with the python answe independtly from the other python one
 
4:15 AM
Not saying otherwise. :P
 
user165474
@Pavel True but my connection's not the greatest >_>
 
@DownWat ohhh I need to run extconf.rb
 
and I figured it would be shorter to do strings than 'any' like the other python one did
looks like I'm wring
wrong
will edit tomorrow or maybe later idk iPads are annoying
 
Mods need to be able to force a post open so it can't be VTC'd. They already have infinite reopen hammers anyway, right?
 
@Pavel I don't think they do
 
4:18 AM
Is there a meta post detailing all the mod powers?
 
@WheatWizard Yeah they do
I'm almost positive
 
What if two mods disagree?
then wouldn't they just open and close a question until one gives up
that doesn't seem like a great system
 
I think SE places more faith in mods than that.
 
@WheatWizard We usually have a conversation in our private chat room, but that would work too.
 
So you do have infinite reopen/close hammers?
 
4:21 AM
@DownWat am I doing something wrong? Make seems to be going crazy:
 
If there is a limit, I haven't encountered it yet.
 
No rule to make target '/include/ruby.h', needed by 'zlib.o'.  Stop.
the hdrdir is correct so no idea why it's generating this weird path
 
user165474
Maybe mods have 2^31-1 open/close hammers.
 
0
Q: Mould Left Like Right

HyperNeutrinoThere's an interesting operator (atom?) in Jelly which is an m with a dot over it. It's called mould left like right. Essentially, it takes in two inputs, where the left one is an array and the right one is an array of arrays; they have same number of total elements when flattened, and makes the ...

 
> edit all fields in user profiles.
That's scary
 
4:27 AM
@DownWat nevermind, figured out Makefile was broken so had to do some fixing
 
ah
Just rm the makefile
then reconfigure and make clean and remake
@Downgoat
 
@DownWat no I mean like makefile generator is broken
 
?????
rm the configure
 
it referenced $(top_srcdir) when the variable doesn't exist
 
then run autoconf
 
4:34 AM
already fixed
 
ah
so does the app work
 
still building
@DownWat ok gem works but now this is the error:
bundle install
/usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler (LoadError)
	from /usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/bin/bundle:6:in `<main>'
 
gem install bundler
 
@DownWat it's working! :D thank you thank you thank you thank you
 
You're welcome!
What port are you using?
 
4:48 AM
brb adopting duck in honor of Wat
@DownWat haven't gotten that far yet >_> :P
 
@Pavel That's right below delete accounts, so not that scary.
 
No, like
On what port are you running the application?
 
@DownWat well my config thing (the .service says 3001)
 
ah
doesnt seem to work
do you have it firewalled?
 
yeah, I have a reverse proxy
so 3001 will get exposed on :80
 
4:51 AM
I see
 
Apr 14 04:51:38 vihan.org systemd[1]: Started Stories App, the rails backend.
Apr 14 04:51:38 vihan.org ruby[27039]: /usr/bin/ruby: No such file or directory -- /usr/bin/rails (LoadError)
Apr 14 04:51:38 vihan.org systemd[1]: storiesapp.service: main process exited, code=exited, status=1/FAILURE
Apr 14 04:51:38 vihan.org systemd[1]: Unit storiesapp.service entered failed state.
does it not follow symlinks?
 
Does /usr/bin/rails exist?
 
yes
 
Make the line /usr/local/bin/ruby /var/www/api.vihan.org/stories/bin/rails
or wherever you have it
 
:OOOOOOOO IT WORKED
 
4:53 AM
actully can you add ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFqkJVt1wn2gynhuN+mcNG+84Gm+3/u6H2lNKiCYYra+MZTM1W‌​Q2HJy8b6grMxlER23+hJPoQ3b8JQjR/S0+8a7Eb3aaT+52HviINLB+pbRY07I8+I9zP7WmfcL8C+Z40UZ‌​HZMj2Pak8zXiJ4mWW+S+w6oG9ovyWycCB+I7lVTgTi2wtM/Ew1ySO0f2sVoPUeXTMfcpr6rHkStI0atms‌​7cyXikO3nIkr3yzJ7kTIfvjefK/nmvqxnxjI9rY3AnjP1byBU/q/wakdtRR6cShUxC7GpR+FozMFm9UBr‌​m1vUR74dfMHZYcqswCUgfzIytYX4M+EsGQQEBPOxavFOgjfvZ dmitry@DmitryE6410
@Downgoat What is the URL?
 
currently only on localhost, tryna figure out how to get apache to expose it
 
> TFW you think your computer doesn't bork and you realized you just finished the setup required to start actual work.
 
@Downgoat use nginx
server {
	listen 80;
	root /var/www/html;
	server_name *.reddit.dk0.us reddit.dk0.us;
	location ~ .* {
		proxy_pass 127.0.0.1:9999;
	}
}
That was my nginx config
 
what's the json to get schoool list?
 
> schoool
Same format as the user list mostly, I should make the change necessary to allow submissions, brb
 
4:57 AM
                      ActiveRecord::PendingMigrationError

Migrations are pending. To resolve this issue, run: bin/rails db:migrate
RAILS_ENV=development
oh hey they're instructions
 
well, cd into the directory and run that
 
Rails Error: Unable to access log file. Please ensure that /var/www/api.vihan.org/stories/log/development.log exists and is writable (ie, make it writable for user and group: chmod 0664 /var/www/api.vihan.org/stories/log/development.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
   (0.6ms)  CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
rails aborted!
ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database: CREATE TABLE "schema_migrations" ("version" varchar NOT NUL
oh no
 
your user
you have to be www-data
 
>_> sudo works too
 
> Once upon there was a por gaot and the gaot was turned upsidedown now we cal the gaot downgaot ;_;
wut
@Downgoat nooooo you just did a bad
 
4:58 AM
:O aww yiss it worked :D AMAZING
@DownWat likely dumb question: how to add a school?
 
actually let me fix the json, when I'm done I can allow remote json submissions
@Downgoat /schools
 
What are you two building?
 
downgoat's school project
 
@DownWat Can you delete that? It's borking chat's CSS
 
@DownWat what params does it take? POST req?
 
5:00 AM
POST json to it with {"name":"","description":""}
 
ah ok cool
 
although right now it will return CSRF errors
 
/stories/schools.json breaks :(
 
and you would want to run in -e production to enable caching and asset pipeline
@Downgoat Should be just /schools.json
 
Ik, I'll probably have to do some rewrite rules
 
5:02 AM
 
switching to nginx will break SSL, login, and a bunch of other services I run so I'll have to do it carefully and also when I'm not running on caffine
 
wut
 
^^ :O I had exact same reaction just now
 
All right
@Downgoat Pull please
actually dont pls
upsheep is invading
 
5:39 AM
0
A: Sandbox for Proposed Challenges

tsukumogamiWhich stall will be used Introduction In the building where I work, each washroom has 2 doors and somewhere between 5 and 10 stalls. After sometime, I realized that I and most of other people choose which stall to use base on 2 criteria, in decrease priority: The one with minimum number of oc...

 
Anonymous
@DownWat TNB is not a place to dump your stream of consciousness
 
PSA: DigitalOcean control panels are down. This means that you cannot access droplet or DNS settings.
@Mego there, is that better?
 
Anonymous
Much
 
Downwat and downgoat are so confusing D:
 
sorry
 
5:52 AM
There is something you can do about that. ;)
 
no, username is too new
 
The avatar alone would be a huge improvement.
And I'll happily eleven the name to something less confusing if you want to.
 
I mean, Christopher wasn't that confusing because the name was longer. But your name is the same length.
 
0
Q: Classification of geometry from set of data in array

user31995I want to classify data stored in an array into parallelograms. The data stored in the array contains the coordinates of the points. Some data may not be classified into parallelograms. After the parallelograms are detected the unclassified data should be removed from the array. Each point should...

 
And an upside down duck looks similar to an upside down goat
more or less
 
5:57 AM
I've got 4 upvotes this morning for an answer that I posted 2 days ago, I don't know what happened.
 
@Dennis Please eleven my chat profile
 
@betseg the challenge probably got bumped
 
ayyy
 
Done.
 
Thanks!
 
5:59 AM
Would you rather fight 1 downgoat sized upwat or 100 upwat sized downgoats?
 
OK, now DigitalOcean just returns JSON. -______-
 
6:20 AM
ayyyyyyy digitalocean is back up!!!
 
7:19 AM
0
A: Sandbox for Proposed Challenges

xnorDisplay a clock face code-golfascii-artkolmogorov-complexity Display the 12 numbers on a clock face exactly like this. 12 11 1 10 2 9 3 8 4 7 5 6 ...

 
8:10 AM
@UpWat You got the green wrong 0/10
 
8:38 AM
0
Q: Make a BJT interpreter!

SIGSEGVBJT is an esoteric language I am creating. It was inspired from transistors, the part which is used in every digital machines we use. Computers, Phones, Televisions, Everywhere. So, How do transistors work? They have 3 pins, Collector, Base, and Emitter. If there is electricity flowing in the ba...

 
8:49 AM
@ATaco your prettify-chat userscript breaks on this
 
Because of ^ I now have a horizontal scroll bar
And whenever I send a message, the page scrolls to the right
 
hi all
 
9:24 AM
there can't be complete ppcg silence!
 
@Lembik There isn't
 
0
Q: New contest type proposal: cross-codes

SIGSEGVCross-codes is making a crossword puzzle, but with codes. For example, We have a 10*10 (not constant, this means the size may vary for each contest) grid: .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... And your code is MY_CODE, yo...

 
9:37 AM
@ASCII-only phew!
 
10:00 AM
0
Q: Ping! *Pong!* Ping! *Pong!*

SIGSEGVMake two programs(or functions) which one outputs Ping!, waits 1 second, then runs the other one, and the other one outputs Pong!, waits 1 second, then runs the other one which outputs Ping!. Example program (Bash, assume file name as a and b) a: echo 'Ping!';sleep 1;./b b: echo 'Pong!';sleep ...

 
 
1 hour later…
11:05 AM
have we had a challenge to remove duplicates from a string?
so aabbbsss becomes abs
 
@Lembik Retina, 3 bytes: D`.
 
@KritixiLithos fails on aabbbsssaa ?
 
0
A: Sandbox for Proposed Challenges

Beta DecayExpand the Binomial code-golf math Challenge Given three numbers a, b, and n, you must expand (a + bx)^n in ascending powers of x up to x^3. Binomial Expansion The binomial expansion works like so: (a + bx)^n = a^n(1 + bx/a)^n = a^n(1 + n(bx/a) + n(n -1)(bx/a)^2/2! + n(n-1)(n-1)(...

 
@Lembik it works just as I expected it to. What was the expected result?
 
absa
 
this is tricky as I can't understand it but should this answer be marked the winner? codegolf.stackexchange.com/a/115239/9206
 
It outputs absa
 
I used the wrong link :)
9 bytes it is :)
 
Eyyy, we're HTTPS now!
 
now that the US ISPs are allowed to sell all our data :)
actually https is slightly pointless isn't it as the ISP can install a man in the middle attack
and there seems to be standard software for companies to do this with https
 
11:45 AM
1
A: Sandbox for Proposed Challenges

AnkoganitOne Expression, Many Values code-golfnumberarithmetic Using our familiar mathematical symbols: +, x, parenthesis, and any rational number, it's easy to create expressions that evaluates to some desired number. For example: 1+(2x3)=7, (1+2)+(3x6.5)=22.5 and so on. Boring enough. In this challeng...

 
@Lembik wait wat
 
12:07 PM
@Qwerp-Derp In the textarea, what should happen once the first line is full?
Wrap or scroll?
 
@TuxCopter What is that in reply to?
oh.. you missed the news that US ISPs can now sell all our personal data?
 
o_O
 
it's the idea of the new US president
or did you miss that companies man-in-the-middle https
and no one notices
call me mr good news :)
and many other similar articles
 
@Lembik How exactly do they man-in-the-middle HTTPS
 
@ASCII-only It's not complicated. news.netcraft.com/archives/2016/03/17/…
companies do it for reasons they claim are benign
 
12:19 PM
> A man-in-the-middle attack like this is generally not possible if the initial request from the customer uses HTTPS.
 
Solution: Usee HTTPS Everywhere extension?
 
is that from the slashdot page?
@ASCII-only I may not be expert enough but I don't see you can possibly stop it. I mean if the corporation can pretend to be any web site you want to visit
 
I don't trust extensions, I made an exception for Google Chrome Cast (made by Google), NetBeans thing (dunno whatლ(ಠ益ಠლ), deleted it just now), and Tampermonkey (for the ppcg graduation userscript)
 
@KritixiLithos ... Why don't you trust extensions
Not even uBlock Origin?
 
@Lembik That's from the netcraft website
 
12:23 PM
@KritixiLithos ah ok.. I think the situation is worse than that pages says
I read another article that explains that but I can't find it right now
 
@ASCII-only Once upon a time, I clicked on a Trojan link, it showed an imitation of youtube (but not real) and asked me to install a Chrome extension to view the video. I closed the tab almost immediately
 
worth reading
it's all about the color green :)
 
@KritixiLithos Well yeah, but extensions almost always don't do that, it was probably caused by a virus on your computer
 
basically we are all doomed :)
 
It wasn't on my computer, a friend "sent" me a link and I clicked on it. Soon after I clicked it he told me not to click it and that that was not him.
 
12:28 PM
@KritixiLithos Well it shouldn't be hard to identify trojans
 
I once went to a torrent site only to discover that the entire page was a javascript piece of trickery forging an html page :)
 
> torrent site
@Lembik trickery?
 
go on...
don't you download linux? :)
 
what do you mean by that
@Lembik ... Yeah, but only using the torrent from the official website
 
there wasn't really an html page. It was an image of one with some javascript making it look like you were interacting with html and doing evil things in the meantime
@ASCII-only that is more sensible
 
12:31 PM
@Lembik wow (wouldn't it have been easier to make it actual HTML though)
also, according to the links, if you don't have someone else's root CA installed then you're fine (basically if it's not a company laptop/desktop)
 
@ASCII-only I think it depends on whether the remote website uses EV .... is that right?
in theory your browser should warn you though
I wonder how well they do in practice
 
@ASCII-only While this is true, there are also exploits and malware that can install a fake CA into your machine.
 
what happens exactly if they don't install a fake CA on your machine?
 
What's a CA?
Company Admin?
 
certificate authority?
 
12:47 PM
@KritixiLithos installs new company admin on laptop
 
:)
there a lot of similar stories
you don't need to be running a company computer
 
0
Q: Self-answering kick-starts answers, or discourages them?

DaveMy latest question was well received but has sat idle for a few days now. That's pretty much what I'd expect, since it's quite involved, but I was hoping it might get at least 1 answer over the week. I have my own solution which I created before posting the question to check if there were any go...

 
@Lembik If they don't install a fake CA, you'll get some sort of certificate warning because the certificate isn't trusted. The exact methodology will vary by browser.
 
ok but nokia seems to have avoided that somehow
in the article I pasted
 
Nah, that just means that they've got the browser to trust the certificate.
If you use some other browser, it wouldn't trust that certificate. But, you wouldn't be using their proxy anyway, so /shrug
 
12:59 PM
@ASCII-only at least I tried
 
@AdmBorkBork interesting
@AdmBorkBork The internet really does seem to claim that only EV saves you. See eric-diehl.com/does-https-prevent-man-in-the-middle-attacks
so in conclusion...it seems that if the remove website supports EV you should expect to see some green :)
the browser won't actually complain about the mitm
 
Well, EV doesn't prevent mitm, but it can give an indication that it's happening.
 
If you can't stop TLAs from spying on you, do you really want to know they do?
 
@JanDvorak I think it was more the ISP we were worried about
@AdmBorkBork right.. but without EV you don't even get the warning it seems
ISP has three letters of course :)
 
@AdmBorkBork EV isn't supposed to prevent anything, but give proof of company ownership and location. EV refers to the validation process, not anything security related. It has the same security as a standard TLS cert.
 
1:10 PM
@mınxomaτ the question was whether you can know if there is a mitm attack on your https communication
and/or more accurately, if most normal users would know
 
I know. I just wanted to clarify that EV has no purpose other than to confirm that your company a) exists and b) can be seen in public records (such as phonebooks).
 
oh I see
so what's the answer to the question :)
 
@Lembik It's not even a warning. It's more like "hey, if I go to my bank's site on this computer, I get an EV cert, but if I go on that computer, I don't."
 
can the ISPs mitm us all without our noticing?
@AdmBorkBork right!
 
@Lembik Of course, many do. Almost all MITM DNS lookups.
 
1:12 PM
DNS isn't https though.. I mean read everything that is sent and received
 
@Lembik Does that matter? Forging DNS allows you to spoof any HTTPS site.
The faux website won't work outside of a forged DNS zone, but inside it will be indistinguishable.
 
what about EV though? Isn't that meant to warn you you are not really looking at microsoft?
 
hello
 
EV provides no further security than regular certificates
EV just says "This is from X company, who I verified has public records"
 
Since company lookup isn't standardized (like DNS lookup), not likely. You'd simply download the real EV cert from MS.com and make your attack server announce it. It'll show up as broken unless the DNS is forged, too.
 
1:16 PM
Why can't I join Stack Overflow with my SE account as I did with other sites?
 
What's the error?
 
@mınxomaτ I am not sure that is right. What about the CA hard coded into the browser?
 
For SSL only the cert and FQDN matter, not the IP. No problem there.
Unless the site implements DNSSEC
 
2:04 PM
I've just seen a title "redshift combine two queries". That got me thinking, what would it mean to red-shift a string?
CMC: bit-interleave two strings. You may assume they are valid ASCII-7bit and of the same length. For example, "ab" + "cd" = [0b0110_0001, 0b0110_0010] + [0b0110_0011, 0b0110_0100] = [0b0011_1100, 0b0000_0111, 0011_1100, 0b0001_1010] = "<\a<\x1A"
 
2:41 PM
0
Q: Make me an Easter egg!

SIGSEGV No, not ^^vv<><>BA kind of Easter eggs, real Easter eggs which we paint them. Here is an (awfully drawn) egg. __ / \ / \ | | \____/ In easter, we paint them with patterns. Like these: __ /--\ /----\ |----| \____/ __ /%%\ /%%%%\ |%%%%| \____/ __ /~~\ /~~~~\ |~~~~| \____...

 
2:51 PM
@UpWat can Nginx proxy a subdir to a localhost port at root?
 
3:08 PM
@NewMainPosts it's a pretty trivial challenge but the kind that HNQ quickly
sigh
@NewMainPosts @DJMcMayhem imma give this a shot in V, looks like the kind of challenge that would be good for that
well I'll try in vim first
 
0
Q: Iterative Topological search (DFS)

newToScalaHow can an iterative dfs topological sort be accomplished on a directed acyclic graph? Here is a vertex class Vertex { List<Vertex> adj = new ArrayList<>(); char val; Vertex(char val) {this.val = val;} } A recursive solution is straightforward and looks like this: List<Vertex> sortR...

 
@Riker Nice! Good luck!
 
pls send halp
 
Keep calm and vimtutor
 
vimtutor is simple
@KritixiLithos right now I'm trying to figure out how to overwrite and then paste a character
think I've almost got it
(this is gonna be ridiculously long though :()
 
3:20 PM
That emoticon though :()
 
yes
lol I have like 10 vim tabs open in chrome
 
3:31 PM
@Riker I don't see it anywhere on HNQ
 
@Riker sweet, feel free to ask questions
@Riker What exactly do you mean?
 
@DJMcMayhem What is your name?
What is your quest?
What is the capital of Assyria?
 
@AdmBorkBork 1) David Jimbob McChaos. 2) To be the greatest code-golfer in the land. 3) I have no clue. Can I use Google?
 
0
A: Sandbox for Proposed Challenges

SIGSEGVLow-poly fractals code-golfgraphical-outputfractal I define 'Low-poly fractal' as this. Low-poly fractal L1 is a equilateral triangle. for Low poly fractal Ln, Draw Ln-1, then for each triangle, draw a line which connects each nodes of the triangle to its median. You will be given an integer...

 
@ConorO'Brien I'm not going for golfy. In the end I went with the for-loop since I'm using a shitty JS knockoff that doesn't actually have filter
 
I know. :)
I actually just saw that for the first time recently
 
Oh nice.
 
I should really work on Crayon more, it would be decent at that easter egg challenge
 
Carrot worked well for that challenge... but there was a stupid bug with the website that did not render leading spaces
So I had to mark my answer non-competing
@ETHproductions Does Crayon need to escape slashes?
 
Oh, that's too bad
@KritixiLithos Nope, it uses backticks instead of backslashes for the escape char
I thought about this in advance ;)
I actually have about a month's worth of improvments just sitting in my local clone of the repo, I should finish up and push it sometime soon
 
3:55 PM
@isaacg I think one of your bounties without a deadline may have been fulfilled.
Also, PPCG seems to have HTTPS redirection now. YAY!
 
Crayon's on node, right? So local Crayon programs can be run on the command-line instead of requiring a website to run the JS?
 
@ETHproductions That's the same with PowerShell, which works great until you want to Markdown it. ;-)
 
@ETHproductions Isn't it hard to color an egg with a crayon, though?
@AdmBorkBork Why? Just use triple-backticks
 
Yeah, but remembering to use triple-backticks is the tricky bit
 
Or you can use <pre><code>, but then you have to escape < with &gt; or &gt
 

« first day (2267 days earlier)      last day (2562 days later) »