« first day (2048 days earlier)      last day (2901 days later) » 

2:00 PM
ok here's the sphinx int solution:
def wrapper(func):
	print(func(4))
	return 3

@wrapper
def thefunc(var):
	print(var)
	return 2

if __name__ == "__main__":
	print(thefunc)
 
@bereal ah, I get it. mylist.extend(something) adds the first five elements of the generator to mylist before crashing, while mylist.extend(list(something)) adds zero elements before crashing.
Interesting interesting
 
@davidism also poo answer
 
would it make sense to have an MCVE dup in the canon, so that we can dup-hammer such questions? Intuitively, the answer seems to be "no - just because the question doesn't have a MCVE, doesn't mean it's the same as <otherQuestion>; not to mention the fact that <otherQuestion> may not even have an answer". Yet, the need to hammer such obviously bad posts seems to be quite real. Any thoughts on this?
 
No
You'd be dupeing as a meta question which doesn't actually answer the question.
Imagine in 6 months time when someone else comes up with the same issue, finds the Q, sees "Oh good there's a dupe link!" and gets linked to a "You should MCVE" post.
 
2:08 PM
rbrb - coffee run
 
I agree that a meta dupe is not exactly ideal, but would you agree that there's a need to hammer such blatantly poor posts?
 
Nope.
Why do you need to hammer them? Just close them.
 
IIRC, back when hammering was first introduced, something like that was attempted, and Meta came down pretty hard on them.
 
I'd be hard pressed to agree that someone else would find "I'm following <X> tutorial and have a problem in that it doesn't work" very helpful
 
@inspectorG4dget hammer with anything but a dupe
roomba doesn't eat dupes for a long time
 
2:10 PM
Is closeHapper a thing?
@AndrasDeak roomba?
 
nope, but 5 CV + deletion in 9 days >> 1 CV and deletion in 1 year
 
@inspectorG4dget I'm absolutely and completely sure that someone struggling with the tutorial would find "You should make a MCVE for your post" a not very useful contribution.
 
If we want to give gold users the power to hammer questions that need an MCVE, then we ought to do it through the proper channels - make a meta post asking the devs to implement that feature and see how much community support it gets
 
240
A: Enable automatic deletion of old, unanswered zero-score questions after a year?

Jeff AtwoodJust to formally document the exact policies we have in place to remove old abandoned / dead questions, the Community user will delete questions in the following circumstances: If the question is more than 30 days old, and ... has −1 or lower score has no answers is not locked ...or... it ...

@inspectorG4dget roomba rules ^
 
@Kevin agreed that it should go through the correct channels, but unsure whether it needs to be done anyway.
 
2:12 PM
and yes, gold hammering non-dupes would quickly be shot down as abuse
as it would be exactly that
 
Indeed.
 
I know I would find the power useful and use it judiciously, but... warily eyes entire rest of userbase
 
I don't view dupes as helping the OP, but rather helping future users.
 
what we need is weighted close votes
 
