开发者
编程技术、框架工具、最佳实践
共 7918 篇 · 第 380/396 页
Some Python Features We Almost Got but Never Did
submitted by /u/yangzhou1993 [link] [留言]
Ask HN: Entrepreneurs, how long did it take you to succeed?
How long did it take? How many ideas did you go through? What made you stick to an idea vs pivot?
US troops are reportedly being targeted using location data, Pentagon says
Social Animus
Article URL: https://justine.lol/animus/ Comments URL: https://news.ycombinator.com/item?id=48314875 Points: 59 # Comments: 15
How does pornhub track a user without cookies and through incognito mode?
Maybe an odd question but Pornhubs start page are actually recommendations based on your viewed videos. I suppose most folks here use incognito mode so, no cookies, clean state on each launch. Yet, if you launch another incognito window for the site, you will realize it remembered your viewing behavior and the videos reflect it. But how do they do this? There is no account, no cookies, no local storage. And technically, they wouldn't be allowed to track you in the first place due to the GDPR. Yet, it's the case. Anyone know how they achieve this? submitted by /u/SourSovereign [link] [留言]
More Dads Are Scaling Back at the Office for Kids and Housework
Nintendo’s newest WarioWare is a weirdo smartphone app
A decade ago, Nintendo made a big splash into the world of mobile gaming with a new Super Mario platformer directed by none other than Shigeru Miyamoto. But even though the game proved popular, it wasn't the success the company had hoped for. Over the ensuing years Nintendo has slowly retreated from smartphone gaming, with […]
Two Ways to Draw Infinite Jest's Sierpinski Gasket
The Antikythera Mechanism
How to upload a website that I created on the internet but it only be shown to people who have the exact link?
I made a portfolio for the University as an assignment, but there's some very sensitive information like my id number and my full name. I don't want any random person on the internet to stumble on it, I only want the professor to see it. So i want an exact link that is very hard so only people with this link can access my website. Is there some free website host for this exact thing? submitted by /u/W3-SD [link] [留言]
JPEG compression deep dive
submitted by /u/fagnerbrack [link] [留言]
How to make dynamic svg images without having an image for every combination ?
I want to make a feature where my users would be able to customize a 2D svg character. They would choose their sex, their skin color, their clothes color, and maybe even put on accessories later. The arms of these characters would also change position. Obviously, I don't want to create an svg image for every possible combination, e.g. brown-man-red-shirt-pose1.svg white-woman-blue-shirt-pose1.svg, etc. If I did so I would have at least a hundred files to change each time I update the design of the characters which I don't wish on my worst enemy. So I would like a way to dynamically generate these combinations on the fly each time I render a character to the user. I asked a chatbot about it and it told me to treat my svg files the same way I treat my html templates with Django and render them using the render_to_string() function which allows me to pass variables for my template to display. I believe this way of doing it makes sense. For the different colors applied to the character, I would only need to add the following syntax: {{ shirt_color }} as the value of a path's "fill" in my svg and pass the value of the color in render_to_string() . However, if I want to attach the arms to the characters during render to not have a file for every arm pose there is with the same exact base character in each one, it becomes a bit more complicated. I would need to integrate a whole svg file inside of the first one and would need to care about its positioning and everything. I would also need to clean up the file each time I render it inside another svg file because of everything that comes with (<?xml version="1.0" encoding="UTF-8" standalone="no"?>, <!-- Created with Inkscape ( http://www.inkscape.org/ ) --> and the svg tag itself). So what is the most commonly agreed upon way of doing this? submitted by /u/Affectionate-Ad-7865 [link] [留言]
The Science of Weather and the Nature of Science
Bricks and Minifigs Stole a Man's $200k Lego Collection
Announcing Rust 1.96
Nitpicking the shell history scene in 'Tron: Legacy'
Separate the Cord from the Device
Associative learning turns DEET from aversive to appetitive in Aedes aegypti
FBI says Google engineer used internal search data to win $1.2M on Polymarket
FBI: Googler who knew outcome of bets in advance made $1.2M profit on Polymarket.