« first day (973 days earlier)      last day (3990 days later) » 

12:02 PM
ffs
¬_¬
just had to break into my own house
 
stop right there, criminal scum!
 
me an misses were going to cut front hedge... she thought it was a good idea to slam the door shut
 
12:12 PM
offs
 
12:27 PM
lol boost not working
Error 1 error LNK1104: cannot open file 'libboost_date_time-vc110-mt-gd-1_53.lib' C:\Users\HP\documents\visual studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\LINK ConsoleApplication1
nvm
\stage\lib instead of \libs solved
 
Cool, seems like we also have STL on SO now
 
user142019
I'm thinking of buying Programming Elixir.
 
@rightfold sounds like one of those lollipop potions
 
user142019
It's a book in the real world. :v
 
lol, yes I thought so
 
12:41 PM
so
@rightfold oh, tell me more
 
user142019
What do you want me to tell you about? :v
 
user142019
I like Jinja2 because it's simple and consistent and it does what you want it to do.
 
user142019
And the syntax is nice. It's not just putting Python code into some text.
 
ok but can I use it like php?
because googling right now shows that basically php has no alternatives
 
user142019
@BartekBanachewicz No.
 
12:46 PM
fuck me.
 
user142019
You don't want that. It's terrible.
 
user142019
Don't mix logic and HTML generation.
 
@BartekBanachewicz There were since 2.0 so I don't know what's outdated there.
 
@CatPlusPlus maybe that's just ubuntu-server-specific
@rightfold but it's the simplest way to do shit :v
i mean cool I can write full-feated django app
 
user142019
You do your data thing in Python and then you call a function that renders the template and you pass your data along with it.
 
12:47 PM
Nobody does what PHP does forget about it.
 
uh but that needs a shitload of configuration still
 
Configuration of what?
 
***GI
I can't web. I want a page that displays numbers from 1 to n, where n is HTTP GET parameter
what do I do?
 
user142019
def my_request_handler(request):
    post = db.find_post(request.parameters['post_id'])
    return render_template('show_post.html', post=post)
 
To run Django apps with Apache you just need mod_wsgi.
 
12:49 PM
@rightfold hm that looks nice and much closer to what I need
 
user142019
// Much better than this unmaintainable ugly shit:
<?python
post = db.find_post(request.parameters['post_id'])
?>
<h1><?python= post.title ?></h1>
 
I know how to use django.
I was wondering if there are even simpler alternatives
but apparently the whole web community is divided into PHP and everything else, where everything else uses a shitload of stuff that I don't really need
 
PHP is not in the community.
 
it is, no matter what you say about it
 
Xeo
12:50 PM
@AndyProwl He's been here for a while, but he doesn't answer much.
 
and that's because there are no simple alternatives
 
Define "simple".
 
I know that mixing logic and templates is unscalable as fuck
@CatPlusPlus but only in php you can just put a file into the folder via ftp and it will work
no configuration, no nothing.
 
You still need to have PHP configured.
You can do CGI with Python if you really really want.
Hell, you can do that with C.
 
I don't know what I want.
 
12:52 PM
@Xeo Yes, I noticed. But he posted two answers in the last few days
 
that's part of the problem.
 
Then you want Django. :v:
 
perhaps we will see some more meows and purrs from now on
I wouldn't mind
 
probably, yep.
 
user142019
What the fuck.
 
user142019
12:52 PM
Why can I not buy the paper book without the ebook.
 
especially that I already know a bit about django
 
Also PHP is anything but simple.
 
6 mins ago, by Bartek Banachewicz
I can't web. I want a page that displays numbers from 1 to n, where n is HTTP GET parameter
 
def view(request):
    return HttpResponse(request.GET['n'])
You don't even need a template woo
 
you are right, kind of.
so last thing I am uncertain of and wanted to ask
 
12:57 PM
Hell you can add strings together to create HTML in the view if you want to.
 
> We recommend using a separate Web server – i.e., one that’s not also running Django – for serving media. Here are some good choices:
 
It'll be just as shitty as PHP!
 
why not just pass the html as a GET parameter :3
 
@BartekBanachewicz Unless you're deploying a public app for thousands of people, not a concern.
 
@CatPlusPlus okay.
 
user142019
12:58 PM
require 'sinatra'

get '/' do
    (1..params[:n].to_f).to_a.join ' '
end
 
user142019
I could write a similar DSL for Elixir.
 
user142019
Because macros rock!
 
user142019
I prefer Bottle.
 
@BartekBanachewicz roll your own CGI system :P
 
user142019
1:11 PM
Use Node.js. It's web scale.
 
@CatPlusPlus is it simpler than django?
@thecoshman no
 
user142019
@BartekBanachewicz It's a library that routes HTTP requests to functions and supports some stuff like templating and sessions, basically.
 