@Ffisegydd agreed. That's why I don't want to dupHammer. I want to closeHammer (I've been using "hammer" = "closeHammer" in my discourse - that has led to some miscommunication)
 
2:13 PM
gold badgers have 3x weight in CVs, for instance
 
@inspectorG4dget It definitely has :P
 
some people want "close mods" who have binding votes but only close
I'm not that fond of this version though
 
@AndrasDeak I think the review was that the gold badge for dupe-hammering was a success and such is still here, I'm not sure what's happening with extending that to weighted votes to silver badge holders for instance...
 
but we're drowning in crap, so something should change
 
I'd be up for weighted CVs based on badge.
 
2:14 PM
@JonClements I don't think it's on the table...
 
I'd say gold CVs be worth double, then it still takes at least 3 people to close.
@AndrasDeak it's definitely been suggested before.
 
I'd be OK with gold badgers having larger weight alone, that would already help a lot
 
I want exactly as much power as I can handle without becoming corrupted.
 
@Ffisegydd yes, but I don't think there's any postiive response ever
@Kevin regular fsck's help a lot
 
2:15 PM
Logically we should give me more and more power until I go mad, then give me one less unit of power.
3
 
rhubarb for now
 
That's the same way they determine the weight capacity of bridges.
 
@AndrasDeak thanks. This was news to me
 
@AndrasDeak I think that's mostly because the CM team still need to run stats such as "If we'd enabled badge weighting - what would have been closed that isn't already etc..."
 
@AndrasDeak I could definitely get on board with this
 
@JonClements Yeah, I know. We definitely need a lot of though before something this drastic is implemented. But the CVQ is in very bad shape, and I don't think it's sustainable as it is...
 
@AndrasDeak as @Kevin mentioned - the saddest thing is - while I'm behind the idea for weight votes, there are just people that vote to close for whatever reason "just because"
 
There's some sick people that just close vote because they enjoy seeing others suffer.
 
I know, but that should (hopefully) diminish with tag experience
and the rest of the robos could be banned:P
I'm definitely thinking in gold-based weights, since silver is too easy to obtain
and there are too many idiots
with gold, there's a strong filter, and idiots are easier to correct
dunno, fortunately it's not for me to decide:)
see you later
 
@AndrasDeak You'd like to think so - some of the more heavily disputed cases are where a gold badge holder gets adamant :)
 
2:20 PM
@Ffisegydd serial downvote detection is already a thing. Can serial closevote detection therefore not also be a thing?
 
@inspectorG4dget I hope not or I'll be in trouble.
 
And there's even people that hold gold badges that don't even want dupe hammer powers - so they refrain from even closing questions
 
ahh, but not for high reppers - just for people like this
but I suspect the heuristics for filtering them will be difficult to nail down
 
their argument always seems to be "I'm not 100% sure if I should close this as a dupe of this, so I'd rather four other people back me up - I don't want to make that choice"
 
I wouldn't mind being able to toggle the hammer power on/off as appropriate, yeah.
When I'm not sure, I don't vote and instead just comment "possible dupe of [thing]"
 
2:25 PM
that could work
 
Usually happens when the question is outside of my area of expertise while still being about Python. Ex. questions about numpy or Flask.
 
Hmm interesting discussion if I am following it. I think CVQ relates to those with power to see a question deleted. I had an experience with that not long ago. Sorry - new, brought a basket of vegies.
 
@Cam_Aust No not necessarily.
CVQ is Close Vote Queue.
 
Was kind of lurking to learn the role of the chat groups in the scheme of things. - Yep looked that up, checked some past posts on mets, but still not clear. I was confused by the English Close (as in near) or close (as in shut) so that tells you how unfamiliar I am with things.
 
Right now our discussion is mainly about people with tag-related gold badges. This gives them the power to single-handedly close posts if they are a duplicate of an existing question. We're asking whether it would be good to broaden those powers, or possibly give lesser powers to silver badge holders.
Theoretically, you can have these powers even before you have enough reputation to view deleted posts.
 
2:30 PM
@Cam_Aust In answer to your unasked question: the role of chat groups is to provide cat gifs and puns, mostly.
 
yes yes - puns. We're all pundits here
 
Dude. Come on. Don't capitalise it.
That's rookie level behaviour there.
 
Well as an outsider the argument for Gold having more experience, harder to get, seemed a good human selection criteria for the role. Laugh, yes, have not seen any cat puns yet ... and I took an interest in comments on land in Norway as well, seeing my society (Australia) being turned a different direction of late with no one agreeing with it. Like how to you work out and calculate the societal IQ of a nation?? Some clearly more advanced than others.
 
Gotta learn the pundamentals
 
but but but... I ain't no commie
 
2:33 PM
Won't be getting a PhD with that kind of behaviour.
 
pork chop sandwiches
 
I deserve to be punished for that
 
cbg all
 
heya idjaw
 
Realtalk: chat was originally conceived of as a "third place" for discussion that doesn't fit on the main site or Meta.
 
2:34 PM
Ah yeah
 
another improvement of power: I can make an edit and have it reflect immediately. But if I approve someone else's edit, I have to wait for two more approvals, or improve their edit. Something about that seems wrong
 
Good old Joel
 
Yep, thanks. I am not at the level of coding as you guys so concluded not the place for me, but really was enjoying the comerardere (spelling) that apparent. I know where to come further down the track.
 
@inspectorG4dget Yeah that super annoys me. It creates the perverse incentive to reject valid pending edits and then make your own, which will often be a superset of the thing you rejected.
 
We have plenty of people that aren't very good programmers, for instance looks around and chooses mockey target @idjaw.
 
2:35 PM
I must say I have been overall really impressed by the stackoverflow community and the way things are discussed, organised, evolved, really quite impressive. Credit to all.
laugh
 
I'm good at writing programs less than 100 lines long. Since most code on SO is that short, I can trick the community into thinking I'm good at programming.
 
I'm still surprised every time my code runs.
 
I learnt a lot about urls following one of the posted links (blog). Now there is good material for trivia questions.
 
I'm not even a programmer. I intelligently just look things up on google and spit them back out
 
Hey I am surprised when even 10 numbers added differently turn out the same answer.
 
2:37 PM
and it's been working out great for me
 
hahahaha. I'm looking for a post that I overengineered the hell out of, with multiprocessing, etc, to answer some stupidly simple question
 
what is even a comprehension. amirite?
 
anyone have a link to martijnpieter's post on for a[-1] in a:?
 
17
A: Weird for loop statment

Martijn PietersThe for loop uses a[-1] as a target variable. The for loop assigns each value in the list to that one variable. That happens to also be the last element in that same list. So the list changes with each step through the loop: >>> a = [0, 1, 2, 3] >>> for a[-1] in a: ... print a ... [0, 1, 2,...

Fizzy delivers.
 
thank you
 
It makes my brain itch.
 
as promised, my stupidly over engineered solution to a simple problem... and I didn't even get many upvotes for all that effort
 
Ok idjaw, can relate to that.
 
relate to what?
 
Sorry - "I'm not even a programmer. .... comment earlier".
Using online resources, stitching things together, looking up stuff constantly.
Reading inspectorG4dge's past post. I spent something like 4 hours making my first stackoverflow post question.
 
2:54 PM
programmers are just search engines - they maintain a crawled index of the interwebs and context/content-based retrieve specific pages with documentation and examples as required for the task at hand
 
I'd say 90% of my programs I wouldn't have been able to write without looking things up.
 
cbg
 
When it's the end of the day and you have to close 30 tabs in your web browser, it's a sign that you did your best. (unless they're all reddit tabs)
 
2:56 PM
yep, the whole culture and practice of coding has changed a lot since .. well long ago at Uni. I can even remember watching people bootstrap a PD11 (Digital) .. magnetic tapes drives etc.
 
@Kevin yeah. I regularly need to close 200
 
Just navigating those tabs to find the one you need is impressive.
"Where's the documentation for the OS API for drawing dotted lines...? Somewhere around tab 147, I think"
 
Cabbage
 
Hey, another Aussie. G'day, @Cam_Aust!
 
2:59 PM
Hi
 
@PM2Ring day? o_O
 
@Cam_Aust yeah...pretty much my experience is a compound of self-interest, failing, learning, reading, experimenting, crying, questioning why I do this, go home, sleep and do it again the next day.
 
@BhargavRao "G'day" is a valid greeting at any hour. :)
 
@idjaw Yup, sounds about right.
 
> Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
 
3:01 PM
Hey @Cam, Nice to meet you. Hope you watch cricket unlike the other Aussie ;)
 
-- Samuel Beckett
 
@PM2Ring Hello! is the best :P
 
@inspectorG4dget As I said last time this came up:
Nov 1 '15 at 15:52, by PM 2Ring
@idjaw Gone. As for the editing thing, when you reject and improve you're taking ownership of the edit, so you're totally responsible for its quality; merely accepting a low-rep user's edit doesn't have that implication.
 
Ok then my struggles are not so abnormal. One advantage, work at home, open fire, laptop, no distractions for hours when I have the time free.
Um cricket, you mean that game with a piece of wood and a leather red thing?
 
@PM2Ring I still don't see the distinction between my seal of approval on an edit, regardless of who made the edit - I'm still putting my endorsement behind it
 
3:04 PM
(Thanks Bhargav for the welcome)
 
@Cam_Aust Ah damn, you are like the other guy. Aussies are world champs in cricket and you guys don't know. :-(
 
@inspectorG4dget Sure, you're endorsing it, and interested parties can see that you are one of a group that gave approval, but IMHO that's not the same degree of commitment as taking over the edit so that your name becomes the primary name on the edit that people see on the main page.
 
Well I suspect you are from one of other lands that plays so well. Fine game to watch with the company of mates, few drinks, lazy days of summer. I listen on the radio here.
 
@PM2Ring could you please explain why "that's not the same degree of commitment"? I guess I'm having a hard time seeing that distinction
 
However not a major fan of any game. Sports did sort of miss me. Head in a book too much.
 
3:08 PM
@Cam_Aust What about the sport called "Programming"?
The rest are all mere games.
 
another terrible pun: what do you call a semi-awesome root-vegetable?
 
@inspectorG4dget Beat Root?
 
@Cam_Aust Roughly where abouts are you? My guess is western NSW, eg the Riverina district, or maybe a bit further north. I'm just north of Coffs Harbour.
 
Well I could say the modern world dances to the coders (without realising it though)
 
@BhargavRao ooh good one! That might be the most percussive of all vegetables
but I was going for radish
 
3:11 PM
What's a good mutable defaults question? I don't want to ask "what's the output of this code". I think "why does the following code output [5, 5] and how should it be rewritten" sounds better but might be too leading.
 
Puns are nice
 
Here's a thing. When I did mange to get a new mac, retina, the only thing the fine res screen really touched me with was the beautiful crisp letters in Terminal, and my fingers itched to code. Brain not up to the itch, but getting better. I thought it possibly significant that this was my response. It calls. Will see what happens.
 
1370
Q: "Least Astonishment" in Python: The Mutable Default Argument

Stefano BoriniAnyone tinkering with Python long enough has been bitten (or torn to pieces) by the following issue: def foo(a=[]): a.append(5) return a Python novices would expect this function to always return a list with only one element: [5]. The result is instead very different, and very astonish...

 
I do some beta testing for Evan who writes Wizard. Just breaking out of the GUI, love the data and science python packages. Things evolving fast there.
 
@inspectorG4dget: +1 on your overengineered answer, always nice to see a simple mp example
 
3:15 PM
man, that cvq is huge
 
@inspectorG4dget It's not really in the form of an interview question though.
 
The CVQ Count Also Rises
 
@inspectorG4dget If I see an edited question and see that the edit needed approval then I don't blame the approvers for minor faults in the edit. But if the edit was done by someone with enough rep to not need approval I expect them to know what they're doing, so I hold them to higher standards.
 
many thanks. I was wondering where that came from :)
`mp` on simple parallelization problems does wonders
@davidism which one?
 
