« first day (1600 days earlier)      last day (3341 days later) » 

2:27 AM
Hope this revision is okay.
 
 
3 hours later…
5:04 AM
Folks, my attempt at running python (my windows one) just does nothing under cygwin
2
A: How to use numpy with cygwin

Andrew AylettWindows python and Cygwin Python are independent; if you're using Cygwin's Python, you need to have numpy installed in cygwin. If you'd prefer to use the Windows python, you should be able to call it from a bash script by either: Calling the windows executable directly: c:/Python/python.exe ./...

Tried the above ^
 
6:04 AM
Cbg
 
6:30 AM
!help Cbg
!cbg
 
 
1 hour later…
7:40 AM
Cbg
 
Cbg @Ffisegydd
 
8:05 AM
Cbg
 
8:23 AM
Cabbage
does anyone know if uwsgi allows you to add mule workers programmatically from within the application? or do you need to do it in the uwsgi configuration (either via config file or --mule command line option)
also, how would you go about testing the code sent to mules? would you disable the multiprocessing at all (even in integration tests)? Or would you try to run the tests within uwsgi somehow?
 
8:46 AM
seriously what with cbg? enlighten me plz...
 
 
i'm the first.
 
I'm the last
 
8:48 AM
It's my birthday?
 
But why??!
wouldn't normal hello do... :)
 
Hello, I found this instruction in a documentation, may be someone understands what it means ? mask2=bp.where((masl==2)|(mask==0),0,1).astype('uint8')
this is correct: mask2=bp.where((mask==2)|(mask==0),0,1).astype('uint8')
 
weired. She posted 24 answers and all received an exactly one upvote stackoverflow.com/users/4532253/…
 
9:07 AM
Cabbage
 
@AvinashRaj is that the sort of thing that can be flagged for a mod to see if she has some zombie profile?
 
CBG!
 
Cabbage!
 
Cabbage
 
I'm trying to use ftplib to connect to xyz.com but then my code keeps bombing me with this error error_temp: 421 Sorry, cleartext sessions are not accepted on this server. How to solve this ?
 
9:17 AM
tl;dr: The server you are connecting to requires encryption.
 
Yes
I have looked into that but it's still not helping
 
You can probably use ftplib.FTP_TLS to connect
 
@RobertGrant i think you need to flag any one of the answer of her. I don't know exactly.
 
If I include ftpes:// then it gives me this error gaierror: [Errno 11004] getaddrinfo failed
 
@AvinashRaj makes sense. I guess they have stuff running that can pick up on one person always voting for another, etc
 
9:22 AM
@d-coder For curiosity, what type of FTP is that?
@d-coder I mean, what kind of encryption?
 
@RobertGrant Yes, flag one answer for moderator attention and describe what you suspect.
 
Done
 
import ftplib

ftp = ftplib.FTP('xyz.com')
ftp.login('username','password')
print "File List: "
files = ftp.dir()
print files
 
@d-coder Now try ftp = ftplib.FTP_TLS('xyz.com') instead?
 
I'm using Python 2.7
 
9:27 AM
@RobertGrant Her other account is likely this.
@d-coder So?
 
Wow, how do you find this stuff out?
 
@poke
@poke : Yeah. It's giving other error now. Login error
 
@Robert I just googled her Latin name
 
Oh, okay :)
 
9:31 AM
Cabbage
 
I really need Asparagus for this:
0
Q: Drag n Drop inside QgraphicsView doesn't work (PyQt)

Mr_LinDowsMacI created a custom class for some buttons. Those are a "draggable" buttons, which its name indicates, are buttons that you can drag and drop into each other (depending if is allowDrag property is set) and then make an action. The code of those dragbuttons is already posted here: Drag n Drop Butto...

@poke Gotta catch'em all? :P
 
pff :P
 
@poke Well, just asking. I was talking to a Pokefan yesterday in this room. xD
 
:)
 
Hello, why Python is not very popular as C and Java and PHP ? It is too powerful and simply the best
 
9:36 AM
It is hard someone who knows some PyQt :(
* to find someone*
 
@Mr_LinDowsMac FYI you can edit messages by pressing up :)
 
