« first day (3039 days earlier)      last day (1913 days later) » 

1:37 AM
@Rick I prefer to use the binary ordering of vertical trees.
@StackedCrooked With AVX-512, I can hash 64 bytes per cycle (with a really low-quality hash).
 
 
2 hours later…
3:16 AM
Anybody working on anything cool? I'm trying to make a Qt GUI not look like shit, which is apparently harder than semi-classical electromagnetic, embryology, and deep learning/ML put together.
Also was Microsoft Bob a post-WIMP interface?
famous last words
 
 
1 hour later…
4:22 AM
@Mikhail POST wimp? No, it didn't even attempt to be RESTful.
 
Though, the built in email client means it was WEBSCALE
 
 
2 hours later…
6:10 AM
Last 2 days was awful - had to deal with 5 parties in relation to different issues. Two was to do with people not carrying their duties as they promised. One to do with being over charged (by the thousands), one to do with mitigating conflicting sides and the other with solving problems for someone who is currently overseas.
Days get very depressing very quick when you have to deal with people and their conflicts, especially multiple. When you have problems to solve until mid night, and new ones right after you get up and every hour in between.
2019 was awesome, until the last few days. On the other hand, things are progressing because I am dealing with them. Hopefully I will get back to my super happy state again in a few days time when everything is settled (well).
 
6:54 AM
hi
 
7:49 AM
hello.
 
 
2 hours later…
9:29 AM
Ugg, is this normal for a framework? Having wacky stuff happen because have a hidden not-initialized mode before they are shown?
14
Q: Qt5 C++ QGraphicsView: Images don't fit view frame

user1257255I'm working on program which shows user some picture that is selected by him. But there is a problem because I would like to fit this picture in QGraphicsView's frame and the picture is really smaller than the frame. So here's my code: image = new QImage(data.absoluteFilePath()); // variable da...

 
yes
welcome to frameworks and UI frameworks especially
 
There has to be a fix that removed this bullshit problem of needing to know the layout while the layout hasn't been shown.
I suspect that if you add each element in chronological order, and re-layout you won't have this bullshit
 
it's really an inherent problem
some elements are layout-independent and some are calculated based on layout
but really Qt should handle the messy details, you just set how you want it to be laid out and move on
 
10:17 AM
I see someone is having a 'good time' working on GUI problem on a weekend.
Does it always boost your ego knowing that you are wasting the weekend fixing not so useful stuff which you have to fix?
Also I just took a stroll in a place infested with possums.
One possum scared me by climbing up a tree half a meter away.
As revenge, I took a picture of the creature with the flash on.
 
11:33 AM
@TelKitty 2019 was awesome? Are you a time traveler?
 
@fredoverflow We are all time travellers - advancing at the rate of 60 seconds per minute.
But I really meant January 2019, I should rephrase it to part of 2019 that has gone past.
 
11:59 AM
I have been thinking, you know that magic carpet blanket in Aladdin? We can make it happen! Like a hard carpet with 4 giant propellers underneath each at one corner. Carpet would have motion sensors installed so it knows when to raise, when to fall and when to turn left and right.
Good idea - yay? Nay?
 
12:16 PM
@TelKitty Personally, I think the dream of flying is overrated.
 
12:39 PM
@fredoverflow I think flying is pretty amazing - so you can travel in 3D instead of 2.
Even though not exactly 2D because ground is not completely flat.
 
12:58 PM
@fredoverflow video talks, my worst enemy
 
1:46 PM
@JerryCoffin It seems like a bad use of binary trees. You would first need to know the depth of the tree. So you would need to visit all the elements O(n). Then you would need to use a queue to flatten it in the correct order O(n).
What benefit is in this? The spatial benefits of flattening a tree in this fashion seem odd. At first, I thought that maybe that the vertical ordering on any branch could be used as an adjacency list for path compression, but BST is already optimized with that in mind. Also, why would you store the data in a BST to only later extract in linear time, when it's built for the purpose of (log n) lookups?
sorry correction, not depth but height.
 
 
1 hour later…
3:00 PM
can open() be used in binary mode?
I can't find the binary flag
 
 
1 hour later…
4:09 PM
@Aurelius it's a POSIX call, you'd need to check the documentation
 
 
2 hours later…
5:47 PM
It's actually insightful.
 