I had a great interview question earlier but now I've forgotten it.
 
3:17 PM
@inspectorG4dget the one you replied with
 
@PM2Ring Interesting point. I would have expected the approvers to improve the edit in that case, to fix such errors
 
Got asked this at an interview: What does this C code do? a ^= b; b ^= a; a ^= b Yeesh! I wasn't born yesterday!
 
@davidism ahh! wasn't aware you were asking for an interview question
isn't `^` the exponentiation operator in C? Wouldn't that just translate to

a = a**b
b = b**a
a = a**b

?
 
@davidism "Why are mutable default arguments awesome? Write a short example showing how to use them properly" :) I s'pose my most common use for them is holding global state in a recursive function.
 
So I gave them this one back: What is the next in this sequence? 1, 11, 21, 1211, 111221, ...
 
3:19 PM
nope, it's xor
 
No, its xor
Just like in Python
 
There's no exponentiation in C, just pow() from math.h
 
C doesn't have an exp operartor
 
@PaulMcGuire 312211, 13112221, 1113213211
 
DAMMIT @KevinMGranger
 
3:20 PM
heh
 
I got that from Clifford Stoll's "The Cuckoo's Egg"
 
31131211131221
13211311123113112211
 
@inspectorG4dget - now prove that there will never be a '4' character. (I've never done this, but my intuition says so)
 
11131221133112132113212221
 
There is a fun 2-liner to create these using groupby
 
3:22 PM
IIRC we spent like an entire day in this chat room proving that "4" never appears.
 
Or maybe we were trying to prove some other difficult property, I forget.
 
@inspectorG4dget Fair point. Minor improvements leave the original editor as the main name, and they still score their 2 points. But for major improvements you reject & improve, taking over ownership of the edit & the original editor doesn't get his 2 points.
I guess the difference between those two is a bit vague. And sometimes you might be tempted to reject & edit merely to get the edit through, even though the original editor did a reasonable job and deserves the points.
 
wow re Least Astonishment - that is interesting. I would not have expected that.
 
I think the proof had something to do with the observation that any number in the Look & Say sequence was composed of a finite number of components, and that no concatenation of any two components would ever lead to four characters appearing in a row.
 
3:26 PM
@Cam_Aust One of the Classic Blunders
 
Thanks.
 
@inspectorG4dget - the answer to my C interview question was that, for a and b being integers (or often pointers), this performs an in-place swap, without using a temporary.
 
@PM2Ring yes. That's why I always try to Improve, rather than Reject-Edit
@PaulMcGuire ahh! that makes a lot of sense
 
Silly C devs, just do a,b = b,a #LetThemEatCake
 
3:32 PM
@inspectorG4dget Me too. But sometimes I reject & edit if the question seems popular but drastically needs the edit to go through.
 
@PaulMcGuire in order for there to be a 4, you must have four of the same numeral in the previous element in the sequence. Suppose we have 1111, then the previous element in the sequence had a 11, which would have then made the following element 21, rather than the aforementioned 1111 <- contradiction! And there you go!
 
Back when embedded systems gave you a total of 8K to work with, this was common. Nowadays, its just a bar bet/interview question.
 
First end-to-end test for my new CI stack just passed for the first time....I am so freakin' happy right now.
 
@idjaw - woot!
 
3:37 PM
The answer being ".copy() only gives you a shallow copy"
 
@PaulMcGuire: does that proof argument that forms the basis of a proof satisfy you?
 
@Kevin the sometimes is weird
 
I interpret "sometimes" to mean "b[x] = 42 doesn't change a, but b[y][z] = 23 does"
Which is exactly what you'd expect from a shallow copy.
Perhaps OP means something else, but you'll have to forgive me for not reading his 200 line code sample
 
@inspectorG4dget - it does indeed
@Kevin - I would agree that "sometimes" probably means "sometimes I have a mutable value like a list or dict as a dict value, and so a shallow .copy() doesn't handle that so good."
 
@JonClements :( I do find it plausible that certain strong-willed and oddly thinking gold badgers can stir up the largest storms, and I know weighted votes would amplify this. I guess there isn't a single really good solution:/
it's just so frustrating with all the crap flowing in:)
recbg by the way
In principle, giving 3 vote-equivalent-units to gold badgers would stop isolated cases from wrongfully closing stuff, but I don't have any illusions about the abundance of robo closers
and I find it equally possible that 2 grumpy gold badgers get together to "close all this shit", shit being "anything posted in the last 2 years"
 
4:02 PM
@PaulMcGuire A few years ago I used XOR swapping to make a pattern in Conway's Life that allows glider streams to cross. It worked, but it's a bit large. And I later discovered that a simpler stream crosser had been constructed years before: radicaleye.com/DRH/p30cross.html
 
Well its Rhubarb from Green bean. Night all (or day).
 
Forgive me if it's been mentioned but I keep visualizing gold badgers as literal badgers that are golden
 
@AndrasDeak They'd still need to select a close reason. And if they went on a rampage they'd have to justify those close reasons.
@KevinMGranger As you should! :)
 
@PM2Ring I think back in the day I had something like this in my baseline include .h file:
 
Night, @Cam_Aust
 
4:07 PM
#define SWAP(a,b) {(a)^=(b);(b)^=(a);(a)^=(b)}
 
@PaulMcGuire Me too. IIRC, it was even in one of the Amiga headers.
 
Jeez, these new emoticons are a lot to keep up with.
 
At <an Austin company that shall not be named>, I worked on a C lib of a largely Python app, and some of the other devs commented "Wow, C, I think that language was invented before I was born."
 
Python was invented before I was born...
 
Is there a "no ankle-biters allowed" chat room?
 
Pretty cool, in a "why climb the mountain? Because it's there" way
 
@KevinMGranger Same.
Version 1.0 came out the year I was born.
 
@PM2Ring I find that easy. If it's grumpy gold badgers, most stuff will be "too broad" or "no mve"; if it's robos, they will choose whatever has the most votes
 
4:32 PM
@davidism whaaaaaaaa
 
any one master of PyQt4?
here
any???
 
Doesn't look like it.
 
4:47 PM
@AndrasDeak I suppose so. And when OPs complain on Meta SO about unfair closure it's generally up to the OP to show that the close reasons aren't valid, rather than the close voters having to prove that they are valld.
 
yup
and a lot of close votes can be handwaved away
"I found it unclear"
 
What are we even discussing any more? What point is being made?
this discussion: unclear
 
@davidism I went with no longer repro'able
 
@PaulMcGuire BTW, using that XOR swap trick on pointers is risky: I'm pretty sure it's undefined behaviour in C to do any arithmetic on pointers, apart from what's required for address calculations: addition or subtraction with unsigned ints, or subtraction of pointers.
 
I thought it was too broad.
 
4:51 PM
Woop, finally finished my project and it actually works, what now?
 
Is that right, @AnttiHaapala? What I said about XOR with pointers?
 
Pointer arithmetic is C's bread and butter
 
sea bread?
 
What if I want bagel and cream cheese?
 
I only eat english muffins and ghee.
 
4:53 PM
Goes better with Java
Ba-dump ching
 
@davidism "Should tag badge holders have increased close voting power so that rubbish can be cleaned up quicker, or would it lead to abuse of power?"
 
My theory is, anybody that wants to go on a close vote rampage will be too misanthropic to team up with anybody else, so there's no harm in giving gold users quadruply-weighted close votes.
 
One day I will remember the phone number for my office so that I don't have to google it while I'm leaving a voicemail.
I mean, I won't, but I keep hoping I will.
 
5:24 PM
I still remember one of my old office numbers from 15 years ago :)
 
