« first day (2350 days earlier)      last day (2584 days later) » 
00:00 - 18:0018:00 - 00:00

12:16 AM
recbg
 
 
1 hour later…
dead or alive
 
I think most wanted by developers who probably aren't privileged to write in it yet...
 
 
1 hour later…
2:57 AM
@AndrasDeak dead or alive Python 2 or Python 3. FTFY
 
3:45 AM
@AndrasDeak hee hee
 
 
2 hours later…
5:17 AM
sortedreader = sorted(reader, key=lambda x: x['timestamp'])

print (sortedreader)

a = groupby(sortedreader, key=lambda x: x['timestamp'])

print (a)
how to display the result
 
recvg
 
Hello everyone
 
5:35 AM
hello
or cbg as we use to say
 
5:49 AM
cbg 0/
@TB.M I don't get the question. Can you elaborate with a Minimum, Complete, Verified example?
 
@AshishNitinPatil that is the minimal one
@TB.M I guess @PM2Ring just answered a similar q
20 hours ago, by PM 2Ring
@TB.M itertools.groupby returns an iterator. My code above shows how to iterate with it.
 
6:05 AM
@AnttiHaapala Thought so, I wasn't sure groupby was an iterator which would need to be consumed. Thanks.
 
6:40 AM
import csv
#from operator import itemgetter
from itertools import groupby
from itertools import islice
#with open( 'C:\\Users\\Neha\\Desktop\\\Hourdata1.csv', 'r') as f:
f=open('data.csv', 'r')
reader = csv.reader(f)
output = list(islice((row[:3] for row in list(reader)[1:]), 20))
print (output)

sortedreader = sorted(reader, key=lambda x: x['timestamp'])

#print (sortedreader)

#a = groupby(sortedreader, key=lambda x: x['timestamp'])

#print (a)
here i want to group by timestamp ,i want to only those time stamp which are not repeated
 
6:54 AM
and you do.
if you make a list of the iterator, list(...)
see if you get the result you need
but, csv.reader doesn't return dictionaries either, you need DictReader
 
See a lot of questions lately where OPs forget to consume the generator / iterator and stuff fails.
 
Cabbage
 
i am not able to understand
 
7:10 AM
@TB.M See docs.python.org/2/glossary.html#term-iterator. "Repeated calls to the iterator’s next() method return successive items in the stream", if you don't call the next() then you don't get any data from the iterator.
When you do list(iterator), list consumes the iterator, i.e. it calls the next until the iterator is exhausted.
Any of dict, list, tuple, etc. can be used to consume the iterator depending on the iterator.
 
@TB.M How many lines of data are there in 'C:\Users\Neha\Desktop\Hourdata1.csv' ?
 
7:24 AM
14 lines including header
 
I had a quick question about best case and worst case scenarios
def my_sum(L):
    x = 0
    y = 1
    n = len(L)
    i = 0
    while x + y < n:
         if L[i] % 2 ==0:
            y = y + 1
         else:
            x = x + y
         i = i + 1
the worst case for this would n^2
while best case would be n
right?
 
@TB.M Ok. Run the following code, and paste the output here, using Ctrl-k or the "Fixed Font" button to make sure it gets formatted properly.
with open(r'C:\Users\Neha\Desktop\Hourdata1.csv', 'r') as f:
    for line in f:
        print(repr(line))
 
'timestamp,sp,dp\n'
'20/03/2017 10:00:01,50,60.5\n'
'20/03/2017 10:10:00,60,70\n'
'20/03/2017 10:40:01,75,80\n'
'20/03/2017 11:05:00,44,65\n'
'20/03/2017 11:05:00,44,65\n'
'20/03/2017 11:25:01,98,42\n'
'20/03/2017 11:50:01,12,99\n'
'20/03/2017 12:00:05,13,54\n'
'20/03/2017 12:05:01,78,78\n'
'20/03/2017 12:59:01,15,89\n'
'20/03/2017 13:00:00,46,99\n'
'20/03/2017 13:23:01,44,45\n'
'20/03/2017 13:45:08,80,39\n'
 
@TB.M Thanks. Please give me a few minutes.
 
> Comments cannot contain that content.

> If the author didn't show what was tried, why do you assume they tried anything? Either ask for a specific bit of information, suggest a specific improvement, or downvote and move on.

This is a nice improvement for commenting "What have you tried?"
 
