« first day (2246 days earlier)      last day (2709 days later) » 

12:01 AM
good night
 
DSM
12:14 AM
Rhubarb for AD. @idjaw: I'd be a little interested to see if any of these would have failed with your previous code.
 
12:26 AM
 
 
5 hours later…
5:17 AM
hahaaa rank reversal
90, then 26
guess I wasn't so crappy after all
clinging to the 99th position on the starboard
I lost more than one minute because I didn't remember to strip my data
then I had off-by-one error
I need to devise a test plan
I love how there is a warning that "your computer probably doesn't have enough ram for the part 2" and it is true :D:D:D:D
 
5:42 AM
@AndrasDeak it is not a numpy problem
 
wim
bad for TDD
my code passes all the tests
but crunches for ever on the actual input :-\
 
waat
@wim are you slicing strings?
 
wim
I mean there is enough memory for the tests, but not for the question !
so it's bad for TDD
 
memory is one thing, slicing is another thing
@MarcusS how did it go?
 
5:59 AM
@AnttiHaapala Went okay -- took me a bit of time to fully understand what was being asked; I wasted a lot of time wondering what we'd need to do if the first number in (axb) was not enough to cover future markers
 
I would have wanted the input to contain more edge cases,
 
likewise
 
like (1x2xsorrynorepeathere)
and (((10x1)FFFFFFUUUUUU
 
I tried to make it so substring slices weren't needed (not that it matters in this case)
 
hmmm I need to optimize that
 
6:02 AM
nice solution
 
stupid strip there
this is what I went for all along, but I did construct the uncompressed string first
this would have handled almost all edge cases too
 
 
1 hour later…
7:12 AM
@wim seems you solved it
 
wim
unfortunately, I had to go away and come back to it later
 
"had to go away to buy more RAM" :D
 
wim
LOL !
 
my solution was 11G, I would have had enough ram for that
 
wim
yeah mine was about 10GB
but it's obvious after a minute that you need to multiply the numbers
 
7:15 AM
for the solution but not for appending
 
wim
edge cases are everywhere
for example look at (5x5)(5x5)A
 
did you have that?
at least I didn't have )(
 
wim
of course I didn't have that, otherwise the solution is impossible
todays puzzle sucks, you can't write a general solution. you have to make some assumptions about the data being well behaved
 
yea
"because the decompressed data from the (8x2) marker is then further decompressed, thus triggering the (3x3) marker twice for a total of six ABC sequences." - this could be worded better
 
7:56 AM
Yeah, there were a lot of unmentioned assumptions -- kinda frustrating
 
cabbage
 
8:59 AM
python slices do not assert if they're not of correct length, but one could have added asserts to ensure that there are enough characters in repeated substrings
 
user6568562
Cabbage
 
these photos (magical photos of budapest at christmas time) are just making me more sad: clearly, the city itself, and even the country has so many potentials, and yet the governments of the last 25 years are just wasting it..
 
10:14 AM
@PeterVaro "governments of last 25 years" - are you suffering from ostalgia? :D
 
nostalgia?
nah.. this whole thing makes me sad..
and the saddest part is: I cannot really do anything to make it stop/to make a change
 
@AnttiHaapala today I've learnt something new! ;)
 
I'm looking forward to seeing how big mine is... Looks like it's running pretty fast... Hm. I do hope I don't exceed the max recursion depth :P
 
"The term (along with the phrase "Soviet chic") is also occasionally used to refer to nostalgia for life under the socialist system in other former Eastern Bloc countries, such as Slovakia, the Czech Republic, Hungary, and Poland."
apparently "very occasionally" if Peter hadn't heard that before :D
 
10:34 AM
@AnttiHaapala Chickens be chillin like they just don't care
 
Cabbage
 
@WayneWerner Caching may help to limit recursion depth & improve speed. And of course there's always sys.setrecursionlimit().
I generally use a default arg as a cache, since that's pretty fast, but the functools.lru_cache decorator is rather handy.
 
10:51 AM
geeze, yeah... I might need to use lru_cache. Not sure how big this thing is supposed to get, I'm up around 3020765
Seems to be going faster here in the beginning...
let's see how fast I get to that next order of magnitude
 
lru_cache is nice, especially if you want to cache the most recently used items. And it can also show cache stats. OTOH, decorators slow things down, since they wrap your function call in another function call, and Python function calls are slow. So if you want maximize speed, and don't mind caching everything, put your cache dict in a default mutable arg. The downside of a default mutable arg cache is that it's not possible to clear it, but that may not be a problem in your application.
 
lol. Well, that worked way better
 
morning
 
@WayneWerner Oh, good.
 
Turns out order of operations is amaaazing
 
11:04 AM
Also, general memoizing decorators like lru_cache need to handle general args, so every call has to convert the args into a valid key. But if your arg is already a valid key then it's more efficient to do your own memoizing.
@WayneWerner LOL
 
No joke, it was going for like... probably an hour
Now it takes... 0.27s
831 on day 9.2. I wonder what I would have been an hour ago! ;)
welp... time to go back to sleep. Rbrb ;)
 
