« first day (1279 days earlier)      last day (3670 days later) » 

1:06 PM
Would "I have an alternate SMTP which is... _______ whose port number is... ____" make sense?
 
Are we talking about Fermat's Room? I've seen only the last quarter of the film, when I was flipping channels.
I was annoyed by the ending... It seems kind of sacrilegious to destroy a beautiful piece of knowledge, just because you didn't like the author
 
I feel like making something challenging.
But the stuff I think up is a bit too challenging.
:P
 
And I don't like the handwaving they do by saying that the world is the same with or without the proof. You don't know that for sure, maybe it's instrumental in building flying cars.
 
@Iplodman what response did you get the first time round?:
 
None :l
 
1:09 PM
I responded :-(
 
Did you? ._. I'll check.
 
43 mins ago, by Kevin
It doesn't make sense to me, but I'm generally uninformed about email
 
@Kevin haha... at least you copied the right link cough
 
I don't know what an "alternate SMTP" is. If you change the workings of the protocol, it isn't SMTP anymore, right?
 
Ah, you did; at the time I though you were talking about the other conversation the was completely beyond me.
 
1:11 PM
Yeah, I'll give you that. I myself thought at the time, "it's probably confusing to jump conversational topics like this"
 
Also, it's so that the user can have support for any email account.
Yeah, sorry :l
 
Is the user supposed to fill in those blanks? What goes in the first slot, an IP address?
 
I'll send you a link to a screenshot.
My internet just died ._.
Well, I say 'screenshot'; more of a picture. dropbox.com/s/eojk1e1tgibumvz/20140417_141548.jpg
(If you can get to dropbox)
 
Nope
 
@Kevin Imgur it is. > imgur.com/ltIdZKy
 
1:20 PM
Perhaps a clearer wording would be "I have an alternate SMTP, whose address is..."
By the way, I recommend using the "Print Scrn" key to take screenshots
 
Ah, that's better. I'm not exactly clear myself.
I would, but then I have to open paint and Cntrl+V it in, and I am far too lazy to do that.
Unless there is a faster way.
 
Some sketch artists are really quick... :)
 
You could write a Python script that extracts the image from the clipboard and saves it as an image.
In fact, this can be done with the Python Imaging Library in about three lines
 
I'll go look that up :3
 
Or under most linux guis, hit prt-sc then save instead of copy to clipboard :)
 
1:28 PM
Extra challenge: extract the image from the clipboard, and use Imgur's API to upload it
 
0.o Guys, you're too good at this stuff.
 
Well, you don't see the bits where I curse at the API documentation for three days
 
Ahah xD
 
You're not the first person I've encountered that is aware of printscrn, but whose phone has an easier uploading process... It's a troublesome trend.
 
I think my phone has an easier way of doing a screen grab anyway (compared to a Windows matchine) :)
 
1:31 PM
Same here.
What device are you using?
 
Microsoft, please include a "take screenshot and share on SOME_SOCIAL_NETWORK" button
 
So true.
 
(although, could you imagine the accidental uploads? Oh no, I uploaded an image of me browsing "fat ladies sitting on birthday cakes dot com"!)
 
user559633
@GamesBrainiac hey man
 
(Oh no, grandma "like"d my post!)
 
user559633
1:33 PM
I can help you in like 30 minutes -- I just need to head to the office
 
user559633
feel free to type your question with an @ and i'll answer when i'm back
 
Aw, FatLadiesSittingOnBirthdayCakes.com isn't a thing. I'm disappointed in you, internet.
 
@Iplodman gimme 5 mins... :p
 
I have faith that it's a real thing, although perhaps not under that URL
Yes... faith... >_>;;
 
Seems a great name for a site dedicated to filtering/categorising questions about Python on the SO network :)
 
1:36 PM
I am glad that http://guyforceshiswifetodressinagarbagebagforthenextthreeyears.com is, though.
 
Wow. I suddenly feel super smart.
I googled at question I had.
And guess what
 
You asked that same question on SO a year ago?
 
I found a question on SO, asked by Jon Skeet! :O
 
Ooh, even better
 
I have questions that Jon Skeet had, this is amazing.
 
1:37 PM
You are like brothers now!
 
Imma sound thick, but who's Jon Skeet?
 
Great minds think alike.
Blasphemy! You don't know Jon Skeet?
 
Just show up at his house next Christmas. No need to ask permission ahead of time. Question brothers need no words.
Jon Skeet is a Stack Overflow user with a tremendous amount of points.
 
Holy yam.*
 
1:47 PM
BTW, for takeing screenshots in Windows 7+, there is %windir%\system32\SnippingTool.exe. Very useful.
 