7:39 AM
@TB.M Now, if I remember correctly, you want to write that data to a new .csv file, but you want to drop lines that have a repeated timestamp. So with that data, you want to copy every line except for the two lines containing 20/03/2017 11:05:00,44,65. Is that correct?
 
yes actually i want to see only those data which is not repeated..
 
@TB.M So the output file should not contain 20/03/2017 11:05:00,44,65 at all. Right?
 
correct
only one record should be there not repeated
 
@TB.M Ah! I thought that might be the case. Good thing I checked. :) The way you described it before made me think you wanted to drop both copies of that line.
 
no no ,,i want one, may be i m not able to explain properly,i m new here and python also so i dnt knw that much
 
7:49 AM
Are you using Python 3?
 
8:01 AM
@TB.M I need to know if you are using Python 2 or Python 3. CSV handling has changed in Python 3, and I don't want to post code that won't work properly on your machine.
 
@PM2Ring so please post the code that would work on TB.M's machine after 2020 :D
 
@AnttiHaapala Good idea.
This code uses 'indata.csv' and 'outdata.csv' as the input and output file names.
import csv
from itertools import groupby
from operator import itemgetter

name_in = 'indata.csv'
name_out = 'outdata.csv'

with open(name_in, 'r') as fin, open(name_out, 'w') as fout:
    reader = csv.DictReader(fin)
    writer = csv.DictWriter(fout, reader.fieldnames)
    writer.writeheader()
    for k, g in groupby(reader, key=itemgetter('timestamp')):
        writer.writerow(next(g))
Instead of next(g), you could do list(g)[0], but next(g) is more efficient.
 
The challenge here is that the people who answer can vote on other answers. In a democracy, can the candidates vote? — Shaun Luttin Apr 22 '15 at 19:07
wat?
Stack Overflow is not a democracy because a candidate cannot vote for themselves
 
picard_facepalm.gif
Making a post is an implicit upvote, self-deleting is an implicit downvote. :)
 
8:17 AM
yea perhaps :D
or... well anyone should be given the right to downvote their post once
to remove the implicit upvote :D
 
@AnttiHaapala :D If they decide their answer isn't as good as they originally thought, they can either fix it, delete it, or upvote the answers that they think are better.
 
dunno where that shaun guy is living in but probably it either isn't a democracy...
 
8:51 AM
@PM2Ring python 3.6
 
cbg'ning
 
@PM2Ring thanku so much..code is working, but why out file is taking one one extra line in result?
 
@TB.M What do you mean? There should be 13 lines in 'outdata.csv', including the header line.
 
no wait i ll show u output
timestamp	sp	dp

20/03/2017 10:00:01	50	60.5

20/03/2017 10:10:00	60	70

20/03/2017 10:40:01	75	80

20/03/2017 11:05:00	44	65

20/03/2017 11:25:01	98	42

20/03/2017 11:50:01	12	99

20/03/2017 12:00:05	13	54

20/03/2017 12:05:01	78	78

20/03/2017 12:59:01	15	89

20/03/2017 13:00:00	46	99

20/03/2017 13:23:01	44	45

20/03/2017 13:45:08	80	39
why this space is coming
?
 
9:10 AM
@TB.M Do you also get that double-spacing if you open 'outdata.csv' in Notepad?
 
yes
 
Windows does annoying things with line endings. But it seems odd to me that you're seeing that doble-spacing, and I suspect that that depends on how you're viewing the file. You can probably fix this by changing open(name_out, 'w') to open(name_out, 'w', newline=''), as discussed in the open docs. I can't test that because I don't use Windows.
 
@PM2Ring Thnaks ,after using (name_out, 'w', newline='') , space is not coming, thanks a lot for help.
 
No worries.
@TB.M It looks like the funny spacing is due to the csv module reader and writer classes using the Excel dialect by default. Of course, Excel uses the \r\n EOL (End Of Line) convention. But it looks like the EOL conversion is being applied again when the file data is read & written, depending on the newline arg to open.
 
9:31 AM
yea no clue from where this space is coming, but somehow problem solve.thnks
 
I tried with Ipython this yesterday
%cpaste
messages = [' It is certain', \
'It is decidedly so', \
'Yes definitely', \
'Reply hazy try again', \
'Ask again later', \
'Concentrate and ask again', \
'My reply is no', \
'Outlook not so good', \

    'Very doubtful']
