mingw cross compile woe

cd soxr-0.1.0-Source
depbase=`echo bs2bstream.o | sed ‘s|[^/]*$|.deps/&|;s|\.o$||’`;\
i686-w64-mingw32-gcc -DPACKAGE_NAME=\”libbs2b\” -DPACKAGE_TARNAME=\”libbs2b\” -DPACKAGE_VERSION=\”3.1.0\” -DPACKAGE_STRING=\”libbs2b\ 3.1.0\” -DPACKAGE_BUGREPORT=\”boris_mikhaylov@users.sourceforge.net\” -DPACKAGE=\”libbs2b\” -DVERSION=\”3.1.0\” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=0 -Dmalloc=rpl_malloc -DHAVE_STRRCHR=1 -I. -g -O2 -MT bs2bstream.o -MD -MP -MF $depbase.Tpo -c -o bs2bstream.o bs2bstream.c &&\
mv -f $depbase.Tpo $depbase.Po
i686-w64-mingw32-gcc -DPACKAGE_NAME=\”libbs2b\” -DPACKAGE_TARNAME=\”libbs2b\” -DPACKAGE_VERSION=\”3.1.0\” “-DPACKAGE_STRING=\”libbs2b 3.1.0\”” -DPACKAGE_BUGREPORT=\”boris_mikhaylov@users.sourceforge.net\” -DPACKAGE=\”libbs2b\” -DVERSION=\”3.1.0\” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=0 -Dmalloc=rpl_malloc -DHAVE_STRRCHR=1 -I. -g -O2 -MT bs2b.lo -MD -MP -MF .deps/bs2b.Tpo -c bs2b.c -o bs2b.o
i686-w64-mingw32-g++ -DPACKAGE_NAME=\”libbs2b\” -DPACKAGE_TARNAME=\”libbs2b\” -DPACKAGE_VERSION=\”3.1.0\” “-DPACKAGE_STRING=\”libbs2b 3.1.0\”” -DPACKAGE_BUGREPORT=\”boris_mikhaylov@users.sourceforge.net\” -DPACKAGE=\”libbs2b\” -DVERSION=\”3.1.0\” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=0 -Dmalloc=rpl_malloc -DHAVE_STRRCHR=1 -I. -g -O2 -MT bs2bclass.lo -MD -MP -MF .deps/bs2bclass.Tpo -c bs2bclass.cpp -o bs2bclass.o
/bin/sh ../libtool –tag=CXX –mode=link i686-w64-mingw32-g++ -g -O2 -lm -version-info 0:0:0 -o libbs2b.la -rpath /Users/packrd/dev/ruby/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib bs2b.lo bs2bclass.lo
mkdir .libs
libtool: link: warning: undefined symbols not allowed in i686-w64-mingw32 shared libraries
i686-w64-mingw32-ar cru .libs/libbs2b.a bs2b.o bs2bclass.o
i686-w64-mingw32-ranlib .libs/libbs2b.a
creating libbs2b.la
(cd .libs && rm -f libbs2b.la && ln -s ../libbs2b.la libbs2b.la)
/bin/sh ../libtool –tag=CC –mode=link i686-w64-mingw32-gcc -g -O2 -lsndfile -o bs2bconvert.exe bs2bconvert.o libbs2b.la
/bin/sh ../libtool –tag=CC –mode=link i686-w64-mingw32-gcc -g -O2 -o bs2bstream.exe bs2bstream.o libbs2b.la
i686-w64-mingw32-gcc -g -O2 -o bs2bstream.exe bs2bstream.o ./.libs/libbs2b.a
./.libs/libbs2b.a(bs2b.o): In function `bs2b_open':
/Users/packrd/dev/ruby/ffmpeg-windows-build-helpers/sandbox/win32/libbs2b-3.1.0/src/bs2b.c:225: undefined reference to `rpl_malloc’
collect2: error: ld returned 1 exit status
make[1]: *** [bs2bstream.exe] Error 1
make[1]: *** Waiting for unfinished jobs….
i686-w64-mingw32-gcc -g -O2 -o bs2bconvert.exe bs2bconvert.o /Users/packrd/dev/ruby/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/libsndfile.a ./.libs/libbs2b.a
./.libs/libbs2b.a(bs2b.o): In function `bs2b_open':
/Users/packrd/dev/ruby/ffmpeg-windows-build-helpers/sandbox/win32/libbs2b-3.1.0/src/bs2b.c:225: undefined reference to `rpl_malloc’
collect2: error: ld returned 1 exit status
make[1]: *** [bs2bconvert.exe] Error 1
make: *** [all-recursive] Error 1






cheap desalination process

Basically, my process would involve a “solar oven” style reflective mirror array that heats either a pot with water, or a desalination system that captures water as it evaporates from the heat.
Some kind of like “algae” that you can grow in a cup, and that can be/become your food source…yes! :)

some kind of…sieve for removing salt from salt water?
desalination through evaporation by using solar cooking oven? yes LOL.
http://www.utexas.edu/news/2013/06/27/chemists-work-to-desalt-the-ocean-for-drinking-water-one-nanoliter-at-a-time/ with a hand powered crank somehow?
or solar that hits “the top” of water a lot?
possibly something that like…you can just dump water into and come back in a day and a half or something? Oh baby LOL.
http://water.usgs.gov/edu/drinkseawater.html close LOL.
this thing needs a contest! :)
some kind of sponge that soaks up the salt?
forward osmosos:
still too expensive…

oracle java ojdbc setBytes is using twice the size

we ran into this, it was in the end we were reading (“getBytes”) from a varchar2 and writing to a varchar2 when one of them should have been RAW or something like that…different column types…


Caused by: java.sql.SQLException: ORA-12899: value too large for column “DPS_TEST”.”DELETEDSTREAM”.”MD5″ (actual: 64, maximum: 36)


        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)

        at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)

        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)

        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)

        at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)

        at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)

        at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1008)

        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)

        at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)

        at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3530)

        at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)

postgres reusing sequences in error duplicates

This happened:

wake up today, some groups look screwed up, they’re using “duplicate sequences” in their systems, what the heck? how could a sequence be reused? [postgres]

Well, looking back, looks like the database server box was rebooted about the time this occurred.  In my mind this means a “bad shutdown” of postgres [hard kill?] so it didn’t have a chance to serialize the latest seuqence values to disk, so when it came up, it reused some sequences. though by default they are atomic, and save, never reused [when boxes rebooted correclty]. scary! [not sure if it’s postgres fault here].

Hunch as to real fix: gracefully shut down postgres *before* rebooting boxes [shouldn’t it automatically do this for us anyway though? through some init.d shutdown system? I dunno].

digitalocean how to get free backups/long term backups

basically, you can backup files “for free” by creating a new box, then copy the files out to it, shut it down, snapshot it, destroy it.  the snapshot has your files on it “free backup space!” LOL

The other option if you want longer term backups for your droplet is to take one of your weekly backups, create a box with it, snapshot it, destroy it.  Long term backup created!

pipelight to watch amazon instant video ubuntu linux

OK I think you can do this with normal flash, but if you want to go the pipelight route:



$ sudo pipelight-plugin –enable silverlight

then adjust your user-agent, like

Name/abc:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1

if you’re using https://addons.mozilla.org/en-US/firefox/addon/user-agent-overrider/

now you can use silverlight.  sadly it doesn’t seem to support/allow for HD streaming “no HDCP support found” or the like.


ref here

maybe can/should disable your flash plugin, and/or set your “web player preferences” to be silverlight?