« first day (4111 days earlier)      last day (820 days later) » 

12:08 AM
@AndrasDeak you mean std::cerr... and also how'd you redirect in python?
if you really want to redirect all of the stuff that goes to standard error, then you need to open a new filedescriptor and os.dup2 that over the descriptor 2.
messing around with sys.stderr is never going to affect anything besides python.
 
user17921218
Can anyone help me with what classes answer? If you go up a little higher in chat you will find my chat message with the question link. Thank you
 
3:35 AM
hello all
 
 
3 hours later…
6:26 AM
@holdenweb We use EYAML for encrypting secrets and make good use of YAML references to reduce duplication – so the JSON subset would not suffice. Using JSON syntax for problematic values is what happens eventually, but usually only after messing it up once.
 
 
2 hours later…
8:25 AM
@AnttiHaapala ah, nice, thanks. I got the impression that sys.stderr etc are just wrappers for the filedescriptors.
 
 
1 hour later…
9:48 AM
@MisterMiyagi I've never found YAML as clear as JSON, and for that reason I've never used it. Your experiences support my prejudices.
 
I'll gladly offer anecdotes of pain and suffering if it means YAML is used less!
 
what:
- this: is
  confusing:
    to: you
- ?
related, just now I learned ? == {"null": null}
 
@AndrasDeak of course not.
@MisterMiyagi yaml is totally awful, just google for the numerous
vulnerabilities in implementations :D
 
@alkasm Same here. What the yam is this needed for? oO
 
beats me!
the only positive thing yaml's got going for it IMO is that its relatively common to kebab-case keys. which of course has nothing to do with yaml in particular.
 
10:05 AM
Step 1: "a line starting with ? indicates a key and a line starting with : indicates a value."
Step 2: ???
Step 3: {"null": null}
 
Arbitrary Code Execution [0,5.4) Not available 26 Jul, 2020
Arbitrary Code Execution [0,5.3.1) Not available 02 Mar, 2020
Improper Access Control [5.1, 5.2) Not available 19 Feb, 2020
Arbitrary Code Execution [,4.2b1) Not available 28 Jun, 2018
 
@MisterMiyagi profit! get it?
 
@AnttiHaapala obviously
 
@AndrasDeak if you're Dutch salmiakki eater?
 
yeah, maybe
 
10:24 AM
@alkasm oooo... I could quite fancy a nice lamb shish kebab with chilli sauce... :(
 
ah, unfortunately yaml only kebabs field names and your application's security.
 
10:40 AM
@AnttiHaapala stackoverflow.com/a/17954769/5067311 worked, thanks
 
"tries to avoid leaking file descriptors" [this-is-fine.tif]
 
11:03 AM
@AnttiHaapala Hmm, wasn't aware 7/2021 Google TensorFlow revokes support for YAML because of arbitrary code execution vulnerability. What is the upshot post-log4jGate? on what expectation open-source package users can have about security
 
FWIW, YAML is quite up-front about running code. It's why we actually use it for one of our projects.
 
11:21 AM
ok guys
I am in need of
urgent help
 
@Rozakos stop
Take two deep breaths. Now start typing complete sentences.
@Rozakos who gave you that challenge?
 
takes a deep breath Ok, so I need some help with that one
 
This screams "exam/homework" to me
 
nono
it's interview
 
Are we the ones applying for the job?
 
11:23 AM
I did the first one, but this one is a bit weird, and I need to do 3 more
 
An interview is essentially an exam, no?
 
I mean it depends, but when you put it that way, yes it's an exam
 
The task shadows the name str
 
In any case, you should be the (only) one solving it
 
Yup ^
@Rozakos Sorry, it's not ethical to cheat and we won't help with that
Imagine getting the job, being told to do a similar task and you can't.
 
11:27 AM
i mean there won't be
it's embedded
 
Your time is better spent thinking about the task
 
You are right
 
Good luck!
 
What's with the difficulty rating on these challenge websites? That's supposed to be easy?
 
There are easy approaches to it
But let's drop it for now
Time should be up at 13:30 CET (12:30 UTC?)
 
11:31 AM
Figure out the correct time (Difficulty: Expert)
 
One of these days DST will be over...
 
12:00 PM
@MisterMiyagi Presumably your own intentional code, not arbitrary injected third-party code. What was the final upshot of log4j-Gate for open-source packages in general? I missed seeing a clear summary.
 
Not sure we're actually through that debacle already.
I got the last security advisory for it last week, IIRC.
 
Did it suggest inscribing "Lasciate ogni speranza, voi ch'entrate" on every WAN-connected router?
 
It mentioned that "Exploits are available on the internet" and I still haven't figured out whether that's a warning or an invitation...
"volunteer" computing...
 
12:19 PM
Afternoon
 
hey - how's tricks?
 
hey ppl
Does anyone know the python equivalent of Ruby statement:
var_name = { }
 
@golo What does it do?
 
{} in ruby is a hash
 
You mean a hash map?
 
12:28 PM
yup
 
Like a dictionary?
 
@golo It's the same.
 
just without that hideous space inside ;)
 