then
ctrl+d
and messages was not set as a list
but today in the same ipython
I just did a copy & paste
and messageswas set as a list
 
@AndyK Yesterday, did you do that Ctrl-d on the last line of the list definition, or on the following line?
 
following line @PM2Ring
 
Weird. But I don't know ipython.
BTW, you don't need backslash line continuation in an expression enclosed in brackets, parentheses, or braces.
 
oh ok
you mean
 
9:37 AM
What The Yam? This is allegedly from IGCSE computer science Python course material:
NoStudents = int(30)
 
messages = [' It is certain',
'It is decidedly so']
should work
let me have a try
 
My guess is it's (yet another) straight translation into Python of old Java material.
 
plain awesome @PM2Ring
 
@AndyK Yep. And you can also do:
s = ('a very long '
'string that spans '
'multiple lines')
 
does that only work for tuples?
 
9:41 AM
typo stackoverflow.com/questions/42970699/… is the source of that NoStudents = int(30) ugliness.
 
no actually
but you have the bracket of the list
very interesting
 
@AndyK My last example is not a tuple. It's just a single plain string enclosed in parentheses.
 
ok
even more interesting
 
cabbage
 
o/
 
9:42 AM
@PM2Ring a dejavue
 
@AndyK Adjacent string literals get automatically concatenated, so I could've written it like:
s = 'a very long ' 'string that spans ' 'multiple lines'
@poke Indeed. :)
Poke's comment is alluding to the fact that we were discussing this stuff here yesterday.
 
lol
 
IMHO, it's worthwhile skimming through the transcripts for interesting code etc that got posted when you weren't here.
 
Thanks @PM2Ring
@PM2Ring the time , I need the time
I wish I was single without kids
but when you've got some, time is a rare commodity
going back to the drill. see ya in a bit
 
I'm in the UTC+10 timezone (well, UTC+11, due to Daylight Saving), so I'd miss out on a lot of juicy stuff if I didn't check the transcripts. And because I'm a RO, I kinda feel obliged to at least skim all the stuff that gets posted here.
@AndyK Kids are awesome, and they aren't kids for long. Mastery of Python can wait.
 
9:49 AM
Thanks @PM2Ring :) Coding during lunch time. 15mn a day or so
 
hey guys, did anyone of you try sanic library?
I mean http server
 
“Ways Developers Teach Themselves”
- Documentation 80.2%
- Stack Overflow Q/A 80.1%
I see now why SO thinks that getting into the docs business is a good idea
Also, prediction for the future: SO books! (Books are ranked #3)
 
sometimes I have a feeling that most people dont read docs too much ;d
 
> the use of Python overtook PHP for the first time in five years.
Go us!
> Python shot to the most wanted language this year
Go us!
 
cbg
 
10:04 AM
lol, AngularJS is 51.7% the most loved and 48.3% the most dreaded, and 19.4% most wanted; that’s really split
 
@poke Given that PHP is such garbage (coming from Python background), I was hoping this happened :D
 
any good way to understand python library for analytics ?
 
I assume that the issue of Python 3 not being backwards-compatible with Python 2 slowed down its adoption. And of course people like Zed didn't help, either.
 
What the hell is up with salaries in the US?! stackoverflow.com/insights/survey/2017/…
 
They are almost double the rest of the world?!
 
10:12 AM
I was somewhat surprised to read paul23's comment the other day that his university didn't want to migrate from Python 2 to Python 3 because they misunderstood the backwards-compatibility issue.
 
And are skewing the averages heavily.
 
@poke It appears the the US figures themselves are skewed by the high proportion of developers who live in parts of the US that have a very high cost of living compared to other parts of the US.
 
Go is kind of trending now
 
@PM2Ring Haha, it's like the 2% of world's richest skewing world's wealth by 50%
 
@PM2Ring I wonder how that would work with remote working for an American company..
 
10:23 AM
but these statistics are not revealing the truth, in reality, in big cities they are much higher
 
python developer in london on contract does £400-500 a day
 
@poke I assume it would depend on the company. There was some recent discussion about this topic here, if you want to search the transcript. ;) But IIRC, the consensus was that it's best to start working locally at a company based in an expensive place like SF (San Francisco) and once you're established at the company, move somewhere with a lower cost of living.
 
10:37 AM
^^
stackoverflow.com/insights/survey/2017/… – Stack Overflow reputation is not important. Meh. xD
 