sounds nice
 
@BartekBanachewicz ah go on :P
 
user142019
Bottle is similar and supports Python 3. I'm not fully aware of the differences between Bottle and Flask though.
 
user142019
1:13 PM
I know Flask has better support for dividing your application into multiple modules through Blueprints, but I didn't have much problems doing something similar with Bottle.
 
Flask is actively developed
last commit was 2 days ago
I think I can give it a shot.
 
user142019
Flask is very nice but I want Python 3 support. :<
 
user142019
But they're working on it.
 
i don't know python
so I guess I don't care
 
oooh strong armour :D
 
1:16 PM
@rightfold Lots of things don't support Python 3 :( That's why I am still using python 2.7.2
 
28
Q: What are the correct answers to The Frog's questions, and what is the reward when I get them all correct?

galacticninjaI recently encountered The Frog in the Swampy Swamp: "Hello. I'm The Frog. I can provide you candies, and lots of things. I know how much you love candies. But I feel alone in this swamp. I'd like to play with you before. If you answer my questions correctly, the sweetest sweets will be yours....

 
user142019
Django supports Python 3! ^_^
 
@thecoshman The candy game? :P I just got a map to a sorceress's hut or something
 
user142019
> You have 21265 candies!
 
user142019
> You have 905090 lollipops!
 
1:17 PM
Flask looks really cool
 
You have 406 candies!
You have 2 lollipops!
:(
 
> You have 47080 candies!
You have 689885 lollipops!
 
Xeo
> You have 1753916893566 candies!
 
eat all the candies!
 
Lp planted : 24
Production : 24 lp/hour
Yay! :P
 
Xeo
1:19 PM
I'm tempted.
 
@Xeo you not got the converter?
 
Xeo
But I need to convert them to lollipops first.
@thecoshman I do.
 
     ___________________   ___________________
  .-/|   22  ~~**~~      \ /      ~~**~~   23  |\-.
  ||||                    :                    ||||
  ||||    Turtle potion   :  potion !          ||||
  ||||  ----------------- :                    ||||
  ||||  A turtle !        :  When you will be  ||||
  ||||  A turtle !        :  a turtle, you     ||||
  ||||  Do you want to    :  will resist a lot ||||
  ||||  become a turtle ? :  more to physical  ||||
  ||||                    :  damage. But you   ||||
 
this is a surprisingly fun game :P
 
Xeo
And I have it running all the time.
 
1:20 PM
Do you want to become a turtle?
 
imp scroll makes the stairs really easy :P
 
Xeo
D: hey, who unpinned the candy box message
 
@Xeo dead
he sulked about there being too many pinned things
¬_¬ if someone suggests do-ownering him... you have my vote
 
moments gone
 
user142019
1:23 PM
> You have eaten 29023 candies!
 
@Doorknob It was pinned and then I unpinned it.
along with many other messages that completely should not be pinned
 
@DeadMG yes I know
3 mins ago, by thecoshman
he sulked about there being too many pinned things
repin it please? The room is even named after it! :P Or put the link in the room topic
 
no.
 
ok :(
 
1:27 PM
room topic changed to Lounge<C++>: Unpin all the crap [c++] [c++11] [c++-faq] [no-helpdesk]
 
Xeo
Puppy is just sulking because he sucks at Candy Box
 
eh, I'm happy with the progress I made
you're just sulking because mommy won't let you paint every room in the house bright pink
 
Xeo
lolwut
 
I've always been pretty ruthless about pinned messages
 
user142019
I got a horn!
 
1:38 PM
Does Candy Box run on Android at all?
 
@MartinJames um, it's JS based, so I suppose so
 
@Doorknob OK.... charging phone.... :)
 
can brewing fail? is it random chance that you actually get something afterwards?
 
what
300000 lollipops :O
 
derp, follow instructions properly :P
 
1:45 PM
that sorcerer is expensive
 
Oh - Anne is playing that silly game already. Aparrently, there is also a 'Candy Crush Saga', but it needs flash which is not loaded on her kindle fire.
 
user142019
I love Elixir.
 
user142019
It's the only language I ever wanted.
 
@MartinJames your misses?
and btw, we are not playing that stupid candy crush saga
this is a game for men
 
@thecoshman Yeah. She seems to know more about gaming than I do, (not particularly surprising:).
 
1:53 PM
o_0 how are you supposed to use seeds? I know I can plant them mid quest... should I then leave the quest or something?
 
nooo I hit refresh accidentally and I forgot to save for a while :P
 
lol
 
I no longer have a silver sword -_-
 
user142019
> Let's write some code that calculates the Fibonacci sequence. I'm sorry, everybody does that.
 
@rightfold o_0
 

« first day (973 days earlier)      last day (3990 days later) »