Ohhhh, very nice.
 
1:59 PM
has anyone used stmp log handler in python 2.7?
 
Nope, but I have familiar with smtplib, if that's of any relevance.
 
maybe, I just want to send an email on a app.log.error()
 
Nope, not a clue; sorry.
 
@Fenikso Just do WinKey and type “snip” + Enter.
Also, for full screen screenshots. WinKey + PrintKey
Gets stored in C:\Users\<user>\Pictures\Screenshots.
 
I set a shortcut.
 
2:03 PM
it seems to be noted here: flask.pocoo.org/docs/errorhandling the problem is I am not quite sure how to get the mailhost (first param)
 
Hey can someone help me where I am getting error : Python django session problem .
0
Q: Redirecting to login page again after signIn

AryaI have hosted a website on amazon AWS with domain say ( www.abc.com ) . After successful signup , I tried to login to the site , but its redirecting again to same login page without showing any error (username and password are correct) Its redirecting to login page by adding next keyword ...

 
@Arya heya... would you mind taking a moment to read sopython.com/chatroom? :p
 
@Jon I was actually considering asking you about the progress of the bot.. but yeah.. heh :P
progress.
 
None whatsoever... zero, zilch, nada, bugger/naff/f* all
 
It always confuses me how PyGame and Django aren't built in libraries.
 
2:15 PM
Because that would be amazingly stupid?
 
^
Stuff included in other stuff always suffers.
Independent things are the thing.
That’s why package managers are successful.
 
heya @Ph0en1x
 
because they make it possible to easily add independent stuff.
 
Hi Everyone . Could you give me a small hint - how it's possible to make class object be instantiated only with factory, but manual creation will be disabled
 
Ah.
 
2:18 PM
define the class inside the factory function, so it isn't visible anywhere else
Prefix the class name with an underscore, so any script that imports that module won't import that class
 
Thank's @Kevin, I already make it that way. But I expecting it will be needed some inheritance from in in future, and probably inherited classes will be available for manual creation. Maybe some other variants?
 
If all else fails, ask your users in the comments to pretty please not instantiate the class
 
Depends how strict you want, for instance:
def make_new(name):
	class MyClass(object):
		def __init__(self, name):
			print 'Created', name
	return MyClass(name)

myclass = make_new('okay')
myclass2 = myclass.__class__('gotcha!')
Wow... need to change settings for this editor... only just installed it :(
 
Related:
25
Q: "Private" (implementation) class in Python

TanelornI am coding a small Python module composed of two parts: some functions defining a public interface, an implementation class used by the above functions, but which is not meaningful outside the module. At first, I decided to "hide" this implementation class by defining it inside the function ...

 
Due to Python’s nature, I don’t think you can completely prevent it. Just like you can’t completely hide things in Python.
 
2:22 PM
Yeah, your users will shoot themselves in the foot if they're determined
 
The best thing would be to make define them in a separate module and make it clear that users simply shouldn’t import it and create the objects themselves.
 
@poke which to be fair is what most implementations do that I've seen... They normally still define it, what it does, but state it's meant to be used by xyz and not created directly...
 
Just document it clearly and avoid adding unnecessary code trying to hide stuff. As you can’t completely hide it, all your effort is wasted anyway, and you definitely don’t make the code clearer to understand.
 
I think lowwer underscore it's something close to what I looking for. Thanks @Kevin @JonClements @poke (as a comment: I think making thing's 'private' it's a best note for any developers that they need to stay away from this, but if they still make something with it, it's their problem, not my - thta's my vision)
 
@tristan Heya! I was asking about shebangs. How do you say that "this file can be run using both zsh and bash" in the shebang?
 
2:25 PM
@Games you don't...
You put in a default, otherwise people have to use the program directly
 
I cant :(
ahh, i see.
Thanks then.
 
So sh doesn’t work?
 
sh would be the current shell, which is a bit pointless
@Games if it's executable, and they're in bash or they're in zsh, then that'll be the one that tries to run it - so if it's runnable by both - it shouldn't matter - if it was runnable only by one, then you'd put a specific shell in
 
Can’t you do a if current shell != bash && current shell != zsh print warning: This may not work for you?
 
@JonClements Ahh, that makes sense. The thing is shebangs are supposedly good practice, so I wanted to add them to my scripts.
 
2:28 PM
Then use #! /bin/sh
 
@poke what is the exact code for that? :P
 
5
Q: Writing shell scripts that will run on any shell (using multiple shebang lines?)

SWrobelI've just started getting deeper into shell scripting, and I've always just thrown my script in a file, marked it chmod +x and then done /path/to/script.sh and let whatever interpreter is the default have its way with it, which I assumed was zsh because that's what I used for my shell. Apparently...

 
I'm confused - how would one install pip?
 
@JonClements Thanks :) Will look :)
 