what is the syntax?
 
Literally exactly the same
 
12:29 PM
"It's the same" as in it's the same.
 
@AndrasDeak If only we had auto-black'ening for chat...
Hm, a quick google search brought up no chat plugins for Jupyter. I'm mildly surprised.
 
@Aran-Fey okay
 
@JonClements good thanks - haven't written any Python in a while, which is sad! But otherwise good. How are you?
 
Same old... still haven't got use to the fact it's 2022 now... but that generally takes until August to kick in properly anyway :p
 
(I wish chat had a way to 👍 a message without starring it)
Yeah exactly. By the time I'm used to it it'll be 2023
 
12:37 PM
You mean if the world manages to get to 2023... what with viruses/volcanos/fires/tornados/floods etc... I think the planet might not want us around for too much longer... :p
 
:)
 
1:02 PM
Interesting theory
 
 
2 hours later…
3:07 PM
Hi guys I have problem with white background on my PNG image. This is my code pastebin.com/dQdGcNrW The image "paste" but instead to be transparent I get white background. I read some solution when you have two PNG but can't find nothing when one pic is produced by Python. Can someone help me with this?
 
Do you realize that you're saving two images to the same location?
image.save("file")
bordered.save("file")
 
Can't figure out what's wrong in the code geeksforgeeks.org/…. sum is 6 and times is 1, so it should give 5/36 probability
print statement without "1","/" gives 36
 
geeksforgeeks...
 
@Pijes I don't know where the white color comes from, but I notice you never specify any transparency. All your colors are 3-tuples, which sets the RGB but not the A
 
@Aran-Fey Hi sorry no I just deleted my location and put file instead
@Aran-Fey With RGB instead of RGBA the PNG pic is whole blank
Thank you for your time
 
3:27 PM
"I read some solution when you have two PNG but can't find nothing when one pic is produced by Python". I suggest trying that solution anyway. After PIL opens a file, it should behave identically regardless of whether it was originally a png or something produced by Python.
In fact, can you provide a link to that solution?
 
45
A: How to paste a PNG image with transparency to another image in PIL without white pixels?

Martin EvansYou need to specify the image as the mask as follows in the paste function: import os from PIL import Image filename = 'pikachu.png' ironman = Image.open(filename, 'r') filename1 = 'bg.png' bg = Image.open(filename1, 'r') text_img = Image.new('RGBA', (600,320), (0, 0, 0, 0)) text_img.paste(bg, ...

 
Thanks
If I change your code to Image.Image.paste(bordered, myImage, (30, 30), mask=myImage) as that answer suggests, I get a correct result. (If I understand the goal)
 
@Kevin Yes Kevin, thank you.
 
No problem :-) I am often frustrated by transparency problems myself
 
You guys are really fantastic.
 
4:13 PM
@Huzaifa The approach is just plain broken. It doesn't give the probability, it gives 36 divided by the GCD of 36 and the number of combinations. That's a borked attempt at representing the probability as the inverse of an integer – which doesn't work for probability such as 5/36.
 
4:26 PM
cbg everyone
 
@MisterMiyagi Okay.
 
