jeremydw's comments

jeremydw | 3 years ago | on: Learning Go as a Python Developer: The Good and the Bad

This comment section itself clearly shows how crazy dependency and environment management is in Python. In this thread alone, we've received instructions to...

- poetry

- "Just pin the dependencies and use Docker"

- pip freeze

- Vendoring in dependency code

- pipreqs

- virtualenv

This is simply a mess and it's handled much better in other languages. I manage a small agency team and there are some weeks where I feel like we need a full-time devops person to just help resolve environment issues with Python projects around the team.

jeremydw | 4 years ago | on: Taylor Hawkins, Foo Fighters drummer, dies at 50

Foo Fighters have always meant a lot to me and I am a huge fan of Taylor Hawkins. I’ve been overloaded at work the past few weeks running my company, and have been heavily enjoying Taylor’s side albums these last few weeks.

A friend sent me this poem to help cope with this news, entitled “Encounter”…

We were riding through frozen fields in a wagon at dawn. A red wing rose in the darkness.

And suddenly a hare ran across the road. One of us pointed to it with his hand.

That was long ago. Today neither of them is alive, Not the hare, nor the man who made the gesture.

O my love, where are they, where are they going The flash of a hand, streak of movement, rustle of pebbles. I ask not out of sorrow, but in wonder.

                                                        Wilno, 1936

jeremydw | 4 years ago | on: Cardboard: a scrollable tiling window manager

Personally I'd like it a lot. I think applications half of the screen can make sense. It'd be great to use to place things off screen that I may not need to use actively like Chrome devtools.

Accessibility is an issue though. If i could three finger scroll context horizontally that would be nice.

jeremydw | 4 years ago | on: Tailwind CSS v3.0

Someone should make a compiler that converts inline styles to Tailwind so then you don't have to learn Tailwind but can still use Tailwind.

For example it can convert `<div style="background-color: white">` to `<div class="bg-white">`. Perfect! (Yes, "bg-white" is the Tailwind way to make the background color white.)

jeremydw | 4 years ago | on: Tailwind CSS v3.0

I don't think this is quite right.

I'm not a tailwind user but I think the following:

``` <div class="flex">Foo</div> <div class="flex">Bar</div> <div class="flex">Baz</div> ```

gets generated to:

```html <div class="flex">Foo</div> <div class="flex">Bar</div> <div class="flex">Baz</div> ```

```css .flex { display: flex; } ```

If we replaced this with `style` attribute usage, you'd get:

``` <div style="display: flex">Foo</div> <div style="display: flex">Bar</div> <div style="display: flex">Baz</div> ```

Assuming the content is gzipped when transferred (a good assumption), the non-Tailwind version's payload is smaller because there are no separate CSS definitions.

Your statement is true in the general sense (a page can easily load unused CSS with other CSS/styling approaches) but I don't think it's correct to say that using Tailwind results in smaller payloads vs. using style attributes.

jeremydw | 5 years ago | on: Laws of UX

Noticed that keyboard navigation (tabbing, focus order, focus rings, etc.) didn't work on this site. Maybe I'm being pedantic but a baseline for good UX should be accessibility.

jeremydw | 5 years ago | on: Google no longer providing original URL in AMP for image search results

Often, it's not the developers that are at fault. Middle managers, cross-functional people, etc. ask developers to cram garbage into otherwise would-be lean pages. Developers often have no authority to push back, and stakeholders often don't fully understand "why" the garbage they're asking developers to insert into pages is detrimental to the user experience.

With AMP, the little badge (the verification), serves as a constraint for developers, but mostly for business stakeholders. The conversation of "I can't do that, because it's simply not compatible with AMP" is way easier than "I can't do that, because it will make the page slow".

jeremydw | 6 years ago | on: Doctors Say Shortage of Protective Gear Is Dire

IDK. I get that it's a hard problem, but it's a solvable one. It's not like it's some equation or law of science that needs to be discovered. It can be solved with money and effort. :\ I get the economics don't work out in normal times for a reserve like this, but that's exactly what an insurance policy (i.e. a federal reserve of medical supplies) is for.