@Ffisegydd yeah, i know :P
 
Unfortunately, I don’t really do GUIs with Python.
 
Yeah sorry neither do I :(
 
@Kabyle Yes, it is very "easy" language to learn
 
9:38 AM
before I build a GUI, I rather build a small webserver that serves my UI in the browser >_<
 
Is it possible to create a GUI in Java and run the program behind in Python ?
 
@Kabyle However, in terms of performance, C is superior
 
@Mr_LinDowsMac yes, but if you develop a big project in C then its maintenance is too costly and heavy compared to Python
 
depends.
 
@Kabyle Depends, if the project is for embedded devices with very limited resources, I should pick C or C++
 
9:42 AM
I'm sure I'm using right username and password combo but still i'm getting Login error. Why is that ?
 
@Kabyle But some others pick Java, but more for portability rather than performance...
 
@d-coder You should ask the ftp server.
 
:D
 
(I’m serious actually)
 
@Mr_LinDowsMac I do not think it is wise to say that C is faster in this place: there are Pythonic Djihadists here :)
 
9:44 AM
@Kabyle I will avoid any flame war then...
 
@Mr_LinDowsMac haha :D
 
@Kabyle Also, i don't code in C. I don't develop OS xD
 
Any other modules that I can use to transfer files ?
 
@d-coder please open Google and search for yourself maybe?
 
@Kabyle But I'm having problems to find people who writes GUIs in Python, specially in Qt
I don't have enough reputation points to set another bounty :(
 
9:47 AM
@Mr_LinDowsMac I am just a beginner in TKinter :( I just read some of your questions, the last ones are about QT :(
 
@Kabyle Most python devs use TKinter, but didn't like it :(
 
@Ffisegydd or you could just mention the modules. :P
 
@d-coder No. Don't take advantage of the good nature of people here. Do your own research first.
 
@Mr_LinDowsMac why ? it is the simplest ones.
one *
 
@Mr_LinDowsMac is the code runnable in your question? For instance could someone take it, add what you need, and have a self-contained example that "works"? I don't know any Qt so can't tell if it is.
 
9:49 AM
@Ffisegydd Okay.
 
@Ffisegydd Yes, it is the second block of code where is the "exec"
 
@Kabyle I don't think anyone's going to say Python is faster than C, unless you mean in terms of time to market and time to no buffer overflows
 
@Mr_LinDowsMac have a bounty.
Hopefully it'll get some more attention.
 
@Ffisegydd The only code that I didn't provide, is the "DragButton" class because it was already in another question.
 
@Ffisegydd Great, now I have to learn PyQT.
 
9:52 AM
What a shame ^.^
 
xD
 
@Ffisegydd Thanks!!
 
@RobertGrant yes, in terms of execution, but suppose you develop a big software: if you code it in C then you will regret it because the speed you won in execution you will pay it in the amount of time you will need to maintenance your software. In this case Python is better because it is easy to maintain Python code
 
@Ffisegydd I didn't know that you can start bounties of questions that you didn't ask lol
 
@Kabyle again: depends.
 
9:55 AM
@Ffisegydd a bounty for someone else. Ffisegydd= Jesus :)
 
@Kabyle agreed, but the word "faster" doesn't describe any of that.
Hence my comment
 
@RobertGrant yes, you are right
 
0
Q: Importing scores from a quiz into a file and sorting them in three ways

Mikolaj UrbanskiI needed to create a random maths quiz and make it save the best 3 scores for each student. I need help with saving the scores to a file, I used csv, and sort it in three ways. In alphabetical order with each student's highest score for the test By highest score, highest to lowest By the aver...

GCSCCSCECSSCE
 
@poke Well, at least the GUI of Qt is more prettier than Tkinter...
 
I don’t like either xD
 
10:02 AM
qt rlz
 
@Kabyle the other reason that I choose PyQt is because the chance to use Qt designer
 
Qt is actually usable.
TkInter is pretty horrible, but big names have used on Qt on commercial consumer apps
 
@Mr_LinDowsMac is there a difference between QT and QT designer ?
 
QT Designer gives you drag and drop ability to make guis
 
Qt designer is the default UI designer of Qt...
 
10:03 AM
@Kabyle the same difference as between Python and pen-on-paper
 
@AnttiHaapala i must check that right now on internet then
 
However I found some problems to implement my GUI generated in Qt designer :(
But it is still usable in some cases
 
@AnttiHaapala yes, it is a tool @Mr_LinDowsMac
 
@Kabyle Qt designer is made to generate C++ code, but PyQt project made pyuic to translate to python code
@AnttiHaapala Unfortunetly, I had to drop the use of the designer generated code because I can't resolve this: stackoverflow.com/questions/28515875/…
 
@Mr_LinDowsMac Thank you for information. On my side I do not like tools apart from Eclipse or Gedit on Ubuntu
 
10:13 AM
@Mr_LinDowsMac I commented on that there...
 
@AnttiHaapala So i decided to make everything from scratch sigh because worked in that way
@AnttiHaapala Oh, yeah, I renember that we talk about this before xD
 
BTW I have made a similar thing on Eclipse RCP + GEF on Java (well not at all the mixer but graphical editing like that)
 
@AnttiHaapala Oh :o
 
I think the problem is that those widgets are not contained within the drawing parts
 
@AnttiHaapala what is RCP and GEF?
 
10:15 AM
java stuff :d
but the funny thing is: I started on that tool on subcontracting, and there were 2 choices: PyQT and Java...
I think it was the right project to choose java over Python
now it has more than 50000 lines of code written by me alone, but on Python I would have had to write so much more
 
@AnttiHaapala why? because the GUI?
 
@Mr_LinDowsMac this is GEF google.fi/search?q=gef+eclipse
*see images
with full open source code, so I was like ... "maybe this is a bit easier"
 
@AnttiHaapala Is this a designer/simulator for logic circuits?
 
oohhh, i'm an angel..
Ur an angel, thanks :) — MrCharli3 8 mins ago
 
10:21 AM
but it is just a demo program
anw, so mine was not at all related to logic, but it was easy to start from that :d
so instead of having to write from scratch I just refactored :D
 
@AnttiHaapala i wondered why your last answer won't receive even a single upvote..
 
:D
I am persona non grata
I do not have dark minions
 
@AnttiHaapala I'm just started to consider move to Java :S
@AnttiHaapala Mostly because I would need some practice :/
 
@AnttiHaapala you are persona non grata because you did not celebrate kalevala day on Feburary 28 th :)
 
