Quantcast
Channel: User vesperto - Stack Overflow
Browsing all 44 articles
Browse latest View live
↧

Comment by vesperto on Android Broadcast Receiver not starting (Kotlin)

Deprecated in favor of...?

View Article


Comment by vesperto on How to generate a QR Code for an Android application?

IF you're generating a QR code for a thermal printer, use Bitmap.Config.ARGB_8888.

View Article

Comment by vesperto on JNI directory structure c and java

dead links dead

View Article

Comment by vesperto on How can I bind serversocket to specific IP?

Using "127.0.0.1" will still spawn an IPv6 server as shown by netstat -letW in adb shell.

View Article

Comment by vesperto on Why does my service always bind to ipv6 localhost...

using server = ServerSocket(8080, 8, InetAddress.getByName("127.0.0.1")) on the device i tried with Android 11 still produces an IPv6 server as shown by netstat -lte (and not a tcp46 connection as seen...

View Article


Comment by vesperto on Can we create a socket connection in native in Android?

Sure, see this

View Article

Comment by vesperto on Android UDP socket sends data only once?

It's a Michelle Dubois socket.

View Article

Comment by vesperto on convert a char* to std::string

Weird how std::to_string() will accept just about any tipe... except char*.

View Article


Comment by vesperto on Makefile that distinguishes between Windows and...

If using cygwin or in a mingw shell, you'd have rm in path and still be in windows.

View Article


Comment by vesperto on Cross compile libcurl for arm-linux-gnueabi-gcc

Where do you get the --host= parameter value from?

View Article

Comment by vesperto on keeping file across android app uninstall/reinstall

@blackapps source for that? It's marked deprecated in the docs.

View Article

Comment by vesperto on How to set up a mirror repo on GitHub

This seems relevant.

View Article

Comment by vesperto on Email validation in C++

No hyphens allowed?

View Article


Comment by vesperto on Alternatives to gettext?

@gili how often do you actually need to "maintain" such a stable tool in such a stable context? Lastest release february 2024.

View Article

How to set character set using ESC/POS?

More specifically, what is the difference between ESC t and ESC R and when should i use them?How does it tie with the character encoding of the byte arrays i may send to the printer?EditAs a...

View Article


Program segfaulting in release version only

I have an executable that is segfaulting in release but not in debug. I assume it's a wrong call to a printf-family function.When running i get this:*** buffer overflow detected ***: ./mybin...

View Article

Answer by vesperto for Program segfaulting in release version only

Well, as it turns out, the original text (not "Some text") took 19 chars plus the %d, which is "always" one digit. Even so, that's 20 chars in a char aCharArr[20], producing a char array that is not...

View Article


Answer by vesperto for GLib.Error: Required gtk+ version 3.20, current...

I've since got it to work on Xenial, but the app doesn't work correctly: the File, Edit, ... menu options don't work, for instance.From my ever-growing notes, i got it to work by compiling...

View Article

GLib.Error: Required gtk+ version 3.20, current version is 3.18 (7)

I have an old program written in Python2 i need to use, but it's not getting along with Ubuntu Xenial's dependencies.I had to manually fetch these in order to get it to...

View Article

upgrading GTK from 3.18 to 3.20 in msys for python 2

I managed to get an old Python 2 app running on Xenial, but the menus aren't working and i've since borked that particular installation (can be recovered i guess). I was told this "used to work in a...

View Article
Browsing all 44 articles
Browse latest View live