Lounge<C++>

Today we're daydreaming about C++26 reflection
Aug 17, 2019 14:14
Aug 17, 2019 14:03
It should create a result folder under examples with some images, but it's not doing that for me here.
Aug 17, 2019 14:03
hey, if someone here has some time, could you try building this and the examples to see if it works for you? github.com/math-fehr/fast-wfc
Apr 29, 2018 21:31
I think I will scratch this and just hardcode it...
Apr 29, 2018 21:31
I thought there was something I could put in $@ instead of mylib32.o
Apr 29, 2018 21:29
I just wanted to know the proper way to do it in the Makefile
Apr 29, 2018 21:29
oh yeah, the flag is -m32
Apr 29, 2018 21:24
how do I do that ?
Apr 29, 2018 21:24
but I want to add a 32 between mylib and .o
Apr 29, 2018 21:23
I want to generate a 32 bit build of it
Apr 29, 2018 21:23
my problem is that my file is just mylib.cpp
Apr 29, 2018 21:23
libmylib.so: mylib.o
$(LD) $(LDFLAGS) -shared -o $@ $^

libmylib32.so: mylib32.o
$(LD) $(LDFLAGS) -shared -m32 -o $@ $^

%.o: %.cpp
$(CXX) $(CXXFLAGS) $(DEFINES) -o $@ -c $^
Apr 29, 2018 21:21
I need help with a makefile
Apr 29, 2018 21:21
hello
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jul 8, 2017 17:35
does someone know if there is a library for a fake virtual keyboard that works on mobile?
Jul 8, 2017 17:28
uhm... ok... Will see if there is an js mobile keyboard to use in place
Jul 8, 2017 17:27
@ssube just plain javascript...
Jul 8, 2017 17:27
@ssube well, but how do I make it show for the first time?
Jul 8, 2017 17:23
?
Jul 8, 2017 17:16
does anyone know if there's a way to keep the keyboard always showing once my page is loaded?
Jul 8, 2017 17:15
I want to make a typing game in js for mobile
Jul 8, 2017 17:15
hey
Nov 9, 2016 22:14
I was hoping there was a better way, maybe...
Nov 9, 2016 22:14
@KevinB yeah, I already did that. Searching Stackoverflow has an unaccepted answer with ugly Date(), counting milliseconds and timeout is also suggested elsewhere
Nov 9, 2016 22:12
No one has no idea...
Nov 9, 2016 22:12
so...
Nov 9, 2016 22:03
I found that the context of Web Audio API has a similar currentTime, but it's useless since it's relative to when the context is created. Is there anyway to get the currentTime relative to a source buffer ?
Nov 9, 2016 22:02
When I create an Audio(), it contains a currentTime with the current time of the playing audio.
Nov 9, 2016 22:01
hey, does anyone here know a bit of Web Audio API ?
Sep 13, 2015 21:59
@copy thanks! If I can't find a way of reading the png file to an array I will try that
Sep 13, 2015 21:55
ok, if I make something I post here..
Sep 13, 2015 21:55
I was curious if there was something that existed and I was unaware
Sep 13, 2015 21:53
yeah, I thinking I'm going to have a long read tonight :P
Sep 13, 2015 21:51
I don't really know the png spec though... I was thinking if there was a known way of doing this or any js lib that just handles indexed png
Sep 13, 2015 21:50
apparently it uses a type of filter that varyies (you can select between two types) and them it uses deflate (en.wikipedia.org/wiki/DEFLATE)
Sep 13, 2015 21:46
the problem is that this is stored compressed, I wanted to read and recover the matrix information
Sep 13, 2015 21:46
so instead of colors, png (color type 3) stores the matrix of number and the pallete, kinda...
Sep 13, 2015 21:45
yey
Sep 13, 2015 21:44
Sep 13, 2015 21:44
it's from wikipedia.. wth
Sep 13, 2015 21:44
Sep 13, 2015 21:44
it works like this
Sep 13, 2015 21:44
Sep 13, 2015 21:44
my internet is to slow today...
Sep 13, 2015 21:40
wait a second
Sep 13, 2015 21:39
no, translate to a matrix of numbers 1 to 256 or 0 to 255
Sep 13, 2015 21:39
And was thinking that the easiest way to create levels would be if I had a image to show and a overlay image with the colors representing the active zones
Sep 13, 2015 21:38
I want to make a point and click game using js
Sep 13, 2015 21:38
Like a matrix in matlab
Sep 13, 2015 21:37
I want to get this png read by js somehow