back-from-the-dentist-morning-cabbage to you all this fine Friday
 
ello
 
11:19 AM
Speaking of the benefits of caching in recursive functions, a couple of weeks ago I saw this question that has a recursive Fibonacci function. For large values of n it's un-runnable: the OP thought that the interpreter had halted. :) After decorating it with lru_cache it runs quite quickly, but it's certainly less efficient than doing it iteratively.
 
@AnttiHaapala I know I've had some to drink, but is that a foxnews link? :)
 
@RomanLuštrik it is a foxnews link
the first one that I found. But it is not very Foxy news...
 
why won't my objects "render"?
code:https://github.com/wOstensen/adventure-game-python/blob/master/main.py

in main.py i go through a list of all the objects currently in the game, and then run the method render() on them.
this used to work when they weren't in a list, but now they won't anymore

what is wrong?
 
@gloriousCatnip what's wrong: pep8 naming, calling a module "globalVar"...
 
11:30 AM
@AnttiHaapala Could you explain what you mean? I am fairly new to programming
 
could you explain how this doesn't work any more?
@gloriousCatnip and :D if you're just beginning, I'd have everything in one file... until you find the proper organization of how to split things.
no imports yet
 
before I put all the objects in a list

i.e: calling them manually
x = GameObject(...)
x.render()

it would work
but now when I put all the objects in my list, iterate through it and calling render() on them, nothing happens; no error messages, nothing
 
then: your question would say: "I get no error message, nothing is printed"
GameObject.render() doesn't print anything.
PlayerObject.render is inherited without modification from GameObject.render; it doesn't print anything either.
 
You should print globalVar.objects to make sure it contains what you think it contains.
 
.. now I feel really stupid, haha
i realize the reason nothing was printed, was because I print the map and THEN place the objects on the map; it should be the other way around
 
11:35 AM
@gloriousCatnip also, I recommend that you first put everything into one file...
 
@gloriousCatnip :slaps gloriousCatnip with a wet fish:
 
@AnttiHaapala I will consider it, thanks!
@PM2Ring how dare you something like that
 
@gloriousCatnip btw, since you seem to be struggling with naming conventions, PEP 8 describes the style that 99.9 % of the room regulars are using for formatting Python and naming variables
 
@AnttiHaapala Yes, I will read through it!
At school we learned camelCase, so I am very used to that :p
 
We normally don't use that sort of camelCase in Python. But we use this sort of CamelCase for class names. For simple variable & function names we use snake_case
 
11:42 AM
I'll try to remember that, thanks!
 
No worries
Of course, if your teacher (or boss) insists on camelCase, then you have to do what they say. :) And if you're writing Python that interfaces with existing code with its own naming conventions then it makes sense to use those conventions in the Python code.
 
@gloriousCatnip you can unlearn stuff
and you can do this
 
What's the bet that this is a spam precursor? stackoverflow.com/questions/41059753/hangman-code-in-functions
 