@TB.M I read your question but I have no idea what you're asking. And I also suspect that if I knew what you were asking then the question would still be too vague and subjective to answer.
anyway, you'll have to be more specific
 
11:17 AM
when reading the survey, it sounds place like France is more opened for remote work than UK. Having worked on both countries, that sounds weird. France is one of the most centralized countries in the whole world. It dates back to the 17th century (one of da king was fond to have all his courtiers around). It is one of the Louis but I forgot which one (so many...)
 
11:33 AM
corporate culture doesn't necessarily reflect national culture
 
12:21 PM
What? z1 = z1.strip("".join(["(",")", ","...])) From stackoverflow.com/a/42975758/4014959
 
12:31 PM
That's some juicy XY.
Also, for some reason I remember having seen many similar questions.
Mainly the type of "I converted my datastructure to a string, how do I parse it?", but worded in a variety of ways.
 
It's a pretty common newbie error, especially when they're trying to work with a complicated module but haven't yet mastered the basics of core Python. OTOH, I've also seen people tangle themselves up in knots trying to strip commas out of a list they've written to a text file and then read back in.
 
1:14 PM
cbg
took a slower morning today to play some guitar.
Sometimes, you just need to take some time and play some damn music.
 
or just to listen to some
:)
 
that too
 
quick question
 
for sure
quick answer
daily double
 
lol @idjaw
 
1:15 PM
Just curious, has anyone here had experience with plotly?
 
If this is a quick question, I'd hate to see a slow one. ;)
 
I've been using yesterday name_of_your_list.sort() and there was this thing name_of_your_list.sort(key=str.lower)
what are the other options for key?
I did not find anything
but the 2nd link is even more confusing
actually, I found my answer --> thegeekstuff.com/2014/06/python-sorted
A key function must accept a single argument and returns a value on which to base the sorting (sorted() will call the key function on each element of the iterable it is given, and use this return value when sorting the list.)
 
I feel like I'm now shadow banned for having said plotly instead of matplotlib around these parts :P
 
or maybe people don't have time ;)
patience
 
Or experience with plotly
But I suspect that Andras may be familiar with it.
Doing a search of this room for plotly shows two dozen posts. It doesn't appear to be very popular, or well-liked.
 
1:30 PM
\o cbg :D
 
o/
 
@PM2Ring I guess I should have thought of that.
 
DSM
2:31 PM
Cabbage for all.
@PM2Ring: I don't know about popularity, but I like plotly, and have used it in a few projects now.
 
@DSM Ah, ok. I just saw davidism & Andras complaining about it.
Yay! I just hit 25k!
 
DSM
Upside-down pineapples for you. :-)
 
Pineapple upside down cake?
morning cabbage
@Programmer I've only looked at plotly once or twice. I haven't had much need for plots since college really, so there's that.
 
2:48 PM
I just like to hear about red flags from people with experience. It seems like davidism really didn't like the documentation, which makes sense since they want you to pay for their support.
 
I think that's pretty much the thing that makes me go, "eh."
I don't have anything against making money on your product in principle, if your free stuff feels more like ads or clickbait I'm probably not going to waste my time
 
DSM
That certainly wasn't my experience of it. I use it for interactive plots in jupyter notebooks pretty regularly.
 
@PM2Ring Pineapple on a pizza for you ! :D
 
Thanks, guys. I actually did have a pizza with pineapple for lunch today. :)
 
stackoverflow.com/q/42967442 obvious dupe with low effort answers
 
DSM
3:02 PM
Somewhere, one of my dependencies is introducing a bson library which is not the one you get when you install pymongo, and which is incompatible with it. #thursday
 
I'm not sure if pipenv will help with that
but it might!
 
Tangentially related to pipenv, I reported a bug against Heroku's Python buildpack, and Kenneth silently closed the issue and hasn't provided an explanation. github.com/heroku/heroku-buildpack-python/issues/359 Kind of annoying. (Don't add comments please.)
It's grepping out package names from requirements.txt, when pkg_resources.get_distribution would do the same thing more robustly in fewer lines of code.
 
DSM
I can top that -- I got wrecked by this package management bug yesterday. :-/
 
Ouch
 
Hi, anybody there?
 
3:15 PM
No
 
Nope, nobody here
 
Excellent
 
Great
 
@RompePC you are here
:)
 
@AndyK Maybe I'm a bot. Or an hologram who can chat, who knows.
 
