« first day (2028 days earlier)      last day (2913 days later) » 

12:24 AM
evening cbg
any party animals nerding it up online?
I know I am
 
user559633
you know i am bro
 
nice!
what's on the agenda tonight
 
user559633
project organization!
 
user559633
you?
 
trying to replicate a bug in this project responsible for testing upgrades between releases.
wow....
we have two VPN's we can connect to. My stack is generating VMs where some IPs are outside of the range of the other VPN
that...that is really making me angry.
 
12:55 AM
Cbg
 
cbg
 
1:08 AM
oh great and I just get an email about the overwatch beta.
 
user559633
tf2 + balance issues == overwatch
 
you've been playing?
 
user559633
someone get on my lawn so i can yell at you
 
user559633
no sir.
 
DSM
New startup idea!
 
user559633
1:10 AM
i would pay someone $2 an hour just to shout at me when i obviously start slacking off during 0700a to 2300p EST
 
new startup idea: cats.
that is all.
 
DSM
I think I'm going to get an iced coffee and watch passers-by. Is that a good idea for a start-up?
 
user559633
 
I need that....I need someone to yell at me when I start slacking.
 
user559633
i'd buy that for a dollar
 
user559633
1:15 AM
Good ol RobertCop
 
best cop
 
DSM
Nerd cop is best cop.
 
user559633
Truth.
 
once you make a few sequels for nerd cop
there will have to be a nerdcop vs robocop
 
user559633
1:19 AM
Nerdcop would just hack robertcop
 
I want to move mouse using python. I can do this via pymouse whereby I pass coordinates, but I get is the speed and direction(orangecoat.com/how-to/…) from my device. How can accomplish this based on this input.
 
well I really did some hardcore reformatting of my mac. It put the stock OS that came with my MBP. I thought it would put el capitan back. Long restore is long.
but hey...it fixed my trackpad issue. So I don't have to go see a genius now.
 
DSM
You managed to cause trackpad problems software-side? #respect
 
I just installed PHP 7. I'm not sure why. Somebody should probably smack me, just in case.
 
It was my last attempt before being convinced it was hardware. My first hint that it might have been software was when I live booted in to linux and the trackpad worked perfectly
 
DSM
1:25 AM
@MattDMo: apparently it's the new hotness. <=>
 
@idjaw what was the issue, does it relate to my problem in anyway? Did you write something in python.
 
user559633
that reminds me too much of ))<>((
 
@AbhishekBhatia nothing to do with your issue. I actually had a trackpad issue with my laptop.
 
I hadn't seen fit to install PHP in any of my other VMs, why did I do it just now? I despise PHP, especially b/c Wordpress works so well, and there's no Python equivalent.
 
ohk.
do people ever write drivers in python?
 
1:33 AM
GAH!!! E: Unable to locate package liberasurecode-dev
backports...freakin' backports were not included in this image
sorry...this bug hunt has been ..*bugging* me
 
> I am new to django and I want to make a website that looks like amazon.com
0
Q: Writing a simple home webstie with django

user2178942I am new to django and I want to make a website that looks like amazon.com I mean, it should have some parts above that has search, log in / log out , ... and a place under that for showing a list of items. I have followed many django tutorials, but I still could not find how can I make such we...

 
tell them to learn perl :P
I think a lot of amazon's website is still in perl
hehe
 
DSM
Jays 4 Rangers 3. Excellent. I knew this coffee was a good idea.
 
capitals just tied with the penguins
I'm happy again
 
DSM
Gretzky gave my sister a bunch of Crosby memorabilia once. Canada is a small country..
 
1:46 AM
wow
 
DSM
Each of us can probably make it to the great one in no more than three or four steps.
@idjaw: by the way, it seems like there are a lot of Python positions in Montreal. Am I misjudging that or is it real?
 
@DSM Quite real. A lot of it is for devops. I've been getting a lot of messages for automation, CI, CD and ops-based work where Python was the weapon of choice.
then there are also the startups that all love big data
the startup scene in montreal has been getting bigger
 
DSM
Big data = big opportunity for self-deception via p value hacking.. #sceptic
 
yeah I stayed away from all that
The kool-aid didn't work on me
are you looking at montreal? Or just more curious?
overall I feel like, even though there is a demand for Python, overall the tech in Montreal is very weak.
when you compare to cities like Toronto, Vancouver...more opportunities there
or at least that is what it seems like to me
 
DSM
I can either stay put or go west. East would get me in trouble with the kin
 
2:01 AM
vancouver would be awesome. 2 hour drive to seattle
all the canadian benefits while enjoying the awesomeness of seattle
:)
 
DSM
But there certainly seem to be a lot more Python positions in Montreal than (correcting for size) Calgary, for example.
 
right.
if there is anything in particular you are looking at in montreal. Feel free to email me to see if by chance I might know someone at said place of interest
or if I happen to know about the company.
 
DSM
If one comes up I'll definitely do that!
 
please do!
are you looking to stay in more of what you were doing? Or are you broadening it more to just python-centric work?
 
DSM
I'm looking at broader options, but I'm ruling out webdev and database-y stuff on account of the boredom. :-)
Plus there are fewer numerical positions but I'm far more qualified for them, so I think I win that tradeoff. So far, being able to note that some possible employers already have code I've written on their computers thanks to various PRs is working well. There are some interesting bioinformatics jobs too, and I've spent enough time with biopython on SO to be tolerably good at FASTA parsing!
 