12:01 PM
I noticed in the recent transcript that people were talking about rotating lists. Here's a pretty efficient way that doesn't use Numpy. Of course, if you want to do something fancy, like column-wise rotation of a 2D list, it's not much use, but I guess you could use zip to transpose the list.
def rotate_list(seq, offset):
    offset %= len(seq)
    return (seq + seq)[offset:offset + len(seq)]

lst = list('ABCDE')
for i in range(-5, 6):
    print(i, ''.join(rotate_list(lst, i)))
 
actually käydä doesn't only mean "visit", it is more like "enter", or also something like ~"tread"
@BhargavRao largest Finnish daily has this tag: hs.fi/aihe/suomi-mainittu :D
latest news under that tag was about the conspiracy, seems that the originator is a 22-year-old Brit
 
12:17 PM
cbg everyone
 
Lol, I thought that was just a internet phenomenon :D
@heather cabbage
 
@BhargavRao of course it is
 
But now even papers are using it. :)
 
finland is a small country.
the memes travel really fast from north to south and back again.
 
12:22 PM
With lots of guts
 
there are plenty of young journalists too
 
Ah, that explains the tag
 
hmm :D
this is one of the articles referred to
 
I like Finland. I'll visit it sometime before I die :D
 
would anyone mind looking at this while loop and helping me figure out why it exits after only one iteration even though qubits=2?
 
12:38 PM
Because you don't reset done between iterations, so it's 'y' when the second iteration starts
 
oh! okay
 
I see that you are using the done variable to control multiple nested iterations. That kind of structure can be rather hard to keep track of ...
 
yes, it is a little confusing from the code end. but it is clear from the user's point of view.
 
What holdenweb said. That code looks pretty scary, with all that multiply-nested stuff. It would be easier to read (and to test) if you break it up into a few independent functions. Ideally, each function is a "black box", so when you read code that calls that function you just need to know what inputs it takes & what outputs it produces, you don't need to know what it does internally to produce those outputs.
A minor benefit of using functions is that you can return anywhere in the function. That can be a neat way of breaking out of multiple loops without needing to use a flag like done.
 
12:54 PM
@BhargavRao it is as you dreamed 4 weeks a year
48 weeks, it looks like
 
@PM2Ring, okay, good to know, I'll try to do that. Thankfully, the first part is working now. =)
 
@AnttiHaapala I want to visit when there are auroras
 
1:10 PM
 
I'm glad day 6 was easy but then I looked at day 7. Is regex basically the only option there?
 
Hmm, where's Zero these days? Missing him. :/
 
I think the conclusion we came to was: Zero is fine but is not able to commit much time to SO.
More recently, I suspect Tristan has gone down that same path.
 
I just saw Zero vote to close a post.
Tristan's gone on a sabbatical. He'll be back in a more refined form soon :)
 
Oh, good. I was worried when he changed his name on the main site to thirty random letters.
Seemed rather... Pyroclastic to me.
 
1:25 PM
Zero was on SO a little while ago: he voted on that non-question I linked earlier: stackoverflow.com/questions/41059753/hangman-code-in-functions
 
That was a troll post.
 
Could it be that I was thinking of someone else that is fine but not able to commit much time to SO, then...?
I never know the appropriate level of concern to show when my Internet chums make themselves scarce for 10+ days. Am I my brother's keeper?
@Programmer I did it without regex.
 
@BhargavRao I guess so. At first, I thought it was pre-spam that the OP was going to edit spam into.
 
Possibly helpful tip: the input is well-formed so you don't need to worry about having to detect things like a[b]c]d
 
@PM2Ring Mod flag if you see some stuff like that.
 
1:30 PM
@Kevin You probably are thinking of Zero. He hasn't been on SO much lately, just the occasional post here & there.
@BhargavRao Ok. Do I just use the standard spam flag, or do I use a custom flag and explain that it's possibly a spam precursor?
 
@PM2Ring Custom flag with some text like, "This is a troll question, The answer is also a troll. It looks like 2 users are trying to make fun out of us."
 
Ah, ok.
Here's a wild jazzy version of Cream's Sunshine Of Your Love from a bunch of Russians.
 