note that this was a biiiiiiiiiiig one
@Kabyle slap :d
 
10:25 AM
most of the correct , well suited answers (python) must receive even a single upvote within 5 mins. But i don't know what's wrong with that question? Yep, mine is using re module, which reduces the performances as compared to split you suggested.
 
@Kabyle it is my brothers birthday
 
get my point.. :D
 
@AnttiHaapala ok, excuse accepted :)
 
going to delete mine.
 
@AnttiHaapala I didn't choose java because I didn't want the nightmare of running eclipse on my PC
 
10:31 AM
@Mr_LinDowsMac Eclipse is so easy to use whatever the OS you are running
 
@Kabyle it is easy to use, but last time i used take a lot of time to startup
@Kabyle perfomance of the IDE Eclipse I don't know if have been improved
 
@Mr_LinDowsMac not slower than other IDEs like Delphi or C++ Builder ...
 
@Kabyle My PC can't afford an optimal experience in eclipse I guess...
@Kabyle Or Visual Studio :S
 
@Mr_LinDowsMac Maybe your computer is invented by the Greek civilisation ?
 
@Kabyle I need another one :/
 
10:35 AM
@Mr_LinDowsMac you can either make a new one from your old ones, or steal a new one from the shop :)
 
@Kabyle I have another more older that what I'm using one
@Kabyle At least in this one I can run properly a modern OS
 
@Mr_LinDowsMac give it a try, may be you can build a new better one from your 2 old ones
 
A lightweight Windows 7 and ElementaryOS (Linux)
 
cbg
@Mr_LinDowsMac What makes you say "Most python devs use TKinter"? I suppose many Python devs take a look at Tkinter when they first get interested in doing GUIs in Python because Tkinter is often (but not always) included with Python. BUt when they get serious they'll migrate to something less ugly and more powerful, like Qt or GTK.
 
