« first day (1987 days earlier)      last day (3185 days later) » 

03:09
I'm not sure wht to do about this question I want to just say don't do that but that is specifically recommended against in the help center.
 
2 hours later…
05:13
@TadhgMcDonald-Jensen just don't answer that question, flag/cv it...
it gets deleted in 30/60 days automatically if it doesn't have any answers and especially if closed
actually I worked out the actual question with the OP and it isn't too bad now
even with the fixes the question is still about "I want to hit my head to wall, but it hurts"
(looks at it again) oh dear they added NEW in all caps again....
I cleaned it up a bit, hopefully it sticks.
05:30
-1
Q: JAVA - if statement not working, comparing values meet req, but action is not being performed

Deek3117JAVA - I'm currently taking in the x and y position of the mouse and am comparing it to the location of a square. I checked the values of all that I was comparing and it should work. I also copy pasted so the code is the same in the if and in the S.O.P. I NEED HELP I'M LOSING MY MIND! Sy...

omg.... how stupid can one be :(
cv pls
asked the OP to tag the question as Java, just writes "JAVA" everywhere but no tag.
I want to replace the text of that question with just JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA.
yes
please do :D
 
2 hours later…
08:35
@poke I don't know if you've already got the Nik software but Google just made it free gizmodo.com/…. I can personally recommend it as someone who spent the £100 on it last year O_O
Anyone else that does photography should give it a look also
 
1 hour later…
09:43
does anyone here know anything about pyunit
10:14
Hellouuu
Somebody used APIs for The Foundry Nuke and 3D Equilizer?
11:05
Hello people, complete newbie to python, why does the following throw an error? class Graph:
def__init__(self,nodes):
self.nodes=nodes
(def__init) has 4 spaces and self.nodes has 8 spaces
Let's start with the error message
SyntaxError: invalid syntax
det1.py", line 8
def__init__(self,nodes):
space between def and __init__
ah thanks
np
11:09
does def and underscore has a space?
Yhea that was the problem idjaw already told me so and it now works (kinda)
11:31
cbg
cbg
anyone know what the valid syntax for for node in g.nodes is?
g is a object containing nodes
@Thijser I suggest you read some book
or tutorials in Python's website
syntax errors are the errors telling you that you should read a book
^ What @khajvah said
@khajvah was hoping you could tell me
11:42
I can but that won't help you much.
damn, non-English domain names are cool
I am tempted to buy one, which will have no use
11:57
@khajvah share some with us!
Can you give me some words with error UnicodeEncodeError: 'utf-8' codec can't encode character '\ud83d' in position 25308: surrogates not allowed? — 程书意 13 mins ago
beeeeeeeeeeeeeeeeeeep
could anyone explain to me exactly how render in return render(request, 'home.html',{}) works? i have a heroku app that 500 errors and I'm trying to deduce why. return HttpResponse( works I've simplified things as much as I can and I think I just need to know more about what render( does.
@clickhere This is Django I think, or something else ...? Also, this maybe sounds like a good SO question?
flask
no, and it wouldn't make a good SO question
I'm asking about django
12:07
ah :D
anw, not a good question unless you can get the actual error!
sorry, just assumed, do to my own naivety that it was inferreable
my PyCharm is telling me that render is django. Also, the method description is pretty clear. Did you look at the code @clickhere ?
@AnttiHaapala Not as stated − but with more information...
yes ofc.
but "explain to me" -> and I'd cv it as too broad right away
yes, the docs states 'Combines a given template with a given context dictionary and returns an HttpResponse object with that rendered text.' And HttpResponse works, so it would seem to be something to do with templating
12:08
are you able to debug in your editor to see what is going on in the code when you get to that line?
that would give you the best explanation
But i've checked my logs and found nothing, and it's not set up any differently than other sites, as far as I can tell. @idjaw, the website works with debug=True but not when it's set to false and I have allow all hosts
that's not what I'm implying
I'm talking about actually using a debugger
i'm unfamiliar
and stepping into the code
is that a feature of sublime?
12:10
Check the package manager to see if there is a debugger you can add to sublime text. I would not be surprised.
It's got tons of packages you can add
*inserting necessary PyCharm advertising here*


use PyCharm :P
I tried pycharm for a while, it didn't make sense to me :\
didn't make sense to you? How so?
Real men use Vim!
haha
with no plugins
and not even vim....just good ol' vi
albiet i was much less experienced than I am now. to your question, I didn't understand the project/file/dir structure. Couldn't tell when I was in a project or not, or how to get out of one, start a new one, open an old one etc.. stuff was failing because of that, pretty sure i messed up a bit of things
12:14
@idjaw Well, that's too hardcore for me as you only get one undo with ol' vi. The almost compatible nvi fixes that though
I do know of an OpenBSD contributor who wrote all his code with ed (ten years ago, not sure if he still does)
wow haha
on the topic of vim. I do have to say that with pathogen, it's a pretty badass editor
@idjaw The annoying thing with Pathogen is that you can never update your plugins
Well, you can, but you have to do it manually
right. This is along the lines of my issue with oh-my-zsh...I have it forked, and the auto-updater does not work for me since it doesn't check upstream. Come to think of it, I never actually pushed my fork to modify the updater to check upstream. I created an issue for it I think....I should revisit that.
DSM
DSM
How cute! People using starter editors not written in lisp. It's like a dog wearing a hat standing on another dog weaing a sweater. #onetrueeditor
Morning cabbage.
:) Morning @DSM
12:21
@DSM perhaps you meant "#onetruereligion"
I like Emacs in the sense that its implementation is much better than Vim (which is hardly a great accomplishment, but still), it's just that it has a horrible user interface. Evil mode fixes some of that, though ... I've been meaning to look into that
12:33
@AnttiHaapala Not sure I follow your comment. (figure it would be easier to chat here)
I knew it was you :D
haha
@Carpetsmoker neovim fixes some issues too
@idjaw I need coffee :D
@khajvah ... And introduces a bunch of others ...
12:34
@AnttiHaapala Does that mean that I'm not crazy and my answer is correct? Or you're not ready to talk about it
:P
no you're not crazy
but I've been cleaning tweets for some time... (social media analytics)
@Carpetsmoker Bugs or feature issues?
@AnttiHaapala ah. I feel like my solution is a very simple approach to something that can be much more complex and would probably require more intelligence (given added complexity to the requirements)
the twitter hashtags are not necessarily separated by whitespace
so if I have a tweet that is ILoveCheese#cheeseIloveIt
no spaces at all
how is that interpreted?
Not sure I understand why this for nod in g.nodes is not working
@Thijser Read the error message
then google "Python for loop"
syntax error
@Thijser it also explains where
on the g.nodes
12:38
@khajvah Depends on what you call a bug. For example, when I start neovim I get "no such autocmd". I went to the docs and there is no mention of removes autocmds, so I can only guess what this is. I also get an error "inappropriate ioctl for device". No idea where that's coming from. The error text is also in black text on a red background (instead of white) Not sure why that is
There are some other things I don't like. I saw "tnoremap" mentioned in the docs somewhere, so I type :help tnoremap and no results. :help tmap and still no results :-/ That was rather disappointing ...
Plus, of course, that they want to remove basically every feature that makes Vim useful
So then you have to install Neovim and the hunt for 30 plugins to make the damn thing work
@Carpetsmoker that's a bug I guess.
so it seems that hashtag needs to have # at the beginning of a word, but does not need to be space delimited
@Carpetsmoker I mainly like async stuff
12:40
@AnttiHaapala oh! interesting. Thanks for the info on that. I'll have to revisit this. The kids are yelling...I need to put the "dad" hat now. temp-rbrb
thanks
lol :d
@idjaw many ppl would agree with you: stackoverflow.com/questions/8347567/…
Thus far, I haven't seen a really good reason to use Neovim
@khajvah Vim has that too now btw, albeit in a different way
Do you use Vim for every language?
@khajvah Yes
I was looking for Scala autocomplete but gave up
the only choice was eclim
12:43
I never really use autocomplete
wait
And when it's offered "in my face" (like in the Firefox console) I find it more annoying and distracting than helpful
how can you live without autocomplete
what about long identifiers?
I don't understand why people consider it such a vital thing?
I have a keyboard that I can type them in with :-)
what if you don't exactly remember the name?
12:46
Most of my time isn't spent on typing stuff in the editor anyway, it's usually either thinking (and I can't think faster than I can type), or rearranging stuff (and that's where Vim is very helpful)
I usually do? And if I don't, I look it up (and if I can't remember the name, the chances are good that I need to look it up anyway since I need to know the arguments/documentation/etc)
I think you have various features/plugins to help with that like automatically showing the docs − that might be helpful, but I haven't taken the time to properly set that up (yet)
Having somebody who doesn't use autocomplete would be useful in a team I guess. You would have to remember that before making typos in identifiers
@khajvah Not saying autocomplete isn't useful as such btw, just that so far, I've been able to live my life without it quite well :-) Then again, I lived my life quite well without better_errors in Ruby on Rails (which shows an interactive console on exceptions) for years, but after discovering it last year I find such a tool quite essential...
I think Dennis Ritchie once wrote something about that, about how basic the tools were in the first Unix editions, and how unbearable he would find them now
I am quite spoiled kid I guess.
but yea, when I use an IDE, I don't use 90% of its tools
one example is git
I'd really want to use bisect :D
12:58
Always felt better using the command line
ah I thought you meant "didn't use 90 % of git" :D
it would work for git too :D
all I do is commit, push, pull, fetch
and sometimes stash, when it doesn't let me merge
@khajvah Just like >95% of people, which is why mercurial is a superior system ;-)
@Carpetsmoker Is it simpler?
13:00
no blame, no history, no nothing?
oh yeah, I do git log sometimes
never branched?
that too
never rebased?
nope
13:01
@khajvah Yeah, git is really powerful, but it immediately exposes all that power with a commandline tool that's just not very good (and lets not mention the docs...) ... hg is optimized for the 95% of us, an the rest is in extensions
@khajvah rebase is what you ought to do if you've got 10 local commits that you did before pushing, and find out that upstream has changes as well.
as simple as that
My favourite git command is git instaweb. It's a shell script that generates a Perl script which runs a Ruby script.
@Carpetsmoker what happens if your co-worker messes up something in some GUI and asks you fix that? No weird magical commands?
@khajvah Not sure what you mean with "messes up something"?
@AnttiHaapala I read about it but I just fix conflicts and push
13:04
@khajvah but it would do a merge instead...
which means that history will become a mess :d
@AnttiHaapala oh yes it does
I am actually bad with that as well :d
I'm not a big fan of excessive rebases as I've seen too many people introduce merge conflicts in a rebase − the "merge" action is never recorded in history, and you can get "weird" bugs with that
should learn to rebase more often
@Carpetsmoker There are GUIs that are supposed to "simplify" git stuff but often they mess up everything.
if you don't know what it's doing
13:05
of course you're allowed to rebase only your own commits that you never pushed
Basically, a rebase means you're lying to everyone about what you did in what order. In some cases it's certainly useful, but with any powerful tool, it should be used with care and thought (which unfortunately doesn't happen often enough).
I will rebase my next commit
to be honest, I don't commit that often
so I might not need that
@khajvah Then the solution is to not use those GUI tools ;-)
that's also one thing to learn
@khajvah one important thing to learn when using command line or not would be to do git add often
@Carpetsmoker yeah, they are terrible.
13:06
Mercurial comes with an actual usable GUI out of the box, so no need for vague third-party crap
Windows users have hard time with writing commands
@AnttiHaapala why?
Cabbage
Cbg everyone
@khajvah you get free backups :D
cbg
oh so when you add but you don't commit, it backs it up?
13:08
@khajvah Is that an argument for discriminating against the CLI, or against Windows? ;)
@PM2Ring windows
@PM2Ring Windows just isn't built for using the commandline. I mean, you can't even resize the friggin' commandline window... :-/
Fine. :)
CLI is amazing
Nothing wrong with that, just a different paradigm.
13:09
@PM2Ring I guess I chose the correct answer :D
@khajvah yes even then, git stores it in the index area, you can restore the added file from there.
@Carpetsmoker GUIs aren't suitable for everything
@AnttiHaapala nice
@khajvah I don't disagree with that as such, but many folk have different opinions ;-)
@Carpetsmoker It's almost like Microsoft go out of their way to make the CLI as unpleasant as possible.
lots of niceties in git... the bisect is some serious tool :D
I've never found any use for it personally however...
13:10
I used it once to find a regression in Wine which caused some bug in Fallout
@PM2Ring isn't it that microsoft took the POSIX as a guideline: "don't do this"
@AnttiHaapala In the early days of Microsoft there were rumours circulating that Bill Gates derived essential parts of MS-DOS from "stolen" Unix sources, so he intentionally made various things in MS-DOS different to their Unix counterparts, eg the path separator and the end-of-line convention. Whether there was any truth in such rumours, who can say...?
there is nothing in the msdos that could be possibly derived from anything
you cannot start with something like unix and end up with msdos
The most retarded thing in Windows CLI is case insensitive directory names
@PM2Ring they say that / as a switch character was used before directories were supported
13:19
well it's not CLI thing but it appears a lot when using it
@khajvah Mind you, the fact that Unix permits \n in filenames isn't exactly a brilliant move.
@PM2Ring Nah. / couldn't be used as it was already used for flags (like Unix uses -), this goes back to QDOS which took it from CP/M, which goes back to the early 70s
@AnttiHaapala Good point.
@Carpetsmoker FWIW, I used CP/M on a few different machines, but that was in the early 1980s.
DSM
DSM
#commodore128
13:21
8.3 filenames
How weird. I was just thinking about this old answer a day or two ago, and someone just upvoted it.
I will have to use msdos for a course
because my professor wants to use TASM
and back. I didn't check the weather and I was met with freezing rain. Fun drive to daycare.
conclusion: water is wet, and ice is icy.
DSM
DSM
13:37
@idjaw: I almost killed myself walking home yesterday. Eventually I decided it was safer to skate than to walk because that way my feet would never leave the ground.
yeah. Smart thing to do.
On that note, at least you weren't this individual. I love this video
just because of the over confidence of it
That just looks painful :-(
@AnttiHaapala I'm looking at that tweet again. My solution and that highly upvoted ones are naive approaches to something more complex.
however, is anything with a hashtag in it defined as a hashtagged word?
so could it be as simple as '#' in w?
@idjaw I emailed you last night, just so you don't think it's an imposter :)
@Programmer Was waiting to see you here. I got your email. I'll be answering back with some questions to help narrow down the events :P
A very similar question to this was asked earlier today....is there some kind of exam going on in some part of the world that has these questions coming up?
same formula. Barely any code. Just an example of what they have and what it should look like with the same format of string replacement: :thing
14:09
damn, I have to quit my job to save my semester
I am failing 2 of my courses
DSM
DSM
What're the courses on?
not hard- real analysis and differential equations
i just can't find time to study
=/ sorry to hear
DSM
DSM
Then maybe you have the right idea.. analysis was one of my favourite courses, but it does take time.
Cabbage!
14:12
I didn't like diff eq...maybe it was just the teacher :p
@Ffisegydd Wow, I never heard of that before, but it looks very interesting. Thanks! :)
yeah, I basically have time only on weekends
and that I have to spend to be social
It's all coming together now...
bacon?
It's a Set card.
Good ol' 3 purple stripe squiggle.
I've been battling with PIL all week to render all 81 cards at arbitrary resolutions
14:18
Are you drawing with Python?
Yeah.
Finally, I have something on-topic to talk about :-P
stackoverflow.com/questions/36211327/… stackoverflow.com/questions/36212349/… – OP thinks it’s nice to delete the questions instead of accepting an answer…
^^I assume +10K can help out there right?
Yeah, 10k users only :/
I have a dream to make some great video analysis software and get rich
14:21
It boils down to "how do I write text at arbitrary positions on the console?"
morning everyone
@Kevin I wrote this which sort of answers the question on how to do stuff like this ... Or at least could be used by someone to base an answer off (no time now, feel free to steal)... Not sure if there's a more "canonical" answer...
@Kevin Oh was that the reason you're removed from the star list? :P
Yep I'm boring now.
I don't know about this . I find that Outlook has a pretty good search as is to filter through emails.
14:31
I think this particular OP should probably graduate to a proper GUI. His follow-up question is going to be "ok I got the memory cards to update after N seconds. Now how can I make each card flip over when the user clicks on them?"
> God bless you
what a nice guy
-.-
47
Q: Pirated software at a company?