6:11 PM
@thecoshman I love Kotlin's inline functions and non-local returns:
fun lookup(name: String): Symbol? {
    allScopes.asReversed().forEach { scope ->
        scope.get(name)?.let { symbol -> return symbol }
    }
    return null
}
 
@fredoverflow Where's the inline function? You mean the way syntax it let's you use for things like .foreach{}?
 
@thecoshman forEach is an inline function, which enables the non-local return.
 
ah i see
 
return symbol returns from lookup, not from forEach.
 
6:29 PM
Noob question..

constexpr unsigned char x = 200; // mov byte ptr [rbp - 3], -56

why it is overflowing? is it actually an overflow?
 
6:42 PM
@Explorer_N Assembly language numerals have no type, so there is no difference between 200 and -56, both are represented as 11001000.
 
thanks fred! I still couldn't wrap why/how the literal 200 turned into -56(which is negative), if i make the statement as "x=127" then in assembly it will stay as 127
@fredoverflow
 
@Explorer_N Did you notice how the numbers are exactly 256 apart? That's because for unsigned numbers, bit #7 has a value of 128, whereas for signed numbers, it has a value of -128.
That's why -1 looks the same as 255 in binary; they're 256 apart.
Of course this only holds for bytes.
For 32 bit numbers, it's not bit #7 that's special, but bit #31
 
7:00 PM
@fredoverflow, in my case the byte is unsigned right? so I can represent 0 to 2^8 -1 values which is 0 to 255..why i should worry about #7? but you are basically saying assembly don't give a thing about types(sign/unsigned)...it can represent values in whatever ways it feels comfortable?
 
7:10 PM
@Explorer_N A byte is just 8 bits. How those 8 bits are interpreted is up to the machine instructions. For example, add, sub and mul work the same for signed and unsigned, but division needs two different instructions, idiv and udiv or something (it's been too long to remember the exact names).
 
ok.
 
 
2 hours later…
9:18 PM
The sad fact of wearing brightly coloured shoes in the mud for 5 minutes because it was a good idea back then spending 15 minutes at home trying to get the mud off and not able.
But I still love nature and wildness, partly because it constantly reminds me how much humans have devoluted in a way - furless, mostly without any skill to survive in the wildness where money can buy you nothing (unless you have reception, then maybe it can buy you a helicopter ride).
Reminds you how humans are like an in an ant hill - once removed, almost not able to survive. We live in an artificial world, far removed from true nature.
 
9:52 PM
you're wrong about that
we just changed nature.
 
Very small part of nature, small part of this earth even - consider 71 percent of the Earth's surface is covered by ocean and we have only gone so far out or inside earth.
 
71% of the Earth's surface is covered by ocean where we hunt fish to extinction?
clearly we cannot survive there
we have by far the largest range of any animal- the entire surface plus air plus Earth orbit
 
10:11 PM
If you ever swim in the ocean you would know that we have not hunt fish into extinction.
 
we are fishing many species to extinction
 
Yes, except there are many many more species, some people don't even know existed, especially those that survive in the deep sea.
 
I don't really see how that changes the point
we went to the ocean, we survived there despite not being adapted for it at all, and we took whatever we wanted
hardly a lack of ability to survive
 
10:38 PM
@fredoverflow idiv, udiv, we all div
 
10:53 PM
I'm doing a winAPI project, and would like to make an up-down control editable exclusively using the arrow buttons, not by typing into the edit field. Is the proper way to do this to prevent the edit from responding to the WM_ACTIVATE message somehow?
 
@AlexKindel Why not post a question on SO, with minimal code included?
also, hi all
also, bye all
 
It never seems like the questions I have qualify as "good enough" to post there, but I guess I could.
 

« first day (3039 days earlier)      last day (1913 days later) »