News for hackers. Stuff that matters.

gowan

Re:Google employees who work from home could lose money on Tuesday August 10, 2021 @08:16AM (#28127857)
i like how the us military makes cost of living adjustments. you have your base pay determined my your rank which is not adjusted by where you live. in addition to that you get a housing stipend (BAH and BAS) that is adjusted by where you live. if i remember correctly the housing stipend is before tax.

google is essentially forcing a pay cut to your base salary in addition to the portion of your salary you use for housing.

Re:Red delicious apples weren’t always horrible on Monday August 02, 2021 @04:34PM (#28042266)
imo the granny smith is the all time worse apple. always taste like a green apple (not trying to be ironic) and usually has a thick skin. just plain terrible might as well pick any apple variety before it is ripe.

if you want a good green apple buy a newtown pippin.

Re:Red delicious apples weren’t always horrible on Monday August 02, 2021 @04:24PM (#28042151)
the problem with golden delicious is that you need to eat them within 3 days of when they are picked. a good golden should have a thin skin, be sweet, and crisp.

i think part of the problem is that farmers pick them to early so your usually getting an green golden that has rotted a bit to turn yellow.

Re:Someone has to foot the bill for empty offices on Thursday June 10, 2021 @07:34PM (#27467451)
do you mean REIT (real estate investment trust) which have special tax treatment in the us?
not sure you are aware of this but you can contribute to a SEP IRA[0]. this has a lot of advantages over contributing to a normal ira. in my experience you can contribute more than you usually can in a 401k since most employers do not let you contribute after tax.

https://www.bogleheads.org/wiki/SEP [0]

non-leisure city biking is hard. the hardest things for me to learn was

* if you are getting into a tight spot then own the lane. it is better for a car to see you and hit you then for it to not see you and hit you.

* always have high intensity blinking lights ... (in some places it's illegal to ride at night without lights)

more safety tips: https://bicyclesafe.com/

Re:A proactive approach to e-scooter safety on Friday February 07, 2020 @08:35AM (#22265776)
i'm surprised by how many people on this forum have not stopped indefinitely at a red light on a bike. most lights i've come across are not calibrated for bikes so this isn't a rare occurrence.

many states have a "dead red"[1] law for when lights are not operational. which permits the cyclist to proceed with caution after stopping.

[1] https://en.wikipedia.org/wiki/Traffic_light#%22Dead_Red%22_l...

Re:Giving up reading news will make us happier on Thursday April 05, 2018 @10:40AM (#16765300)
interesting... can you provide a link?
this is one of the reasons i created chromedriver-proxy[0]

[0] https://github.com/ZipRecruiter/chromedriver-proxy

Re:Learn FFmpeg the hard way on Saturday January 20, 2018 @08:33AM (#16193260)
to be fair it is possible to do this from the command line with ffmpeg when using concat[1][2]. i did this when creating real time video from screencast in the chrome remote debugger.

[1] https://ffmpeg.org/ffmpeg-formats.html#concat

[2] https://trac.ffmpeg.org/wiki/Slideshow

this is a tool i created when transitioning form phantomjs to chromedriver. it both manages a pool of chrome browsers and allows you to extend the selenium api.
Re:Ask HN: What did you work on in 2017? on Sunday December 31, 2017 @07:30PM (#16043872)
open source stuff i've done:

* release ghostdriver 2.0.0 [1]. this is the implementation of the webdriver protocol for phantomjs. unfortunately phantomjs 2.5 was never released :(

* create chrominator [2] a high level api for chrome remote debugger. now defunct... use puppeteer

* created chromedriver-proxy [3] to help me extend chromdriver without having to recompile the c++ project. it also handles pooling browsers. the coolest extension i've built so far is recording video on headless chrome. still a work in progress but has proven stable for the real world test suite i support.

[1] https://github.com/detro/ghostdriver/releases/tag/2.0.0

[2] https://github.com/jesg/chrominator

[3] https://github.com/ZipRecruiter/chromedriver-proxy

Re:Show HN: An API for filling out PDF forms on Sunday October 08, 2017 @11:55AM (#15428654)
this is an interesting idea. i like how it is declarative.

acrobat FDF[1] and Apache PDFBox[2] provide something similar but are not declarative. i'd be interested in seeing an approach with mozilla/pdf.js ... though i'm not sure how usable it would be.

[1] http://www.adobe.com/devnet/acrobat/fdftoolkit.html

[2] https://pdfbox.apache.org/

Re:Consistent Selenium Testing in Python on Saturday September 02, 2017 @01:39PM (#15157237)
sounds like an interesting pattern.

it would be nice to have a browser extension that abstracts the pattern in the browser.

Re:Consistent Selenium Testing in Python on Saturday September 02, 2017 @01:27PM (#15157170)
you should skip this post. it is full of anti-patterns.

anti-patterns

(1) implicit wait. this will create subtle differences in behavior between drivers. it will also create long pauses when you test for negative conditions.

(2) clear. selenium has built in support for clear[1]. in addition to clear you can send the null key[2] if you want to clear the input midway through a sequence of characters.

(3) time wait. this does not make any sense to me. seems like a clever way to add time.sleep.

[1] https://www.w3.org/TR/webdriver/#element-clear

[2] https://www.w3.org/TR/webdriver/#element-send-keys

shamless plug: i've also written a high level api on top of the chrome remote debugger chrominator [1]

similar idea. chrominator use promises instead of a fluent api. it also follows the selenium w3c spec where possible. it does cool stuff with evaluate and evaluateAsync where it resolves the remote object to something usable.

to be fair there are a few other projects i know about that wrap chrome remote debugger with a high level api:

* autogcd [2]

* ghostjs [3]

[1] https://github.com/jesg/chrominator

[2] https://github.com/wirepair/autogcd

[3] https://github.com/KevinGrandon/ghostjs

this technique is also called pairwise testing[1]. there are some interesting optimization problems around this approach. it can significantly reduce the number of tests while providing good coverage.

[1] https://en.wikipedia.org/wiki/All-pairs_testing

Re:Selenium IDE alternatives for UI regression testing on Tuesday February 07, 2017 @10:49AM (#13590088)
selenium has moveto[1] which will move the mouse to an element. you would use it in an action chain.

[1] https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol...

Re:Selenium IDE alternatives for UI regression testing on Tuesday February 07, 2017 @10:42AM (#13590026)
> Selenium IDE makes you handle timeouts manually which is a major inconvenience.

you can set the implicit wait setting. this will work in most cases but will make the tests slow when you need to test negative conditions. the behavior around implicit wait varies by driver implementation which can be annoying. in general it's better to use explicit waits.

> Selenium IDE only works with Firefox and may not work for sites or web apps that have slightly different DOM structure in Chrome, Safari, and IE.

selenium ide has webdriver playback[1]. if you don't like that you can generate webdriver scripts in c#, java, python, or ruby and run them against selenium server.

[1] http://blog.reallysimplethoughts.com/2013/02/18/webdriver-pl...

Re:PhantomJS 2.5.0 beta on Sunday January 08, 2017 @06:53PM (#13352909)
i built chromium headless_shell for ubuntu 16 in the last 3 months to compare it to my phantomjs 2.1.1 build (cookie patch and ghostdriver selenium 2.53 patch). i was disappointed in what chromium headless_shell had to offer.

good: slightly faster on javascript heavy pages, full dowload and upload support, selenium support for alerts/popups

bad: slower startup, slower average performance, no mobile support, no screenshot support, takes at least 2x cpu and memory compared to phantomjs

for me phantomjs/ghostdriver is faster than chromedriver. plus chromedriver has an annoying click "feature"[1] that can break selenium tests.

[1] https://sites.google.com/a/chromium.org/chromedriver/help/cl...

Re:PhantomJS 2.5.0 beta on Sunday January 08, 2017 @02:59PM (#13351623)
this is a beta release so you can test those features and provide feedback.
Re:A list of headless web browsers on Tuesday November 08, 2016 @07:32AM (#12899678)
what new apis should phantomjs support?

download support[1] is the only new api in development. it's not tagged for the 2.5 release[2].

[1] https://github.com/ariya/phantomjs/pull/14225 [2] https://github.com/ariya/phantomjs/issues/14458

Re:A list of headless web browsers on Tuesday November 08, 2016 @07:12AM (#12899588)
it is issue 546953[1] in the chromium issue tracker.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=546953

Re:Test-Case Reducers are Fuzzers on Monday December 07, 2015 @05:59AM (#10688713)
how does this compare to delta debugging[1]?

[1] https://www.st.cs.uni-saarland.de/papers/tse2002/tse2002.pdf

tldr; have developers help maintain automation tests
Re:Automated Visual Testing and Pixel Comparison on Monday July 20, 2015 @06:26AM (#9915054)
nontechnical buisness users like excel because it's familiar.

though i do not think having test data for automation scripts in a binary format is good. first excel is harder to work with than csv or json. second excel does not lend itself to version control.

Re:Generate Test Cases with IPOG on Monday June 08, 2015 @05:44AM (#9678047)
i was originally going to submit this as a "Show HN" but i could not choose between the ruby project[1] and the java project[2]. let me know what can be improved in the future.

[1] https://github.com/jesg/dither [2] https://github.com/jesg/dither-java

Older »