• 0 Posts
  • 49 Comments
Joined 1 month ago
cake
Cake day: June 6th, 2025

help-circle


  • This works for both positive and negative numbers:

    private static bool isEven(int number)
    {
    	bool result = true;
    
    	while (number < 0)
    	{
    		number = number - 1;
    		if (result == true)
    			result = false;
    		else
    			result = true;
    	}
    	while (number > 0)
    	{
    		number = number - 1;
    		if (result == true)
    			result = false;
    		else
    			result = true;
    	}
    	return result;
    }
    

    Output:

    isEven(4) = True
    isEven(5) = False
    isEven(-4) = True
    isEven(-5) = False
    

  • They do work. It takes some practice to get them though. At first I used a pencil or something to focus on while I made the two dots merge together, stayed focussed on the pencil until my brain “saw” the image behind it, then it sort of locked in and I could take the pencil away. I’ve done so many of them now that I can just go crosseyed to bring the dots together, then look at the middle picture.

    The 3D image works by tricking your brain into seeing a third image that isn’t really there. We’re used to constructing 3D images from two slightly different views; we do it all the time, so the two images are slightly different and when overlaid use the same mechanism to make you think it’s 3D.












  • On the contrary. A post with (currently) 45 upvotes states exactly “Thinking of putting up Palestine stuff in my windows just to dare them to come get me.”

    This is exactly what I mean. Putting up Palestine stuff is just fine, perfectly legal, and you cannot be arrested for it.

    If she really wants to be daring she should put up Palestine Action stuff in her windows.

    PA probably aren’t terrorists, just protesters who took it a bit too far, but the facts are: they broke into an airbase and damaged RAF jets by pouring paint into their engines. This will take those jets out of commission until the damage has been assessed; maybe the paint will just wash or burn off, but maybe they’ll need to be replaced, which is a cost that could run into millions because jet engines aren’t exactly cheap. So a case could be made that they are also terrorists, but it’s a bit of a stretch.

    “rooting out opposition to the genocide” No, we’re not doing that. There’s plenty of opposition and it’s fine; we live in a democracy and people are free to support whoever they want to support (in this case: as long as it’s the Palestinians in general, not Hamas).