Skip to main content

Posts

Showing posts with the label windows

Trying to fix line-endings with git filter-branch, but having no luck

I have been bitten by the windows/linux line-ending issue with git. It seems, via github, msysgit, and other sources, that the best solution is to have your local repos set to use linux-style line endings, but set core.autocrlf to true. Unfortunately, I didn't do this early enough, so now every time I pull changes the line endings are borked.

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost . The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local , site2.local etc, and have them all resolve to localhost , while Apache serves a different site accordingly.

C++ - inheriting ostream crashes on android but not windows

I have implemented a simple ostream and streambuf class. For some reason, it crashes when I try to instantiate my AndroidLogOStream object. Note: I have stlport_static in my Application.mk class AndroidLogStreamBuf : public std::streambuf { public: inline AndroidLogStreamBuf() : std::streambuf() { //std::cout << "asdfg"; } inline ~AndroidLogStreamBuf() { } }; class AndroidLogOStream : public std::ostream { public: inline AndroidLogOStream() : std::ostream(&mBuf) { } inline ~AndroidLogOStream() { } private: AndroidLogStreamBuf mBuf; }; It's barebones, and it runs fine on windows. It compiles fine on android, but it crashes for some reason. The last line it tries to execute is in _streambuf.c:46: template <class _CharT, class _Traits> locale basic_streambuf<_CharT, _Traits>::pubimbue(const locale&

Java - Get first and last name of user

Here is my situation. I am writing a program that will store a database. Currently, the way of identifying the user is by their computer user name. I am very desperate here, so any ideas will work. I am looking for ANY method (doesn't always need to work) for BOTH OSX and Windows computers that will somehow fetch the user's first and last name. Thank you all in advance!

Getting the windows Command prompt back

Is there a way we can get Command prompt of windows 7 back? In linux we append "&" ? I actually run a java program which will listen on a port continously. It is working in lunux as it gives the terminal back but "&" is not working in the windows cmd. Thanks

Java deploy webservice ejb to Windows Weblogic

i have a problem with deploying webservice jar file to Weblogic. If i deploy on same version WL linux machine works ok. If i deploy to windows machine it gives error msg NoClassDefFound. It cant find class i defined in webservices.xml file under handler-chain tags. its like com.something.SoapBodyHandler. On linux, handler is working. If i deploy to windows without that tag it works. Its like it couldn't find com/something/SoapBodyHandler