Unsolicited copyediting: "make fun of us" is more idiomatic than "make fun out of us"
I interpret the latter as something like "they are trying to create fun in physical form, using us as spare parts" which is kind of abstract and terrifying
 
@BhargavRao I have a question not related to python but more working with Indian team
 
@AndyK, Then let's not clutter the python chat. Join me in Sobotics. :)
 
1:43 PM
Let me pop there
 
@BhargavRao Can you kill the email address in this question? stackoverflow.com/questions/41061809/…
Thanks
 
Just a sec, I don't know how to use the redact tool :D
 
Wheeee, I used memoryviews to solve todays puzzle :-D spoiler.
 
@innisfree Sorry, I don't know SymPy, but that does look a little puzzling. BTW, in our Room rules we ask that you don't ask for answers on your fresh questions from the main SO site here. Please give them a day or two.
 
Oh sure sorry
 
2:18 PM
\o
 
My quest to get the ImageMagick bug fixed continues. My topic got a reply, which is good. But the reply only contained a suggestion for a workaround from a non-developer, which is potentially bad. Now the dev team might glance at my topic, think "oh, he's already being helped", and no progress will be made under the hood.
In my reply I tried to convey the idea of "I appreciate your suggestion but am not yet remotely satisfied" as politely as possible
 
I poked around the source code myself but it's pretty damn big and grepping for "optimize" has a very poor signal-to-noise ratio.
 
you need to be a) very up north, b) still lucky :D
 
it's okie kevin we believe in you \o/ has our power to get your bug fixed
 
2:22 PM
@AnttiHaapala :(
 
I think I found the part that parses the optimize command line option, but it barely does anything other than invoke two additional commands, both of which I have confirmed are fine when executed independently (or even concurrently!).
I was hoping for something obvious like overwriteImageWithJunk(img); //todo: fix this later, but no luck
 
@BhargavRao in oulu I don't see bright auroras even every year... (possibly because I am stiupid and don't open curtains at night :D)
 
friday.cbg()
 
@AnttiHaapala Damn, You too stupid. I'd have never missed it :(
@Withnail cabbage
 
@BhargavRao I have seen auroras that made my head ache and eyes hurt :D Really, like websites from 90s :D
 
2:25 PM
oh yay day 9 is up
 
@AnttiHaapala and attack ships on fire off the shoulder of orion?
 
@PM2Ring Can you check if the revision is actually redacted :D ....
 
@Withnail that too. Tannhäuser Gate is still on the bucket list.
 
@BhargavRao It looks good to me.
 
Wipes Sweat
Worked on the 6th try
 
2:30 PM
:) You got there in the end. And you'll know how to do it next time.
 
When did "sleeps till [event]" become an accepted measurement of time? I'm not complaining, I just feel like I've seen it spring up in multiple places with no obvious source.
Does it show up in, like, A Christmas Story or something?
 
@PM2Ring it was by fluke :P
 
any knowledge of active firewalls for ubuntu
a real intrusion detection system
not just some shitty port filtering
 
I use combo of iptables/chkrootkit and tripwire
 
iptables doesnä't catch protocol vulns
I guess I want NIDS
 
2:39 PM
Anti alpaka
cbg
 
ofc not, but dropping traffic that's just effectively noise before it gets to the others is still sensible.
 
yeah
what I want also is to ban all hosts attempting active attacks against HTTP/HTTPS/SSH
 
do you need something more advanced than fail2ban?
 
fail2ban could work for SSH... but usually when my colleagues configure fail2ban... then I have too many ssh keys attempted -> baaan
 
@Kevin No idea, and Google isn't helping. The Oxford English Dictionary lists it as an informal usage, but cites no source from literature. Maybe ask on EL & U
 
2:42 PM
too effective :d
 
I tend to set it up to whitelist my IP so that I'm not bound by the too many attempts.
 
Perhaps it has always existed and I merely got exposed in a way that superficially resembled a memetic viral outbreak
 
@Withnail ... and it is easy to know your Vietnamese 3G IP beforehand <3
 
ahhhh :D
 
Morning cbg
 
2:44 PM
vpn -> static IP?
 