@PM2Ring Ok, I change my sentence to "Most devs that I found use TKinter"
 
10:46 AM
OTOH, I guess Tkinter is ok as an introduction to GUI programming, partly because it's smaller, so there isn't an overwhelming amount of stuff to learn. And a lot of the skills you can pick up doing Tkinter will be transferable to other GUI systems, to a degree.
 
@PM2Ring Well, In my case i decided to skip that introduction to go directly PyQt, because it was less ugly xD
@PM2Ring and the chance to use a GUI designer: Qt designer
 
Personally, I played with Tkinter a little bit in my first year of Python, but I've forgotten most of the details. I've been thinking of getting back into it so I can answer Tkinter questions on SO. But I do find it annoying and a bit ugly (although I admit it's not quite as ugly as it was in the early days). I don't do a lot of GUI stuff, but I did invest a bit of time 5 or 6 years ago learning GTK2... I guess I ought to migrate to GTK3...
 
@PM2Ring However, at this point I'm dropping to use it, I'll had to do everything manually due a problem that I couldn't resolve.
 
There are GUI designers for GTK, but I don't bother using them. I don't mind laying out my GUIs manually - I use a little collection of helper functions to streamline the process, so it's not too verbose & it doesn't take that long.
It probably takes longer to actually decide on the design of the GUI than to code it. And doing it by hand means I'm aware of all the little details, rather than viewing it from a distance. OTOH, I guess automatic tools do make it easier to experiment with alternate layouts.
 
@PM2Ring That renemebers me that I started to use GTK and Glade...
@PM2Ring BTW, do you know something about PyQt?
 
11:07 AM
The mistake that a lot of beginner GUI programmers make is that they try to do too much, too soon. They want to make a killer app before they really know the basics. You need to spend some time getting familiar with the GUI system, and the different widgets, and how to do event-driven programming.
A good way to do that is to slowly work your way through a tutorial, studying and modifying the example code. And writing lots of your own small examples so you can learn about each widget through experimentation. After doing that for a few months you can start working on more complex programs.
@Mr_LinDowsMac I'm afraid not. I've had a little look at Qt, but I've never programed with it.
 
@PM2Ring I see...
Well, I have to say Rhubarb to all...
it is 04:00 am here :/
 
user4587874
guys is there a quick way to divide a string of numbers into parts of identical sequences? e.g. given 224445666 it would give 22, 444, 5 , 666. thanks for any hints
 
user4587874
^^
 
@user929304 Do you want to group those chars using a standard module function?
 
11:12 AM
@user929304 is: [''.join(g) for k, g in itertools.groupby(your_str)] quick enough?
 
My imperative brain says use a for loop and keep incrementing i within the for loop and accumulating on a new list until you hit something different, then push the new list onto an overall list of lists and move on
But wow, that's what makes me not @JonClements
 
user4587874
@PM2Ring yes that would do the trick
 
I was trying to drop a subtle hint. :)
 
user4587874
@JonClements oh, thanks for the suggestion, gonna try it asap, see if it works
 
@RobertGrant That's a good thing... there's only room for one cute yellow 3-legged puppy in this room! :p
 
user4587874
11:16 AM
@JonClements fantastic, it works, how is it possible to do this in one line, is beyond me by miles.....
 
I would love to ask a question because I am developing some stuff in Python related to images and colors. I just wonder if YUV color space is more accurate than Lab to deal with colors ?
 
@Kabyle Have you read these Wiki pages? en.wikipedia.org/wiki/Lab_color_space and en.wikipedia.org/wiki/YUV ?
 
@PM2Ring Yes, of course. I read that both Lab and YUV are derived from RGB, I saw the equations but I am not sure which one is more accurate
 
Wiki says: The Lab* color space includes all perceivable colors, which means that its gamut exceeds those of the RGB and CMYK color models (for example, ProPhoto RGB includes about 90% all perceivable colors). One of the most important attributes of the Lab*-model is device independence. This means that the colors are defined independent of their nature of creation or the device they are displayed on.
 