2:09 AM
I know some people working in medical software
 
DSM
I was always jealous of my friends in medphys at Queen's. Some of them actually got to see technology they'd invented brought to market and being used by real doctors to look at real patients.
 
that field always interested me
I don't know why I never pushed to get to one of those companies
 
DSM
Sometimes the energy isn't quite there to push through to find the right situation when it doesn't fall in your lap and there are much noisier responsibilities in your way..
 
like this impressive tool that was demonstrated last week at the summit I was at
 
Hello oeioke
 
2:12 AM
that is very true. I never thought I'd fall in to the position I currently am...took me a while to like it...but now I'm really digging it
hi @Paradox
 
DSM
Time to flee. Rhubarb for all!
 
rbrb @DSM have a good night
 
2:58 AM
how can I install packages from pypi in conda.
reading online suggests that pip and conda don't work together well.
 
 
4 hours later…
6:45 AM
train cbg
 
Hey up
 
OMW to a short office morning, then off to do battle with robots!
This afternoon I'll be putting together a robot to unleash mayhem on other robots. Wadayathink, pneumatic hammer or high-speed cutting disc?
 
7:03 AM
A contestant entry in the Robot Wars TV series, Hypno-Disc was one of the first robots to use the kinetic flywheel weapon — a highly damaging weapon that succeeded in heavily damaging and destroying a great many robots. Hypno-Disc's design, however, was somewhat basic, and its high ground clearance made it an easy target for robots armed with flipping weapons, such as Chaos 2. Hypno-Disc was the creation of the Rose family — twin brothers Derek and David, and their father Ken. It was the first competitor robot recreated in toy form when the Robot Wars pullback toys were released. == Series 3... ==
 
@Ffisegydd interesting! I was also studying Tornado, last winner. Seems to have been more luck than actual strength though.
Not that I know how much freedom and choice we'll have..
 
Hypno-disc was just my favourite. I remember it even now.
...13 years later?
 
7:28 AM
Spinning easier to implement/keep going than hitting IMO
 
Yeah from an engineering POV I'd imagine the machinery would be less bulky.
 
7:47 AM
> from an engineering point of view
 
Looking at teamtactics.co.uk/team-building/indoor-team-building/robot-wars I suspect spinning flywheels are not an option :-/
 
^ all my utterances
 
wat?
 
Martijn asynced me ;) I meant all my uttering is from an engineering POV. I am Engineer. beats chest
Ninja Challenge of the day. Build fly wheel from unsuitable kit of bits.
 
ENGINEER SMASH!
 
7:54 AM
Bonus level, Liquid filled weapon so weight transfers to edge when spun up.
considers stability issues
 
Even something like sand would do and would be easier to seal.
The only issue would be punctures.
 
Nice - drags the experimental physicist toward engineering.
 
@JRichardSnape oooh, I like your thinking!
 
Punctures could rapidly disable opposing team electronics...
 
@JRichardSnape: booby trapped to spill on your opponents electronic gear if they damage the weapon.
 
7:57 AM
Pffffft. My PhD was a combination of engineering, chemistry, and a wee bit of data analysis.
 
cbg
 
8:20 AM
cbg yall
 
8:38 AM
cbg
@Ffisegydd I suppose thermite isn't an option. And ClF3 is right out. :)
Another rather vigorous oxidising / fluoridising agent is the aptly-named FOOF.
Oops. I meant to ping @MartijnPieters with that, but the window scrolled while I wasn't looking.
 
8:57 AM
cbg
 
9:15 AM
@PM2Ring And I thought HF was fun...
 
"fun"
 
In a way, HF is scarier than those guys because it can do horrible things to you without you even noticing it.
 