I believe you learn a programming language best if you are actually building something. So I was wondering, what could be a good beginners python project for me to start.
 
@Withnail could work, but enough latency without the VPN :D
 
@MarcusS \o how goes it
 
Sleepy
 
I am drinking today,
lets see how AOC goes tomorrow morning :d
 
2:46 PM
@AnttiHaapala cause you can or special event going on ?
 
special event
 
@MarcusS not enough sleep or couldnt sleep ?
 
so called "little christmas"
 
oh you're Irish?
 
so funny I went to a bank, and mentioned we've got this party today... the bank lady was like... "oh why so close to christmas"
Pikkujoulu (Finnish for "little Christmas") is a Finnish traditional party held to anticipate Christmas. The Pikkujoulu party is non-formal, highly festive, and themed after Christmas. Pikkujoulu parties are held by various communities, organisations, companies, or just among friends. == Description == Pikkujoulu differs from Christmas as more free-form and less religious. Traditionally, Pikkujoulu is a day when Christmas dishes are served for the first time. These include rice pudding with fruit. The most traditional Pikkujoulu drink is called “glögi” (the Finnish equivalent of the German Glühwein...
 
2:48 PM
@Kevin.a The best projects are ones that appeal to your specific interests, so any generic suggestion made by a stranger is unlikely to be useful.
 
Little Christmas (Irish: Nollaig na mBan) is one of the traditional names in Ireland for 6 January, which is also widely known in the rest of the world as the Feast of the Epiphany. It is sometime thought that it is called this because under the older Julian calendar, Christmas Day celebrations fell on that day whereas under the Gregorian calendar it falls on 25 December. However the eastern tradition of celebrating the birth of Jesus on 6 January precedes the creation of the Gregorian Calendar by hundreds of years. By the year 1500 AD eastern Churches were celebrating Christmas on 6 January and...
 
For example, I learned a great deal about databases and web design when I resolved to make a tracking system for my Magic: The Gathering collection.
 
xD only reason why i ask this is kinda weird xD oh well multiple parties!
 
If someone had suggested "a tracking system for your music collection", I would absolutely have given up in the first ten minutes because I don't give a darn about music. Even though that project and the one I actually finished are virtually identical.
 
@Kevin what format? deck? do you play ?
 
2:50 PM
A lot of people make simple games like Hangman, Chess, or Intergalactic Quantum Hopscotch
 
I got into magic at the end of my last high school year, and played it through out university, got poor on it, sold my collection (minus 2 decks) and came back a bit over even..
@MarcusS school projects man... i saw a few OP with the same requirement as each other. you would think they would get together or maybe look it up >.>
 
@MooingRawr Primarily Commander. I have Omnath, Sharuum, Ghave, Karador, Riku, Zedruu, Vorel, and Edrick decks. I haven't played since August-ish because my friend stopped hosting at his place and I can't be bothered to pay the entry fee at the local game store.
 
commander... that's a term I haven't heard in a while.... (my local calls it EDH) .... I have a crappy angel EDH deck.... just because I find the cards REALLY pretty
 
In the intervening time I have played an enormous amount of MTG Forge but it isn't as intellectually stimulating playing against the rather dim AI. Never attack with your Grizzly Bears when your opponent has Sword of the Meek/Thopter Foundry and eight lands untapped.
 
oh man... that looks fun.... i only primary play drafts, edh, and modern ... I want to get into legacy but I don't want to drop 2k+ on a deck ><
but im secretly waiting for angels to storm back so I can get back into the stupid game .... right now my only "competitive deck is 'ESPer' control [blue black white]
 
2:58 PM
I'm pretty sure I singlehandedly killed my kitchen table group's interest in 60-card constructed because of my soul-crushing UW control deck, back around New Mirrodin.
Elesh Norn, White Sun's Zenith... Oops, are you unable to play half of the cards in your deck, and I have thirty 4/4's on the battlefield? Teehee.
 
a lot of people hate playing against control, as my friends put it "when you play control no one has fun, no one wins, you all just waste your time"
 
I used to have that viewpoint but it fell away once I had a disposable income. Control isn't nearly as scary when you can "Buy It Now" without blinking on a playset of Cavern Of Souls.
(Not that I've actually done that, but I could)
 
the only thing that feels better than playing a land and passing turns just to watch your opp's face as they fear to play something that will get instant killed (tehe), is playing a mass 1/1 white token and spawning avacyn
 
I think I might move to the PHP room, it might make more sense. :D
 
SoC so good when avacyn return's pack (i think that's what t was called)... I cried when I saw it ... >< also day 9 looks weird
 
3:05 PM
Ok, I try to limit MTG chat to one page so as not to scare off the nonplayers, so I'm done.
 
Hehe
It's odd how dense it sounds, even as someone who played not entirely dissimilar (I guess?) rpg games
 
wim
@PM2Ring it is possible.
>>> def square(n, memo={}):
...     if n not in memo:
...         memo[n] = n**2
...     else:
...         print 'using cache'
...     return memo[n]
...
>>> square(4)
16
>>> square(4)
using cache
16
>>> square.func_defaults[0].clear()
>>> square(4)
16
 
@wim Ah, of course! Thanks, wim.
 
damnit @vaultah ninja'd me marking that question as a duplicate
 
@Withnail dont feel bad, I was trying to flag it too T.T
 
3:20 PM
haha
 
I want my first gold badge to be that flag 500 flags T.T
 
trying to eke myself over 1k.
:(
 
I'll reopen it if you have better dupe targets
 
no from me xD you used the dup target i was looking for
 
> C#(pronounced as see sharp) is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
best question ever
 
3:23 PM
Nah, that was the one i was using as well.
 
Deleted for being factually inaccurate, I assume. The correct pronunciation is, of course, "see octothorp"
 
That 'naive' answer that was given before it was on hold was horrible.
 
:34514473 That's the entire body of a question. Oddly, the question was tagged
 
So good.
 
Is this the next SOchat copypasta?
 
3:26 PM
And the title was "Hangman code in functions?"
 
Yeah, I know?
It's like a markov bot got loose on SO
a very drunk markov bot
 
DSM
#octothorpe cabbage!
 
cbg DSM
 
cbg
 
wim
3:32 PM
Did anyone else solve AoC 9 iteratively? Looks like you all used recursion ..
 
@wim 4) 1 sleep to aoc 9
 
I solved the first part iteratively
 
@wim you did iteratively?
you still had a list i guess
 
wim
Yeah I did both parts without recursion, and I didn't use re either
It was hard though, the recursive solutions are looking much nicer
 
If I didn't use recursion, I would have used a stack, but that's basically recursion the hard way, so why bother
 
3:36 PM
that's why I refactored it into recursion right away
 
what's up snakes
 
IDK how stupid I am to actually assume that I need the message in part 2
@idjaw AoC
 
@Kevin Yeah. If you find yourself effectively implementing recursion with an explicit stack, just give up and use actual recursion. Unless, of course, you happen to be writing in a language that doesn't support recursion. :)
 
@DSM haven't had a chance to run those tests....but will let you know once I do :)
 
@PM2Ring like Python.
 
wim
3:37 PM
I didn't use a stack
 
What the heck is happening in Is there a way to stop a line of code working after one use? import q2; mymoduleq1 = sys.modules[q2]
 
@AnttiHaapala :) I remember doing Quicksort in old-fashioned BASIC...
 
