« first day (1285 days earlier)      last day (3658 days later) » 
01:00 - 17:0017:00 - 00:00

5:15 PM
Forgotten how much I dislike Lon.Vic.
At least there's a semi-decent Italian not too far
Love London - my fav. city in the world thus far (probably biased) but hate it at the same time
 
@JonClements Makes sense... capitals tend to make you appreciate them, and hate them thoroughly at the same time.
 
Spent a lot of time in the smoke... so know the nice "little places"
 
We love visiting London, in part because we get to go home afterwards.
 
@Martijn completely agree - don't want to "reside" here again
You know me - you've seen the sat overview of my last place...
London is just expensive
I love the little walk up the field to my house kind of thing
 
Tea time
 
5:30 PM
600k for maybe a one bed flat, or a 5 bed with land 25 mins from the city. .. etc...
 
How are the prices in the more rural areas? Just wondering
 
See ^^
The south east is the hub
 
Ah 600k for the rural areas for a 5 bed with land? That's not cheap at all... at least translated to our currency and compared to prices here.
 
Rural as in "close"
 
and what about the 2 hours away villages?
 
5:35 PM
If you move further out it's not exactly pennies but much cheaper
 
Hmmm let me calculate that... can you find a place for say... ~180k pounds outside of the big cities?
Actually the calculations are not fair, as they don't take into account the average salary in the UK. If the salaries in the UK are say 10k pounds/month on average and the taxes are not too bad, then those prices are not very expensive. However, if they are more like... 3k pounds/month, then it is pretty expensive.
 
5:51 PM
Depends how much you earn
 
I am returned...WITH BROWNIES!
 
Last year for me wasn't great - so paid only 40%
 
I want a brownie now.
My sister made some for Easter dessert, but they were diet! blech!
 
Chocolate and hazelnut...
 
My favorite are the ones with chocolate chips in
 
5:54 PM
 
@Terfin pretty much except they're still quite gooey.
 
Cause they are fudge brownies!
 
Gooier the better. I would only eat the batter if I didn't think it would make me sick
 
Geez, I am hungry now.
 
You can get cookie dough in a tube at the grocery store. I wonder if they have brownies in a tube?
 
