« first day (1842 days earlier)      last day (3113 days later) » 

12:16 AM
I just bought a computer/tablet/TV-box/kiosk thing. Its profile is trapezoidal.
 
12:48 AM
So's mine!
 
cbg!
 
1:47 AM
cbg
 
hey Adam!
 
how's it going idjaw
 
pretty good. Had a hectic but successful Halloween outing with the little ones. Now just watching crappy horror movies, drinking wine and doing some codewars :) How about you?
 
Wife took the daughter out to trick or treat with my in-laws so I've got a quiet evening
gotta go take a picture of the jack-o-lanterns shortly, though
 
My son was a police officer and daughter was a strawberry. :) How about yours?
 
1:55 AM
ghost
 
@idjaw Wow... I just read that without context and thought you'd finally flipped :)
 
haha
 
I put a Halloween pumpkin on the windowsill and ran some Pink Floyd.
 
That looks like the pumpkin I made!
 
Pink Floyd has some very strange music, especially in the Ummagumma album.
 
1:58 AM
But I only put the two teeth on the top
 
Alright, time to duplicate my previous Blood Bowl success.
Last game my "Rodent Rabble Rousers" won 4-1. I netted 25 SPP and my Gutter Runner "Niner" grew two extra arms to celebrate!
 
 
2 hours later…
user5327424
4:06 AM
hey is it possible to catch exceptions using concurrent.futures? stackoverflow.com/questions/33448329/…
 
5:20 AM
I honestly kind of hope this guy gives me a few more revenge-downvotes (at 2 already) so he can attract the attention of someone he'll actually listen to regarding SO's behavior policies.
 
5:33 AM
Welp, flagged it. SEP now.
 
how do you know it's revenge DV'ing?
 
5:58 AM
I don't know, of course, but sudden downvotes on perfectly fine answers, with no explanation, each one coming when the guy is active on SO?
 
 
1 hour later…
ray
7:13 AM
@TigerhawkT3 I actually like the irony of that guy's last post: "whereas my internet is "be responsible for yourself and don't tell others what to do"". Well, guess what he/she just did :roll eyes:
 
Well, he just described what he does, without explicitly saying that anyone else should do it. We'll pretend he didn't imply that I should do the same. :P
 
 
2 hours later…
8:57 AM
I guess that answer of mine was worse than I thought... it has three downvotes now (but two up). I have no idea what's wrong with it, though.
 
9:19 AM
@TigerhawkT3 Maybe アレックス has buddies...
 
¯\_(ツ)_/¯
 
Hi, @JohanLarsson. I've just returned from an afternoon playing music at a local pub. Among other things, I played "Help Me" and "T-Bone Shuffle" on blues harp. I think you'll like this clip: I Can't Quit You Baby performed by Japanese band The Shoka Okubo Blues Project.
 
I play the harmonica too!
Far from "play at local venue" tier, though.
 
9:35 AM
@TigerhawkT3 Cool! Playing to an audience is a bit nerve-wracking at first, but it's great fun. Maybe you could find a local "open mic" gig where you can play along with a guitarist.
 
I lip block and haven't figured out how to overblow yet... basically, it's only enough for playing folk songs around a campfire.
 
I don't overblow, but I can bend low draw notes pretty well. Part of note bending depends on what you're doing with your mouth, throat, and lungs, but a large part depends on the harp. Older harps are easier to bend than new ones, and you shouldn't really try to do bends on a harp until it's worn in, or you'll put it permanently out of tune. Some keys are easier to bend than others, and even that varies with the make & model of harp.
But I guess this isn't really a good topic of discussion for this Chat room. :)
 
Only slightly off-target.
 
 
1 hour later…
10:52 AM
Downvoted for no apparent reason once again. I think six downvotes in one day, when most days I'm not downvoted even once, is just a bit odd.
 
11:04 AM
@TigerhawkT3 What answer is that?
 