@PM2Ring yes, thank you, but I am comparing Lab to YUV (not to RGB)
 
11:28 AM
@Kabyle this is the Python room, not the color-space room. I'd suggest you ask on a different SE site. Photography would probably be your best bet.
 
@Ffisegydd Ok, thank you, however I will be patient in Photography website because I must have 20 points. I guess I have to read more articles by myself. Have a nice day all of you people
 
Ask them if photography is the one true art form, that ought to get you some votes
 
The YUV family of color spaces are easier to work with than `L*a*b*`, but their gamuts are smaller, and they aren't absolute color space. Essentially, they're a way of encoding RGB information in a way that's compatible with the old B&W TV. But the actual conversion from a YUV space to actual color is a bit vage. Eg, on conversion of Y'UV, Wiki says: Y'UV is not an absolute color space. It is a way of encoding RGB information, and the actual color displayed depends on the actual RGB colorants used to display the signal. Therefore a value expressed as Y'UV is only predictable if standard RGB
 
I <3 photography.
I really want to buy a new camera, but I don't have the money D: in fact I want two new cameras.
 
I’m still waiting for the 80D…
 
11:33 AM
@Ffisegydd Good call. But before I shut up on that topic I'll mention that Python has a nice (but basic) colorsys module.
 
I've got a Canon 500D and I think if I upgraded I'd go for a 7D Mk II. I was tempted by a 70D but if I'm going to upgrade I think I'd rather spend the money and get the 7D. I'd also love a Lomo'Instant Sanremo because I'm a closet-hipster.
 
I'm your mortal enemy with a Nikon
 
@Ffisegydd I want the 7D MkII too, but I feel like it’s too big and also a bit too expensive.
So I’m waiting/hoping for the 80D to be the perfect in-between solution.
 
But speaking of colour, I wrote this cute little thing yesterday to print Von Neumann ordinal sets in colour:
import sys

def tint(i, s):
    i %= 8
    return '\x1b[%dm%s\x1b[0m' % (30 + i, s) if i else s

class ColoredSet(list):
    def __repr__(self):
        color = len(self)
        body = tint(color, ', ').join([repr(u) for u in self])
        return tint(color, '{') + body + tint(color, '}')

def ordinal_sets(n):
    i, z = 0, ColoredSet()
    print '%s = %s' % (tint(i, i), z)
    for i in range(1, n):
        z = ColoredSet(z + [z])
        print '%s = %s' % (tint(i, i), z)

if __name__ == '__main__':
 
11:38 AM
@poke the size is one thing putting me off it. I didn't even know they were planning an 80D so I may look at that if/when it comes out.
I've got a Fuji X10 as my small/compact camera, but I don't really want a behemoth of a D-SLR.
 
Well, they didn’t talk about it yet, but of course it’s coming eventually
The when is just the big unknown.
A few weeks ago, people actually thought that they were teasering the 80D but it turned out to be the 760D.
^ There.
The design fitted the more advanced series, so people didn’t expect a 3-digit model. But it turned out to be a “slightly more advanced” version of the 750D; the 760D.
 
Ah. Yeah I found that image. I probably won't be upgrading for the foreseeable future (maybe a year from now) so hopefully by then either a) the 7D MkII will have dropped in price or b) the 80D will be out.
My 500D is doing fine as it is.
 
b: Probably, yes. a: Likely not.
I was actually hoping to upgrade about… now.
So I was really excited when those rumors started appearing in January. But boo.
 
I don't need lenses at least, so that'll make upgrading cheaper.
 
“cheaper” :P
 
11:45 AM
You know what I mean :P
My lenses are the lower-quality ones but they're serviceable.
Apart from my macro lens which is a beast I bought 2nd-hand off ebay.
 
3-digits are 700€, 2-digits are ~1k, 7D Mark II is ~2k… I’m still hoping :P
 
We need a way to make money off SO, then we can all have 50MP 5DSR.
 
I don’t want that one
I would have to buy a studio then.
(or rent one)
 
Actually yeah. It's worse in the other features.
5D III then.
 
I think I’d be perfectly happy with a 7D Mk II tbh.
I like staying on APS-C
 