but back then even phone books weren't invented:P
 
Was it your first office?
 
@BhargavRao yup :)
 
Ah! That's why :P
 
This is my first office. :P
Been here ~3 years.
 
user559633
5:27 PM
@thefourtheye i barely care enough to have this account, never mind a sockpuppet
 
@Kevin I tend to agree... but until the CM team decide otherwise...
 
No hurry ;-)
 
Give it 6-8 weeks...
 
I can only remember phone numbers from before I had a cell phone
when I had to know what to call from a phone booth
 
How about reducing the power of non-badge holders to reduce the risk of gang voting? Eg, you can't CV a question unless you at least have bronze in at least 1 of the question's tags?
 
5:30 PM
@Kevin Or - just get yourself a diamond - they work fairly well for closing for whatever reason :p
 
@Kevin bad theory, there are guys who collect high-cv-count crap questions to go over separately (which I also engage in when I have the time). This is great if somebody's doing it carefully, but it's also easy for somebody to get carried away
and if a single grumpy gold badger can cause 3 close votes, it's easy to get 2 regular robos who vote on stuff, even in the CVQ
it can be undone of course, but it would probably cause noticeable disruption
it's not a disaster to push some of the strain on the CVQ to the reopen queue, but things can easily get out of hand too
 
> 55,982 questions were closed using the "hammer"
> 8565 questions were closed as duplicates in the normal fashion,
But the hammer has a larger error percentage.
 