It's just like nukes. We have a stockpile of them that are maintained... nukes are very hard to produce... etc. etc.

jeremydw | 6 years ago | on: Doctors Say Shortage of Protective Gear Is Dire

I understand. But, it's about keeping a reserve. On one hand, it's wasteful. On the other hand, a maintained reserve can save lives. This is a problem that can be solved with money.

Planet Money did a great episode recently on how the US government is currently paying for a year-round supply of chicken eggs to produce vaccine for a pandemic flu. (https://www.npr.org/transcripts/812943907).

I understand this situation is different from eggs, as an egg not used for a vaccine can be converted to feed, but in the end it's all about money. It's like an insurance policy. I pay for auto insurance but don't use it until I really need it.

jeremydw | 6 years ago | on: Doctors Say Shortage of Protective Gear Is Dire

I keep seeing articles like this pop up. During one of the first coronavirus press conferences, the White House invited CEOs from Walmart, Target, CVS, etc. – presumably to show strength of the private sector.

On the flip side, why can't we enlist money and resources from the private sector to quickly fix some of these supply issues? For example:

- Convert car factories to produce masks and ventilators.

- Convert construction companies to build makeshift hospitals. (Or use hotels.)

- Use tech companies to improve national information access with regards to CV19 testing and track and help patients using their software on their phones to help with contact tracing.

I realize that it's not as simple as pressing a button and instantly converting a factory that makes Teslas into one that makes masks. I also realize there are potential privacy concerns with nationalized information tracking.

But, we're about to enter an unprecedented public health crisis. We have resources that can lessen the impact if we just align and get behind this direction.

I can't help but think we could do more and not just wait for the shortage to happen, and for the curve to spike.

We stockpile enough nukes to basically destroy the whole Earth (exaggeration but you get the idea), but we can't stockpile some ventilators and face masks in case of a pandemic? You can't fight a pandemic with diplomacy. At least you can fight a foreign enemy with that.

jeremydw | 9 years ago | on: Chromium is no longer supported for Chromecast

What is that speculation based on? Why wouldn't Google want more browsers to be able to Cast?

My opinion: I feel like this is a pro-user move with an unfortunate side effect of breaking/unsupporting an extension. If I just want to cast to my TV why should I have to hunt for an extension. I'd rather it "just work" via a context menu in the browser.

jeremydw | 10 years ago | on: Facebook Rights Manager

Speculation: The production of this page was likely handled by Marketing, which functionally likely sits in a different org within FB and doesn't have access to many eng resources. So, Marketing sees WP VIP as an easy way to get a site up by just running a credit card. Speaking from experience, I think this "outsourcing" is probably good – if there's indeed no engineering team dedicated to Marketing needs like this.

That said, I'm sure WP VIP will break down when Marketing's needs increase – such as when Marketing needs to do internationalization, or perform a timed launch of a new site/content update.

jeremydw | 10 years ago | on: Gogs – Go Git Service

This is how I distribute Grow (grow.io), a Python program. It's worked really well so far, but it's also produced a few issues in development, for me.

For example, PyInstaller itself changes drastically from version-to-version, and I've previously had to spend hours picking away at why "compiled" Grow worked before but no longer works post-PyInstaller updates.

Overall happy though, and much happier to write in Python and distribute a single executable without requiring folks to muck around with Python versions, pip, dependencies, etc.

jeremydw | 10 years ago | on: Google Launches Sidewalk Labs

I can reproduce it. In order to fix it, I have to refresh the page. Happens on my Mac all the time when accessing G+ from a browser window that may be a different size from the browser window I previously used to access G+ in another session.

jeremydw | 11 years ago | on: elgooG

Generally, on pages/domains where you may provide users with a sign in box (such as the Google Accounts login page), you want to disallow other sites from iframing your page to prevent a clickjacking attack – http://en.wikipedia.org/wiki/Clickjacking

So Google.com busts out of cross-domain iframes by default to prevent attacks like this.

jeremydw | 11 years ago | on: Google Compare Auto Insurance

I tried it. Why did they have to send me an email containing my quotes, versus just displaying the quotes on a results page? That seems particularly un-Googley. I hope my email address is not shared with any third parties.
page 1