11:56 AM
Yeah in reality I wouldn't upgrade from APS-C, and 7D II would be the best. All my lens apart from my macro are EFS so I'd need to buy a whole new set. But a boy can dream of 50MP cameras...
 
:D
^ That.
 
Ah. Well. Yes...
 
:D :D
$27.5k on Amazon – and free shipping!
 
If I won the lottery tomorrow it'd be a Leica M Monochrom
 
@Ffisegydd Well, your chances of winning the Lottery on a Thursday are at the moment - non-existent?
 
12:03 PM
As I haven't bought a ticket, it doesn't look too good.
 
user4587874
guys, how to avoid "\n" at the end of list elements, when reading an opened file? (f = open(...) for line in f ....list.append(line)) it adds "\n" at the end of each element, how to avoid this?
 
@user929304 load it as lines = [line.strip() for line in f] instead?
And you should be using the with statement so automatic cleanup/closure occurs, eg:
with open('filename') as fin:
	lines = [line.strip() for line in fin]
 
user4587874
@JonClements ah yes, strip() thanks a lot
 
@user929304 you may want to consider strip('\n') if you only want to strip newlines.
Using strip will also strip spaces/tabs etc IIRC.
 
user4587874
@Ffisegydd fantastic, thanks, very important to know
 
12:24 PM
Leica cameras are amazing
 
They are. So beautiful.
Best lenses in the world.
 
And I got a 6 years old cheap Lumix camera which no longer works
 
@61612 that's probably why it's cheap? :p
 
@JonClements I mean it was/is cheap compared to DSLR cameras
 
12:46 PM
@Mr_LinDowsMac cant really complain much about eclipse :D for java that is
 
12:56 PM
re-cbg
 
I think I may need to eliminate the semicolons from KS if I want the REPL to be easy to implement
Considering the generally fragile nature of my parser, this may be impossible
No context sensitivity and no lookahead (uh, I think) makes it not very powerful
 
I don’t like hearing “I think” from a language designer…
 
I'm not very good at it. I'm still not sure whether x = -1 is valid KS syntax.
 
@poke but surely the ones that just go.... this may not be useful but it looks fing cool - let's implement it regardless.... way hay!* are way more fun!
 
Unary minus may or may not be part of the number regex. Haven't looked in that file for a while.
 
1:08 PM
@Kevin so errr.... how would one express negative numbers? :)
 
x = 0 - 1 would work
 
x = 2 - 3 # just because we can't write -1 !!!!
 
fil = myfile.read()
why python gives an extra newline at the last?
 
Or maybe x= ---1 # make it clear we really do mean negative 1
 
if i print
 
1:10 PM
x = negative 1
 
print(fil, end="")
 
@AvinashRaj you've probably got a blank line at the end of the file?
 
this question is just "explain argument packing to me" if anyone happens to know a nice dupe
 
it won't give a extra newline character but if i want to deal with readed content then it comes an extra newline.
@JonClements how i get ridoff that blank line?
 
@AvinashRaj which like I've said, is probably in your file
 
1:12 PM
no, it's not on my file.
 
This is super weird. We had this conversation like one page up.
1 hour ago, by user929304
guys, how to avoid "\n" at the end of list elements, when reading an opened file? (f = open(...) for line in f ....list.append(line)) it adds "\n" at the end of each element, how to avoid this?
 
Why don't you print(fil.read().rstrip('\n')) and still let print do a new line...
 
wow, nice..
 
Pretty surprised that argument unpacking question didn't get answered the instant it was posted. Maybe everyone is like me and can't remember whether it's called "packing" or "unpacking" and didn't feel like guessing
 
@JonClements Because rstrip creates a new string and is probably more expensive than just not writing another newline character.
 
@poke well... I wouldn't even personally use .read() most of the time anyway
 
pipe to stdout
 
I suppose print(*(line.rstrip() for line in fil if line.strip()), sep='\n') is kinda an option
 
Is there no pipe support for streams in Python?
 
stackoverflow.com/q/28855447/3005188 has edited so doesn't explicitly ask for a library. Not sure whether to re-open?
Actually
The question is still too broad now though. — Martijn Pieters 48 secs ago
 