@TigerhawkT3 Fixed. :) But I didn't upvote the OP since they didn't do much research, but more importantly, they didn't respond to clarification comments, or accept an answer. I guess they might be off doing other things, but IMHO it's rude to dump a question and not stay around for at least a little while.
 
any body knows how to install odoo in ubuntu12.04?????
 
Oh, I'm not asking for upvotes - I'm just irritated at the string of undeserved downvotes and, more importantly, at the demonstration of that user's poor answers and worse behavior.
 
11:20 AM
@TigerhawkT3 Yeah, I know. But you deserved the upvote anyway. :) Besides, I'm more inclined to upvote everyone else rather than give a downvote - it doesn't cost any rep, and it's less likely to result in revenge downvoting. But hopefully it still irritates the person you don't upvote. ;)
 
I was much better at voting when I was going for the Electorate badge. >.>
 
That's the next one on my automatic list; I'm 83 votes away.
 
11:37 AM
 
brief cbg
 
Hi, Jon.
 
Cabb
 
I hate the new navigation 😢
 
Looks like SO will display in a tab, within a browser tab, within a taskbar tab.
 
11:48 AM
I HERD U LIKE TABS.
 
@PeterVaro I officially give up on installing Arch today :(
 
Maybe a tabbed tag's questions could open in a tab, and then each answer could display in a tab.
 
@TigerhawkT3 Ok. I see you have +1/-1 on that question.
 
@thefourtheye why?
 
@TigerhawkT3 I don't think it deserves a downvote, fwiw.
 
12:00 PM
@PeterVaro Since the morning I have been reading and reading but I couldn't find how to make my partition bootable :(
 
I heard Arch Linux referred to as "Argh Linux" here the other day. Maybe that has something to do with it.
 
@TigerhawkT3 No, no... Its nothing like that... Just try that... (Muhahahaha Evil laugh)
 
@thefourtheye UEFI or BIOS?
(btw keep reading, it took me about 4-5 days and ~5th time while I finally managed to get a perfectly running arch installation for the first time -- now, I can install one in an hour)
 
Actually I am doing it on a VM, so its BIOS only, right?
 
I install Windows by hitting "Next" a lot.
 
12:02 PM
not really -- is it vbox?
 
VirtualBox, yes
@TigerhawkT3 Ubuntu, same.
 
vbox has an option, under the Preferences/System tab => a checkbox which says: Enable EFI (Special OSes only)
either way, Arch would work on both BIOS and EFI, however, I only have experience in EFI installations
 
Do I really need that?
 
nope
 
I don't know why Ubuntu includes Python but not Tcl, which means no Tkinter.
 
12:05 PM
I'll try again tomorrow. I need a change of task.
 
okay, I also have to go now. anyway @thefourtheye, stick with this guide and it has everything you will ever need to get Arch installed and running
 
Coincidentally, tonight I've been watching someone do something similarly difficult on YouTube: beat "Dr. Jekyll and Mr. Hyde" on NES.
 
@PeterVaro Cool, I'll start fresh tomorrow morning again. Thanks :-)
 
12:19 PM
@thefourtheye I'm not sure what your requirements are for archlinux, but have you considered using vagrant?
 
@idjaw I wanted to do the Twitch Installs Arch Linux thingy
 
ah! good luck :)
 
Easiest Halloween costume idea ever for next year: Mr. Hyde.
"But you're not dressed as anything..." - "I'm scary on the inside."
 
Even better, don't go the Halloween party and call yourself, Mr. Hide :D
 
12:29 PM
But then you would have to deliver the pun by phone.
 
@PM2Ring ty ty
 
I wore jogging pants and if anyone asked my answer would have been "tired daddy"
which is also true
:)
 
The secret to avoiding tiredness is to give the kiddos those bright plastic jack-o-lantern buckets that don't actually hold very much candy and then you can go home.
Just don't let them find out that their friends trick-or-treat with pillowcases.
 
I didn't realize in to half way through our trick-or-treating that my son was using a bag that said "whiskey's-of-the-world"
+1 parenting
 