@Kevin just dupe with your input-until-valid question/answer
and move on :P
 
wim
My solution was completely different to all the others I've seen. I think even I won't even understand it in a few days ...
 
@khajvah It's not homework. It is worth 60% of my final grade.
 
3:39 PM
@wim even worse :D
you're using list with pop(0) :D
 
wim
I wrote it in a state of drunkenness after coming home from a holiday party
 
were there runtime issues?
 
wim
no, it runs very fast
 
@idjaw Really? So can I just copy and paste my whole question on here?
 
wim
3:41 PM
< 1 second
 
Has anyone watched Avatar: The Last Airbender
???
 
wim
I could probably make it faster by reversing the list, or using a deque instead
 
@Mario If you posted a question on the main site and it has been 1-2 days since anyone has addressed it, copy the link here
if you have a specific question about something, formulate it in an MCVE
 
@Mario Yeah it's p. good
 
We are talking about the actual good Last Airbender right? Not the abomination?
 
3:43 PM
i can't get over the name
 
Yeah the good ne
one
the movie was a waste of time and money
 
http://i.imgur.com/bQPcqzh.jpg
Here's my output for todays task on AOC, but is there a way to visualize my answer?
What I mean is, first I want it to display 172, then overwrite it with 276 and so on? Without going into new line.
 
