HNHacker News
TopNewBestAskShowJobs

rlayton2

1,017 karma · joined March 6, 2016

submissionscomments
rlayton2··on Learning about writing by seeing only the punctuation
Researcher in authorship analysis here. Yes, punctuation specific patterns have been used in the literature for this purpose, quite a bit. Removing the words also reduces the impact of the content of an article on your results (i.e. accidentally guessing the author because the topic is baseball and you only have one writer who writes about baseball in your dataset).

Typically, this type of feature is generalised of "character n-grams", but there are lots of variants.

rlayton2··on Some reasons to work on productivity and velocity
On Firefox, reader view made it look quite nice and readable.
rlayton2··on Amazon will allow many employees to work remotely indefinitely
For me, anything over 10-15 minutes is "long". It has always struck me as a weird concept that 45 minutes-each-way is a "normal" amount to travel to work, or even that people are happy its under an hour.

Edited to say I suppose I am privileged enough to have the option, and that I have traveled more than an hour before (I just wasn't happy about it)

rlayton2··on Python 3.11
Ah, just checked. I thought it installed python versions as well, but it can create environments (virtualenv, conda, system pythons, pipenv, docker), and can install packages in those environments.

I do not see a way to install a whole new python version (only the ability to add to the list, which requires you to select the interpreter from an open file dialog)

rlayton2··on Python 3.11
Anaconda is also great for beginners - GUI, lots of normal packages precompiled (also numpy, scipy, pandas, scikit-learn). If you do the full install, it comes with lots of packages pre-loaded.
rlayton2··on Python 3.11
It does install them too - however I have the pro version, and I'm not sure if that's a pro feature or not.
rlayton2··on Senior developers are leading the great resignation movement
Don't forget that it's easier to get a raise by changing jobs than asking your boss.
rlayton2··on The killer product of robotics could be a low-cost collaborative manipulator
Perhaps a toaster is a machine because it toasts for 2 minutes (or whatever it is present to) while a robotic toaster takes the bread and toasts it until it's done?
rlayton2··on Ask HN: Software design patterns for projects without a scope?
It's funny you say that, as I'm starting to draft up a common core library (or SaaS) to share common techniques between projects and to streamline some of the constants.

FYI, I'm a data scientist that does front-end development as the reporting tool. Most of my projects involves creating some data analysis pipeline and then putting a frontend on it.

rlayton2··on Ask HN: Software design patterns for projects without a scope?
Thanks for the comment. I am generally a technique expert rather than the domain expert in a project, so your comments about "being an expert" definitely makes sense.
rlayton2··on Ask HN: Software design patterns for projects without a scope?
Thanks. I do aim for high test coverage, but still not driven by the tests.
rlayton2··on Ask HN: Software design patterns for projects without a scope?
That's a great answer I hadn't considered. Thank you!
rlayton2··on Ask HN: Software design patterns for projects without a scope?
Thanks for the comment.

> Do you know what comes next?

Not really. As another comment put it “hey I need this car to work with both gas and diesel?”.

rlayton2··on Ask HN: Software design patterns for projects without a scope?
I'm happy with time-to-prototype, and wouldn't even mind spending longer on it. I'm looking for patterns that allow me to deliver the prototype, but not get in the way when adding features later in development.
rlayton2··on You don't need a math PhD to play Dwarf Fortress, just to code it
Only if it's unlikely I'll believe #3
rlayton2··on Facebook knows Instagram is toxic for teen girls, company documents show
I love looking at pharmaceutical advertising in this way - what they do say is the absolute legally maximum they could say about the product. If there were stronger claims, they could make them.

Therefore, if they say "may help against X", then it doesn't really, because if they had substantial evidence of that, they would state that.

rlayton2··on Luck in Wesnoth: Rationale (2008)
Great analysis.

I used to play a fair bit, and ultimately gave up due to the chained-campaigns, where if you "succeed" early, but not with enough high level units, you end up losing 8 missions later, leading to many hours of backtracking save files to consider when the last "good enough" point was.

Combined with some missions that just seem focused on taking out my army, it was frustrating to never know if you are actually progressing or not.

That said, my playing was about 2010 or so, I do not know if such issues have been addressed since.

rlayton2··on Evil programmer's tip: avoid “easy” things (2016)
I feel your pain.

On one small thing. I've started asking people where they want to be on the fast / polished scale.

I've always struggled with this. Have budget for a prototype, call is a prototype through speccingand end up with a client complaining it doesn't do everything perfectly. That's on me for not being clearer which is why I'm trialling the scale above. See how it goes!

rlayton2··on Google results for PHP tutorials contain SQL injection vulnerabilities
I'd go further and say it's easier to teach prepared queries than string building (or at least equally difficult).

That might not be true for other security issues but I think tutorial writers should be fine saying "here is a bit of magic that fixes a problem called csrf. We won't cover that in this course but leave this in here"

rlayton2··on Python for Excel: A Modern Environment for Automation and Data Analysis
Clever! I've written routines to use xlsxwriter for things like exporting a table to a sheet. It was a fair bit of effort the first time, but now its an easy function call.
rlayton2··on Python for Excel: A Modern Environment for Automation and Data Analysis
Pandas doesn't do formatting very well. Using pandas to generate non tabular data is also a non starter. So using pandas to fill out an existing Excel file, say by entering data in specific cells, won't work.

Libraries like xlread and xlwrite can and would be one way to automate such processes. Xlwings can too. I think that Xlwings can do macros where the others can't though

rlayton2··on Tiny Acquisitions
I may not have sold at that ratio, not sure. Either way the site definitely had potential.

Also this is the first and only time I have done this so please don't take my experience as representative. I do not know

rlayton2··on Tiny Acquisitions
This is why I sold a website making about $150/mo in ad revenue for $5k. I knew the site could make more, but had other things on the go and I couldn't spend the time on the site to improve it.

The person that bought it from me did make those changes and did make more money, but I just didn't have the time to get there. Win-win for me

rlayton2··on What is ranked-choice voting and why is New York using it?
There is another great little thing in Australian voting that plays on this - political parties get paid per #1 vote (I think it is about $4 or something).

This means you pick the party you want to win, they get paid, and then preference from there.

rlayton2··on EA got hacked and games source code leaked including new game Battlefield 2042
Easy. Just get a copy of Fifa 2021 and a sharpie.
rlayton2··on One-Fifth of U.S. Beef Capacity Wiped Out by JBS Cyberattack
If they can find your backups, then they can encrypt those too, wait a few cycles and then give you your notice.
rlayton2··on Asynchronous API with DynamoDB Streams
What are some general patterns for retreiving the data, client side, for async apis like this?

I.e. client makes a long request in browser, then gets back a response saying the job is logged. The task completes in the background and then what should happen?

I am thinking of JavaScript but more concerned about the patterns.

rlayton2··on A giant piece of space junk is hurtling towards Earth
Abc.net.au is the public owned broadcasting in Australia. No Murdoch, however it has got very click baity in the last couple of years.
rlayton2··on Google can ban your Android app if they think you’ve clicked on your own ads
Agree. I've moved my business email off Google because, despite being a paying customer, I had zero confidence in getting a resolution if my account got banned for any reason.

I still have an Android, and a personal gmail etc, but if they go away I can still run my business and I'll recover quickly.

rlayton2··on Google have declared Droidscript is malware
"and we know the ML system always works, because those that get banned from it never get their account reinstated"
← PreviousPage 3 of 7Next →