@GamesBrainiac I don’t really know shell script stuff
 
2:31 PM
@Iplodman Its already installed with 3.4
 
@poke hehe, I know a little, so I was like "geeez, there's a current command, man I didn't know!!!" :P
 
Oh crap, I have 3.3. I'll install the new version now.
Any major changes?
 
Well, I do know some basic stuff too.. Enought to use it a bit. But I really have to look it up anytime I want to do stuff like ifs or loops… <_<
 
It has asyncio :P
 
Cheers @Poke.
 
Honestly, I don't find python 3 that enticing to change to. PyPy mostly support 2, and does so quite well.
 
D: D: D: D: D: D: D:
 
user559633
@GamesBrainiac yeah, basically what @JonClements said.
 
Honestly I <3 pypy.
They're pretty close to breaking the GIL.
 
user559633
2:34 PM
you can call bash, check what the envvar $SHELL is, then if it matches bash or zsh, go ahead, else, exit nicely
 
They've implemented STM, and they're trying to perfect it so that it does not slow down single core processes.
 
With 3.4 will there be a new dir?
(For the files)
Yep, apparently so.
 
@tristan I would still provide an override flag to allow users to run it anyway in case they think their super crazy shell is compatible enough.
 
user559633
Oh, yeah, sure
 
So in theory, all of my 3.3 code should work with 3.4; being no syntax changes and all.
 
2:37 PM
Yeah version X.Y is always compatible to scripts of X.Z where Y > Z.
 
user559633
e.g. via a confirm function:

function confirm {
for x in "$@"
do
echo "$x"
done
read -t $TIMEOUT -p "Continue anyway? " -n 1 -r
if [[ $REPLY =~ ^[Nn]$ ]]; then
echo " ... 'n' selected. Exiting."
exit 1
fi
}
 
Cheers.
 
@poke actually - no :)
 
user559633
What's the key command to preformat in SO chat?
 
@JonClements Example?
 
2:38 PM
@tristan ctrl-k
 
user559633
danke
 
(talking about syntax and core stuff)
 
@poke in 2.x it holds... but in 3.x, but removed stuff and then re-introduced... unicode prefix for instance... and a builtin function went bye-bye, then came back again...
callable I think it was
 
@JonClements 3.0 didn’t have them. 3.2 reintroduced them. X=3, Y=2, Z=0. Works.
 
Err... yes... hmmmph...
 
2:41 PM
xD
 
Umm.. need to find something that was removed don't I :p
or changed behaviour (apart from its internal implementation)
 
Well, I do know for sure that there was some change from 3.0 to 3.1 that broke some script I had in 3.0. Something urllib related I think. But 3.0 was the bad guy anyway.
 
Yeah... I notice 3.0 and 3.1 don't seem to get mentioned that much :p
 
If I were to compile a .py file (using cx_freeze) that required tkinter, could someone without Python be able to run the exe?
 
I really want to jump into a pool.
Its soooo hot today.
 
2:48 PM
Make sure it's got water in first...
 
Or ice, as youtube has taught us.
 
@JonClements It sounds like you speak from experience XD
 
Make a yam tonne of money.
 
@Iplodman Using salad, I see.
 
@Games Yep :)
 
user3444876
2:49 PM
@Iplodman Then you would have to export the tkinter pyd the cx_freeze makes
 
@Iplodman ;)
 
so... this is probably a dumb question, but what are query params really, specifically, for? Are they versatile?
 
How would I go about that?
 
user3444876
@Iplodman cx_Freeze does not actually compile code, it simply copies and renames the python executable and has that run your code
 
@Games So I would just have to include the tkinter lib folder in the distribution folder that I send out?
 
@GamesBrainiac I claim ignorance of whatever you're implying :)
 
@JonClements hehehe :P
 
ah okay then I'm not doing something cheesy with query params then
 
Gah, getting frustrated with the 'all bugs must go back to MSE' camp right now.
 
user3444876
@Iplodman When you make the executable using cx freeze there will be a new folder in your build folder that says exe.Inside there will be many .pyd files whose names correspond to the libraries you used. Those are like dll's send those.
 
2:53 PM
The Stack Exchange Meta has been merged with the central Meta for so long now that people don't know how all other meta sites work.
 
@Martijn off with their heads!!!
 
Okay, I think I've got this. So (MY ZIP (THE EXE, AND THE DLLs))?
Sorry, I just wanna get this right :P
I've had bad times with cx_freeze before.
 
