Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / iolanguage_CMakeLists_disable_broken_addons_changes.diff
Created March 3, 2011 12:20
The build with mingw broke when using the original addons/CMakeLists.txt file, so I simply disabled the addons where the error appeared in the build log (thanks to cmake)
--- E:\temp\stevedekorte-io-a0187b3\addons\CMakeLists_original.txt 2011-03-03 12:06:38 +0000
+++ E:\temp\stevedekorte-io-a0187b3\addons\CMakeLists.txt 2011-03-03 12:11:06 +0000
@@ -73,7 +73,7 @@
add_subdirectory(MySQL)
#add_subdirectory(NetworkAdapter)
add_subdirectory(NotificationCenter)
-add_subdirectory(Oauth) # OAuth should no longer break CMake configuration on Windows now.
+#add_subdirectory(Oauth) # OAuth should no longer break CMake configuration on Windows now.
#add_subdirectory(ODE) # XXX: Can't meet dependencies
#add_subdirectory(ObjcBridge) # XXX: Broken for me -- Objective-C 2.0 not supported
@573
573 / subversive_eclipse_helios_notes.txt
Created March 3, 2011 13:53
Eclipse MPC in Helios Classic Bundle
I have the classic bundle setup of Eclipse Helios installed. Subversive (as well as m2eclipse, which I also use frequently) is best installed from the so called Eclipse Market Place. For the latter which there is no client bundled with the Classic version of Helios (http://marketplace.eclipse.org/marketplace-client-intro). You need to install it first (Use Update manager, choose Helios update site and search with the filter "EPP"), it comes with the "EPP Common Package Feature" (http://www.eclipse.org/forums/index.php?t=msg&goto=640267&S=4d0e4463e1736fff13bda0dd94c9b52d#640267).
When you re-started Eclipse, you should already be able to use the Market Place Client. There is one minor pitfall for the Subversive installation, it will complain about missing connectors, you should proceed on the according dialog field (ignoring the warning), because when re-started Eclipse once again after installation of Subversive, you will either be presented another dialog to install the required Connectors automatically (ht
@573
573 / env_var_win32_purpose.json
Created March 4, 2011 13:51
Listing env vars I currently set and their purpose (control panel applet settings variant)
{
"configuration": "env-vars",
"where-set": "Windows System Control Panel Applet",
"user-env": [
{
"key": "PYTHONPATH",
"value": "e:\test\mapnik-0.7.1\python\2.6\site-packages;C:\Dokumente und Einstellungen\username\Anwendungsdaten\Python26\lib\site-packages",
"purpose": "Enable per user install of mapnik bindings package"
},
{
@573
573 / dng_validate_cpp_changes.diff
Created March 22, 2011 15:23
Changes applied to dng_validate.cpp to prepare for csv output of r-, g- and b-values. Applies to dng_sdk version 1.3 from Adobe.
--- E:\temp\dng_sdk_1_3\dng_sdk\source\dng_validate.cpp_original 2009-06-22 13:07:00 +0000
+++ E:\temp\dng_sdk_1_3\dng_sdk\source\dng_validate.cpp 2011-03-22 15:25:46 +0000
@@ -63,6 +63,7 @@
static dng_string gDumpStage3;
static dng_string gDumpTIF;
static dng_string gDumpDNG;
+static dng_string gDumpTXT;
/*****************************************************************************/
@573
573 / dng_image_writer_cpp_changes.diff
Created March 22, 2011 15:29
Changes applied to dng_image_writer.cpp to prepare for csv output of r-, g- and b-values. Applies to dng_sdk version 1.3 from Adobe.
--- E:\temp\dng_sdk_1_3\dng_sdk\source\dng_image_writer.cpp_original 2009-06-22 13:07:00 +0000
+++ E:\temp\dng_sdk_1_3\dng_sdk\source\dng_image_writer.cpp 2011-03-22 15:28:09 +0000
@@ -2960,6 +2960,16 @@
}
+
+/*****************************************************************************/
+
+void dng_image_writer::WriteTXT (dng_host &host,
@573
573 / dng_image_writer_h_changes.diff
Created March 22, 2011 15:32
Changes applied to dng_image_writer.h to prepare for csv output of r-, g- and b-values. Applies to dng_sdk version 1.3 from Adobe.
--- E:\temp\dng_sdk_1_3\dng_sdk\source\dng_image_writer.h_original 2009-06-22 13:07:00 +0000
+++ E:\temp\dng_sdk_1_3\dng_sdk\source\dng_image_writer.h 2011-03-22 15:30:50 +0000
@@ -1015,7 +1015,15 @@
dng_stream &stream,
const dng_image &image,
uint32 fakeChannels = 1);
-
+
+ /// Write a dng_image to a dng_stream in PPM format (P3 only).
+ /// \param host Host interface used for progress updates, abort testing, buffer allocation, etc.
@573
573 / Better msysgit.markdown
Created March 23, 2011 15:29
The default msysgit sh exports the TERM variable as dumb, resulting in complicated command line handling

Instead of

%comspec% /c h:\Git\bin\sh.exe --login -i

try to run it with:

%comspec% /c h:\Git\bin\rxvt.exe -e /bin/sh --login -i

And set the environment accordingly, e. g. in .bashrc:

@573
573 / gist:1956800
Created March 2, 2012 08:34
Install the nokogiri xml module on a rubyinstaller based setup in win32 (history of commands issued at my cmd.exe prompt to achieve this)
:: First installed devkit from rubyinstaller page to E:\Programme\DevKit
:: Then installed Ruby193 from rubyinstaller page to E:\Programme\Ruby193
:: opened cmd.exe prompt
pushd E:\Programme\DevKit
set PATH=E:\Programme\Ruby193\bin;%PATH%
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
gem install rdiscount --platform=ruby
ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"
@573
573 / gist:1957162
Created March 2, 2012 09:28
building boost libraries (boost::python, -test, -filesystem, -exception etc.)
:: Opened a cmd.exe prompt from Visual Studio Express (advantage environment is set accordingly)
pushd K:\build-site-dependencies\boost_1_49_0\tools\build\v2
bootstrap.bat
.\b2.exe --prefix=K:\build-site-dependencies\boost_1_49_0 install
pushd K:\build-site-dependencies\boost_1_49_0
set PATH=K:\build-site-dependencies\boost_1_49_0\bin;%PATH%
b2 --show-libraries
b2 --build-dir="K:\build-site-dependencies\boost_1_49_0\built" --build-type=complete toolset=msvc python=2.6 --with-python --with-test --with-filesystem --with-exception stage
@573
573 / gist:2199620
Created March 25, 2012 20:41
Patch for gtk2hs-0.10.1/Makefile.in
diff U3 E:/test/Gg/gtk2hs-0.10.1/Makefile.in E:/test/Gg/gtk2hs-0.10.1/Makefile.patched
--- E:/test/Gg/gtk2hs-0.10.1/Makefile.in Wed Apr 29 04:27:24 2009
+++ E:/test/Gg/gtk2hs-0.10.1/Makefile.patched Thu Nov 05 09:19:28 2009
@@ -4183,12 +4183,12 @@
@WIN32_INSTALLER_FALSE@ $(SED) -e 's|$${pkglibdir}|$(pkglibdir)|g' \
@WIN32_INSTALLER_FALSE@ -e 's|$${modules}|$(call getModules,$(pkgname))|' \
@WIN32_INSTALLER_FALSE@ $(call getVar,$(pkgname),CONFIG) \
-@WIN32_INSTALLER_FALSE@ > $(DESTDIR)/$(pkglibdir)/$(notdir $(call getVar,$(pkgname),CONFIG)).tmp; \
-@WIN32_INSTALLER_FALSE@ mv $(DESTDIR)/$(pkglibdir)/$(notdir $(call getVar,$(pkgname),CONFIG)){.tmp,} ; \
+@WIN32_INSTALLER_FALSE@ > $(pkglibdir)/$(notdir $(call getVar,$(pkgname),CONFIG)).tmp; \