Sometimes google completely ignores not in a query. Especially if many people search for how to do x, searching for how to not do x will only show results for how to do x
 
4:43 PM
Interesting dilemma here. OP posted screenshots of code, and was promptly admonished to post text instead. However, had the screenshot of IDLE not been there, it would have been more difficult to correctly diagnose the problem.
It could have been done, but probably only after a couple rounds of back and forth with the OP.
 
That's a common dupe...
 
@MattDMo IDLE can output can also be shown as code formatted text.
 
Right, but what are the chances the OP would copy the sys.version string from the very top of the REPL? I'm not at all saying the question would have been unanswerable had they just used text, it just would have been more difficult.
 
That dupe is my number 1 suspect
 
5:02 PM
I remember a post along the lines of "I'm getting an error". I asked, "please share the error message". They replied, "how do I find that?". I replied, "copy it out of your shell or command prompt". They replied, "I don't know what those are"
 
Ooo... there's a Kevin... :)
 
Yo
After five minutes of this, I'm convinced they're coding with their eyes closed. I relent. "Ok, just, post a screenshot of your screen". They oblige, and the error message is evident in their IDE, in distinct red letters. The error itself is easy and I write an answer in ten seconds.
So there are indeed scenarios where a screenshot makes it easier to diagnose the problem
 
"In front of the screen"?
 
;-)
 
5:53 PM
I just did some digging into the existing vehicle routing solution that one of our customers uses. This is one hell of a login page :D. I didn't think this kinda thing even existed on the interwebs any more!
I can see they're using jQuery from back in 2013. That's the best pin I can put on its age
 
minimalist design is the future!
 
I wish they could have fixed the alignment of the button. It's in a table for yam's sake and they still messed that up :/
 
It's like that on purpose. A little asymmetry is percieved as more beautiful.
 
Ahh, Kintsugi
Ah, actually, I think I meant wabi-sabi
 
cbg folks! long time. Potato?
 
6:10 PM
cbg
 
I found a page with a very Web 1.0 aesthetic while I was exploring my health care options: njfamilycare.org/default.aspx
Virtually every government-owned or affiliated healthcare page besides this one has a nice modern format, sleek and well funded. Then there's this guy with the Geocities-like navigation menu and the hot dog stand color scheme
 
The site doesn't even load for me
 
Maybe it rejects IPs that aren't from NJ. I guess web 1.0 didn't have that.
 
I'm on my work's VPN so maybe it has some advanced detection that doesn't trust me
 
No, doesn't load from here either
Maybe gdpr block
 
6:20 PM
 
It's smarter than we gave it credit for!
Glorious :)
 
Incidentally that's the kind of website that runs even on a hammer. Non-IoT hammer.
 
I hope so, because as far as I can tell, it's impossible for an NJ resident to view their healthcare options without passing through this page at least once. It's the ultimate bottleneck.
 
@Kevin Well, if they manage to keep that thing alive...
 
LOL
 
7:14 PM
TypeError: 'int' object is not callable. Getting this error when using sum() function
 
Did I not say not to shadow built-in names?
Stop doing sum = 0
yesterday, by Andras Deak
And don't overwrite built-in names like that
If you did this three experiments ago: reset your jupyter kernel or whatever
And when something is fishy, e.g. Python tells you that what you think is a function can't be called, print it and see what it is.
If you start reading what Python tells you it will help you a lot in debugging.
 
Oh yes, you answered it yesterday, I forgot.
@AndrasDeak I am using jupyter, but what if I have to use sum() function (without doing sum = 0) in more than 2 different user-defined functions? For one function, it is okay, but when i make a new function, it throw this error
Each time I restart the kernal, it work for the first my-made function, but for the next function, it output the error
 
Then you are setting sum = <some integer> somewhere.
So don't do that. You can of course use sum() as many times as you want, as long as you don't redefine it to be something else.
 
Like in one function, I am calculating AT content of a DNA sequence, it work fine. But in second function, I am calculating GC content of DNA, and it output the error.
def AT(seq):
    at = sum(seq.count(x) for x in ["a", "t", "A", "T"])
    try:
        c = round(at / len(seq), 2)
        return c
    except ZeroDivisionError:
        return 0.0
