Apple's reachability application crashes at runtime after successful compile. Given the extent to which these routines are implemented, has anyone discovered the correction for this?
Thanks ...
I'm trying to make a test for checking whether a sys.argv input matches the regex for an IP address...
As a simple test, I have the following...
import re
pat = re.compile("\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}")
test = pat.match(hostIP)
if test:
print "Acceptable ip address"
else:
print "Unacceptable ip address"
However when I pass random values into it, it returns "Acceptable ip address" in most cases, except when I have an "address" that is basically equivalent to \d+
Any thoughts welcome.
Cheers
Matt
Hello,
Visual Studio C++ 2008
I have downloaded a sample project.
I converted the project from VS 7 to VS 9.
However, when I compile I get this error:
c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory
Under project properties preprocessor definitions. I have WIN32 defined there.
I have never had this error before.
Many thanks for any suggestions,
I'm trying to compile ARCCC (https://sourceforge.net/projects/arccc/) on Ubuntu 9.10, but I'm getting the make error "glib.h: No such file or directory", and the autoconfig script reports that Glib isn't installed. However, I have the libglib2.0-dev package installed, which appears to provide all the glib headers. Is there something missing/wrong with the Ubuntu package, or the Autoconf script incorrect?
What is the correct way to get the Series of a char in PPT 2010.
I tried
PowerPoint.SeriesCollection mySeriesCollection = (PowerPoint.SeriesCollection)
myChart.SeriesCollection(1);
throws the following exception
Exception Type: System.InvalidCastException
Further, What is the correct call in C# to get the series of a chart ?
If I try this way:
PowerPoint.Series mySeries = (PowerPoint.Series)myChart.SeriesCollection.Item(1);
I get the following compile error :
error CS0119: 'Microsoft.Office.Interop.PowerPoint.Chart.SeriesCollection(object)'
is a 'method', which is not valid in the given context
hi m very new to java and Linux i have a code which is taken from examples of jcuda.the code is following
import jcuda.CUDA;
import jcuda.driver.CUdevprop;
import jcuda.driver.types.CUdevice;
public class EnumDevices {
public static void main(String args[]) {
//Init CUDA Driver
CUDA cuda = new CUDA(true);
int count = cuda.getDeviceCount();
System.out.println("Total number of devices: " + count);
for (int i = 0; i < count; i++) {
CUdevice dev = cuda.getDevice(i);
String name = cuda.getDeviceName(dev);
System.out.println("Name: " + name);
int version[] = cuda.getDeviceComputeCapability(dev);
System.out.println("Version: " + String.format("%d.%d", version[0], version[1]));
CUdevprop prop = cuda.getDeviceProperties(dev);
System.out.println("Clock rate: " + prop.clockRate + " MHz");
System.out.println("Threads per block: " + prop.maxThreadsPerBlock);
}
}
}
I'm using Ubuntu as my operating system i compiled it with following command
1:-javac -cp /home/manish.yadav/Desktop/JCuda-All-0.3.2-bin-linux-x86_64 EnumDevices
i got following error
error: Class names, 'EnumDevices', are only accepted if annotation processing is explicitly requested
1 error
i don't know what is the meaning of this error.what should i do to compile the program
than i changed the compiling option which is
javac -cp /home/manish.yadav/Desktop/JCuda-All-0.3.2-bin-linux-x86_64 EnumDevices.java
than i got following error
EnumDevices.java:36: clockRate is not public in jcuda.driver.CUdevprop; cannot be accessed from outside package
System.out.println("Clock rate: " + prop.clockRate + " MHz");
^
EnumDevices.java:37: maxThreadsPerBlock is not public in jcuda.driver.CUdevprop; cannot be accessed from outside package
System.out.println("Threads per block: " + prop.maxThreadsPerBlock);
^
2 errors
Now I'm completely confused i don't know what to do?
how to compile this program ?
how to install the jcuda package or how to use it ?
how to use package which have only jar files and .so files and the jar files don't having manifest file ?
please help me
Sometimes when i try to "build"/compile a downloaded source, i get following warning:
ld: warning: directory '/Volumes/Skiiing2/CD/ViewBased/Unknown Path/System/Library/Frameworks' following -F not found
Has anyone else seen this issue?
Hello everyone.
I need to compile the C++ implementation of LZMA (7Z). Does anybody know how to do that? where should I download it from?
Thanks so much in advance.
How can I compile my python module into an executable, and distribute it in a way that doesn't require the user to download all the external Python packages that the module I wrote uses? Aside from that, is there a general guy on packaging and distributing python code? i.e. going from a script/module to someone that's user-friendly and can be run, ideally cross-platform (at least between unix and mac).
thanks.
I am writing a C++/CLI assembly that uses some native DLLs.
During compile I can list them as "assembly link resource" so that the assembly is aware of these dependencies. When I use gacutils, it properly pulls all the native DLLs into GAC and they get properly loaded from GAC.
Now, some of these native DLLs are localized, and have MUI files. How do I get those to be automatically copied to GAC as well?
I was experimenting with Netbeans 6.8 (I'm currently an Eclipse user) because I like having a profiler built into the IDE. It seems that for maven projects, netbeans does a full compile (it invokes process-classes) every time I try to run the project, as opposed to Eclipse, which uses the incremental Java compiler. Is there a way to avoid having netbeans run mvn process-classes every time I want to run the main class?
thanks,
Jeff
Is there a specific Xcode compiler flag that gets set when compiling for iPad?
I want to conditionally compile iPad vs iPhone/iPod Touch code for example:
#ifdef TARGET_IPAD
code for iPad
#else
code for iPhone
#endif
I know there is already TARGET_OS_IPHONE and TARGET_CPU_ARM in TargetConditionals.h but anything that easily and specifically targets iPad?
-Rei
In visual studio or any other IDE, usually there are two build configurations, Debug and Release?
How does the differ? Why sometimes you have compile errors when building in Debug mode, but not when in Release mode, and vice versa?
I am currently get access to a cluster of Unix machines, but they don't have the software I need (numpy, scipy, matplotlib, etc), and I have to install them by myself (I don't have the root permission, either, so commands like apt-get or yast doesn't work).
In the worst case, I have to compile them all from source. Is there any better way to do so? I hear something about Enthought Python and Sage, but not sure what is the best way to do so.
Any suggestion?
Are there any Intel AVX intrinsics library out? I'm looking for something similar as 'sse2mmx.h' header which fall-backs to MMX intrinsics if SSE2 integer intrinsics are not available on compile time. Thus if I had similar library for AVX I could write optimized code for new hardware which would have almost optimal speed in case AVX extension isn't available. Googling didn't help much so far :(
Am using windows xp sp3 on netbook and i need to compile c# programs for learning. I don't have fast computer or fast internet connection or fast money.
Can someone suggest the best way to get me going?
Thanks yous!
I have to use LINQ to SQL and along with it a pure SQL classic query. And this SQL query has the Table from where my data will be generated, but I will not know this Table previously. It will be known in compile time.
So how can I make LINQ understand from what Table I want to make the query?
I have the source for a DLL and I have a compiled version of it lying around somewhere.
If I compile the source it will have a different date to the already-compiled version.
How can I tell whether they are in fact the same and have merely been compiled at different times?
Silly question, but why does the following line compile?
int[] i = new int[] {1,};
As you can see, I haven't entered in the second element and left a comma there. Still compiles even though you would expect it not to.
I have a dlg box as the main window. After a few searches on the we I tried downloading and running the sample the source here:
http://msdn.microsoft.com/en-us/magazine/cc164067.aspx
I get a compile error:
error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CStaticLink::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
1 Cast from base to derived requires dynamic_cast or static_cast
(VS 2008)
The tooltips functionality seems to be a bit of a challenge. Any suggestions on how to get this working are much appreciated.
I have this problem: I want to pass a whole C code from a php textbox onto server and want to compile it with gcc and want the output back on php page. Is it possible?
Sample code:
php page input
<textarea>
#include<stdio.h>
void main()
{
printf("hello world");
}
Compiled on server terminal/shell
php page output:
hello world
Anyone want to share an Xcode project that has MGTwitterEngine in it? Mine won't compile. Are there certain project settings to set? I just made a stock tab bar app for iPhone and added the MGTwitterEngine files. Tons of compiler errors. What am I missing?
Even though Interface Builder is aware of a MyClass, I get an error when starting the application.
This happens when MyClass is part of a library, and does not happen if I compile the class directly in the application target.
According to their documentation, you should use Array hydration rather than record hydration when retrieving data for read-only purposes.
However, this means I have to access the attributes of the retrieved object using arrays and string keys:
$user['Phonenumbers'][0]['number']
instead of the OO style:
$user->PhoneNumbers[0]->number
Now I'm kinda new to PHP, but in other languages I've worked with the 2nd notation would be preferable because typos would be caught at compile time while typos in string literals would not be noticed until runtime. Does this apply to PHP/Doctrine?