12:42 PM
As with people, it's what's inside that counts.
 
@JohanLarsson Glad you like it. Shoka doesn't have a lot of clips on YouTube, but all the ones I've seen are rather good. Here she is playing a funky piece called Back To The River with another impressive young Japanese guitarist, Kumi Adachi, at Kumi's birthday party.
 
@PM2Ring that sounds great!
 
They sure sound like they're having fun. :) And those two women play so well together.
 
this really makes me want to get my recording gear set up in my basement. </lazy>
 
Yo
 
12:48 PM
heya Jozef
 
Is the chat only for off topic things, or can we even ask for help here :P?
 
haha :) definitely on-topic issues are the priority here :)
 
@idjaw Thanks. I dont need any help now just wondering :D
So how u guys doing ?
 
recovering from a wild halloween with two toddlers...so lots of coffee this morning :) you?
 
More funk from Kumi Adachi, this time with Kumi singing (a little bit): Lady Plays the Blues for You. And the classic 'Cause we've ended as lovers, unfortunately with the start cut off.
 
12:51 PM
Haha, well, I spent my halloween-party at home working on a school project
 
cool, what's your project on?
 
Its about making a Java-program for the "admins" to handle hotel orders from.
Like, list all cottages, show all orders, export to excel
Handling the excel part is pretty darn hard tho..
 
@PM2Ring just out of curiosity, how did you discover this?
 
@idjaw I'm a big blues fan, and I noticed several years ago that lots of the great new blues guitarists are women, and not necessarily American. And I guess that after a couple of years of looking at such clips YouTube has figured out what I like. :)
 
Well. Thanks to your research, I have a good starting point now! :) I really like blues too.
 
1:07 PM
One of my favourites is a young English lady named Chantel McGregor, who's more into rock than pure blues, but she plays a fairly wide variety of styles, both covers & originals. Here she is from a few years ago doing a great cover of an old Jethro Tull blues-rock number, A New Day Yesterday. And if you like that check out her doing Robin Trower's Daydream.
 
My daughter is even liking this...she's bobbing around. We have a winner this morning :)
 
Excellent! :)
 
fantastic! My tox wasn't up to do date. It supports 3.5! :) Another win for tox!
 
Anonymous
1:22 PM
Hello guys.
 
Anonymous
Is there something off-ish about this?
 
hey!
 
Anonymous
import MySQLdb
def db():
	conn = MySQLdb.connect("localhost","root","xx","xx")
	conn.set_character_set('utf8mb4')
	cursor = conn.cursor()
	cursor.execute('SET NAMES utf8mb4;')
	cursor.execute('SET CHARACTER SET utf8mb4;')
	cursor.execute('SET character_set_connection=utf8mb4;')
	return cursor
 
Anonymous
import db
db.db()
db.execute("SELECT * FROM _foo WHERE id < 3")
repo = db.fetchall()
 
Anonymous
I am calling it as seen above, but it does not work :)
 
1:23 PM
doesn't work in what sense?
 
Anonymous
Oh, sorry. I was convinced there way something obvious there. Anyway, I get AttributeError: 'module' object has no attribute execute
 
Anonymous
@idjaw hey btw :)
 
Anonymous
if the cursor is being returned, it should have the execute attribute.
 
Anonymous
for some reason, python think that I am trying to call execute from the function db
 
the cursor itself is a pointer, if im not wrong, im not that good with python
 
1:28 PM
db.db() does return the cursor, but apparently you don't use it
 
You've just defined a function named db, but then you import a module named db. That's not a good idea.
 
Anonymous
@PM2Ring I am importing the function as a module.
 
It's been a while since I used this module, but don't you want to return the cursor after you execute your query?
 
Oh, ok. So the top code is in a separate file to the bottom code? You should've made that more clear.
 
Anonymous
@PM2Ring sorry, I thought it would be obvious :\
 
Anonymous
1:31 PM
@idjaw how would I execute the query, I have no way of getting the cursor unless I import it first.
 
