JLinX – Blog

Weblog von Jan Linxweiler

How to Install boost on OS X

Filed under: Apple & Mac OS X,Development — Jannis at 11:19 pm on Friday, December 12, 2008

Get boost source files from boost.org.

  • cd path/to/boost_1_37_0
  • ./configure
  • sudo make install

Boost libraries and header files will be installed to /usr/local/lib and /usr/local/include.

OS X Run Shell Scripts From Finder

Filed under: Apple & Mac OS X,Linux — Jannis at 9:40 pm on Sunday, November 23, 2008
  1. Rename the shell script extension from .sh to .command
  2. Make the file executable: chmod +x file.command
  3. Wherever you put the file, it will run with your home directory as the current working directory. To get around this, use the following line:
    cd “`dirname “$0″`”

How to Make MacBook and MacBook Pro Hibernate

Filed under: Apple & Mac OS X,Software — Jannis at 7:42 pm on Sunday, November 23, 2008

See Make my MacBook Pro Hibernate for details.

Use SmartSleep to configure your MB.

How to Search for File Contend in Specific Files

Filed under: Apple & Mac OS X,Linux — Jannis at 9:16 pm on Thursday, November 20, 2008

find . -iname “*.cpp” -print | xargs grep “main(” -s

-s = silent – no error messages

Mac Tricks And Tips

Filed under: Apple & Mac OS X,Blogs & Links,Internet — Jannis at 8:23 pm on Wednesday, November 19, 2008

Find Mac Tricks And Tips here

Cocoa Coding – Cocoa lernen Schritt für Schritt

Filed under: Bücher,Cocoa,Development — Jannis at 11:33 am on Tuesday, November 18, 2008

http://cocoa-coding.de/

Kostenlose deutsche Onlinelektüre zum Erlernen von Cocoa.

 

[tags]: Cocoa, ebook, development[/tags]

Delay Load CUDA Runtime Library DLL

Filed under: Development — Jannis at 6:29 pm on Monday, November 17, 2008

#include < windows.h>
#include <delayimp.h>

int cudaDetect()
{
// Try to load imports from NVIDIA runtime DLL
// If this is not possible then there’s no compatible driver installed
__try
{
if( FAILED( __HrLoadAllImportsForDll( “cudart.dll” ) ) )
  return 0;
}
__except( EXCEPTION_EXECUTE_HANDLER )
{
return 0;
}
return 1;
}

  • Add “/DELAYLOAD:cudart.dll” to linker command line
  • Add Dependency to “delayimp.lib”
[tags]: CUDA, C++, Windows, Development[/tags]

Model View Presenter (MVP) – Tips from trenches (TFT)

Filed under: Development,Patterns,Software Engineering — Jannis at 4:27 pm on Thursday, November 13, 2008
  • Model View Presenter (MVP) – Tips from trenches (TFT) – Working with HttpContext (Part 2)
  • Model View Presenter (MVP) – Tips from trenches (TFT) – Base types(Part 1)
  • Model View Presenter (MVP) – Tips from trenches (TFT) – Announcement
  •  

    [tags]: MVP, Patterns[/tags]

    Inside the Sausage Factory

    Filed under: Development,Patterns,Software Engineering — Jannis at 3:21 pm on Thursday, November 13, 2008

    Inside the Sausage Factory: PART 01 (Preamble)
    Inside the Sausage Factory: PART 02 (Buy vs. Build?)
    Inside the Sausage Factory: PART 03 (_DD)
    Inside the Sausage Factory: PART 04 (Feature Driven Development)
    Inside the Sausage Factory: PART 05 (Ranking Features)
    Inside the Sausage Factory: PART 06 (Data by Design)
    Inside the Sausage Factory: PART 07 (Refining the Data Model)
    Inside the Sausage Factory: PART 08 (Scripting the Database)
    Inside the Sausage Factory: PART 09 (Layers and Foundations)
    Inside the Sausage Factory: PART 10 (Choosing The Vietnam of Computer Science…on purpose!)
    Inside the Sausage Factory: PART 11 (Dynamic Data Transfer Layer)
    Inside the Sausage Factory: PART 12 (UI Mockup)
    Inside the Sausage Factory: PART 13 (Data Access Design)
    Inside the Sausage Factory: PART 14 (One-liners: the power of libraries)
    Inside the Sausage Factory: PART 15 (Strategies for dynamic, ad-hoc run-time queries)
    Inside the Sausage Factory: PART 16 (burn-down rates — reality-check!)
    Inside the Sausage Factory: PART 17 (Approach to testing the DAL)
    Inside the Sausage Factory: PART 18 (Building Data-dependent Unit Tests)
    Inside the Sausage Factory: PART 19 (Coding the Data-dependent Unit Tests)
    Inside the Sausage Factory: PART 20 (Detour to fix NDbUnit Foreign Keys)
    Inside the Sausage Factory: PART 21 (On Model-View-Presenter Patterns)
    Inside the Sausage Factory: PART 22 (Mocking the View)
    Inside the Sausage Factory: PART 23 (Detour…derailed by CIFactory)
    Inside the Sausage Factory: PART 24 (NAnt MbUnit task filter detour)
    Inside the Sausage Factory: PART 25 (Arrested by an FxCop)
    Inside the Sausage Factory: PART 26 (Building The Dumb View)

     

    [tags]: MVP, DTO, Patterns, DAL[/tags]

    Tagging in WordPress

    Filed under: Internet — Jannis at 12:21 pm on Thursday, November 13, 2008

     

    [tags]: WordPress, bogging[/tags]
    « Previous PageNext Page »