Better HN
topnewbestaskshowjobs
Log inSign up

astrowilliam

509 karma · joined Aug 8, 2013 (13y ago) · 217 submissions

Submissions

comment 2y ago · link · parent

I did not expect to see AEW (All Elite Wrestling) on the list.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

4.

Sony's Star Sphere Satellite Captures First Photos of Earth(stagezerostudio.substack.com ↗)

1 points · by astrowilliam · 3y ago · discuss

comment 5y ago · link · parent

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!

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Learning fancy tools is outside the scope of building a simple website. Simple site is usually HTML/CSS/JS.

8.

SpaceX Starship Habitat Deck(youtube.com ↗)

2 points · by astrowilliam · 5y ago · discuss

comment 5y ago · link · parent

IE11 will soon be a security hazard and not worth the effort to code for.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

A MASSIVE 30 story building that can land vertically isn't a huge feat?

comment 5y ago · link · parent

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

comment 6y ago · link · parent

OP. it's been 7 hours and you haven't answered why or how you use email address data.

comment 6y ago · link · parent

Gotta make money some how, selling user data is an easy way to do that.

15.

China unveils colossal Mars training base camp in Gobi desert(spacenewspodcast.com ↗)

1 points · by astrowilliam · 7y ago · discuss

comment 7y ago · link · parent

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.

17.

Researchers Find Biosignatures in Martian Rock(spacenewspodcast.com ↗)

2 points · by astrowilliam · 7y ago · discuss

18.

MIT and Nasa engineers demonstrate a new kind of airplane wing(spacenewspodcast.com ↗)

2 points · by astrowilliam · 7y ago · discuss

comment 7y ago · link · parent

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

comment 7y ago · link · parent

Not everything is a conspiracy.

comment 7y ago · link · parent

Have you ever seen a Tesla?

22.

Elon Musk and Nasa Discuss SpaceX Dragon 2 Launch Success(youtube.com ↗)

1 points · by astrowilliam · 7y ago · discuss

comment 7y ago · link · parent

Not everything is a conspiracy.

24.

Virgin Galactic Releases Footage of 2nd Spaceflight(youtube.com ↗)

1 points · by astrowilliam · 7y ago · discuss

comment 7y ago · link · parent

What does being a libertarian have anything to do with a business transaction?

26.

Europe to Mine Moon for Oxygen and Water by 2025(spacenewspodcast.com ↗)

2 points · by astrowilliam · 7y ago · 1 comment

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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/

comment 8y ago · link · parent

Why are you concerned about Huawei being bigger?

comment 8y ago · link · parent

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.
12345
8