1:24 PM
@poke well, you could do sys.stdout.writelines(fil)...
 
Oh, right, shutil.copyfileobj!
shutil.copyfileobj(open('myfile.txt'), sys.stdout)
(probably)
 
@poke I think at that point I'd be executing less instead :p
 
@Ffisegydd I suppose what the OP wants is possible, but it is going to be a bit of a project to handle all cases. Detecting a mapping for example vs. tuple vs. single string o the right-hand side.
 
Indeed.
 
@JonClements There’s no less on Windows ;P
 
1:27 PM
@poke that's not my problem :p
 
Somehow I created a command prompt that accepts no input and can't be closed and it can't be terminated from Task Manager and it has no accompanying process that I can stop.
This is what I get for using os.system.
 
Good job
 
There we go, terminating git.exe got rid of it (???)
I think system is justifiable here. I'm writing a script that opens cmd/git/explorer/notepad to various KS directories/files so I can jump into action more easily.
 
C#. Where you can get four upvotes in a few minutes with an answer that just says public class State : List<string> {}.
 
you can tell someone plays a lot of video games when after typing, their left hand immediately goes to W-A-D-shift-space keys
 
1:40 PM
My hand never leaves that area, because my left hand is typing on that side of the keyboard.
 
after I finish typing and press enter I press shift-e (hotkey for ghost wolf) even when not playing games :\
 
Pfft. Shamans are for noobs. Druid all the way (or hunter pvp).
 
druid is my alt. Enhance shamans are best, even if they are mediocre right now
wait there's content other than PvP? Psh
 
I used to raid and was a Guardian Druid. I don't raid anymore and mostly do pvp now, and got a Survival Hunter.
Horde or Alliance?
 
Have draenei shaman, undead hunter, and NE druid, you?
 
1:51 PM
Fair play. Tauren druid, Troll hunter, and miscellaneous other Horde toons that are all <100.
 
Oops, I can't remove semicolons from KS, because then x = 1 \n + 2 is ambiguous, interpretable as x = (1+2) or x = 1; +2
 
fun fact: blizzard now has a web api. You can try curl http://us.battle.net/api/wow/character/draenor/crowmo\?fields\=pvp | python -m json.tool to see character info
 
@Kevin read about ASI then forget the thing :D
 
@corvid that's actually pretty cool
 
1:52 PM
Hah you're on Draenor US? I'm on Draenor EU :P
 
Advertising Specialties Institute?
 
I built a card-guessing game for hearthstone not long ago, but moved on to other pressing dev tasks
 
automatic semicolon insertion of javascript
 
@ReutSharabani battle.net also has a node.js oauth authentication library, which is pretty cool
 
I used only local data which I dumped to a mongo db. It's not like anyone actaully played it for the two weeks it was up :D
 
1:53 PM
basically: you have 4 choices: use ; always (C), use ; on same line (Python), use ; as a statement separator (Pascal) or fuck up everything and do ASI (Javascript)
 
Leaning towards "use ; always" here
Which is almost how it works right now, except the final semicolon at the end is optional in non-strict mode.
 
@Ffisegydd then we must duel!
 
But this is no good, because to properly implement the REPL I need to distinguish between 1) well-formed complete programs, 2) well-formed programs that haven't been completely entered yet, and 3) badly-formed programs
 
I once wrote a Python script for our RL so he could keep track of who needed what loot, I could totally re-write it using the wow api...
 
But in non-strict mode, which adds a ";" to the end of the script for you, there's no easy way to determine whether "x = ;" is of category 2 or 3.
 
1:59 PM
@Ffisegydd right now I am making a guild website generator that gathers all users of the guild, creates their profiles, and updates it in real time where you can manage guild groups... too bad blizz doesn't really offer anything to change data on their servers, wanted to update guild member's ranks
 
Basically I want to identify category 2 programs by reading the exception raised from parsing it, to see if it says "expected [whatever], got end of file instead", but with non-strict mode, it will instead raise "expected [whatever], got ';' instead"
 

« first day (1600 days earlier)      last day (3341 days later) »