wim
@AnttiHaapala there, switching to popleft() instead halved the runtime github.com/wimglenn/advent-of-code/commit/…
 
@idjaw Can I ask you my question please?
 
3:44 PM
Just a single output, overwriting whenever it changes
 
I'm pretty over the "intentionally mispronouncing M Night Shyamalan's name in wacky ways" trope, actually. That was fresh and fun about ten years ago.
 
wim
But really, 0.5 seconds instead of 1 second ... who cares???
 
@Kevin IKR!!!!
 
no one cares for that input
 
@Kevin What about the Legend of kORRA
 
3:45 PM
but did you read the jslex issue
 
@Mario You can just ask the question to the room. If anyone can/wants to answer they will address it.
 
@Mario Didn't care much for most of the series finale, but I quite liked the rest
 
wim
no? what's that
 
@idjaw will I be able to use make blocks of code
 
?
 
3:47 PM
@idjaw So if i just copy and paste it, is that ok?
 
@SimeonAleksov Use carriage returns. More information: Output to the same line overwriting previous
 
@idjaw Sorry I'm new to this
 
Nice, thanks
 
@Mario Make sure to hit the "fixed font" button before submitting
 
@Mario If it is a long piece of code, use pastebin. If it is just a few lines, paste it here in its own message and hit "ctrl-k" to properly format it
 
3:47 PM
@SimeonAleksov If you're working in a sane terminal, you can do something like this:
 
@Kevin Oh ok, I'm new to this so I'm just learning
 
from time import sleep
for i in range(100):
    print('\r {}'.format(i), end='')
    sleep(0.1)
 
Sorry for any irritation
 
I derive some small satisfaction from lecturing strangers, actually, so it's no problem. (why else would I be here otherwise :-P)
 
Yeah, did it but on it prints my result twice :D
Like this 110346110346
Oh, wait
 
3:50 PM
This is my problem guys
Can you guys see the pictures attached?
 
Nope, chat doesn't embed images like that.
 
So I can't use images?
 
Not unless you use the "upload..." button, but I don't think that's necessary here
 
ok
 
@Mario YOu asked this on the main site, you could have just linked your question instead
I'm going to delete your message
and paste your question for you
0
Q: My previous order is overwritten by the latest order

MarioI want to loop the code to let the user add another item. My task is to "develop a program that will update stock levels following an order. In the stock file include a current stock level, re-order level and target stock level. The program should, when instructed to do so, calculate which produ...

 
3:54 PM
Thanks, idjaw. You beat me to it. :)
 
:)
 
Rhubarb
 
Haha. If you want to get super rules lawyery, copy-pasting a recent question's entire text from the main site into chat is not in violation of our exact guidelines as written... "Do not link your recent (< 1-2 days) questions in the room." well, he certainly didn't link it.
 
haha
 
The main point of contention, I think, is: does "If you have posted a question on the main site and a significant amount of time has passed without receiving a satisfying answer, then you can discuss your question in the room" imply its negation? Is it precisely equivalent to "If you have posted a question on the main site and a significant amount of time has not passed without receiving a satisfying answer, then you may not discuss your question in the room"?
Generally, rules should be either "everything is forbidden except that which we specifically enumerate as allowed" or "everything is allowed except that which we specifically enumerate as forbidden", but we've got a little of each in ours. Thus, chaos reigns.
 
wim
3:59 PM
all who wrote recursive solutions (on part b), what is your output for input '(5x5)(5x5)ABCDE' ? curious ...
 

« first day (2246 days earlier)      last day (2709 days later) »