You probably want something like mydb = db.db(); mydb.execute(...)
 
What vaultah said.
 
vaultah said it more coherently than I did
 
Anonymous
Yeah, I just tried it. @vaultah's solution works.
 
+1 vaultah
btw @PM2Ring this -> youtube.com/watch?v=NApZu2DjbD0 WOW! :)
 
Anonymous
1:37 PM
I had separate functions and classes in their own files, I am now trying to reuse common functionality by importing them. Before I keep on working with this, is there something I am doing bad (by importing functions as modules) ?
 
no, I think there was just confusion in db.db() where it looked like you were importing some module called db and you created a method called db(), which would cause a whole other mess of problems. But your import db is for your db method you created. So that should be fine.
 
Anonymous
Yeah, I changed the name for that one. I am not just sure if I am violating some code guidelines or best practices along the way.
 
Anonymous
There are far too many, overwhelming tutorials out there for a newbie to read and digest at once, so.. I'm mostly improvising until I finish my current project.
 
One thing to bear in mind is to organize your stuff so that the dependencies are linear: try to avoid circular dependencies, eg module A needs to import module B but module B also needs to import module A; bigger circles are also possible. Python doesn't prohibit circular dependency, but it can get confusing, and things may not work like you expect.
 
Anonymous
Yeah, that makes sense. The only think my database module is importing was the MySQLdb, and this database module is imported once.
 
Anonymous
1:46 PM
It would have been better if this was possible.
 
Anonymous
import MySqlDb, samayo
mydb = samayo.database(""" pass MySqlDb""")
 
Anonymous
so, the samayo.database would not yet import the MySqlDb ..
 
2:23 PM
stackoverflow.com/questions/33463068/… off-topic. suggest a software tool....
 
3:00 PM
Hi, I'm just reading github.com/SublimeCodeIntel/SublimeCodeIntel/blob/master/libs/… and I don't know what this line means - is it class extending? (I know several other programming languages but I'm new to Python.) Thank you :)
 
Great, thanks
 
cbg @holdenweb
 
I just saw lwn.net/Articles/661604. How big is this? Is it quite international or not?
 
3:25 PM
@Kevin 38.media.tumblr.com/44a3f5324f09175e64bcebe5922fab08/… // not the best one so far, still interesting
 
Not even one month and I've managed to get hatemail on a Flask issue! github.com/mitsuhiko/flask/issues/1576#issuecomment-152789950
 
I'm so proud...
 
davidism, you seem to be collecting quite the fan club these days :(
 
3:40 PM
this question is unclear
 
Why is it that accepting an edit still requires votes above 3K rep, if I can simply reject and just apply the same edit?
 
It's been asked on meta multiple times. The answer is basically "because everyone still sucks at reviewing".
 
@idjaw Gone. As for the editing thing, when you reject and improve you're taking ownership of the edit, so you're totally responsible for its quality; merely accepting a low-rep user's edit doesn't have that implication.
 
3:58 PM
-1
A: Python printing list in columns

Tkinterprint "apricot bubble" print "apple car" print "baloon coconut"

dat answer
 
@PM2Ring that makes a lot of sense. Thanks.
 
No worries
 
4:19 PM
@JibinMathew please use dpaste.com for large blocks of code
However, that problem seems too large for chat anyway.
 
Yeah, I'm not looking through all that. Why not try stepping through your code with debugger and watch it make decisions?
Perhaps consider reading up more on pathfinding: www-cs-students.stanford.edu/~amitp/gameprog.html#paths
 
In my app I need to store a huge (hundreds of thousands, maybe even milions) of rows that have an ID and an integer that will be incremented by one usually up to ~30 times. I'll be creating up to 50 (rarely more, usually less) new records per second. I figured redis will be the best solution for this. Only I'm not sure which data type I should use - a list, key:value, hash set, sorted set? And how do I get the value of last inserted ID when creating a new one (or incrementing it automatically)?
 
@Andrew this is the Python room, we can't really help with redis optimisations (even if you're using Python to contact it)
 
You already asked this in PHP room. Why do you think Python (or PHP) is the right tool for the job? @Andrew
 
4:34 PM
Yeah just noticed the same as vault. @Andrew please do not spam your question into inappropriate rooms.
 
I didn't find a redis room, so posted in these two. Sorry for doing that.
 
Oct 27 at 17:17, by Adam Smith
I wanted to talk about something and there wasn't anywhere to do that, so I decided to change the topic of a room I've never been in before.
 
Adam S. dropping truth bombs.
 
Anyway, the answer is "try it and find out". I'm sure one of the solutions will jump out as easier than the others once you actually try to apply your use case with them.
 
I guess I'll have to do just that. Sorry for disturbing the Python vibe - I'll leave now and do my testing. Continue discussing, gentlemen.
 
4:38 PM
Twitch Installs was disappointing, someone must have got a bot written to coordinate better than the random trolls, since when I stopped watching yesterday they hadn't made a mistake for an hour.
 
Normal Python Room Discussion Will Re-Commence in
3
2
1
 
cbg, since what reputation a user can delete his own answers?
 
@bereal I think 1.
 
@Ffisegydd ok, thanks
 
@bereal it may need to be downvoted (though I suspect not), but I've definitely seen OPs on 1 rep self-deleting.
 
4:49 PM
Yeah, makes sense.
 
5:04 PM
@bereal From stackoverflow.com/help/deleted-answers "Answers can be deleted at any time by their authors, unless the answer has been accepted by the question asker."
 
cbg @JonClements
 
5:29 PM
Okay, I'll re- stackoverflow.com/q/33464858/2301450 too many errors
 
It seems to have acquired an acceptable answer, though
 
5:44 PM
"u" and "ur" are irritating enough, but "wiv"? Really? :~(
i get ur code but im quiet confused wiv 'v for v in s' part? can u elaborate it for me? thanks alot :) — Hamza 5 mins ago
In that context, I can almost forgive the "quiet" and "alot". And the lack of capitals. :)
 
