HNHacker News
TopNewBestAskShowJobs

astrowilliam

509 karma · joined August 8, 2013

submissionscomments
astrowilliam··on 3K free SVG icons for popular brands
I did not expect to see AEW (All Elite Wrestling) on the list.
astrowilliam··on iPhone 16 Pro and iPhone 16 Pro Max
I'm a senior front end React dev and I also don't care about most of the features on my phone. Notes, email, phone, text, maps and my bank. Other than that, I don't care much about other features on my phone.
astrowilliam··on Stackoverflow Sucks
SO has been hot dog garbage for years. The mods are super aggressive and the free flow of ideas seems to have died on that platform long ago.

This is what ChatGPT says. No moderator to make your life more difficult. Hope this helps.

Implementing dark mode in an iOS app involves more than just changing the background to black and the text to white. It's about creating a color scheme that reduces eye strain and battery usage, especially in low-light conditions. To achieve this, you need to adjust not only the background and text colors but also other UI elements such as buttons, images, and navigation bars.

Since you're using a WebView in your iOS app, you need to handle dark mode in both the native iOS components and the web content displayed in the WebView.

Here's a high-level approach to implementing dark mode in your app:

Native iOS components: Set the appropriate appearance mode for your app by adding the following code to your app's Info.plist file:

xml

<key>UIUserInterfaceStyle</key> <string>Automatic</string> This tells your app to automatically switch between light and dark modes based on the user's system settings.

Next, use dynamic colors for native UI elements. Instead of hardcoding colors, use system-provided colors or create custom dynamic colors using UIColor's init(dynamicProvider:) method.

WebView content: To implement dark mode for the web content displayed in the WebView, you can use CSS media queries to detect the user's preferred color scheme and apply the appropriate styles.

Add the following CSS media query to your website's CSS:

css

@media (prefers-color-scheme: dark) { /* Add dark mode styles here / body { background-color: #000000; color: #ffffff; }

  /* Other dark mode styles for other elements */
}

You can customize the colors and styles as needed for your app's design.

Test and fine-tune: Test your app in both light and dark modes to ensure a smooth transition between the two color schemes. Adjust any colors or styles that don't look right or cause readability issues.

Remember that implementing dark mode effectively requires thoughtful design and attention to detail. Make sure to consider the specific needs of your app and its users when customizing your dark mode implementation.

astrowilliam··on SpaceX reveals concrete details about Starship's first orbital test flight
People have been asking why SpaceX won't land at Starbase in Boca Chica. Simple answer, if the booster explodes it could set SpaceX back months in development. Easier and safer to test high altitude launch/recovery over the Gulf/Ocean.

Tests over water have been happening for decades.

GO SpaceX! GO Starship!

astrowilliam··on Tesla Makes More Money Trading Bitcoin Than Selling Cars
Would be nice to have enough money to invest enough to make a nice living wage off of the market right now. Most people don't have that $$. Early adopters are WAY ahead of everyone else in this regard. Luckily I got in early.
astrowilliam··on Everything Easy is Hard Again (2018)
Learning fancy tools is outside the scope of building a simple website. Simple site is usually HTML/CSS/JS.
astrowilliam··on Whitehouse.gov Chooses WordPress, Again
IE11 will soon be a security hazard and not worth the effort to code for.
astrowilliam··on Whitehouse.gov Chooses WordPress, Again
I see no infinite scrolling on https://whitehouse.gov/ It clearly has an end point and a footer. Also, the "briefing room" has pagination.

Not sure what pages you are looking at.

astrowilliam··on Starship / Super Heavy
A MASSIVE 30 story building that can land vertically isn't a huge feat?
astrowilliam··on SpaceX Starship Users' Guide [pdf]
Trips to Mars won't be 100 people. More than likely 30 or less. I'm imagining around 15-20 at most. https://youtu.be/Jed1tI_x-KM
astrowilliam··on Search Engine for Free Music Ranked by Usage of Youtubers
OP. it's been 7 hours and you haven't answered why or how you use email address data.
astrowilliam··on Search Engine for Free Music Ranked by Usage of Youtubers
Gotta make money some how, selling user data is an easy way to do that.
astrowilliam··on All of Toyota’s electric vehicle patents are now royalty-free
Barrier to entry has just been lowered drastically by open sourcing those patents. It's not about charity at all, it's about creating a market. By opening these patents to possible competitors, they are helping other companies enter the EV space. Toyota wants to dominate the EV vertical, but there needs to be more people buying them long-term for them to make a crap-ton of money. This is their way of helping create the market for the future.
astrowilliam··on How Spotify and Discover Weekly Earn Me $400/month
I make about $200/month thanks to Spotify listing my podcast. Their partnership with Anchor.fm has really helped push my pod forward because the new features on anchor, since the acquisition, have helped me pinpoint an audience.

