News for hackers. Stuff that matters.

shultays

Re:Don't hijack my mouse pointer on Tuesday May 12, 2026 @09:51AM (#48108304)
Spacebar hijacking, it is how I scroll webpages
Re:Making Firefox's right-click not suck with about:config on Wednesday March 04, 2026 @05:48PM (#47255076)

  “Bookmark Link…”
  “Save Link As…”
  “Email Image…”
  “Set Image as Desktop Background…”
  “Bookmark Page…”
  ... we can’t get rid of these things by simply toggling some option in about:config ...
Why seemingly the most useless options are not in about:config
Probably not enough for AI haters, we need separate executables with kill switch already triggered!
I would expect/hope that the deliver person does not know the tips for individual orders.
Re:Dithering – Part 2: The Ordered Dithering on Tuesday January 27, 2026 @11:01AM (#46781752)
I had a project with those 7 colour e-paper displays and used dithering and it looked amazing. Crazy how much you could fake with just 7 colours and dithering
Re:The struggle of resizing windows on macOS Tahoe on Monday January 12, 2026 @05:33AM (#46586574)
I think another problem is the tiny resize cursor, on windows (at least on mine) it is a lot bigger and more distinct compared to regular cursor and when your cursor changes to resize arrow it is more apparent.

I don't really see/care where my mouse exactly is. If it is outside or inside the window. Once my cursor turns to resize cursor, I just start dragging.

Re:Lessons from 14 Years at Google on Sunday January 04, 2026 @03:50PM (#46492030)
Probably the users he is talking about are not the end users like you and me. It is one team using the tools/software of the other team and so "users" for that other team are the members of the first team.
Re:Cloudflare is down on Friday December 05, 2025 @04:12AM (#46158644)
zoom
Re:A time-travelling door bug in Half Life 2 on Monday November 24, 2025 @05:49AM (#46032605)
Or more generalized "ammo += (maxAmmo * percentageToFill) / 100"
Re:Scientists Growing Colour Without Chemicals on Thursday November 06, 2025 @06:43AM (#45834150)

  So imagine a technology that shines a laser on a car or a block of concrete and makes it blue
There is something like that for sheets of steel at least https://www.youtube.com/watch?v=2ncEfAxkuFA

And here is a video explains it https://www.youtube.com/watch?v=RsGHr7dXLuI

Re:Google Removed 749M Anna's Archive URLs from Its Search Results on Wednesday November 05, 2025 @05:27AM (#45821419)
Probably yes, I know it at least refuses to 'type down first 5 pages of lotr book' because of copyright reasons. Its filter is getting better (as in worse for the user) everyday
Does that hardware traps overflows or something?

  I had read an article about how DOOMs engine works and noticed how a variable for tracking the demo kept being incremented even after the next demo started. This variable was compared with a second one storing its previous value

Doesn't sound like something that would crash, I wonder what was the actual crash
Re:C++: Strongly Happens Before? on Monday September 01, 2025 @07:09AM (#45091686)

  The comments show the values each thread observed.
Why? Nothing in that code implies any synchronization between threads and force an ordering. thread_2 can fetch value of y before 1 writes to it which would set b to 0.

You would need additional mechanisms (an extra atomic that you compare_exchange) to force order

edit: but I guess the comment means it is the thing author wants to observe

  Now, the big question: is this execution even possible under the C++ memory model?
sure, use an extra atomic to synchronize threads
Re:Why agents are bad pair programmers on Tuesday June 10, 2025 @08:03AM (#44235742)
It is a c++ code.
Re:Why agents are bad pair programmers on Tuesday June 10, 2025 @06:13AM (#44234867)
A week or so ago I needed to convince chatgpt that following code will indeed initialize x values in struct

  struct MyStruct
  {
    int x = 5;
  };
  ...
  MyStruct myStructs[100];
It was insisting very passionately that you need MyStruct myStructs[100] = {}; instead.

I even showed msvc assembly output and pointed to the place where it is looping & assigning all x values and then it started hallucinating about msvc not conforming the standards. Then I did it for gcc and it said the same. It was surreal how strongly it believed it was correct.

Re:CSS Minecraft on Tuesday May 27, 2025 @09:49AM (#44107002)
but they are all individual divs
one day both sides will be AI so we can all relax and enjoy our mojitos
https://github.com/dotnet/runtime/pull/115733

  @copilot please remove all tests and start again writing fresh tests.
Re:Initialization in C++ is bonkers (2017) on Friday May 16, 2025 @09:38AM (#44005395)

  The general cost over a several large codebases has been observed to be minimal
Is this unexpected? A large code base has a lot of other things and it is normal that such changes will be a rounding error. There are lots of other bottlenecks that will just overwhelm such a such change. I don't think "it is not affecting large code bases as much", you can use that argument for pretty much anything that adds an overhead

Not to mention if you change every int a to int a=0 right now, in those code bases, a=0 part will likely to be optimized away since that value is not being (shouldn't be) used at all and likely will be overwritten in all code paths

Re:Initialization in C++ is bonkers (2017) on Friday May 16, 2025 @05:38AM (#44003424)

  Of course we should provide a mechanism to allow large arrays to remain uninitialized, but this should be an explicit choice, rather than the default behaviour.
First you are saying "cost is minimal even negative" and then already arguing against it on the next paragraph.

  const string input = "interesting";
  bool comparison = input.ToUpper() == "INTERESTING";
  Console.WriteLine("These things are equal: " + comparison);
  Console.ReadLine();
Is this a realistic scenario? Changing case of a string and comparing it to something else? Running some kind of operations & logic on a string that is meant for user?

If you are doing such things then it looks more like a code smell.

Re:Crows can recognize geometric regularity on Monday April 21, 2025 @07:31AM (#43750712)
My cat learned to jump and grab the door handles to open doors. It was escaping the house that way. I had to lock the door while I am at home so he doesn't escape. After some tries and seeing that it is no longer working, he forgot/gave up at doing it.
Re:OpenAI o3 and o4-mini on Thursday April 17, 2025 @04:08AM (#43714235)
AIs in general are definitely hallucinating a lot more when it comes to niche topics. It is funny how they are unable to say "I don't know" and just make up things to answer your questions
No offense but I feel like this is an overengineered solution that misses the problem. It may efficiently render millions of notes I will not take in my life but it is extremely ugly with the slow loading/populating the screen as you scroll. And scroll goes crazy if you try to drag and scroll.

I would prefer a note taking app that can render maybe 100 notes but doesn't have that scrolling behaviour.

Re:F-strings for C++26 proposal [pdf] on Monday February 03, 2025 @11:55AM (#42920223)
Why? If all standard functions that take no ownership/keep references are using raw pointers then it behaves same as user code/C++ devs expect: if a function is taking a pointer then it claims no ownership. You take a look at standard_function(T*) and see raw pointer and then can assume it is not taking ownership or keeping references
Re:F-strings for C++26 proposal [pdf] on Monday February 03, 2025 @11:09AM (#42919635)
What are the examples to std functions that uses a raw pointer but does not borrow/expects pointer to be valid past the function call?
google.com homepage

  59 requests 1.2 MB transferred 3.1 MB resources
Pretty cool design, I am not sure if some boards are unsolvable or if I suck though. Some hints:

  * It works similar to minesweeper so hints/patters for minesweeper also applies. 
 https://minesweeper.online/help/patterns
  * Prefer levelling up to heal over the hearts. You can use hearts later for bigger heals
  * Don't level up unless needed to. Try to hit 0 heart before levelling up.
  * Point is exploring as much as possible
  * You can use right mouse button to mark cells with numbers or X (for mine). If you figure out a cell don't open it unless you want to explore that area. If not just mark them and leave them. Later when you need to heal/level up, you can kill those marked cells for extra XP with no cost since the health you have will be wasted anyway.
  * While picking up hearts again prefer the ones that in areas you want to explore into
  * To make things easier, at the beginning you can just open random cells that are far away from the orbs. If you die, you won't lose much :)
A big improvement would be showing how many you box numbers you marked, visible and left in the help screen to help you with your guesses. It only shows how many left
Sometimes there are hidden menus or settings that might allow you to toggle those features. I used to work on TVs and we had a secret menu that toggles various features. Some of those features would be disabled for specific countries (mainly for patents)

Older »