5:56 PM
Possibly not as it has eggs in it :(
 
I should have posted this instead:
 
Are you suggesting that the cookie dough tube does not contain eggs? I admit I've never read the ingredients.
 
I don't think cookie dough typically contains eggs, at least not when I've made them/
 
Cabbage
 
Apparently they can do though you can also do egg-less.
 
5:59 PM
    C:\Python27\python.exe C:/Users/PycharmProjects/freebusyoutlook/fibMe.py
  File "C:/Users/501162905/PycharmProjects/freebusyoutlook/fibMe.py", line 9
    i++
      ^
SyntaxError: invalid syntax
i = 0
while (i < 70):
    i++
print(fib(i))
 
Python doesn't support i++, you would typically use i += 1
 
it's only one character longer :-)
 
^^ that
 
In this particular case, I think I'd skip the increment altogether and do for i in range(70):
 
Yes. 2.7 doesn't support ++
that's what I figured after sending that code here.
thx @Ffisegydd
 
6:02 PM
I feel like you can avoid incrementing variables most of the time if you make good use of iterables
 
3.x doesn't support ++ either btw
 
or actually i in xrange(70), unless it is Python3
 
How can I translate 1.90392490709e+14 to an actual number?
 
That is a number :P a very large number
 
Python will accept it as-is
>>> 1.90392490709e+14
190392490709000.0
If you mean, "how do I write it on paper without the e?", move the decimal point to the right fourteen places
If you mean, "how do I get it to display without the e when I print it?", uhhhhh
I dunno that one
print repr(myBigNumber)?
 
6:05 PM
Or use string formatting
 
Ah, is there a flag or something indicating "please write this without exponents"?
 
Nope. I am just testing something I saw in a forum.
 
In [3]: a = 1.90392490709e+14

In [4]: print('{:f}'.format(a))
190392490709000.000000
So {:f} will give you a floating point number printed out in full length, e is used for exponential notation.
 
Nice, thanks. The formatting mini language documentation has always confused me
[[fill]align][sign][#][0][width][,][.precision][type], that's easy to remember
 
I did it you guys.
 
6:10 PM
Even now I'm trying to figure out where the colon before the f came from
 
That's the format
So it goes {name:format}
 
6:22 PM
is it possible to represent a directory structure as json? * easily
 
yes
 
user559633
haha arghhhh just explained recursion to someone and did the answer and the guy accepted the late-comer
 
user559633
it's just internet website points, but i find that annoying
 
I know that feeling
 
user559633
6:30 PM
live stream of me at my desk
 
user559633
 
onyone know if calling gc.disable() is process agnostic?
meaning if I call gc.disable() at any time, does that affect ALL other processes and/or threads that I'm currently running?
 
I'm going to pull a guess out of the air and say, processes no, threads yes
 
b/c of GIL I'm assuming?
 
well, GIL and my imagined GC behavior are caused by the same thing: multiple threads are all managed by the same one instance of Python.
So if thread A alters an attribute of the interpreter, all the other threads will be affected
 
6:49 PM
I love you guys ;_;
 
I like you too Crow.
 
user559633
Crow, you're alright.
 
@ffisegydd STEWIE! !!!!
 
@Jon BRIIIIIIIIIIIIIIIIAN! Would you like a brownie?
 
7:04 PM
Scooby snack and brandy waggles tail
keeps waggling tail
 
/me fetches the special brandy-scooby-snack brownies
 
Woof woof!
(527 consecutive days - they still suspect nothing.... muhahaha)
Err, I meant woof
 
I'm wondering, this doesn't seem to redirect to a url flask.pocoo.org/docs/patterns/jquery . To generate a url, I should do the same but return a render_template?
 
user559633
writing goodbye emails is awkward
 
@tristan just use funnylinks4all.com/images/movies-phrases/… and it's easy
 
user559633
7:13 PM
perfect
 
user559633
i am closing the email with:
 
user559633
tl;dr: There will be a small gathering at (local bar) starting at 6pm tonight to celebrate the opening up of a window seat.
 
goodbye's are always better than badbye's
 
@PeterVaro I live when I am in Helsinki, though in between the living I temporarily die at my home in Oulu
 
you died in you home in Oulu?
 
7:18 PM
@AlexanderMeesters I just mean that my existence in Oulu is devoid of all life :P
 
ahhh ok
well its fun in holland, small country, high population... life all around you
plus we have guido van rossum
 
you have guido van rossum in the very same sense as helsinki has me
 
linus torvalds?
:-P
 
7:34 PM
Oregon has him now
 
damn muricans
 
@AnttiHaapala very well, then
 
I'm not sure I understand jinja.
 
jinja is fun, sup?
 
So... let's say you have a plain page at www.mysite.com/example. Then you click a link, and it goes to www.mysite.com/example/get_csv/. This is the same template, the only difference now is that it has different content in the {% block content %}, being a button group now. Finally, you click a button group. This is the same page, except now the button is class="active" and below it a csv is streamed. Are these just three templates extended in a row?
 
7:42 PM
Sounds like a base template with 3 child templates, not extending each other, but rendered in the same placeholder. One at a time.
 
Would you have a new template for changing the class or would you change it via JS?
 
@Ffisegydd I dunno, but I do want to generate a url and I am not sure how to do that when they do a request
 
@Crow I am not sure I get the scenario. What do you want to achieve exactly?
 
@Terfin I am trying to expose an "advanced search" to them. They choose the resource, add in some filter parameters, and it would generate a url for them and show a table in their browser of everything that matches. Streaming the content like this: flask.pocoo.org/docs/patterns/streaming
 
I would do that with ajax instead of having load time between pages. Better for user experience.
 
7:47 PM
The first Google result for "CSS" that isn't Wikipedia or w3schools, leads to a page with exactly zero examples of CSS. Internet, I am disappointed.
 
@Terfin the only concern is that it must generate a url
 
dinner
cheerio
rbrb!
 
I think I'm misunderstanding the padding attribute. Why is my box on this page going off the top of the screen?
 
@Kevin padding is inside the box, margin is outside the box
use the inspect element in chrome and you can see how it calculates it
 
ok, so padding: 30px puts 30 pixels between the text and the border. That's working as expected. But why can't I see the full border, all the way around?
I'm guessing the answer is "altering the padding does not change the positioning of the element on the page". So my next question is, how do I make it do change the positioning?
 
8:04 PM
My friend linked me to this talking about Python being very slow in terms of speed. But then I looked at the code and I think it could be improved (never mind using something like Numpy to vectorise things if possible).
 
@Kevin how do you want it positioned? 30 pixels from the top?
 
As it stands it does look embarrassing though, 16 minutes for Python, 42s for JS!
 
Ah, my usual desperation tactic of "just stick inline-block everywhere until it works right" seems to have worked
New problem: I want my .outer element to turn red when the user hovers over the child .inner element. Is this even possible? My first attempt failed.
Selectors level 4 indicates that I can specify the subject with !, as in .outer! .inner:hover... How do I tell if my browser supports "Selectors level 4"?
What a mess. I think I'm done with web stuff for a while.
 
8:23 PM
@Kevin +1
 
I could always write a slow and bug ridden javascript implementation... :-)
 
written in coffeescript >.>
 
Gotta go. May your projects be more pleasant than mine!
 
looking for a simple example for a really really basic shoppingcart for django... but only finding full ecommerce sollutions.... i dont want that...
 
 
1 hour later…
9:36 PM
Hello, I'm having problem with adding my own js file to django - it keeps returning 404 (I've done collectstatic already) All the standard js files are visible, I'd appreciate any help
 