3:15 PM
Can anyone really be said to be "here", though?
 
DSM
Deep.
 
Before we start getting to slide apart in some existencial questions... anybody here has worked with Django MultiWidget?
 
@RompePC before you dig yourself a hole, read our chat room rules : sopython.com/chatroom namely if you have a follow up question needing help with Django
 
@MooingRawr “anyone here know Django?” Yeah, looks like is a very common hole...
 
DSM
I sometimes wonder if we should edit the welcome text to emphasize that lots of perfectly good questions are just better fits for the main site, and so the time would better be spent polishing an MCVE.
 
3:20 PM
In a real-life conversation, it's useful to preface large questions by asking if it's okay to shift the conversation there. But in an online chatroom, multiple streams can go on at the same time, so asking and then waiting for a response ends up being unnecessary noise. Just throwing the question out there is typically best
That too. Plus, if it's a good question, you get upvotes!
 
DSM
All the upvotes, if it's a really good question. Mostly because people are surprised. ;-)
 
Maybe users comes in here to polish their question by making us ask for more details towards their question, so they can go post on the main site...
 
DSM
That's not unreasonable, but the questions which have had the best luck being migrated from here to there still tend to be reasonably "general" (unless someone happens to hit a question which is one of our specialties.)
 
@ZeroPiraeus Lol, that faq is so good
 
Which would be data science / math / flask / sqlalchemy. django multiwidget, not so much.
 
3:25 PM
Ok, thanks for the clarification. The question is: Django's MultiWidget is supossed to automatically join all the values of its widgets in the form's cleaned_data. Without touching any code, what could be the problem of not getting that joined value never 'n ever?
 
Perhaps it's not automatic :)
 
I can't tell what you're asking.
 
DSM
Aaargh, it's not that I'm going crazy, it's that the package is broken. Whoever built it included the wrong bson.
 
"Without touching any code" means "with us trying to guess", which doesn't work well with problem solving. DSM's advice to make a MCVE is very beneficial-- while doing so, you'll probably even discover the issue yourself!
 
@KevinMGranger AAAHHH dammit, you're right, I forgotted that I used to use a HiddenInput... what a really same
 
DSM
3:29 PM
@KevinMGranger: your point isn't helped by the fact you guessed the problem in four words not knowing anything about it. :-P
 
times_my_psychic_guess_was_right += 1
 
@KevinMGranger "Without touching any code" means "with default implementation" for me
 
DSM
How many problems can be solved Eliza-style by asking "How do you know that [thing you just said]"?
 
@DSM Time to host your own pypi while you're waiting for the package to approve your PR
 
@DSM how did something like that not get fixed since November? :/
sounds pretty serious
like a plane crash: unlikely to happen, but when it does, shit's abound
 
3:31 PM
So I had a problem in my work project where project A in solution 1 couldn't talk to project B in solution 2. So I made a project C in solution 2, which contained most of the functionality of project B, and verified that it could run properly on its own.
Then I made a project D in solution 2, which referenced project B, and verified that it could communicate with project B across projects but within the same solution. Then I made a project E in solution 1, which referenced project B, and verified that it could communicate with project B across projects and across solutions.
In between each of these experiments I confirmed each time that A could not talk to B. So now I have perfectly functional projects C, D, and E, all of which can talk to B, none of them having given me any hint as to why A can't talk to B.
 
Are you doing work in .NET?
 
DSM
Try conda env remove -n A and watch your problems disappear!
 
@KevinMGranger I'll point that I had been from the morning struggilng with that problem... and in a pop you remembered me about that goddammit hidden input ._.. Thanks.
 
@WayneWerner Yeah
 
Well there's your problem right there ;)
 
3:33 PM
@RompePC Oh hey, looks like you already asked this question (poorly) on the main site. Please review our rules again: don't ask about your recent main-site questions.
 
Also at one point I completely erased B and rewrote it from scratch using a different approach, which had no observable effect
 
Aw c'mon, .Net is cool
I think the problem is with A. Better call the A-Team.
Can you compare the .sln files for A and E and look at whatever remote reference sections they have? Something got messed up, sounds like.
 
It could be because A is a Web Site project, while C D and E are all console applications
 
I actually have less problem with .NET the language than I do with .NET the environment
 
3:34 PM
@davidism Yeah, I know, but I was struggling so hard with it with the fact that it worked before... desesperation was the key, sorry
 
