« first day (1573 days earlier)      last day (3378 days later) » 

12:01 AM
lol
I dont think thats what he means ... :P
 
ahhh I'll have to watch it later .... I dont have speakers at work :P
 
@JoranBeasley basically just that every category must have one workflow
 
Good Morning
 
12:18 AM
Hi
 
In python, everything is an object, and we have (name,object) creation for every definition, so when I say >>>a=2 that would create an int type object and name arefers to that object, but mod = sys.modules[__name__] followed by "mod.__dict__" gives me {'a':2,...} How do I understand this primitive type 2? Is it of type PyObject * internally for CPython interp
 
@overexchange Are you asking how Python's int type is implemented?
Because the 2 in that dict is the same 2 that is bound to a
 
@AirThomas am expecting "mod.__dict__" to give {} of (name,value) pairs where value is memory address of an object, in this case, mem address of int type object. Is this wrong expectation? If yes, which is the right command to type to see (name, value) pairs where value is mem address of an object that name refers to?
 
If you want the memory address, try id()
 
currently I see this -- `>>> mod.__dict__
{'a': 2, '__spec__': None, 'mod': <module '__main__' (built-in)>, '__package__': None, '__builtins__': <module 'builtins' (built-in)>, '__name__': '__main__', 'sys': <module 'sys' (built-in)>, '__doc__': None, '__loader__': <class '_frozen_importlib.BuiltinImporter'>}`
 
12:28 AM
When you punch in a dict to the REPL like that, it gives you back a representation of the object
As defined by the object's "magic" __repr__ method
 
am using IDLE distr python shell, I have hard time to re-type the commands ):
this is not like bash shell that gives the history of commands
 
>>> class A(object):
	def __repr__(self):
		return 'Hey! I\'m A!'


>>> a = A()
>>> a
Hey! I'm A!
REPL is "read, eval, print loop" which is what you're using in IDLE right now
So, like "shell"
 
sorry am new to python, As of now, I know, how do define number type objects and function type objects, would like to learn __repr__later, sorry ):
 
Well, here's a tip: try using locals()
(Instead of sys.modules)
And if you want to see the memory addresses...
Which version of Python are you using?
 