6:07 PM
I'm tempted to tell this OP you probably shouldn't be sharing instances like that, especially if they're mutable, as it will end in tears.
 
Hello everyone.
I'm trying to make a Django QuerySet Query. but cannot find a way.
I want to get the count of a history log based on the current 24 hours divided by each hour from 1 to 24
I want to display my user, on what time they sent a SMS. during the current 24 hours.
I'm using this counted hour values to display it on a Chart
 
6:37 PM
rhubarb
 
6:56 PM
cbg all!
Just as a general announcement, as I know there are a couple users in here:
I've just released Python Improved 2.0.0, code-named "Cryptic Bacon"! (Don't ask me why, it was a really late night.) There are lots of bug fixes and new features, but the biggest one is Unicode support for all identifiers.
In case you don't know, PI is a better syntax highlighting definition for Sublime Text and TextMate. It fixes a ton of issues with the original version that ships with Sublime (and TM), and has many updates and improvements, hence the name.
 
7:39 PM
stackoverflow.com/a/33466352/1832539 2 upvotes already...poor pi..
 
8:06 PM
cbg all, Newb to python but loving it. Just saying Hi!
 
heya
 
heya @Dave
 
oh hey Jon! :)
 
word up @idjaw :))
 
how's your sunday going
 
8:16 PM
Well - ya know - same old, same old - yours?
 
cleaning blitz before my wife gets home from work. :)
she keeps me in check
 
Doesn't sound a bad thing
 
I definitely need it. I'm an adult by age only
:)
 
Of course - we don't have a choice in growing older, but gosh darn it, we don't have to grow up if we don't really want to :)
 
oh my goodness....I've just learned the beauty of keyboard shortcuts on SO for myself....I finally decided to just hit keys at random and there is a world of greatness.
 
