« first day (2117 days earlier)      last day (739 days later) » 

4:06 AM
stupid question, how to use std::numeric_limits<float>::epsilon?
float epsilon = std::numeric_limits<float>::epsilon;
I get a value of type float (*)() noexcept cannot be use to initalizean entity of type float
 
4:20 AM
epsilon is a function that returns a value, so you'd want: float epsilon = std::numeric_limits<float>::epsilon();
 
ah thanks :)
 
 
2 hours later…
AAB
6:33 AM
Hi
how do libraries pick/use ssl libraries?
is using ldconfig to pick a specific version of library a bad idea?
 
 
3 hours later…
9:30 AM
most people probably just use "-lssl" and let the distro decide or statically link whichever version they need
though statically linking is obviously problematic for trying to pickup on the distros installed root cert s
 
AAB
9:50 AM
well I have odd problem where say I remove the library from current directory it works
but if place the .so in same directory it throws an error
:|
I ran ldd and am not too sure
It says it uses the .so from the directory but works fine even no .so is present I am assuming it is picking the .so from /usr/lib
 
10:40 AM
it loads the *.so from the same directory as the executable, that's kind of unusual for liunx
did you add the current directory to the LD_LIBRARY_PATH
 
AAB
Nope
 
or add that directory to the RPATH?
 
AAB
if I run ldd I can see the target in binary
 
and yeah, if the rpath target is not there it will search elsewhere
 
AAB
I am not setting anything
anychance when the bnary was built a default location for search is specified?
ldd returns the location for that library
 
10:44 AM
yeah, that's what rpath during linking does, right? It sets a specific search path for a library
 
AAB
:| i didnt not know what rpath is till now just checked and saw you can pass it to gcc/linker
:|
I guess that explains it
still its odd
2 way to run the binary
If I remove the library from the current directory and run it manually as bin/<target> it fails
but if its called by the program as per workflow it works fine
Are you the same Petr?
:P
well from the looks of it our library is old and causing the issue moving out fixes the problem
as now the binary uses the latest system library
I wonder why we are even using the old library I mean almost all linux system will come with an updated one
 
11:06 AM
Hello
i am using this code to take a series of screen shot using desktop duplication api.
The code is only for a single shot.
Thus I am looping over it.
However looping the entire code gives fps of 3-4. So I am not looping over the declarations and stuff.
I am using the code in this question to see which code to loop over and which not to.
4
Q: DirectX Screen Capture - Desktop Duplication API - limited frame rate of AcquireNextFrame

Aaron GermuthI'm trying to use Windows Desktop Duplication API to capture the screen and save the raw output to a video. I'm using AcquireNextFrame with a very high timeout value (999ms). This way I should get every new frame from windows as soon as it at has one, which naturally should be at 60fps anyway. I ...

However there is a problem.
hr = lDesktopResource->QueryInterface(IID_PPV_ARGS(&lAcquiredDesktopImage));
this line only executes once
On the second loop it breaks.
ie. 2nd executes find until it hits this line, after which the program terminates automatically.
Commenting this line out means 2nd loops works, however the image generated is black.
hr = lDesktopResource->QueryInterface(&lAcquiredDesktopImage); I have tried this
It does not remove the issue
I have looked into other similar codes like this
But this code does not work either
it is suppose to do a screen capture of 10 seconds, however the program terminates immediately.
The output file cant be opened.
 
 
1 hour later…
12:38 PM
Have you considered looking at the FFMPEG source?
or OBS?
both of which do video capture?
 
1:12 PM
he was already linked to the relevant OBS parts multiple times
 
Anybody an idea in here how one can access NOR flash memory connected via QSPI on Linux?
I'd expecte one of the entries under /dev to be the memory but not sure which one
 
1:35 PM
highly unlikely?
most flash memory doesn't store data in the way you're used to, they usually store things like checksums etc.
 
 
2 hours later…
3:22 PM
@Mgetz yes, I have. But I cant figure out the relevant part in 2500 line of code.
Where exactly are frames generated ?
There are no comments which explain the code either.
 
FWIW commenting code is generally a bad thing in many cases because it can obsfucate or mislead later developers
you're better off just reading the code and spending time to learn how it works
you're better off with self documenting code
and FWIW it looks like OBS uses a window hook to know when you grab the back buffer, something you're probably missing because you're trying to grab the buffer toon soon after the first present
 
3:41 PM
Hi. Is there a way to get all the unversioned exported symbols of dynamic/shared library (on linux)? And what are the precise rules for symbol resolution when there are two available symbols from two separate shared libraries one versioned foo@libA_1.0 and another foo@libB_2.0?
 
@Mgetz Adding a Sleep(100) in the loop does not work.
 
no crap, also please don't use ping replies when not necessary
the frame time may or may not be 100
also you may have to reconstruct your capture
either way it's not safe to capture until after the DXGI application has called present
 
What do you mean " not safe"? It can break my computer? reconstructing capture every loop works but drops fps to 3-4.
 
I mean that the target app isn't ready
you've already asked for a back buffer and gotten one
you need to wait until the target app says it has a new back buffer for you or you're doing too much work
 
 
4 hours later…
8:11 PM
@Mgetz I have a blob which is the application I am trying to program. So I think I should be able to "$dd if=myBlob of=/dev/something" it...
as this blob already has the correct format
 
what you want is a block device... but that doesn't really work without an FS
 
Hmm it should work though, cf this: shorturl.at/eCD48
sorry for this cryptic link, just trying not to dox myself here...
it is a link to a pdf datasheet
As you will see in chapter 6.1 uboot is already part of the nor flash and based on some other docs I found somewhere I think I should be able to program an mcu's application into that flash as well
The corresponding carrier board's documentation also states "QSPI preprogrammed with an image" (shorturl.at/gsyC1 chapter 6.16.3). WHich also makes me believe I should be able to put an entire application in there, not just some bootloader
btw, I m a fan of Wendell since many years hehe. Interesting and clever guy :)
just for info, the above links expire in 15 minutes
Must admit this video about nand is pretty wild
 

« first day (2117 days earlier)      last day (739 days later) »