Pro777I recently had a position at a small web development shop in the US where virtually all software used on a daily basis was cracked. My own IDE was paid for, and I used open source software personally while there, but I was still required to use MS Office and various Adobe products. For a myriad...

mfw it is so common in my third-world country that I don't understand the question
@khajvah really? Doesn't the government almost destroy a company if you're catched?
@paul23 I am pretty sure the government themselves use pirated windowses
14:42
oO pirated oses. That's the only thing I would never do (ok same with virus scanners).
yeah me too, because I don't use windows
@khajvah Mac? :P
btw why is that question not moved to programmers.se?
because programmers.se is a junk yard
guys, have you ever used gearman ?
cabbage
\0 cbg
14:55
Hey idjaw \o
stackoverflow.com/questions/36222073/… OP is just not getting the whole "make your question better" thing.
> I've actually spent hours searching for this and have done the whole 13 hour code academy course?
"Yahoo answers, went on learn Python the hard way"
DSM
DSM
25 quatloos says he's just looking for split().
@DSM yes...but I'm being stubborn because all I've been doing is reading questions like this too often this week. </jaded>
DSM
DSM
15:01
Oh, I'm not objecting, the question is terrible..
Do schools teach how to properly use a debugger?
I can't remember...it's been too long
they teach you C with classes
because honestly...something like this can be solved by tracing the freakin' code
....
ergh
15:03
I remember the first time I found out about debuggers
it seemed magic to me
@idjaw that's not the worst flask question I've seen today
1
Q: Flask NameError: name 'app' is not defined

