News for hackers. Stuff that matters.

astrowilliam

Re:3K free SVG icons for popular brands on Thursday September 19, 2024 @09:05PM (#41597851)
I did not expect to see AEW (All Elite Wrestling) on the list.
Re:Apple iPhone 16 Pro and iPhone 16 Pro Max on Tuesday September 10, 2024 @12:14PM (#41502393)
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.
Re:Stackoverflow Sucks on Friday March 17, 2023 @02:54PM (#35201308)
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.

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!

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.
Re:Everything Easy is Hard Again (2018) on Saturday April 17, 2021 @03:38PM (#26846852)
Learning fancy tools is outside the scope of building a simple website. Simple site is usually HTML/CSS/JS.
Re:Whitehouse.gov Chooses WordPress, Again on Saturday January 23, 2021 @08:48PM (#25888156)
IE11 will soon be a security hazard and not worth the effort to code for.
Re:Whitehouse.gov Chooses WordPress, Again on Saturday January 23, 2021 @08:44PM (#25888130)
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.

Re:Starship / Super Heavy on Saturday December 26, 2020 @11:50PM (#25548948)
A MASSIVE 30 story building that can land vertically isn't a huge feat?
Re:SpaceX Starship Users' Guide [pdf] on Tuesday December 08, 2020 @12:20AM (#25342182)
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
Re:Search Engine for Free Music Ranked by Usage of Youtubers on Monday October 05, 2020 @08:50PM (#24693754)
OP. it's been 7 hours and you haven't answered why or how you use email address data.
Re:Search Engine for Free Music Ranked by Usage of Youtubers on Monday October 05, 2020 @07:55PM (#24693416)
Gotta make money some how, selling user data is an easy way to do that.
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.
Re:How Spotify and Discover Weekly Earn Me $400/month on Wednesday March 27, 2019 @03:57PM (#19505306)
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

Not everything is a conspiracy.
Re:Elon Musk Tried to Destroy a Tesla Whistleblower on Wednesday March 13, 2019 @12:47PM (#19380572)
Have you ever seen a Tesla?
Not everything is a conspiracy.
What does being a libertarian have anything to do with a business transaction?
Re:Tesla deploys massive new Autopilot neural net in v9 on Monday October 15, 2018 @04:45PM (#18223548)
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.

Re:Solid – Reshape the web as we know it on Saturday September 29, 2018 @02:58PM (#18102134)
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/

Re:Ericsson and T-Mobile ink $3.5B deal for 5G on Tuesday September 11, 2018 @01:42PM (#17961775)
Why are you concerned about Huawei being bigger?
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.

Older »