This works fine
def GC(seq):
    gc = sum(seq.count(h) for h in ["g", "c", "G", "C"])
    try:
        y = round((gc / len(seq))*100, 2)
        return y
    except ZeroDivisionError:
        return 0.0
This outputs the error
 
Your kernel is stale
Restart it. Then stop using jupyter.
 
7:26 PM
Okay. but is my code correct?
 
Not enough information
What about the call sites of those two functions?
 
@Huzaifa neither shadows the built-in name sum if that's what you're asking
Functions don't magically stop working due to extensive use. They are quite sturdy.
You can call it once, twice, or a thousand times. Just don't replace the name sum with something that isn't sum.
 
The error is self-explanatory: you are calling an integer. If you did 5(), you'd get the same error, you can't "call" an integer with (). So somewhere in your program, you have set sum = <some integer>, or you took it as a parameter to a function, etc.
 
Right before you see the error, do print(repr(sum), type(sum)) and see that it's not the built-in function sum.
And "before you see the error" here means right before calling the second function of yours, not defining it.
I'm sure you can search for "sum" in the notebook to find each instance or something
 
On a side note: sum(seq.count(x) for x in ["a", "t", "A", "T"]) looks rather inefficient as well...
 
7:32 PM
dna_seq = "GTCTCTACCTTGACAGACCTCCAGCCGTACATGCGACAGTTCGTGGCTCACCTGCAGGAGACCAGCCCGCTGAGGGATGCCGTCGTCATCGAGCAG"
at_content = AT(dna_seq)
print(at_content)
gc_content = GC(dna_seq)
print(gc_content)
@AndrasDeak okay let me see
 
I can't wait
 
@JonClements what do you mean?
 
@Huzaifa ignore that for now
we can get back to optimising your code once we figure out how to use sum()
what's going on here is an important lesson about debugging and jupyter, so we should stick to the path
 
Works on my machine. No TypeErrors to be found
 
those numbers are sus
ah, no
 
7:35 PM
If you're unwilling to give up Jupyter entirely as Andras suggests, then perhaps you could at least try running your code in a non-Jupyter environment whenever you encounter a strange error. Then at least you'll know if it's a Jupyter-specific problem or not.
 
@Kevin Why Jupyterlab why?
 
Only Jupyterlab can say for sure
 