9:47 PM
I think that I am on the right path with this, but something is missing...
 
user3444876
10:22 PM
@AlexanderMeesters What is coffeescript?
 
10:41 PM
Hi, I'm new to python, and need some help, please. I have csv file that that is formatted like this date,time,event,user,AP . I need to go through each line of the file, if event == connect, continue till it reach the line with event == disconnect for the same user and AP, then calculate the time difference between the two events. So is this even possible to do, I am confused about how should I go about it , I have a large data set. so I would appreciate any help, thanks.
 
@user1653150 start here: docs.python.org/2/library/csv.html
 
thanks
 
pretty much, start with:
 
so is it possible to do this data analysis with python?
 
import csv
with open('/your/file', 'rb') as csv_file:
  csv_read = csv.reader(csv_file)
  for row in csv_read:
    # do your operations
yep, python is good at it
 
10:47 PM
Thank you very much Crow
 
user3444876
11:34 PM
@user1653150 How are you liking python so far?
 
@Gaurav, I think it is Ok, I would probably like it more once my code works :)
 
user3444876
@user1653150 Do you need any more help?
 
btw, might be easier to reference your csv if you put it into a class.
 
@Crow, I am not sure how can I do that.
 
user3444876
Try to keep your code object oriented!
 
user3444876
11:40 PM
@user1653150 Well you can subclass the csv.reader class
 
user3444876
Thats what you're talking about right @Crow
 
import csv
class MyCsv:
  def __init__(self, csv_path):
    self.data = []

  def read_csv():
    with open(self.csv_path, 'rb') as csv_file:
      csv_data = csv.reader(csv_file)
      for line in csv_data:
        self.data.append({x[0][i]: line[i] for x in csv_data})
 
Hey guys! I deployed a django project in a VPS that I got using gunicorn and nginx. What I'm trying to figure out is how can I install plesk and deploy the django project in the same server. So that I can create email accounts etc.
 
then you can do my_csv('path/to/csv/') and then just kinda use my_csv.data as a list of dictionaries
 
user3444876
@Crow So you would keep the data sets in an object
 
11:43 PM
@Crow, ah I can see what mean by class now
 
yeah that's just a really basic sketch of it, but much easier than working with a CSV
 
user3444876
I am having big problems with IDLE
 
@Crow @GauravGhosal thanks guys!
 
don't use IDLE haha
 
user3444876
My students use macs, and IDLE works horribly.
 
11:48 PM
use the terminal, terminal is good
 
user3444876
Not only do I have to teach them python, I also have to teach them how to use IDLE without crashing it on Mac, a skill some experienced developers have not even mastered.
 
01:00 - 17:0017:00 - 00:00

« first day (1285 days earlier)      last day (3658 days later) »