too broad
Thank you for the information. I am try to implement the file command. so please help me for how to find the file type without extension using c.(I done the file command for image using header format, now i am trying to support txt, elf, audio) — sakthi 1 min ago
 
Another popular fluorine compound is uranium hexafluoride, traditionally used to enrich uranium. It reacts explosively with water, including atmospheric moisture, liberating (of course) HF and free fluorine.
And of course it's radioactive, and if you concentrate it too much it can produce a dangerous neutron flux due to nuclear fission, and I guess it could even undergo a runaway chain reaction if you compressed it, but I doubt anyone's been sufficiently insane to try that...
 
9:31 AM
I'm pretty sure you'd die before reaching critical density.
the gas probably breaks down earlier
though I'm not sure, depends on what the reaction is
 
10:19 AM
Has anyone ever seen a URL format that looks a bit like a SQL query? I'm trying to figure out if it's some standard or whether it's just been made up
 
http://Robert'); DROP TABLE Students;--
(I haven't)
 
@RobertGrant That's a teaser - give us a sample...
 
> Psst! Hey, kid. Want some URL looking a bit like an SQL query?
 
10:35 AM
 
10:52 AM
Huh. I just got an upvote on this old answer. I guess somebody needed to know how to interpret ANSI escape sequences.
 
brief cbg
 
cbg
I'm planning to achieve notification like above
from gi.repository import GObject
How can I write a program to display action like that image .. Note: I'm on linux and I tried with add_action
and it display like this ..
 
11:08 AM
@RajaSimon did you try .show()?
 
yep.. I mean the notification is working as expected but when I add "add_action" linux displaying it like dialog box... I dont want that feature.. All I want is to do the first Image
 
also that library is unknown to me
 
11:34 AM
@RajaSimon I'm not familiar with the new features of GTK3, I've only used GTK2+. But the style of that notification doesn't look very familiar to me, and I suspect it's non-standard, or it's being displayed by a different GUI library to GTK. What window manager are you using?
Of course, with a sufficiently powerful GUI framework it's possible to create your own custom notifications with any layout you like, but you will need to do a little more work than what's required when using one of the standard Dialogs.
 
@PM2Ring and uses python 2 ;)
 
@AnttiHaapala Probably. :) Although (I assume) it wouldn't be too hard to adapt my code to Python 3... Pyte is available for Python 3.4 and 3.5.
 
The original version of this question had "braces" instead of "paranthesis" [sic], which was a bit confusing, but the OP changed it after my comment. How do people expect to communicate clearly about programming problems when they can't get the basic jargon right about stuff like that?
But what's worse is that several of the answers also referred to the () as braces, too. :(
 
that's why I usually write about parentheses (), brackets [], and curly braces {} - putting an example in backticks.
oh, cbg, btw
 
11:49 AM
@PM2Ring yeah the plural is clearly parantheses ;)
 
@PM2Ring I just went and corrected all of them
 
@AndrasDeak :) Sure, it's a long word, and English may not be the OP's first language, but it's a worry when they can't even get the spelling right when responding to a comment with the correct spelling.
@MattDMo Thanks, Matt. I was kinda hoping they'd do it themselves after seeing my comment... but maybe I'm just too optimistic. :)
 
(and I know your point was paren)
and your're definitely too optimistic
how many times do we see "Oh thanks, next time I'll be careful"
 
@AndrasDeak True. New users rarely appreciate that their question needs to be fixed up to make it more useful for future readers. Or they just don't care, once they've got their answer.
Should we close this as a typo: stackoverflow.com/questions/37049579/… ? The OP simply forgot to return the result of their recursive call. Or should we dupe-hammer it?
 
hello my people
 
12:01 PM
Greetings, @Paradox. Are you thinking of defecting from Java & JavaScript to Python? :)
 
what's the best function to look at using to get this...
['GroupA', 'GroupA', 'GroupA', 'GroupA', 'GroupA', 'GroupA']
to this...
[('GroupA',6)]
 
thank you!
 
is counter in python 2?
 
12:10 PM
@PM2Ring Done and commented
 
@LemusThelroy Yes, have you tried to look for it in the Python 2 docs?
 
@LemusThelroy Yes (swap 3 for 2 in the URL), but don't use 2 if you're new unless you know the world will end if you use 3. See Antti's starred and pinned message on the right.
 
Apr 29 at 15:00, by Antti Haapala
Python 2 or 3? If you need to ask, use Python 3.
That is quite possibly one of the best things Antti has ever said.
 
found
 
@JRichardSnape Ta. I had a quick look at the eGifter API Web page, but it looks like you have to sign up to get access to their docs. So I doubt it's going to be easy to find free Python bindings or examples floating around.
@LemusThelroy Not in old versions of Python 2, only in Python 2.7. However, there's Python source available if you need Counter in older versions.
 