oh @tristan ..... my new CI stack works....so if you have any questions about ansible/jenkins (I remember you mentioned something about you using that) let me know. FWIW, using gerrit, zuul, jenkins, artifactory
GH as a readonly
 
As it's quite small, I guess the higher powers (if they are given) will not cause harm.
 
5:46 PM
@PM2Ring I don't think ^ is defined for pointers
 
Rhubarb all
 
ptr.c:4:9: error: invalid operands to binary ^ (have ‘void *’ and ‘void *’)
 
@AnttiHaapala It's probably safe to use on a tiny embedded system, where every byte counts, but if it reboots or wipes the system, tough luck. :)
 
@PM2Ring it is not valid C
 
as long as it's a kind of UB that works:P
 
5:51 PM
@AnttiHaapala Totally invalid, or "just" undefined behaviour?
 
most of the "totally invalid" in C is undefined behaviour
 
this is also a good safeguard: when skynet awakens and toasters rise against us, the ensuing upgrades will make all these UB-based tricks break
 
as above, it doesn't compile in GCC with no switches
 
it's like built-in protection against the robot uprising!
 
5:52 PM
@AnttiHaapala ok. Thanks. I'm on a Chromebook, so I can't compile stuff.
 
Of course the robot uprising will be because of UB
 
anw. The thing about integers in C is that:
* a pointer can be converted to an integer, and an integer can be converted to a pointer
 
