Better HN
topnewbestaskshowjobs
Log inSign up

murphy214

38 karma · joined Aug 14, 2018 (8y ago) · 44 submissions

Submissions

comment 2y ago · link · parent

import os

os.system('mycommand | sed 's/ugly/beautiful/g' | awk -F: '{print $2,$4}' 1> something.report 2> err.log')

comment 3y ago · link · parent

bingo

comment 4y ago · link · parent

What is an acceptable signal to noise ratio for a security tool to be useful? clearly some amount of false positives to any real threat ratio causes people to just ignore it completely. Cue me looking at my npm vulnerabilities with I install packages lol.

comment 5y ago · link · parent

Most of my workin pandas is with small to medium size < 1g tables what constraints do you run into with the larger data sets you are talking about?

comment 5y ago · link · parent

Not to mention the Merck therapeutic that just got emergency use auth that study was done on < 1000 people I think lol

comment 5y ago · link · parent

?

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2806387/

EDIT: Young people, specifically men are also more likely to get myocarditis in the general population irregardless

What makes you think the percentage of inter-vascular injections causing myocarditis should be distributed evenly across a population?

comment 5y ago · link · parent

Unless they accidentally hit a vein and inject the vaccine directly into the bloodstream, anecdotal evidence[0] points to this for young men who get myocarditis. They often report tasting saline in their mouth shortly after the injection.

[0] - https://www.youtube.com/watch?v=H7inaTiDKaU

comment 5y ago · link · parent

Mapbox is the probably the best GL based mapping client but it is no longer free on the latest version. Although, its not designed to work with PostGIS explicitly you definitely can. (i.e. querying mvts, map tiles, through PostGIS)

Leaflet as others have said is another good option, but is really made for old slipply map tiles.

Most of the ESRI based web clients I think look and feel terrible IMO. Rendering just looks off. What features are you looking for in a mapping client?

comment 5y ago · link · parent

Research Chemicals... sometimes called analogs

comment 5y ago · link · parent

M1 8gb Macbook Air here:

Percentage Used: 0%

Data Units Read: 28,383,716 [14.5 TB]

Data Units Written: 26,487,969 [13.5 TB]

Host Read Commands: 137,200,722

Host Write Commands: 155,386,158

VSCode, compiling, generally programming work load, with heavy multi tasking. I would say ~1 month old.

comment 5y ago · link · parent

LOL haven't you guys had enough legal trouble with Mapbox already ;)

In all seriousness I completely agree as someone in the mapping community this seems like a logical home. You have my vote!

comment 6y ago · link · parent

This money isn't going to facebook though? Facebook doesn't even take a cut of it. I imagine fb's intentions were to let the customer know that if 30% of the effective donation/payment had not gone to the recipient it wasn't fb taking a cut.

comment 6y ago · link · parent

Apple's policies on this seem pretty messed up. I watched a video today where an app developer had to rip out user generated content (comments section) which seems crazy to me! Video here: https://www.youtube.com/watch?v=1QzHu-sjdB8

Have you thought about just putting 30% fee on your users? For example google when you subscribe to youtube premium in the iphone app just charges you a straight 17 USD with no info or note saying that it is 12 USD through the website. (which I'm sure they were made to do as well)

comment 6y ago · link · parent

Finally biting bullet and learning react (I've had run ins in the past) by converting a vanilla js handcoded-web (super complicated) app to react. Probably not the best app to learn on as it requires a Mapbox map which means you have to interface with the map api in a very untraditional way.

Was a little new to npm as well, but got rolling after a while. Not done yet, still little issues with flow state, for example, if I have a dual range slider in react with clearly styled and labeled beg and ending sliders values, how do I drag one slider over the other and force swapping the two but continue the UI motion. Currently I'm just overriding the event target.

comment 6y ago · link · parent

from who?

comment 6y ago · link · parent

For "presentation information"are you saying you just stream back the normal text on the screen (for that piece of information in the COBOL app) and then parse it into some sort of API?

I have no idea about COBOL at all but I've done something like this before with a client mainframe scripting/macro language, it was not fun. Basically I had to hard code a bunch of key inputs to get the information screen I needed finally read that screen back out in plain text and parsing that into some sort of structure. It was a mess but worked for what it required at the time.

comment 6y ago · link · parent

Dreadful may be a little strong but anytime I've tried to implement something like asyncio for a non trivial piece of code it becomes pretty obtuse. (imo)

comment 6y ago · link · parent

I get the real work argument but I think real work from real professionals is slowly permeate to the iPad for example Madlib (prolific hip-hop producer) produced his entire last album on an iPad and it was seen as a pretty big deal in the professional music world. (I think)

comment 6y ago · link · parent

I haven't done this but I imagine you could put a service worker that has a fetch event listener that puts you in front of the raw tile data being cached. https://github.com/mapbox/mapbox-gl-js/issues/4326

From their you can serialize/deserialize the whole tile and map a new field (annoying), or if your clever... map your variable value fields lower in the values index array of the vt pbf. That way assuming you have a small number of unique style by values, you could get away with simply replacing a single byte representing that style value field with another value dictating a different style, for each feature in the vector tile.

That might be a little to abstract so tl:dr version put a listener in front of fetch. One byte represents the target dynamic field in each feature in the tile (if you have a small number of unique values). Replace that single byte with your desired target byte.

comment 6y ago · link · parent

I would love to have tooling for what AWS consider an IO/OP, I've read the documentation quite a few times and I think I get it, basically every 256 kb read or reads under that but at what level of the stack is that considered from. I tried to find metrics/tools of how to count it as AWS counts but couldn't really find much.

The reason being I have a library that reads a file in an x-size buffer along a file iteratively using bufio in go, and I'm not exactly sure what optimizations are happening that I can't see, and at some points I'm incrementing a file a byte at a time, thats by definition an IO/OP I think (super inefficient). Unfortunately a lot of the cloud metrics don't give you enough granularity or quick feedback to optimize.

comment 6y ago · link · parent

How possible is it that the only programmer was a minor and that's why we never got any testimony or explanation? I've heard stories of companies or governments hiring extremely young programmers to do some pretty serious work. (John Romero comes to mind)

Edit: It would also explain the lack of provable credentials.

12