12:16 PM
thanks all, counter does the trick, got it working
 
you have saved me from writing some dirty for loop
 
@LemusThelroy Excellent. Although it's easy enough to do your own Counter for specific cases.
 
One day it will be easy for me...for now, if there is a module out there I'll use it!
 
from collections import defaultdict
a = ['GroupA', 'GroupB', 'GroupC', 'GroupA', 'GroupB', 'GroupA']
ctr = defaultdict(int)
for u in a:
    ctr[u] += 1
print(ctr)
output
defaultdict(<type 'int'>, {'GroupA': 3, 'GroupC': 1, 'GroupB': 2})
 
12:23 PM
Should that be closed? I don't really know
 
that's helpful. I am just reading the documentation so that I understand how to access the counts
 
@LemusThelroy Certainly! And if the module code is written in C it will generally be faster and more RAM-efficient than implementing it yourself in Python.
A defaultdict inherits from dict, so it can be treated just like a dict, but it will automatically create a new item if you attempt to write to a non-existent key. But here's another version using a plain dict`.
a = ['GroupA', 'GroupB', 'GroupC', 'GroupA', 'GroupB', 'GroupA']
ctr = {}
for u in a:
    ctr[u] = ctr[u] + 1 if u in ctr else 1
print(ctr)
 
DSM
Mornin' cabbage, all.
 
Evenin', DSM.
 
afternoon
 
DSM
12:29 PM
We encompass the WORLD!
Today I have to spend some time reading Python interview questions to make sure I don't get tripped up on something everybody but me knows. You never know when someone's going to decide that Obscure Fact #2281 is the sign of true understanding.
 
@WayneWerner The OP sounds a bit confused. WTF, a 140 rep user tag-only edit was just approved.
@DSM Hmm. I guess Obscure Facts can be a good way to assess how well someone knows the language, but I don't think they're a good measure of True Understanding.
 
No, but alas some interviewers think they are.
Mostly so they can look intelligent in front of candidates when they trip them up with them.
 
DSM
I don't think quizzes are that helpful, and (I hope that) I'm not just saying that because I tend to do badly on them. :-) That said, as long as you don't put too much weight on them, I admit that asking "Is there any difference between list comprehensions in Python 2 and Python 3?" is a question which tells me something about your familiarity with the language.
 
That's not that obscure though.
 
Doesn't Python3 fix the scoping borks in listcomps?
 
12:39 PM
"Using Python 2.4 and given this list of strings, please construct a dictionary that counts them" and then going "AH HA! COUNTER WAS ONLY INTRODUCED IN 2.6!" is obscure :P
 
DSM
I could imagine someone not knowing that though, especially some kid who's barely used 2.. but anyway, that's about as obscure as I'm willing to go. Wasn't it one of Antti's friends who was surprised by the int/bool connection in Python despite having used the language for a while?
 
@Ffisegydd And totally irrelevant, unless they're using Python 2.4 there :(
 
@WayneWerner Stranger things have happened, some people juggle geese.
 
I've been using Python since 2.5 and I was surprised that True * 42 works because bools inherit from ints :P
that was just recently where I learned that
I know I knew that they used to just use 1 and 0, but I never realized that False * 4 would equal 0 -_-
 
Useful for counting the number of True values in a list though.
sum(bool(b) for b in quux)
 
12:44 PM
That's truthy values
as long as your list was bools you could just do sum(quux)
 
Not if they're a list of True/False objects.
 
or no?
 
Ah yeah.
No you're right, I just did a derp.
 
lol, I was going to say - it works fine for me :D
That's okay, forcing me to actually try it out has embedded the knowledge more firmly
as opposed to just reasoning about it :)
 
DSM
Pet peeve: clickthrough pages where the text is something like "No thanks, I don't want to be the best" or something else equally passive-aggressive.
 
12:47 PM
Oh yeah.
I just don't go to their site anymore.
 
Those are annoying. Even worse when I clicked on the link from their email >_<
 
@WayneWerner I'm going to post an answer and see what happens. :)
 
cabbage
 
"Don't you track your email clicks???" (in the style of youtube.com/watch?v=mZHoHaAYHq8)
 
@WayneWerner I hope you scrubbed your motherboard clean.
 
12:49 PM
cbg, @BhargavRao
 
Hey @Wayne, Howyadoin?
 
@Ffisegydd I don't always run my computer underwater... youtube.com/watch?v=npbclAZ7kPM
 
Otoh get a hammer asap, I see a lot of your close votes in the queue :P
 