https://open.spotify.com/show/0jW7nOHQNi1Xlr3v7UMi2p

astrowilliam··on AT&T CEO interrupted by a robocall during a live interview
Not everything is a conspiracy.
astrowilliam··on Elon Musk Tried to Destroy a Tesla Whistleblower
Have you ever seen a Tesla?
astrowilliam··on Microsoft Workers Protest Army Contract with Tech 'Designed to Help People Kill'
Not everything is a conspiracy.
astrowilliam··on Why Is PayPal So Successful Yet They Treat Merchants Like Crap?
What does being a libertarian have anything to do with a business transaction?
astrowilliam··on Tesla deploys massive new Autopilot neural net in v9
Good on them for working hard to get affiliate points for a brand new Tesla. It took them working their butts off to get one.

I found the article to be full of unbiased information and also more personal info in the "ELECTREK’S TAKE" section.

astrowilliam··on Solid – Reshape the web as we know it
Here's some more information about the app experience. I'm sure this is a very very early test to see how many people are interested.

I, for 1 and super excited to take back my data.

https://www.inrupt.com/our-work/

astrowilliam··on Ericsson and T-Mobile ink $3.5B deal for 5G
Why are you concerned about Huawei being bigger?
astrowilliam··on Valve Rolls Out Wine-Based “Proton” for Running Windows Games on Linux
I'm an avid gamer and would never buy anything from the Windows store. Casual players even use Steam. I'd like to see the sales stats between the WS and Steam to compare.
astrowilliam··on Valve Rolls Out Wine-Based “Proton” for Running Windows Games on Linux
I'm truly interested and curious. Can you explain to me why being on the internet where all your actions are being monitored by your ISP is OK, but Windows is bad? I mean, no matter how many precautions you take, someone is watching you some how. Use web-based email? There's a record somewhere with all your past emails and they are making a marketing profile about you, same with search.

And what about smart phones? Android has you locked into Google surveillance and Apple is closed so we have no idea how much they know. Send a text? Your provider had to send that data and the person on the receiving end... well, you never know how secure their systems are.

Just some food for thought, would like to hear why Windows is so bad, I'm a Windows/Apple/Linux user and I don't hate on any of them.

astrowilliam··on Andy Rubin Puts Essential Up for Sale, Cancels Next Phone
We're talking about a small company here. Sometimes small companies don't have the resources to move forward with a 2nd product if the first one didn't pay off.
astrowilliam··on Predicting Starman’s Return to Earth
And Elon drives it off the landing pad :)
astrowilliam··on Litecoin and Ethereum buys and sells are temporarily disabled
That's what happens when a business is trying to scale to meet crazy demand.
astrowilliam··on Bitcoin – Millennials Fake Gold
Oh, you mean when we talk about news about technology? You mean what we've been doing for years?
astrowilliam··on Bitcoin – Millennials Fake Gold
I know a few people who have invested in BTC and they cash out any profits that they get over $100/day. That way they are making a decent amount per transaction. So they take that cash and use it as they normally would.

It's more of an investment for them, I'm not sure if they actually use BTC to buy anything.

astrowilliam··on Silicon Valley Is Sneaking Models into This Year’s Holiday Parties
This has been happening at tech companies for decades. Not only are there models at the parties, but there's entertainment, food, drinks, etc.

It's a good time, enjoy yourself and don't take it too seriously. This really isn't the end of the World.

astrowilliam··on Benefits of a Lifestyle Business
I've been working in tech for the last 10 years. I've come to the point that I need to enjoy my life and not sit in an office 10 hours a day, coding for someone else's vision.

So I started a brand ( https://lasttrystuff.com ) of my own so I can enjoy an active lifestyle while adventuring. It doesn't quite pay as much, but the trade offs are immensely satisfying.

Page 1 of 6Next →