user559633
8:23 PM
I'm an adult by manner. I wake up at 5am, do my kinesthetics in front of CSPAN for 45 minutes, take a 2 minute cold shower, do a close shave, change into a suit, drink coffee, read the bible for an hour, commute for 2 hours, work 8.5 hours, commute home, swallow depression, eat a meal with one protein main and two sides, watch sitcoms and laugh heartedly, sleep. Repeat.
 
And how long have you been doing that for?
 
user559633
50 years.
 
Wow - that's one yamming long bible you've got yourself...
 
user559633
not really though. there are some weeks in which i wear a onesie pajama more hours than "real clothes"
 
sounds legit
 
8:26 PM
@idjaw our beloved MTFL would never lie to us!
 
user559633
i was a wizard once
 
I'm a wizard during the week. During the weekend I'm Rosemary.
 
user559633
Does that make fizzygrrl "Rosemary's Baby?"
 
user559633
(unrelated to unrelated chat, i merged in your PR @idjaw, thanks again and sorry for the delay)
 
sweet! :) I hope it helps in some way.
 
user559633
8:29 PM
it's very helpful, tests are hugely important for a dynamic loader
 
awesome. I have some ideas for making it easier to handle response validationg in the unit tests once the structure of responses is hammered out. Unless you've done that already?
 
user559633
that's not done yet -- should have time this month to do that though
 
user559633
thinking it will be namedtuples with json for the payload
 
user559633
e.g. chain_history=['x','y',], chain_future=['z','a'], data={} -- if it ends up at function "z", z can say "oh that's me" and do what it needs, then records that the step is done in the history
 
so chain_future is a queue of upcoming calls, and then chain_history is what was done?
 
user559633
8:44 PM
yessir -- like a context aware pipe, i suppose. thinking about this for the decoupling stage of flask routes to workers
 
and this chain_history is attached to a session? how is that part of the data kept?
 
user559633
in the data that gets pushed from endpoint to endpoint -- trying to keep it from ever being a "session" for the work itself. the API will turn into a tracker of "actual user sessions" (who do i need to eventually respond do), with the API "backend" just being a bunch of processes hanging off a queue
 
user559633
python's datetime module is gross
 
user559633
datetime, datetime.now; datetime date.isoformat
 
isn't there something with the %Z in datetime too that is broken?
I vaguely recall something with that
 
user559633
8:57 PM
idk, it all just makes me sad
 
wait..this exists...filldunphy.com this is great.
 
@idjaw I'll raise you placekitten.com
 
user559633
i'll raise you lemonparNO CARRIER
 
hahahha
 
 
2 hours later…
11:07 PM
flask question: is it acceptable to use after_request to set custom headers when I want to perform an external re-direct?
 
I don't see what's wrong if it works
 
cbg
 
cbg!
potato guys?
 
can someone help me out.
with a question
0
Q: Django: Filter data based on Date by Hour range (1:00 to 1:59) And retrieve Count

eddwinpazTemplate tag {{app.application_key|Get_sms_by_status_count_hourly:"2,24"}} # 2= Direction, 24 = Hour Currently I have the following QuerySet: def Get_sms_by_status_count_hourly(application_key, arg): try: args = arg.split(",") time_threshold = datetime.now() - timedelta(h...

 
@metatoaster thanks! .... OP actually just did something else by adding Location in their custom-header and just set a 302 status in their Response. Their way actually is cleaner. I wonder which approach is the more acceptable one. Or is this a case where it really doesn't matter?
 
11:27 PM
well... the canonical way is to use flask.redirect
 
Reading the docs as well that's what lead me to use that with after_request....come to think of it, OP solution doesn't offer much flexibility. I'm leaning towards mine now.
 
it has been a while since I worked on my flask stuff, so yeah.
 
I undeleted my answer. :) I'm going to leave it.
 
ah, questioner mentioned total control over headers, so they may have a real reason to do that.
 
hmm..my way affects calls globally...so all calls will get affected this way. That wouldn't be ideal.
 

« first day (1842 days earlier)      last day (3113 days later) »