@Kevin I started learning python on jupyter in university, it's hard to leave someone :'(
 
@Huzaifa are you familiar with Biopython? It has all this sequence analysis stuff built-in. Sequences are objects, and you can do all sorts of cool stuff with them.
 
Hey
 
7:37 PM
@MattDMo they are just practicing, probably with some code challenge site
 
Yes, I do
 
@Huzaifa you have to get out of an abusive relationship
 
Ah
 
@golo hello
 
a = x.output.scan(regular expression) in ruby --> whaat would be its python equivalent?
 
7:38 PM
@golo please stop that
 
Please learn how to google and read the docs.
 
lol
 
@golo Most people here don't know ruby. Either ask what you want to do, or ask elsewhere.
 
its way too complex
 
:53846184 leaving jupyter will do this:
ex +=1
 
7:39 PM
Direct me to proper channel then
 
@golo you can always try the Ruby room but they might give you the same treatment; they don't know Python!
 
Darn, beat me to it
 
7:41 PM
I'm about to go put together some poolish so you can take over :P
 
@Andras I read that as "polish" and was confused for a moment :p
 
is Google colab colab.research.google.com a good alternative to jupyter? coz i am used to notebook thing with cells.
 
@Huzaifa it's the same thing
 
@Aran-Fey Thank you
 
@AndrasDeak Ah okay.
 
7:43 PM
You can use notebooks in a way that won't bite you in the butt, but it needs practice and if I have to convince you for 10 minutes each time that you're using it wrong then it will be a very frustrating experience for us both.
 
Alright :D
 
@golo please don't flag messages that aren't offensive.
 
@Huzaifa jupyter is a perfectly fine programming environment. However, since you are tripping yourself up, it's easier to debug in a more linear programming environment, like a typical python script.
 
@AndrasDeak what do you use for python?
 
7:44 PM
Sorry, Kevin
 
I am getting faster
 
Oh, was it you this time? I didn't read the banner.
 
I think you beat me by a little bit
 
@alkasm noted.
 
The banner says it was Andras
 
7:45 PM
@Huzaifa a combination of proper python scripts run from bash, and ipython for local experimentation
@roganjosh thanks
 
Unrelated topic: how should I organize my various projects, beyond just having them in a big directory named c:/projects? If I'm looking for something specific I made, I often can't find it unless I picked a really memorable name the first time around
 
ipython is in between the vanilla python REPL and a notebook (jupyter notebooks used to be ipython notebooks). But there's only one cell at a time, so you are forced to have a linear-ish history.
 
@AndrasDeak dayum. Bash like linux?
 
Yes, but I'm told windows has all sorts of linuxy bells and whistles these days.
And you don't need bash, I'm sure ipython also runs in the cmd shell.
 
Alright, I will surely check ipython
 
7:48 PM
@Huzaifa a lot of development works like this. You just need to invoke python from a shell, and you can do the same in Windows (as Andras says, with cmd)
 
It might not work for you, and you really don't have to give up jupyter, but be aware that it's easy to tie a knot in your kernel and then you spend half an hour tracking down a bug that's no longer there, because you did something in a cell three screens below that no longer contains the same bug.
 
Maybe I could put a file named metadata in each directory, and put things in it like a list of tags, and a human-readable description, and a completion rating... And I could write a little scanner tool that can run queries based on that info
 
Okay
 
@Kevin Not really sure how you organize them better than that, unless you want to start using hashtags in your READMEs to give them better SEO
 
"find me all projects from 2020 written in Python, making use of PIL"
 
7:49 PM
Perhaps a full-fledged IDE like Pycharm with the ability to run your code with a keyboard shortcut could work better for you. I never liked IDEs very much, and I'm not a real python dev so I can afford not to use one.
 
Spyder is an IDE that contains IPython. I used to use it a lot but I also used to get bitten by names hanging around in the kernal. I don't use IPython at all these days
 
How is this even a problem, anyway? How many projects do you have in there?
 
@Aran-Fey the only reason he hasn't run out if inodes is that he's on Windows
 
Asking Kevin how many projects he has... I guess it's at least going to be countably infinite
 
@Aran-Fey for real, I feel like I have quite a lot of Python repos on my machine, but not "I get lost in the forest" many
@AndrasDeak looll
 
7:50 PM
(here's hoping ntfs doesn't have inodes)
@Kevin you can do the first half and learn grep to stand in for the second
 
@roganjosh I recently used spyder and it's cool.
 
NLP for doing it right would be another project which you wouldn't be able to find to finish
 
If by "project" I mean "something that another person might find impressive", I have KevinScript and Animations and a couple Advents Of Code. If by "project" I mean "any program more complicated than one source file" I have like a hundred
 
@Huzaifa spyder allows (used to allow?) you to write code that only works in spyder, but not in vanilla Python. Beware.
 
@AndrasDeak dayum too much DOs and DONTs :(
 
7:52 PM
More like "try learning at someone else's expense"s
 
@AndrasDeak NTFS appears to have "fileID"s, which are similar in concept but not exactly the same
 
@Aran-Fey YES! :P
 
Nov 24 '20 at 21:51, by roganjosh
May 26 at 19:58, by roganjosh
Feb 21 '18 at 20:50, by roganjosh
I found something unusual with Spyder/iPython yesterday through using logging that I now need to look up. Within Spyder, it's perfectly ok to have logger = logging.handlers.RotatingFileHandler (it even auto-completes for me) but running python my_script.py with exactly the same version of Python will fail; it only accepts from logging.handlers import RotatingFileHandler. Any ideas what Spyder/iPython is doing here in the broader sense?
 
@Kevin personally, I organize like so: mycompany/<project>, mycompany/playground/<descriptive-name>, mystuff/<project>, mystuff/playground/<descriptive-name>
 
there was also a similar case with scipy.optimize or similar
 
7:55 PM
so anything thats a 'real' project gets a directory in mycompany/ or mystuff/, and random one-off tests or whatever all go into their own dir in a playground directory.
 
I make a similar mental distinction beetween "real" projects and random one-off stuff, myself. Things become muddled if a one-off thing turns into a real project, though
 
well then I just mv and then hop inside and git init
Last night I was testing speeds of various ways to GET a 300MB file, requests vs curl vs aiohttp, and with varying chunk size parameters. Scripts to test that are now in mycompany/playground/filesize-chunking-speeds
 
I've got a directory with, among other things, 97 files matching foo*.py. Some are numbered up to foo67_...py. But I never really planned to revisit these.
 
these 4 dirs are basically enough organization for me.
@AndrasDeak lol!
 
these days I just create a tmp.py wherever I am, potentially in a tmpdir if I need other files, and then forget to delete both :P
 
7:59 PM
That's why you need delete_me.py :P
 
ooh I used to keep track of my stack overflow answers in a directory..back when I used to answer things on stack overflow. never knew what to name the folders--that was actually difficult
 
@alkasm yeah, most of those foos are from my SO Baby days.
 
I keep all my SO code files in one main folder, with each file named after the question number. If it requires more than one file, I just make a folder. That way I don't need a comment in the file with a URL to the question, it's in the filename.
 
Now I know whom to point people to when they call me a pedant!
hmm, though I guess that's not the right word
 
I've made quite a few deleteme directories over the years. I like the name better than "tmp" or similar, because I can be confident that I can erase it without even looking at its contents. A "tmp" file might be temporarily useful; a deleteme file has zero value from the instant it is created.
 
8:03 PM
The name makes no difference. tmp.py means "delete me". But... what if I need it in a bit?
 
... I don't know. There's value in proving people on the internet wrong? delete_me.py usually has that intended purpose before it's incinerated
 
if I had an SSD I'd run find ~/ -name '*tmp.py' :P
 
I mean, half the time it's me on the internet that I'm proving wrong, but I'm working on those odds
 
Useful anecdata guys, now I feel more equipped to curate my pile of stuff
 
If you can't lead by example, at least serve as a warning.
 
8:20 PM
def GC(seq):
    try:
        gc = seq.count("G") + seq.count("C")
        y = round((gc/len(seq))*100,2)
        return y
    except ZeroDivisionError:
        return 0.0
Modified my function so I don't have to leave jupyter :D
and voila no error :))
 