"I was struggling, so I ignored the rules" really doesn't excuse it.
 
There's .Net core and VS Code... so now .Net the environment can be Linux :D
 
@davidism Although I cannot could ask it better
 
3:36 PM
> Sometimes when I hit a bug, especially a nondeterministic and difficult to reproduce bug, it’s tempting to think “oh you know, things just happen, who knows”. But everything on a computer does in fact happen for a logical reason (however much the computer may try to convince you otherwise). Reminding myself of that helps me fix bugs. Also known as “OK JULIA IT IS NOT FAIRIES WHAT ACTUAL REASON COULD BE CAUSING THIS?”
Learn to trigger that attitude when you're faced with a bug
 
@WayneWerner I know to trigger it, but sometimes is just so hard to see that I think is pure magic.
 
If you need to get a sherlock holmes hat to put on when debugging, that helps, I find.
 
@WayneWerner I want to click the "logical" link but I can't :(
 
Or you know, just buy a rubber ducky, preferably one when squeezed, will say 'it's okie' or some other reassuring lines. :D
Oh maybe a rubber ducky that asks 'why?'. :D
 
@MooingRawr A python program that prints a rubber ducky with cool shell strings will make the work
 
3:40 PM
@MooingRawr MATLAB has a function called why
 
wim
You can get a random bug because a cosmic ray flipped a bit in your computer
 
no no we need a physical one. @AndrasDeak oh really? why? :D
 
>> why
The bald and not excessively bald and not excessively smart hamster obeyed a terrified and not excessively terrified hamster.
>> why
To fool the tall good and smart system manager.
>> why
The rich rich and tall and good system manager suggested it.
 
@KevinMGranger Man, now I want a deerstalker hat and a bubble pipe.
 
what happens if you keep asking why?
 
3:41 PM
@MooingRawr What about using a 3D printer?
 
@MooingRawr it keeps telling you why
 
I need to get my hands on MATLAB to play around with that ... lol seems fun
 
octave is free and is almost identical
I'm not sure it has why though
and python is better so don't bother
:P
 
Python needs a why maybe that will be my contribution to the world of sneks. Make a module called why with nested reasoning :D
 
rhubarb
 
3:44 PM
\o take care sir
 
@MooingRawr Use the cmd module
 
o.o :D
perfect I can use Turtle with it name it Oogway to ask why :D
 
import cmd, random
class Why(cmd.Cmd):
    prompt = '>> '
    def do_why(self, arg):
        print(random.choice(('The bald and not excessively bald and not excessively smart hamster obeyed a terrified and not excessively terrified hamster.', 'To fool the tall good and smart system manager.', 'The rich rich and tall and good system manager suggested it.')))

Why().cmdloop()
>> why
The bald and not excessively bald and not excessively smart hamster obeyed a terrified and not excessively terrified hamster.
>> why
To fool the tall good and smart system manager.
>> why
The rich rich and tall and good system manager suggested it.
done.
 
DSM
3:59 PM
How is it noon already?! Bloody Thursdays, never go right.
 
@DSM almost end of the day here
 