relevant:
 
bhevaiour of which is implementation-defined
 
5:53 PM
(just to annoy tristan, as usual)
 
... @PM2Ring however there need not be any integer type that can store a pointer.
 
@AnttiHaapala Sure. Although I never used such things myself I remember when DOS had crazy segmented addressing.
 
all the DOS segmented addressing behaviour is completely standard-compliant
many reasons for some complicated text in C standard results from how DOS behaves
 
@AnttiHaapala Ok, but my point was that a segmented address doesn't correspond to a single system integer.
 
cbg
@MorganThrapp You here?
 
6:03 PM
Yup.
What's up?
 
Do you know how to make a wxpython window refresh?
so if it needs to update to accommodate a new table I created
 
I'm not sure, I've never done any dynamic component stuff.
 
Ok I wonder if it's similar to pygame
Where you have to re-blit it
 
InitDialog?
I think that could work
 
6:07 PM
Nah, Layout.
Those would be my guess.
From googling "wxpython window refresh". ;)
 
I know nothing about wx, but Yield looks promising
 
Yes that second one will work! Sorry about that, I don't know why I didn't just google it ahaha
@PM2Ring Looks like it could work
Warning:

This function is dangerous as it can lead to unexpected reentrancies (i.e. when called from an event handler it may result in calling the same event handler again), use with extreme care or, better, don't use at all!
This function is life-threatening
 