We all learned a valuable lesson here.
 
lol yes :D "If you truly love someone despite how much toxic they are, don't leave them. rather change your way to treat them" :D So, i am sticking to jupyter
 
@Huzaifa you still don't really need to loop over seq twice though... :)
 
oh yeah, knock yourselves out optimising the answer
 
@JonClements what do you mean?
 
8:28 PM
they also don't need two functions
 
dayum mistakes mistakes
 
and one of them returns a ratio while the other a percentage
 
but it is working for me
 
that's always reassuring
 
ok ok
 
8:35 PM
ooo.... food time... rbrb for now
 
I will try optimizing it
@JonClements its bed time here :D 01:36 AM
 
Cbg
Hey Room6Folk! I have another pyparsing website for you to try out. ptmcg.pythonanywhere.com/showq It scratches an itch I've always had with IMDb, that you can search for an individual actor and see their acting history, but you can't enter two actors and see movies that they were in together. You can enter a string like "cruise and kidman" and it will search for the highest-frequency actors by those names, and show the movies they were both in. Also, try the "+" sign buttons.
3
 
@PaulMcG that's nice
def GC(seq):
    try:
        return round((seq.count('G') + seq.count('C'))/len(seq)*100,2)
    except ZeroDivisionError:
        return 0.0
@AndrasDeak what about now?
 
What about what about now?
 
I mean i made changes in code
 
8:46 PM
Reducing the number of lines makes it neither better nor faster
 
Is it optimized? Or need more optimization?
@Aran-Fey ahh okay :'(
 
Honestly, I'm not sure if there are any significant optimizations you can make there
 
