As Oracle sues Google over the Dalvik VM it becomes clear, that you cannot implement a Java VM without license from Oracle (EDIT: Matthew Flaschen points out, that the claims of Oracle may not be valid. Anyways we have currently a situation, where Oracle threats VM-implementations.). That may become the death for Open-Source-implementati...
I'm trying to include a partial in a view. Both the partial and the view are in an MVC Portable Area. Here's the code in the view:
<% Html.RenderPartial("Here"); %>
Here's the partial (named Here.ascx and located in the Shared folder of my portable area):
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" ...
I really want to setup a portable php environment. I would need to use CodeIgniter, WAMP or XAMPP with MySQL and carry any projects with me between my computers/laptops. All of this would need to be on a USB flash drive with an editor.
Is this even remotely possible?
Thanks!
...
I'd like to add compile time asserts into the following C++ code (compiled with Visual C++ 9):
//assumes typedef unsigned char BYTE;
int value = ...;
// Does it fit into BYTE?
if( 0 <= value && value <= UCHAR_MAX ) {
BYTE asByte = static_cast<BYTE>( value );
//proceed with byte
} else {
//proceed with greater values
}
The ...
I want to carry one in my flash drive and run it.
Thanks
...
hi,
I'm no linux user (yes, I'm sorry!) and a friend of mine asked me to port his shell script for linux into a batch for windows, because he wants to do the same task there to.
I haven't worked with shell-scrips before and my batch skills are, hmmm, almost not existing, but I would like to try that.
So I would like to ask if there ar...
I have stumbled on a peculiar difference between Solaris 10 sockets and other Linux/*NIX sockets. Example:
int temp1, rc;
temp1 = 16*1024*1024; /* from config, a value greater than system limit */
rc = setsockopt( sd, SOL_SOCKET, SO_RCVBUF, &temp1, sizeof(temp1);
The code above will have rc == 0 on all systems - Linux, HP-UX and AIX ...
Similar to this question, I'd like to limit the execution time of a function--preferably with microsecond accuracy--in C. I imagine that C++ exceptions could be used to achieve a result similar to this Python solution. Though it's not ideal, such an approach is wholly unavailable in plain C.
I wonder, then, how might I interrupt the exe...
I am using several P/Invokes under .NET. However, I want my library to work both in Windows and Linux, preferably with the same binaries.
Since the native library I depend on is available on multiple platforms, I was hoping to just have them along with my managed library's binaries.
Right now I'm using something like this:
[DllImport(...
I want to wrap a website and create an application around it (kind of like the iPhone/iPod Facebook app) and i want the application to be as portable as possible so with a very few modification to the code it can run on pc, mac, iPod, android or any other.
I know that Java is known for it's portability but i dislike it and i don't know a...
I am purchasing a comfortable laptop for development but the only operating system available to me is 64-bit (Win7) , now I am basically aware that 64-bit has 8-byte integers and can utilize more RAM, that is about it.
My programming will vary (C++, sometimes PHP) but would like to know:
Can I build my C++ application to be 32-bit por...
Hey,
I got a list of paths and I need to extract the first element of each path in a portable way,
how would I do that?
['/abs/path/foo',
'rel/path',
'just-a-file']
to
['abs', 'rel', 'just-a-file']
Thanks in advance
Oli
...
I am making a remastered distribution that was at first packed with Sun Java, however I decided I would like Java to run from a folder on the hard drive with my application instead. I see there's a portable Java for Windows - how can I do this with Linux? I haven't tried simply putting the whole folder in there but that seems like an ugl...
Reading the documentation: http://developer.android.com/guide/practices/screens_support.html. I judged that Droid X is a large screen phone, since it's physical dimension is 4.3". But reading/exploring further I'm realizing that large modifier has little to do with screen size.
As there's quoted in documentation:
Note that the dens...
Someone asked me today if it was possible to port a visual basic application to Linux or similar platform, I assumed it was .NET so I suggested to use Mono, but noticed that on their vb support page they only talk about vb 8 (.NET)
Does mono support non-.NET vb? In fact I'm not sure what he is using, I think vb6, I'm not sure of the ver...
I'm writing some code where there are a bunch of simple pure functions that get called a lot. It's perfectly safe if these functions get get optimized to be called less often.
Currently I am using gcc as my compiler and I'm wondering if there is a portable way of doing:
int foo(int) __attribute__ ((pure))
Info about the pure keyword ...
All,
I have been practicing coding problems online. Currently I am working on a problem statement Problems where we need to convert Big Endian <-> little endian. But I am not able to jot down the steps considering the example given as:
123456789 converts to 365779719
The logic I am considering is :
1 > Get the integer value (Since ...
In the Portable Executable format, there is a directory named IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG. Can someone provide a URL with a good explanation of this directory and its real usage? Why do some apps use this feature?
...
I work on an open source portable C++ image compression library. Currently, my API works by exchanging pointers to byte arrays with image data. I would like to support some kind of streaming mode for better performance and memory consumption.
For this, I would like to know if there is an interface or abstract base class (part of the C+...
Due to some messed up legacy code,
I have
$path = [OS specific base DIR name][hardcoded Linux file path]
So on Linux, it is something like
$path = /common/path/to/dir/pathtofile/name.extension
but on Windows it becomes this
$path = C:\path\to\dir\pathtofile/name.extension
Some of the code fails on Windows because it is expectin...