user3444876
@Iplodman That sounds about right. But remember your code is not actually being compiled
 
To be honest, I barely have a grasp on the idea of compiling, and the differences, so thanks :3
 
user3444876
@Iplodman Here is a video that might help you! youtube.com/watch?v=XHcDHSWRCRQ
 
2:56 PM
Cheers @Guarav
 
compiling = processing code to obtain a executable that has machine* readable code (machine = either a real processor, or a virtual machine).
 
Haha... had me double take anyway: "Why is Julia slow when decoding GZIP and parsing JSON?"
 
Ahah, I'd already spotted that video :D
 
user3444876
Ah good
 
cx_freeze just bundles the Python code in some binary format I think (yes/no?)
@Jon ?
 
2:56 PM
@Poke I'm not the person to ask ._.
 
I never used any py->exe stuff...
 
@poke just thought the title of the post was amusing
 
user3444876
@poke Basically what it does is copy the python executable and rename into yourprogram.exe.Then it has that execute your code
 
@Jon Still not sure why you think that?
Were you not aware of the Julia language?
 
Nope - that's why I had to do a double take...
 
2:58 PM
@GauravGhosal So it bundles the original python executable with your Python code. Makes sense.
 
user3444876
Yes
 
rbrb heading home
 
@poke Cya :)
 
@poke safe journey
 
user3444876
@poke bye
 
user3444876
3:00 PM
Once when using cx freeze I seriously messed up my interpreter.
 
Now I worry ;-;
 
Move fast and break things
 
This is what I got last time I tried. ImportError: No module named 'cx_freeze'
Shall I uninstall Python 3.3?
 
I have 3.3 and 3.4 on my machine. No conflicts there.
 
Hm.
 
3:06 PM
Also 2.7. All living in harmony
Only 2.7 is in my PATH, though. There can only be one!
 
I'm thinking it may have installed under the wrong dir, but then it's in my 3.4 folder.
 
I use Pyenv, never have problems with multiple pythons.
 
Hmm.
 
But its only available on mac and linux.
 
What I'm getting - imgur.com/mpkFzzO
I'm assuming the cx_freeze yammed up, but the files are in 3.4.
 
3:14 PM
@JonClements Tim Post agreed with me!
is happy again.
 
@Martijn w00t! claps
 
Guys, any ideas?
 
Did you install cx_freeze?
 
Yep.
Ah, hold up a sec.
 
What version is python.exe?
(python.exe --version will tell you)
 
3:19 PM
That guy wins the price for the most useful issue ...
 
> What exactly is wrong with flask.session and Flask-Login or Flask-Security?
 
cbg
 
They're not awesome enough, evidently!
 
@ThiefMaster wow... I'm surprised he's managed to get as far as installing Flask...
 
@Kevin 3.4.0
 
3:21 PM
I wonder if some people even know google exists
 
@Ahmad Let’s ask Google.
 
Ahmed, I've been having problems with this for ever.
 
;)
 
Ok, it's not a path issue then... I thought it might be 3.3 trying to import 3.4's cx_freeze
 
Seriously though, he could have found these flask extensions on the first page when he would have just googled
 
3:22 PM
I'm out of ideas, other than: have you tried rebooting?
 
I'll give that a shot now.
rbrb :D
 
I know we're no longer in the dark ages, where all installers require you to restart. But there are some stragglers every once in a while
 