@JonClements What about this "loop over seq twice"
@Aran-Fey yeah I also think so
 
Instead of calling seq.count two times, you can use a collections.Counter. Would that be faster? I don't know
 
Or something like sum(ch in 'GC' for ch in seq)
 
8:54 PM
sum(c in "GC" for c in seq) will also give you this number, without building the Counter. A little obscure maybe. A little clearer might be sum(c=="G" or c=="C" for c in seq)
@JonClements you are really smart!
 
Again sum() :D
 
And a fast typer
@Huzaifa - do you see what sum() is doing here to accomplish the counting?
 
@Aran-Fey 4 times in total
 
@PaulMcG or possibly between the two... something like: sum(1 for ch in seq if ch in 'GC')... is sometimes easier to read than the sometimes not apparently bool conversion/summing
 
They need both AT/GC counts. Of course the sum of the two give the total count.
 
9:00 PM
Oh, is this processing gene strings? I've found that often these strings will contain other characters also, such as N, so tally_of_GC + tally_of_AT is not necessarily equal to len(seq)
 
Depends on the code challenge site
 
What's N in a gene string?
 
might also want to check out biopython.org
 
My best guess was "noncoding" for 'N' but I don't seem to be able to find a reference for that
 
N in a genetic sequence stands for any base - G, C, A, or T.
 
9:12 PM
It's a shrug
 
Is that used to indicate "it doesn't matter in how the gene is expressed" or "we couldn't determine the base"?
Oh, I definitely shouldn't have started poking around in this part of Wikipedia. I have no idea what's going on :/
 
The second one, generally, as well as "it doesn't matter for the purposes of this example". There are a whole bunch of other abbreviations used in sequencing, like A or T, C or G, ATC but not G, etc. etc.
 
Neat, thanks for that. TIL
 
 
2 hours later…
Hammered
 
Thanks!
 
@roganjosh I hope one of your "new year resolutions" is to get your own Python gold badge :p
 
dude, he just called you a noob
 
I have cats to herd at work when it comes to Python. That's challenging enough, and they're already above the Python tag
I pop on to the tag every now and then, dabble a bit and then realise I don't need to actually do this to myself
 
11:23 PM
@AndrasDeak oh dude... everyone knows it's n00b : p - and no I wasn't...
 
11:34 PM
Oh great... think the API I'm trying to get into has a big bug and no one will be around to fix it tonight as it normally takes 'em 48 hours to just respond they're having a look anyway.... sighs
Omit a field (even though the docs say it can be omitted) and it says "Field can't be NULL".... so send an empty string instead and get "Field can't be empty"... but everything not null always returns that the field can't be empty...
...although curiously if I send it an integer - I get "Field must be a string" - some serious yam validation checking going on there going completely bonkers
 
Send 'nothing'
 
I'm just going to send an email to their support and cc the client using their api in "for reference"...
 
Some "fun" API design can be found with vroom. They break it regularly (like, totally break it) but if you want to use "skills" you need to make sure that every job has a skill (necessary or not) or it'll just ignore your API inputs
My API binding in python is half just a rant in the comments about how stupid everything is that I'm having to do. It was cathartic at the time...
 
That API builds character
 
It built a character, but probably not the one they wanted
I've dropped support for it for now anyway. That'll learn 'em
 
11:52 PM
How's it going anyway - finding the new role okay?
 
I got given another customer project just to myself, so I'm back up to 4. That wasn't really in the role description, so I can't say that anything materially changed tbh. We have the Q4 Sales push to clear, then I might get a better sense of what I'm supposed to do
I want to park beatroute, my vehicle routing wrapper, for a bit and start on ex_machina which will be the machine scheduling library, but I can't do poop when I keep getting customer projects that I have to lead. I guess I'll push my mental timelines back
 
From experience... sounds like you're in for an "interesting" 2022... even when I was managing a department of 50 or so... I was still the most senior programmer so was still training up junior members, trying to do management stuff, getting it in the neck from the directors - had my team trying to rip off one arm and the directors of the company the other... sighs - the good ol' days :p
 

« first day (4111 days earlier)      last day (820 days later) »