Afnan alamI am new in python and use learn flask frame work, I got error in some line of code please guide me enter code here from flask import redirect @app.route('/') def index(): return redirect("http://www.google.com") Error: Traceback (most recent call last): File "redirect.py", line 2, in ...

This is. This person has obviously never even looked at the home page of Flask.
oh jeez...
And somehow it got two upvotes.
yeah....
this is also a reason to not learn a framework if you are a complete noob
15:07
=/ I kinda sorta feel bad...but honestly, if they are working as a developer...I would at least expect them to be able to put together even a half-baked attempt at pseudo code to show what they tried....
DSM
DSM
I'm probably about average as developers go, and I'd bet good money on the fact I could read the file and string documentation in any mainstream language I'd never even used before and figure out how to parse trivial lines from a string in under an hour.
I am a noob and I would do that too
I like to think that these type of OPs eventually drop out of the industry and find less challenging work, like "brain surgeon" or "three-Michelin-star chef"
4
Neither of which need to parse strings.
Kevin, I really envy your ability to come up with things like this.
It is but a party trick.
Except it's not useful at parties because it takes me five minutes to compose a message, at which point the conversation has changed topics three times.
15:17
I feel the same, except with every message
so I am as quiet as a rock at parties :(
"Rectum? Damn near killed 'em!" "... We're talking about childhood leukemia now, Kevin"
DSM
DSM
You know what? I'm going to try right now, just for the heck of it. I've never used Rust; let's give it a whirl.
@DSM I answered a question the other day from someone who obviously hadn't read the Flask-PyMongo docs. I have never touched MongoDB before, and it took me 1 minute to find the answer.
@DSM I would suggest brainfuck
and I might take a bet on that
DSM
DSM
@khajvah: see "mainstream" above.
15:20
oh
good try though
Ok, I am finally hit by python 2 library issue
@DSM why try? It's right here given to you like every other language does in every other tutorial it has
:P
should have listened to LPTHW
DSM
DSM
@idjaw: using a different example, I've got the file, now I just need to see what data structures Rust has to store info in and what split facilities it has..
dsm@notebook:~/coding$ ./rread
scores.txt contains:
Name: Humzah Score: 10
Name: Mohammed Score: 9
@JonClements always fun to see a friendly face warning me not to do what I want to do :D
haha
that kinda reminds me of the solution I gave to someone indicating to them that doing what they want to do should be thought over (here it is)
tbh...I don't even know if that answer itself would be the best way to even do that....because I never once even bothered to think to do something like that...because....why the crap would one ever want to do that in the first place
15:25
I basically have a test configuration runner and want to do something where if anything in the test fails it always runs a cleanup
@DSM Hey look....based on the txt file you provided, it looks like a good idea to use some kind of dictionary...or something...wait a minute...what's it called in rust (checks SO)...oh look at that...it's called a hash map....(goes to google)....well look at that
@enderland I love how OP defined it as "Bad Exception" too.
gold.
@idjaw Are you doing Rust?
Could you explain the "you really don't want something like this" please? I have many scripts containing many classes, each with many methods. I'd like to know which class/method failed, without writing a try/except for each — Stephen Lead Jul 18 '14 at 3:45
that's basically my exact question about it
@poke No. (although...I now know the basics thanks to the tutorials I just read :P). DSM and I are having a bit of fun with a recent discussion about an OP that just would not provide any details to get help.
if you want to read the convo: here
oh cool...apparently Dropbox uses Rust in some of its stuff
15:42
I really want to give Rust a try, it sounds very promising and looks pretty nice
@poke I tried to install it on my FreeBSD box, but wasn't able to since compiling it required more than 4G of memory (i.e. more than my system had at the time) :-/
wow, really? 4GB is a lot
DSM
DSM
15:59
dsm@notebook:~/coding$ ./rread
Mohammed: 9
Humzah: 10

« first day (1987 days earlier)      last day (3185 days later) »