@Dominico909 Yeah. Probably not a good idea to call Yield in an event handler.
 
I like how everyone in my class is creating games and fun little shenanigans and Im making a GUI to edit and access a database XD
 
6:26 PM
you're making a game that talks to a database.
that's the game
super database hunter
 
MMO servers are just fancy database interfaces anyay
 
Q: What's worse than people writing actual answers to typo questions (rather than answering them in the comments)? A: People upvoting the answers! stackoverflow.com/questions/37444521/…
 
@PM2Ring so lets downvote that answer!
I did
 
I feel like editing in more exclamation marks to their answer
 
@PM2Ring ah you're mistaken about that DOS pointer-to-integer, you just need to convert SEG:OFF to a 32-bit integer.
 
6:40 PM
I'm out of votes, or I'd down vote.
 
@PM2Ring @idjaw c'mon it's just got my downvote
 
@AnttiHaapala Rightio. As I said, I never used such machines. In fact the only code of mine that I've run on Microsoft OSes is some simple batch files, and maybe a little bit of Python, just fiddling around in the interactive interpreter. Oh, and JavaScript, but that doesn't really count, since it runs in the browser.
@AnttiHaapala I'll give them a few minutes to respond to my comment. Maybe they'll self-delete...
 
0
Q: Codeigniter : The filetype you are attempting to upload is not allowed. Yesterday it was fine

JurselsMy codeigniter app suddenly broke today. I didn't work on the upload code and when I tried to upload an image today I suddenly got "The filetype you are attempting to upload is not allowed." Yesterday all was fine. My config array is: $config = array( 'file_name' => $data['slug'] .'-'. $k...

lol must be maximum number of naa's ever
 
@AnttiHaapala Why did you delete that answer? It seems ok to me, although the leading sentence makes it look a bit like they're asking the same question, they are merely doing that to introduce their solution.
@AnttiHaapala He did self-delete.
 
@PM2Ring trigger happy :D
saw so many naa's thought it was naa too :D
since it was in the queue
 
6:55 PM
@AnttiHaapala Fair enough. IMHO, it's better than the link-only accepted answer. :)
 
and 1 answer there hinted that the whole q could be a duplicate, I am not too sure
ah no
 

« first day (2048 days earlier)      last day (2901 days later) »