@poke :( ruin my dream..... oh well..... I guess I can add to the choice :\ I will improve on what you have laid, a foundation ;D
@DSM time flies too fast as we grow older and older :\
 
@MooingRawr true dat. you're a poet. most people see the day goes by and do not notice it
And nothing I cared, at my sky blue trades, that time allows
 
4:14 PM
@MooingRawr I'm watching the current speedrun for new game on very hard. It's crazy.
The combos for doing long jumps are pulled off so consistently.
 
@davidism when you said new game I thought of the anime :D. I assume your talking about Nier. But yeah I was super happy to hear people picking up Nier as a speed running game. IT seems like there's so many little tricks and movement inputs to make it a worth while game. Plus a little RNG here and there to make it interesting.
 
The speedrun is only to Ending A, so no spoilers really.
They take the shortcut after the boss without lowering the bridges.
And remember, Very Hard means one hit kills plus extra / more aggressive enemy patterns.
 
Sounds like that would be an interesting run. I don't like the ones where it's mainly glitches and not showing off game mechanics or any skill.
 
If glitches aren't your thing, you can usually find other categories like all bosses where the skill still shows.
Dark Souls has this, for example.
 
I wonder if we will see certain weapon runs only. Or certain builds only like in Dark souls...
 
4:25 PM
Yeah I just mean like I'd prefer to watch glitchless OoT, than for them to finish the game in 2 minutes. Although TASbot is pretty cool.
 
I still haven't beaten the game only the random endings where if you do something you REALLY shouldn't lol
 
For the most part, the weapons are the same except for damage until you get them to level 4.
Unless you mean fists only, which would probably be annoying.
Although bare fists do have a pretty cool moveset.
 
but don't weapons have different attack patterns? spear to swords for example. So wouldn't you get away with certain boss patterns with certain weapons? I don't know cause I've only faced like 3 or 4 bosses
For the most part I enjoy the quicker weapons allowing me to get hits in and get out less thinking more reacting
 
The attack patterns are more personal preference than anything, although some weapons have longer chains.
 
user6845426
cbg all o/
 
4:31 PM
BTW playing this game on the keyboard and 'mouse' is really hard. I had to plug in my controller. :\ just console things I guess.
 
Oh yeah, controller is the way to go. Also, I remapped all the shoulder buttons.
 
rb folks. I see ya!
 
I have them as default A but I feel like my right trigger is going to break by the end of the game... So much 'dashing' :| Also I hope they explain the random physical light beam that comes out of 2B's skirt when you go fishing... like what ? where? how ?
 
It's a little fishing chair. :3
 
Just realized I shouldn't spoil some of the game :\ I will use the spoiler thing from SO when I comment about those but hopefully only you can see removed
The game made me think; about the plot about life about things in general that I haven't thought of in a while. I like that from a game. Hence why Nier:Automata is one of the best game of the year for me (if not the best).
 
4:43 PM
Is it kosher to ask a question about a theoretical problem on the main site? As in, "does this code have a race condition"? Because I may not be able to trigger it even if it's possible.
 
wim
5:11 PM
y not code review site
 
Tru. Although while making the MCVE, I realized that, at worst, it would result in one last run of the timer before being canceled. That's liveable.
 
5:38 PM
You can only make jpg and png when exporting graphs in plotly without a license. There's the red flag...
 
Just checking: there's no version of compile that takes a filename or file-like object, right?
Hmm, this is a pickle... I went to save my document in Notepad++ and the z-order messed up somehow so now the completely unresponsive main window is obstructing the "save as..." window. I can't move or resize the main window.
I hope there's nothing important in the four tabs of unsaved text I also had open, because they're going to vanish when I nuke the process in task manager
 
oh downvoters, down you go.. — zatta 3 mins ago
 
Oh good, it recovered my tabs, including the unsaved ones. And then it recovered them again when I tried to save again and the same z-order problem happened.
Third time's a charm.
 
DSM
At least during my upcoming meeting I'll no longer be distracted!
 
wim
@Kevin isn't that import ;)
 
5:53 PM
It was for a question I decided not to answer. I wanted to turn a file into a code object so I could inspect its attributes, such as co_names
Like so:
>>> with open("sample.py") as file:
...     code = compile(file.read(), "sample.py", "exec")
...     print(code.co_names)
...
 
wim
compile does take a filename
not for what you want though ;)
 
DSM
Looks like the OP is going matlab-based anyway.
 
Don't know if this is someone's cup of tea, but if you're in to feelingl like you are in a public place: coffitivity.com
 
@DSM Just as well. Even if OP had decided to go Python-based, he would have replied to my post with "great job identifying all the local variables in a file! One more thing: how do I replace all those variable names with different variable names?" which would entail an 800% increase in the work I'd need to do to get an accept
 
wim
does that even work ?+?
>>> c = compile("x = 2 + 2; print(f'hello {x}')", 'blah.py', 'exec')
>>> exec(c)
hello 4
>>> c.co_varnames
()
 
5:56 PM
Then you've got to muck around with the ast module and highly experimental third party ast-to-source-code uncompilers
 
wim
where's my "x" var
 
I think it's under c.co_names.
 
wim
yeah, it was
sounds like it's either a very interesting problem, if the user has > 20k rep, or a very stupid XY question, if the user has 1 rep.
 
Academically I am interested in playing around with ast-to-source uncompilers, but I'd rather be using them for my own selfish purposes rather than trying to get upvotes in a tight window of opportunity
 
People ignored my question :(
 
wim
5:59 PM
people don't like typing
 
00:00 - 18:0018:00 - 00:00

« first day (2350 days earlier)      last day (2584 days later) »