Mine?
 
Yep, Those which you have marked as dupes.
 
12:53 PM
Ah. Yeah, I come across a lot of dupes. Actually came across one today that I thought was a dupe
but the questions that read like they were dupes were actually questions with poor titles :P
 
I saw some 3 a few days ago.
 
Afternoon all
 
Good Afternoon
 
@DCA- good 12:56 UTC
I should come up with some kind of copy pasta for saying, "Look, I just went to google and typed in the exact text of your title and came up with these answers"
or something to that effect
 
LMGTFY.
 
12:57 PM
Most of the time I just go ahead and start to ask a question, because the title search is usually better than the SO search
@Ffisegydd blocked from comments -_-
 
Ah right.
I thought you meant for the room
 
ahhh, nope.
 
morning everyone
 
morning
 
DSM
Tutorial sites which suggest that Python passes mutable objects differently from other objects: disappointing.
 
1:01 PM
Indeed
 
Hi, @DCA-. Did you know that pi is hiding in the Mandelbrot set? If not, I can show you a tiny Python snippet that calculates pi by doing Mandelbrot iterations.
 
@JRichardSnape finally I can, yes :)
 
@PM2Ring, ive seen the numberphile :)
All in all the more i look at the set the more i like it
 
@DCA- Ah. Ok. :)
 
E.g. /menu?filter=item_type in 'food|drink' and valid_at_date eq '2016-04-23T18:25:43.522 and sort=-food
Yes, with spaces
 
1:03 PM
Did someone say Number Wang!!!? p
 
87?
 
Anyone seen that as a way to query a RESTful API? (By which I mean HTTP+JSON)
 
@JonClements cbg pups
 
Not on here often and just found the /salad page.. . I'm a fan
(and apparently a green bean)
 
For those who don't know about the pi - Mandelbrot set connection, here's a quick demo. It shows that pi crops up in the iteration count for points on the real line just to the right of the M set.
def mandelpi(n):
    z = c = .25 + 1./(n*n)
    i = 3
    while z < 2:
        z = z*z + c
        i += 1
    return i

q = 113.
print(mandelpi(q) / q)
prints 3.14159292035
 
1:15 PM
Wild
 
You can use any q that you like; I "cheated" by using a q that's a denominator in the continued fraction expansion of pi so I could get 7 sig figures in a small number of loops.
 
that's Python on bare metal, btw
 
Another easy place to extract pi is on the vertical line through -0.25, where the head of the M set meets the body.
 
@WayneWerner, that's incredible
 
IKR?
It made me feel all warm and fuzzy inside
or would that be cold and scaly?
 
1:21 PM
@WayneWerner Pretty groovy! Here's a M set generator with colour cycling I wrote in JavaScript about 5 years ago. Sorry, you'll have to download it to run it. forums.xkcd.com/…
FWIW, the "throat" of the M set (where the head meets the body) is infinitesimally narrow: although it looks like it has finite width on typical M set renderings, only -0.75 is in the set; for any non-zero k, (-0.75 + ik) will eventually escape, with an escape time related to pi.
 
That's delightful!
 
@WayneWerner No. That page is gorgeous (and I see it mentions Rudy Rucker, one of my favourite authors). But I did do some Mandelbulb stuff in POV-Ray when Mandelbulb was still very new. So my renderings are rather primitive & inefficient. And they're only of the full set, no close-ups.
 
Yeah, I had heard of the mandlebrot set several years ago... and only a couple of years back maybe I came across that site. So delightful
 
Morning cabbage.
 
1:37 PM
Huh. I'd totally forgotten about this: A very early exploration of the Mandelbulb. It's just a simple 2 colour GIF "CAT scan", that scans along the vertical axis.
 
Finally got Python installed on new work PC.
Aaaannnnnnddddd got the scipy stack too.
 
Mmmmm. Nice.
@PM2Ring Ooh, nice
 
Ta!
 
hmm, pov-ray seems to have pretty decent documentation
 
1:54 PM
@AndrasDeak It's great. But there's quite a lot of it. :) I'm a bit rusty because I haven't used it much in recent years, but I've been using POV-Ray since the Amiga days. And because it's script-based, all my old scene files still work.
 
Because it was originally written way back then, when RAM was $100 per megabyte it's got quite a small RAM footprint. Of course, on modern machines it's possible to create scenes that chew up a fair bit of RAM, but the POV interpreter & rendering engine itself is still very frugal in RAM usage.
 
cool
 
That's pretty awesome.
That's one of the reasons that I love assembly.
 

« first day (2028 days earlier)      last day (2913 days later) »