(If that's correct)
Ahahah xD
 
Wait... have you tried throwing the computer in a pond ?
 
Stars up
Stars up again
*STARS UP ALWAYS.*
Be right back.
 
3:23 PM
@thefourtheye Well, it didn't stay open long thanks to Daslch
 
What's with the advice people give, "aim for the stars"? There are stars in every conceivable direction, so you could reduce their advice to "aim" without losing anything.
 
@JonClements The question which I shared?
 
@thefourtheye hahaha.... I meant @ThiefMaster for that ^^^ one - my bad :(
 
If they mean "aim as high as possible", this is also bad advice. If you throw a ball straight up, it will land at your feet. Better advice would be, "aim at 45 degrees, if you're in a vacuum; or slightly lower, to account for wind resistance"
 
he he he
 
3:34 PM
Yaaaay! Restarting fixed nout ;-;
;-;
 
I know we're all mostly adults, but jeeze - could have phrased that a bit better, and not in bold-italics? :p
 
Y u do dis cx_freeze ;-;
That better?
 
yup :p
 
Ahah :P
SO ideas, anyone?
 
Give up - take valium - stop caring
 
3:37 PM
@Kevin what if your aim is to throw the ball as little distance as possible?
@Jon ;-;
 
@Iplodman then don't throw the ball ?
I think that's probably as "little" as you can get
 
Better then, to release the ball from your hand without exerting any force on it. If you heave it upwards, a breeze may carry it
 
@Kevin What if the ball just so happens to have thrusters on it?
 
Hey everyone
 
And then POW they go off.
@TGM Cabbage.
 
3:38 PM
cbg @TGM
 
What if the ball delivers painful electric shocks to people that ask tricky hypotheticals?
 
@Kevin What if, instead of the person asking the tricky hypothetical, it delivers them to the person that exploited the possible meanings of a common phrase for a humorous purpose and then suggests pain being inflicted upon someone who asked a tricky hypothetical about the a fore-mentioned hypothetical situation involving aiming a ball at a 90 degree angle?
 
What if Gamera, The Friend of All Children, showed up and started fighting Mecha King Ghidora? That would be pretty sweet.
 
What if someone could help me with cx_freeze?
I believe it may be a path issue.
 
(And if you say, Ghidora was never made into a mecha, then it's apparent that you haven't read my acclaimed fanfiction.)
 
3:44 PM
@Kevin, I have no fricken' clue what you're on about anyway.
But seriously, halp please ;-;
 
I've never used cx_freeze. The only executable maker I have experience with is py2exe.
 
Damn.
 
@ThiefMaster Oh my.
Talk about missing the point of a microframework.
 
You mean like Django? :p
That's the one that's written in PHP, right?
trots off to shoot himself
 
YES. HELLS YAMING YEAH.
CX_FREEZE IS MAH CYKA.
In other words, it run.
However, it doesn't run.
 
3:57 PM
lol
 
*it built
@Gaurav You there?
 
4:18 PM
what an idiotic thing: I can't pass itertools.combinations into the reversed() function
although on the other hand..
it makes sense..
since it is an iterator.. so how on earth could you tell what is the end
so what needs to be the first..
okay, conclusion = I am the idiotic thing
Q.E.D.
 
Err... I was typing that about 5 lines up LOL
 
:)
what will you do @JonClements in this case: tuple() or list() ?
 
I'll just remove that... pretend it was just after "although on the other hand" :)
Do you need the whole lot?
 
yepp
 
Okay - can I ask what you're doing
 
4:21 PM
yes you can
:)
 
cbg @Uri
@Peter cool.... good to know I can do that then :p
 
I'm building scenes in Blender and creating mesh objects, and the only thing I want to reverse this operation which is working absolutely well is that the last scene will be the one you see at the end of the operation
however this is an interactive operator I'm creating, and the last scene is not that exciting as teh first one
BUT you can't change to the first scene, you have to create it to make it the current one
that is one of the drawbacks of bpy (The Blender API)
anyway @JonClements so will you reversed(tuple(<comb>)) or reversed(list(<comb>)) ?
 
I'd go for tuple, but just thinking of something....
 
perhaps you could reverse the arguments to combinations
 
from itertools import combinations

data = range(5)
in3f = list(combinations(data, 3))
data.reverse()
in3r = list(combinations(data, 3))
print in3r[::-1] == in3f
@Kevin you're thinking the same as me then :)
 
4:28 PM
yeah
 
Gives False though
Unless I'm doing something silly there... reversing it in groups of 3 would probably work though ?
 
hmm
this is a bit overcomlicated I think
I mean, I don't need the actual list at the end
I'm only using it in a for-loop
so I stay with the reversed(tuple(<comb>))
@Kevin that's not a good idea
because the first scene is exciting because there are 26 items there
while on the last scene there is only 1
(combinations)
if I reverse the args, then it will be at the first scene
but there will be only 1 object instead of 16 which is at the last then
 
@PeterVaro Have you any experience with cx_freeze?
 
no I only used py2app
 
Ah.
Damn :l
 
4:35 PM
@Peter can't you just render it in the right order, then reverse the scenes theirselves ?
 
in flask, can you put subfolders within the templates folder?
 
@Crow yes
you can also put pictures of rabbits if you wish
 
@JonClements the scenes are in alphabetic order, and as I told you, I can't control which one is first
the first is always the one where the last operator is worked on
 
Ahh... sorry - didn't read that bit :)
(see what happens when I'm flipping between chat and trying to work out something)
 
I'm getting love the blender API very much, it really is a very powerful tool, and it has amazing features, but also: has some drawbacks -- but hey, I believe it will evolve ;)
@JonClements np thanks for tips, @Kevin from you too
 
user3444876
4:49 PM
CABBAGE
 
cbg @Latty and @Gaurav
 
@Guarav I neeeeds you!
 

« first day (1279 days earlier)      last day (3670 days later) »