12:37 AM
(Ok, let me just double check to make sure I'm giving you a working command)
Whoops, my ride is here... >_>
The short version is, just pass the object to id() to see the address (but you shouldn't really need to see it)
good luck! (rhubarb all)
 
need---am just trying to visualise what dictionaries of dictionaries(python program)? after giving multiple definitions and import statements.
 
user559633
1:21 AM
How are you, my pretties?
 
user559633
Fine, love you too.
 
1:38 AM
Do anybody program python using eclipse IDE, i installed pydev plugin thru eclipse but it does not show up in "Windows->Preferences"
 
I used to ... now I use pycharm
I had too many issues with eclipse losing state basically
 
single IDE makes life easy to switch btwn languages):
losing state? i did not get you
 
meh ... 99% of what I do is python ... and its not that easy if my eclipse keeps breaking and losing my path
like it will just crash and when I restart it I cant run any of my python programs ...
 
eclipse LUNA?
 
I dunno this was like 2 years ago (the last time I opened eclipse)
Im outta here ... c you guys
 
user559633
2:17 AM
@JoranBeasley c++ you, keep it classy
 
2:33 AM
not sure if I am reading this console wrong... says array of size three, but then unfolded it says it's size 4
 
 
3 hours later…
5:23 AM
cbg
re-cbg
@overexchange yeah, pydev sucks seriously compared to pycharm. OTOH, I need to program java in Eclipse bc I am doing eclipse plugins, and for that it is good.
 
6:15 AM
@MartijnPieters now I realized that one heisenbug I had encountered was because of this issue from yesterday
we have 1 web service where a user can enter a query which gets executed on slave nodes over ssh; the data is piped back on the SSH connection as text, UTF-8 ofc, we thought, but it is written on stdout so it is dependent on locale, now if the server locale happens to be C, it was inherited by SSH... in the slave job, if any exception occurs, it would print the reason to stderr and exit with 2, the stderr was directed to a log outside of the python process...
... as a result we never got any real output nor any log output whatsoever because it all ended up just being UnicodeErrors over and over again.
and ofc if one tests using any interactive shell one always has the proper .UTF-8 locale set there.
 
6:31 AM
How i make ipython QT console to look like sublime text editor?
 
7:19 AM
cbg
 
7:36 AM
cbg
@AnttiHaapala OK. I currently use eclipse for coding&debugging C/Java/jsp as of now. For python, I have issues getting Pydev option in Wndow->Preferences. I actually got the license for intellij IDE. I learnt that Intellij IDE is the BEST!!! Just thinking If I need to check, if it is wise to move from eclipse to IntelliJ for C/Java/jsp/python, what do you say?
 
7:54 AM
Cbg
 
@AnttiHaapala Whee, loads of fun then.
For those processes, set PYTHONIOENCODING=utf8
 
@overexchange have you done any prior research to asking all this? Might be better if you look through some blogs or articles.
I mean for your questions on types and such.
 
Arghghgh... ever closer to a year older :(
 
Funnily enough I'm ever closer to a year older all the time.
 
indeed... but I'm the one getting closer to 40 not 30 :(
 
8:04 AM
@JonClements don't be such a baby. I'm past that line and I'm doing chough hack hack cough just fine.
 
Gets more scary because no male in my family line has lived past 50 :(
women appear to do fine, my grandma did 104, her mum 101... blokes just appear to get a bad deal :p
or was my nan 108... umm...
 
@JonClements Time to buck the trend then!
 
yeah... let's go for 51 and set a future benchmark! :)
oh come on DB - I'm only asking for 56 rows - why you taking so long!
admittedly, 4 left joins, an intersection with a where clause on a union'd set.. blah blah blah
 
8:19 AM
Because those 56 rows are hidden in a huge big haystack?
 
on the plus side, the design doesn't have my name next to it...
ahhh... it takes updates every 15 mins past the hour, and it defaults to a clean lock... so - hence the wait... might just cancel the query and re-issue saying a dirty read is okay
and there we go... 56 rows in 0.1 seconds
82
Q: Can we clarify to the OP that their question is not yet closed and the duplicates are only suggestions?

animusonI keep seeing custom flags in the queue from question askers who are incredibly irritated because there is a big, prominent box at the top of their question. It's just a list of other questions which may have the answer they desire, and is only even displayed to them because the question is not c...

haven't experienced that... does seem a reasonable idea though
 
@MartijnPieters good point, except even PYTHONIOENCODING is not a sure thing...
 
8:35 AM
Cabbage!
 
@MartijnPieters ah, just remembered, you know ssh passes LC_* by default to remote commands, not anything else :(
 
@AnttiHaapala PYTHONIOENCODING is a sure thing for std* files.
 
yes but it is not ssh-proof
 
@poke cabbage!
 
so I need to do 1 wrapper shellscript that executes that in case :D
 
8:37 AM
cbg @poke!
 
@Ffisegydd I learnt about types from codeschool.org where you have a lesson called the Python language
 
@MartijnPieters so my point in all this complaining is that
 
@poke did you wish to add something re: RABBIT to the room meeting ?
 
python ought to have set the default to UTF-8 on linux, macosx if no encoding set instead of defaulting to some crappy 1960s ASCII
 
@Ffisegydd this is what I learnt about types, hope I answered your question
 
8:42 AM
My point was that you're asking an awful lot of questions of people. I was politely suggesting that you research things yourself more thoroughly before you bombard the room with questions for another half day.
 
@Ffisegydd +1
 
@overexchange the other point is that you ask advanced questions even though you lack the basic knowledge
one does not build a pyramid by first constructing a tower
 
@AnttiHaapala except UTF-8 and unicode support weren't available when the default was set.
 
@AnttiHaapala Yes you are right!!! I will work on that
 
@MartijnPieters talking about python 3 ofc
 
8:52 AM
I have been using python for 6 years now, I am quite an advanced user, but I could not answer most of your questions :p
 
@Ffisegydd Sure.
 
since it is said that python 3 source code defaults to UTF-8, and python 3 strings are Unicode, then it could be assumed that streams could accept Unicode by default
 
I'm not sure that ignoring LC_* settings when running stdio in a terminal is a good idea.
 
I am talking about the C locale
not any locale
 
The C locale means ASCII only
That's what that locale defines.
So that default has been set in the 60s
 
8:54 AM
I know
 
# -*- coding: utf-8 -*-
 
but what I mean is that the C locale being the default locale that which you get if you do not define any locale at all...
the fact is that the locale C does not specify "I want ascii"
it means "I don't know what I want"
the C locale does not mean "only US-ASCII is accepted", it just means "you can get all sorts of bytes but for C programs handle them as explicitly set forth in the C standard"
 
9:11 AM
re-cbg
 
cbg
 
re-cbg
 
cbg
 
it's like a bad game of ping pong :)
 
It's like a stage of rap battle participants, where everyone has stage panic.
 
9:24 AM
the eighth mile part two? :p
 
@JonClements Not really, no
 
That spam title though.
 
@poke is it still on the cards assigned to you? Or...
 
cards?
I’m still interested in working on it, if that’s what you mean
 
oh... it's a phrase that's used in the UK
and yes, that's what I meant - so all cool in the pool :)
 
9:26 AM
There’s a pool? :O
We have a pool?!
Why am I learning that only now?
 
lol
we also have a sauna and jacuzzi... did you not get given your set of keys for it?
 
It was your job to give me those, right?
 
looks innocent whistles a bit
 
@Unihedro: that's something entirely different. That's only for reading the source code.
@Unihedro: had you posted that as an answer I'd have downvoted you.
@AnttiHaapala: when you say 'I don't know what locale to use' Python, like all other UNIX tools goes: the lowest common denominator is ASCII then.
 
@MartijnPieters I am aware, I didn't post that as a solution considering I don't know what the question on discussion was.
 
9:43 AM
@AnttiHaapala: when you say 'I don't know what locale to use' Python, like all other UNIX tools goes: the lowest common denominator is ASCII then.
@Unihedro There is no question on discussion there, just Antti working through Unicode issues with his setup.
but the PEP-263 cargo cult is a pet peeve of mine.
UnicodeEncodingError? PEP-263!
Uhm, no, PEP-263 rarely, if ever, will solve a UnicodeEncodingError problem, because it is all about decoding source code.
The other is using sys.setdefaultencoding('utf8'). Kill with fire!
 
9:58 AM
can i do a small in markdown ?
cabbage
 
A small?
 
<small> </small> in html can it be done in markdown analogously?
 
No don't think so.
 
melons! : )
I was searching the web for it
 
the lowest common denominator of Unix is "everything is just bytes"
"if it is <128, then it is an ascii character"
basically there would not be any issue if I could say "ok now use UTF-8 everywhere please"
but I cannot say it within a python program! because Python decides it upfront based on the environment variables
within a C program I can always do say setlocale("fi_FI.UTF-8") even though implementation defined. But I still can do it
 
10:24 AM
umm... a quiet morning it appears
@MartijnPieters hints to upgrade stackoverflow.com/posts/21686985/revisions ? Or anyone? :p
 
@JonClements upgrade?
 
puppy for <s>president</s>mod
I guess upgrade for 2015?
 
@MartijnPieters well, I haven't done some suggested reviews for a while - think more users should probably be had a word with re: their approvals, and I think the chat system needs a more active mod... blah blah
 
10:40 AM
@Sevanteri cbg
 
@JonClements: so why the moderator election prep? You think another election is going to be called soon?
 
not sure... should probably be ready if there is one though
 
think they could use some more mods
lhttp://stackoverflow.com/election
I havnet seen any evidence of the newest moderators :D
 
Mind you - when Andrew Barber got elected - I'm fairly sure that freed up a lot of flag handling :p
 
I've seen bluefeet a lot, really active. I've seen Bohemian once. I've never seen 0xffffff.
 
10:53 AM
@AnttiHaapala I've definitely seen bluefeet active... as well as others
 
okie then :D
 
bluefeet is really active on meta, and they've handled some of the flags in chat in here.
 
@Ffisegydd errr, bluefeet is a she :)
 
Personally, I'm disappointed Bohemian got elected.
I've seen 0x7fffffff around.
 
10:56 AM
Bluefeet rocksorz
 
the meta of 0x7fffffff is not really convincing :D
 
@MartijnPieters that also grinds me... bluefeet was my first choice, how bohemian got votes... sighs
 
how can a moderator for 1 yr really not talk less on meta?
 
There are different areas for moderating though. For all we know 0x7fffffff absolutely destroys the flag queue.
 
Bohemian has shown several times in the past that they don't understand the community all that well.
anywho, water under the bridge.
 
11:02 AM
I believe I'd be a good mod - have the right temperament for it - but at the same time, this room is what I care about (probably too much) - and couldn't participate in any more
 
@Jon well you could.
If there was a question that was brought up via that was obviously terrible, why shouldn't you close it?
If it was borderline then yeah ok I can understand you not voting, to give the wider community the choice.
 
oh... obvious ones, yup... non-obvious - down to us users
 
Also you could close dupes when people haven't 'd it (assuming you were sure it was a dupe, yadda yadda)
 
at the end of the day, it's up to the community to close/delete/whatever... a mod is just doing what the community can't do, or making sure it happens more quickly
 
Let's say that you completely abandon cv-pls though, I reckon you'd do more good as a mod without being about to cv-pls than just as a normal user.
So it'd be a net benefit to the community.
 
11:06 AM
and we have enough cvs without you :D
you can always link the questions here: "hey what do you think of this"
 
I am seeing a weird thing .. inside a daemon i am manually rotating a log file using os.rename and then creating a new file .. but the daemon continues to write to the older rotated file
 
@Sandy because the old file is still open.
 
ahh.. knowing me, I'll still link a Q for closing, but won't vote to close myself
 
yeah thought so but i have a open and close command for the old file
 
that is why the logging has special case
*handler
 
11:08 AM
Plus if you became a mod we could control you from behind the scenes like a group of puppet-masters. We truly would be the Dark Council then! uhhh...I can't think of a decent thing to replace the deleted bit with so just pretend I said something innocent.
 
@Sandy you should use logging module and the special file handlers there
 
@AnttiHaapala cool thanks!! I will look at this
 
11:22 AM
Just caught a user spamming an ebook to about 8 different answers (his own ebook). Raised custom mod flag. Right thing to do?
stackoverflow.com/users/2594686/… <- user and his answers
 
@Ffisegydd Congrats! You just gained 5 karma.
 
:O Karma? Is it like Super-Rep!?
 
You can save up karma for a lot of emperor tier stuff that only smart people can see and use.
 
Gee golly willikers!
Is "Look at this answer I posted on a different question link" a proper answer?
 
no:
195
Q: Your answer is in another castle: when is an answer not an answer?

Shog9I think we can all agree, this sucks: If you've been around a little while, you've probably encountered hundreds of answers like this in various forums, some of them even marked as "The Answer" by well-meaning1 forum admins looking to close a thread. We could try to enumerate the commonly-obse...

According to the Lore of Shog9.
However, "You can use this answer, which does X and solves it because Y here: link" is an answer.
 
11:26 AM
He is both wise and benevolent.
0
A: Material design backward compatibility android:colorAccent requires API level 21 when using appcompat7

Droid_GravityFollow this link for Material Design backward compatibility Compatiblity of Material Design to versions below Android 5.0?

He's posted it 4-5 times, same content back to one of his other answers.
 
Educate or flag. Assume good faith, so I left a boilerplate comment.
 
Yeah I'll replicate your comment on the others. Ta.
Alas, I am cynical, and so typically assume bad faith.
 
@Ffisegydd I got declined in my flag with that, 4 upv and accepted there though
@Ffisegydd assume bad faith now:
0
A: migrating to material design

Droid_GravityMaterial Design Everywhere: Using AppCompat 21 (original article) We were all hoping that the new support APIs included Material Design, the new theme adopted since Android 5.0 Lollipop. And it luckily happened: this new theme is included in AppCompat 21. So be aware that if you are using it f...

copied this answer verbatim
user data says "india" and the blog author does not look anything like indian
 
See I knew I was right to assume bad faith! This one event is going to make me think that everyone else is a bast*** forever.
There is a tiny link at the top saying "original article"
 
13 minutes ago
as if it gives rights
 
11:41 AM
Downvoted, not sure if it should be flagged.
 
I did flag it
2
A: Not getting notification on future time

Droid_GravityYou can use the AlarmManager set Repeating. AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 1000*10, pendingIntent); This will help you.

duplicate answers here?!
 
It doesn't even answer the damn question posted!
 
0
A: How to access precompiled static library in android

Droid_GravityJNI The first thing to learn is how to call native c-code from regular Java through JNI, the Java Native Interface. Most Java developers are aware of the native keyword, but most never have to use it in practice. Therefore basic JNI usage will be discussed first. Your Java source code has to de...

another rip here
mobilengineering.blogspot.fi/2013/02/inter-process-communication-on-android.html
 
@Antti maybe a custom mod flag with the various offenses? See if the stuff can be removed/he can be banned.
 
I did raise some "other"s there
with links
 
11:54 AM
I'm close to the 500 flag gold badge.
 
lets see if I get the flag banana :d
helpful flags 98
hmm I flagged 1 of those mvc as "spam" but it was disputed
 
Flagging someone as spam is dangerous, because if the mods accept it then people get banned very quickly.
Plus it wasn't really spam, the guy was probably trying to help by pointing to his book.
Spam would be "Click this link for magic penis pills"
Wait, actually we may be talking about different "MVC" posts, never mind.
But the spam bit still stands.
 
nope, those mvc posts
it was his book, though it was free :d
but they werent really useful, they really did not match at all with the question
9
A: Compatiblity of Material Design to versions below Android 5.0?

Droid_GravityMaterial Design Everywhere: Using AppCompat 21 (original article) We were all hoping that the new support APIs included Material Design, the new theme adopted since Android 5.0 Lollipop. And it luckily happened: this new theme is included in AppCompat 21. So be aware that if you are using it f...

anw I flagged this too, the droid gravity got almost all their rep on plagiarized content
wouldnt mind droid gravity getting the banana
 
Cabbage
 
cbg
 
12:09 PM
@Ffisegydd Potato?
 
helpful flags 7591
 
Good, yourself? (I don't use Salad outside of "cbg" as I forget it :P)
 
Pears and Peaches, asparagus. Avacado/Carrot django-generic-m2m frameworks?
(Am I doing this right?)
 
damnit Jon :D
@Pureferret laurel lettuce, carrot django :D
 
12:46 PM
Plotting Stack Overflow tag counts against Github usage.
Tex has their own site, so they are an outlier on Github vs. SO.
And SQL is not always detected on Github (embedded in other language files or handled by an ORM) so that's underrepresented on Github.
 
correlated mostly yes
it seems that there is no problems with TeX :d
 
I'd say the C# offset from the line is because it is used by a lot of .NET IT shops and less in OSS projects, more than that the language is extra popular on Stack Overflow.
(same for Visual Basic and perhaps Delphi)
 
I'd say because of the early microsoft bias here :D
though transfer of knowledge is definitely more efficient in OSS - and you can always go read the source instead of asking
 
re-cbg
 
Cabbage folks
 
12:54 PM
-1
Q: Disable f12(developer tool) key in web page using jquery

Sankari Sakthivel Hi, i'm working in MVC4 web application we are using c#,jquery technologies i like to show a file in web browser to client without the abilities to download,save,print,copy,developer tool(f12) option,i did it all with the help of jquery keydown and eventcode function, it works well but when th...

re-re-cbg
 
What the heck is this dude's problem? stackoverflow.com/a/11966237/1241495
 
cv'd the whole question :D
then you won't have problems :D
 
To be fair, you're right. This hails from my first days on SO, where I was trying to work out what the heck was going on
 
how good is crashplan?
 
It's alright - I use it sometimes and it ticks all the boxes that the OP wanted
 
12:57 PM
My first answer was something like "Use counter"
 

« first day (1573 days earlier)      last day (3378 days later) »