« first day (2268 days earlier)      last day (2590 days later) » 
00:00 - 20:0020:00 - 00:00

8:05 PM
@Mendeleev ...except it's not considered English
 
@LegionMammal978 Yeah true, many people have that misconception. Still titin though
 
The longest (non-coined) English word would be antidisestablishmentarianism
 
Also, if you look at his chin at the beginning and at the end, he grows a beard over 3 hours
 
lol, you're right
 
@Downgoat Look up ActiveRecord and JBuilder, add a new file in the app/views/stories, make it return what you want. Use the other .jbuilder files as examples.
Add a new route in routes.rb.
It should be really simple, you just chain together collection method calls
like Story.where(school_id: params["school_id"].to_i) returns stories by school, where school id is specified in query string ?school_id=1 or whatever
 
8:09 PM
Huh, the video cuts around 2:09:20
Looking at the clock, it looks like they paused for a minute to mess up the flower :(
And another time around 1:05:00, for longer
 
@Mendeleev is it possible to do with SQL? instead of filtering results, as app scales I don't want it to start choking up processing larger requests
 
And at 13:30, too
 
@Downgoat This does SQL internally
 
huh ok cool
 
8:29 PM
:/ just realized app vulnrable to XSS :(
@Mendeleev can I add another item to a "story". i.e. add an "overview"
 
@Downgoat Like another field/column?
 
yeah
 
Sure, cd into the app directory, run rails generate migration AddOverviewToStories overview:text and rails db:migrate
Won't show up on the web forms though
you'll need to add that yourself
 
@Mendeleev ok awesome thanks
 
8:41 PM
(I have no idea why this was in my recomended)
 
@Downgoat yeah Rails is mostly easy like that
 
> The document name you requested (/p/stories/story) could not be found on this server.
-1 it's borked
 
0/10 doesn't load schools
 
@Downgoat This page doesn't very knice
 
8:51 PM
@Downgoat I feel "Welcome. What would you like to do?" should be two sentences.
Also, I'd like to know what the site is about at all, so maybe a larger blurb?
 
I can't reach the stories page because no schools load @Downgoat
 
@TuxCopter I love how it actually ends with "I CAN"T DO ITTTT"
@TuxCopter mine is full of planes crashing, tf2, and ow stuff
 
@Riker Ow.
 
the plane crashes are all flawr's work
the tf2 and ow are because I enjoy both
 
@Riker “planes crashing” what did flawr do to you
 
9:00 PM
posted so many links to planes crashing in TNB that like 4 months later they still show up
I've watched at least a hundred videos in those 4 months
but alas
I cannot escape the planes
 
well, I still get Pewdiepie in my recomended yet I didn't watched one of his video since 1 year
 
lol
I've watched like 1 or 2 of his vids, didn't appeal to me
@TuxCopter right now the sidebar is full of men at work/men without hats, due to me trying to play music earlier
btw, @Downgoat, I did really like the UI for that list of stories page
the one I gave feedback on
it was pretty nice
 
I keep getting various electronic music in my recommended, even in unrelated videos
 
lol
 
In exactly one month I will have been on PPCG for 1 year :D
 
9:11 PM
congrats :D
 
I like man mkswap:
       -f, --force
              Go ahead even if the command is stupid.
9
 
lol
 
I love the fact that true.c is 80 lines, yes.c is 128 lines and false.c is 2 lines.
 
Doing nothing unsuccessfully appears to be easier.
What troubles me are the sizes.of the resulting executables. tio.run/nexus/bash#@5@coqCflJnHVZ6soJusUFJUmqpQmVqskJaYU5z6/z8A
 
...wow
 
9:24 PM
That's what happens when you include the entire standard library in a program that just returns 0...
 
Why not write it in assembly?
 
What's the point? Saving 32 KiB of disk space?
 
yeah
  ; tiny.asm
  BITS 32
  GLOBAL _start
  SECTION .text
  _start:
                mov     eax, 1
                mov     ebx, 1
                int     0x80
 
Hardly a priority.
 
  $ nasm -f elf tiny.asm
  $ gcc -Wall -s -nostdlib tiny.o
 
9:32 PM
There's no advantage to doing it in C
 
@Pavel portability™
 
Now do that again for every architecture Linux supports.
 
@Dennis It's a trivial program, would be pretty easy.
 
So? It's hours of work to save 32 KiB.
 
> hours
Would be plenty useful for embedded systems
 
9:34 PM
So, you need a version for x86, ARM, PowerPC, what else?
 
I think most embedded systems don't use Glibc
 
@Pavel MIPS, 68k? IBM systems?
 
That's still not that much.
There aren't that many architectures.
 
Actually there's a crapton en.wikipedia.org/wiki/…
 
@Mendeleev If space is that important, you simply don't include true. It's a shell built-in anyway.
 
9:36 PM
@Dennis wait, it is?
 
Yes.
 
O_o
 
@Mendeleev Most of those share a common instruction set with several dozen others
 
I replaced the thermal paste in my laptop and idle CPU temps dropped from 85°C to 47°C
 
I don't think that's how thermal paste works
It probably had more to due with the fact that you likely dusted it out at the same time?
 
9:46 PM
@Pavel No
The old thermal paste was hardened
 
Ah, it was just really shitty thermal paste.
 
It also was excessively applied, I had to spend 30 minutes and a lot of ArctiClean to get it off of the CPU's surface mount capacitors
I had to remove the CPU even
@Pavel It was probably good thermal paste... in 2010
 
Thermal paste lasts longer than that. If it was the original paste in your laptop, it makes sense, I suppose.
 
Yes, it was original.
I don't see myself running out of thermal paste in the next 10 years :)
@Pavel Do your parents nag you about your future?
 
Yeah, of course
 
9:51 PM
Yeah, mine are saying that if I don't finish pre-calculus in 9th grade, I would be a janitor somewhere (???)
 
Hey, some janitors are really good at math. I knew one named Will Hunting who was basically a genius.
 
@Geobits I thought you went to Geobits Technical Institute, not MIT? :P
 
10:11 PM
Both
 
wow nice
@HelkaHomba yeah, I'll add a blurb once I figure out a website name
 
@Downgoat ^
The icon is borked, not fixed by refreshing.
Actually nvm <c-f5> fixed
 
10:27 PM
random shower thought: French people are probably confused as to what a "with port" is
 
why?
 
aux=with
afaik
 
I thought usually with=avec
 
@Mendeleev As in "I eat my cheese with port"?
 
Trivia of the day: Use curl -s google.com|grep -Po '\w{20}'|perl -lpe '$_=unpack"B*"' to get a pseudo random fixed-length bitstream seeded by Google.
 
10:29 PM
@Mendeleev you mean an "at the ports"
 
@mınxomaτ How does it work?
 
I guess
 
@Pavel Google spits out a UUID, convert it to bits.
 
oic
 
@mınxomaτ How do you know it's random?
 
10:30 PM
google.com is generally static, which is why I was confused
 
The UUID changes with every request.
 
and not incremental
 
@mınxomaτ hm :/ for me it outputs:
googleg_standard_col
GJ_yWLzxKYXm0gKrjryA
googlelogo_white_bac
kground_color_272x92
 
I could run an ent, but I don't want to get banned.
 
For me it quietly does nothing and exits with status code 0
 
10:31 PM
turbo@dalek:~/Documents/cellar$ curl -s google.com|grep -Po '\w{20}'|perl -lpe '$_=unpack"B*"'
0101000001011010010111110111100101010111010011010011011101001111010010110111000101011111010100000101100001110011011110010100111101110001010010110100000101000111
 
Then again I'm currently using WSL
 
@mınxomaτ What is an ent?
 
Smart people of TNB: Is the formula for gravitational potential energy just Height * Mass or is there another component?
 
@Mendeleev A set of statistical analysis tools for PRNG.
 
@mınxomaτ ah
 
10:34 PM
@Pavel Unlike bing.com or yahoo.com... I hope google stays clean
 
@Pavel mass * grav_speed * height IIRC
 
duuuuur forgot g
ty
@HelkaHomba mwahahaha doodles
 
@Pavel Uh no, google.com is not at all static. It uses UUID to track redirects to specific translations.
 
Right, I understand that now.
 
10:36 PM
@mınxomaτ The page barely changes visibly besides doodles and login status. I would have assumed it was mostly static too
 
The document has moved
<A HREF="http://www.google.de/?gfe_rd=cr&amp;ei=SqDyWJ-oMazPXvTgq6AO">here</A>.
Notice the ei parameter.
@HelkaHomba It is mostly static, however, it isn't static (as in can be cached without changes for a longer time),
I'd be interested to see what it looks like in the US
 
How is yahoo.com the 6th most visited website ._.
 
China? Finance news?
Old people's e-mail?
 
yes
 
China has their own search engine
@mınxomaτ Like, you want a screeenshot, or..?
 
10:44 PM
Yahoo is pretty big in China. However, Yahoo China is also involved in some major censorship programs.
> Yahoo!, along with Google China, Microsoft, Cisco, AOL, Skype, Nortel and others, has cooperated with the Communist Party of China in implementing a system of Internet censorship in mainland China.
 
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
@mınxomaτ I think ^ explains why it wasn't working.
 
Yep
 
curl bing.com returns nothing.
 
11:14 PM
is anyone here familiar with cpp?
 
C preprocessor?
 
The music I'm listening to right now has a soundeffect in it exactly like getting pinged in SE chat.
 
@Pavel wow
what is it
 
I don't know, I'm listening to the radio.
I know, how ghetto.
 
11:19 PM
use shazam or whatever
 
@Mendeleev wait how do I create story again
 
@Downgoat POST to the /stories/stories
 
:/ doing and not working
 
here try this:
create a subdomain for the app
then delete the lines I posted from the configuration files
then expose the port to the internet
 
11:21 PM
then access the app through the subdomain
Or, even better, have apache proxy the subdomain to the app
something like stories.api.vihan.org
@Pavel Merge conflict?
 
@ConorO'Brien Solution: just use more #defines and all will be well
 
@Pavel What about curl -L bing.com?
 
@Dennis A whole bunch of stuff that comes with a complete webpage, but that's not intresting to the discussion. curl -L google.com does something similar.
 
@Mendeleev hm, how to avoid XSS if I need to display HTML rich text
 
@Downgoat huh?
 
11:32 PM
@Downgoat Replace < -> &lt;
 
it automatically XSS prevention
 
How
 
@Pavel then everything is plain text
 
unless you .html_safe it, it automatically
@Pavel Rails magic
 
Cool
 
11:33 PM
@Mendeleev wait what how what
 
@Downgoat ye
 
@Pavel That not even remotely sufficient.
 
rails is like best thing ever
 
@Dennis what could people do?
@Downgoat This.
 
@Dennis Replace all the & with &amp; and < with &lt;, what else is special in HTML?
Optionally replace spaces with &nbsp;
 
11:34 PM
@Downgoat erm... weren't you hating on it a while ago
 
@Mendeleev If you can write to an HTML attribute, " onload="malicious code" ignore=".
 
@ConorO'Brien wait wat where
 
@Dennis ah
 
2 days ago, by Downgoat
Pls no rails is evil
 
We all use document.createTextNode instead of replacements right?
 
11:35 PM
We all have to change our minds sometimes.
 
@ConorO'Brien everyone has their sheep moments
 
10/10 hoof-spelling.
 
@Pavel At the very least, you need angle brackets, quotes, ampersands, and null bytes.
 
@Pavel It could of spelt better.
 
11:38 PM
Quotes? I thought that if they aren't inside a tag, they mean nothing.
 
3 mins ago, by Dennis
@Mendeleev If you can write to an HTML attribute, " onload="malicious code" ignore=".
 
@Downgoat HTML entered by the user?
 
Apr 11 at 2:32, by Conor O'Brien
Language design challenge! You have one week (starting from the time I post this message) to design an esolang. The esolang must use only the numeric characters 0123456789. Other characters should be ignored. Reply to this message with an link to an implementation and specification of your language. After a week, I'll select a question at random. The shortest answer on the question in a submitted language wins a 150 bounty. The winner will be selected 1 month after this challenge closes.
 
@HelkaHomba yeah
 
friendly reminder^^
 
11:38 PM
Oh, PPCG main now directs directly to HTTPS on mobile now. \o/
 
:D
 
@ConorO'Brien I have rnum
 
We presently have no interesting submissions to the above challenge.
 
I don't really care about security, I don't have anything worth securing.
 
@ConorO'Brien implementation: s=>eval(s.replace(/\d\d/g,s=>String.fromCharCode(+s)))
 
11:39 PM
@ConorO'Brien How exactly do you select the challenge.
 
@ConorO'Brien Can the random question be, like, anything?
 
@Dennis Randomly and arbitrarily.
 
Ninja'd >_>
 
@Downgoat Use redcarpet for markdown support.
 
@Downgoat use markdown instead
 
11:40 PM
Thanks, that explains absolutely nothing. >_>
 
@HelkaHomba ninja'd
 
Ninja'd
 
shush
 
Ninja'd twice
 
@Pavel double ninja'd
 
11:40 PM
That's stretching it.
 
Triple ninja'd!!
 
@HelkaHomba We have the same fate, my friend :p
 
@Dennis I suppose it would be based on the esolangs submitted. I wouldn't choose something that would be too easy, but something that would give the esolangs a chance to shine. in the case of the only submitted one, there is no place where it could shine, except maybe on a numeric restricted source problem
 
So not at all random.
 
Yeah I made it as a quick and mostly not-serious submission, just to see what other languages would compete with it.
 
11:41 PM
well yeah (To dennis, it's not ping worthy)
 
Has anyone submitted a language that isn't transpiling numbers to a different language yet?
 
I highly doubt that I would be able to win.
 
@Pavel Yours is the only submission.
 
I have a submission?
 
I should make jellynum (jelly in numerical form)
 
11:43 PM
er
my mind is tired
 
@ConorO'Brien 99 where space becomes 4 and newline becomes 0.
 
@Mendeleev no.
 
@Riker y
 
because it's stupid
 
@Riker It would win
 
11:44 PM
indeed
 
wouldnt' stop being stupid though
its' really unoriginal
 
You also made White-Space-Fuck, which basically puts you at your cap for stupid languages this year.
2
 
@HelkaHomba can't this is not like a programming thing
 
@Riker I am slightly doubtful about that apostrophe placement
@Pavel it's called wsf
@Downgoat so?
I use Markdown for writing all sorts of stuff
 
@Downgoat what if people inject malicious JS into their html
 
11:46 PM
I can't expect typical high school people to know markdown
 
@Downgoat It's literally plaintext++
 
@HelkaHomba I'll use an intermediate rich text format likely
 
@Downgoat MD is way easier than HTML...
 
^
 
nonnonononono
 
11:46 PM
all they need to remember is two newlines instead of one, and words and words
 
it is WYSIWYG editor
 
then also #headings
 
mardown?
 
@Downgoat no
 
not always
 
11:47 PM
@Downgoat but you do expect them to know html... You could do something like skype/reddit formatting, most teens are familiar with one of the two
 
@Mendeleev wait what it is, what
 
use markdown wysiwyg
 
that is kinda an oxymoron
 
@ConorO'Brien Reddit == markdown.
 
@Mendeleev hr and quotes
and code
 
11:47 PM
right, there's the point
 
50 secs ago, by Downgoat
it is WYSIWYG editor
 
@Riker huh?
 
other md things
 
hr is ---. quotes are > and code is `code`
 
11:48 PM
I think it can output a JSON format which I can convert to HTML
 
@Downgoat I can't use that, no schools are in the list
 
@Mendeleev yea
> all they need to remember is two newlines instead of one, and words and words
I was adding those to the list
 
@Riker yeah but people don't usually use hr, code or blockquotes
 
try California High School
 
ah
 
11:50 PM
@ConorO'Brien now it's loading forever
 
@HelkaHomba ^
 
at least it does something ¯\_(ツ)_/¯
 
> Uncaught TypeError: Cannot read property 'addEventListener' of null
 
Added "Test High School" for testing porpoises
 
@Downgoat markdown can do all those things in the editor except embed videos I think
Oh, and justification
but ehh
 
11:52 PM
@HelkaHomba again, this is targeted towards non-programmers so I don't want to use any format that a sheep couldn't understand
 
Too much formatting gets annoying. I think that's why SE doesn't allow custom font colors
 
I think I disabled colors, do you see them?
 
But if they can only see the WYSIWYG side why does the format matter?
 
@HelkaHomba well if it outputs HTML, that means they could perform XSS
not through the editor but if they POST directly to the endpoint
 
How about you convert the HTML to Markdown, and then convert the Markdown back to HTML. Markdown has no scripts, so you know XSS is impossible!
 
00:00 - 20:0020:00 - 00:00

« first day (2268 days earlier)      last day (2590 days later) »