i have a string of the format SUCCESS,12:34:56:78:90, i want to separate these two values that are separated by commas into two different strings. how do i do that in gcc using c language.
Hi
What language would I need to use to decompile an swf file automatically on my server, not like a desktop app.
A bit like http://www.showmycode.com/
And could anyone point me in the right direction to get started?
I am relatively new to programming, and have built a few working C++ commandline programs with Xcode in Mac OS X (no dependencies on Mac-only libraries or APIs). My question is:
What is the standard way of packaging and distributing the source code (and possibly compiled binaries)? i.e. Almost all Linux programs seemed to be distributed that a user simply needs to run ./configure && make && make install from the source directory.
Thank you.
I wrote a remote service MyremoteImpl.java and used following command after compiled it.
rmic MyRemoteImpl
I learned that this method suppose to create stub class and a skeleton class but I can only see the stub class, why is that?
The other problem I faced after run rmiregistry I started the service but it gives following error, I doubt I get this error as I'm missing skeleton class?
java.net.MalformedURLException: invalid URL String: Remote Hello
at java.rmi.Naming.parseURL(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at RMIservice.MyRemoteImpl.main(MyRemoteImpl.java:22)
Caused by: java.net.URISyntaxException: Illegal character in path at index 6: Remote Hello
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.rmi.Naming.intParseURL(Unknown Source)
... 3 more
Please help me to solve this, Thanx in advance!!!
I am trying to perform build automation on one of my web application projects built using VS 2008.
The _PublishedWebSites contains two folders: Web and Deploy.
I want TFS 2008 to generate only the deploy folder and not the web folder.
Here is my TFSBuild.proj file:
<Project ToolsVersion="3.5" DefaultTargets="Compile" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets" />
<ItemGroup>
<SolutionToBuild Include="$(BuildProjectFolderPath)/../../Development/Main/MySoftware.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
</ItemGroup>
<ItemGroup>
<ConfigurationToBuild Include="Release|AnyCPU">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>
</ItemGroup>
<!--<ItemGroup>
<SolutionToBuild Include="$(BuildProjectFolderPath)/../../Development/Main/MySoftware.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
</ItemGroup>
<ItemGroup>
<ConfigurationToBuild Include="Release|x64">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>x64</PlatformToBuild>
</ConfigurationToBuild>
</ItemGroup>-->
<ItemGroup>
<AdditionalReferencePath Include="C:\3PR" />
</ItemGroup>
<Target
Name="GetCopyToOutputDirectoryItems"
Outputs="@(AllItemsFullPathWithTargetPath)"
DependsOnTargets="AssignTargetPaths;_SplitProjectReferencesByFileExistence">
<!-- Get items from child projects first. -->
<MSBuild
Projects="@(_MSBuildProjectReferenceExistent)"
Targets="GetCopyToOutputDirectoryItems"
Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform)"
Condition="'@(_MSBuildProjectReferenceExistent)'!=''">
<Output TaskParameter="TargetOutputs" ItemName="_AllChildProjectItemsWithTargetPathNotFiltered"/>
</MSBuild>
<!-- Remove duplicates. -->
<RemoveDuplicates Inputs="@(_AllChildProjectItemsWithTargetPathNotFiltered)">
<Output TaskParameter="Filtered" ItemName="_AllChildProjectItemsWithTargetPath"/>
</RemoveDuplicates>
<!-- Target outputs must be full paths because they will be consumed by a different project. -->
<CreateItem
Include="@(_AllChildProjectItemsWithTargetPath->'%(FullPath)')"
Exclude=
"$(BuildProjectFolderPath)/../../Development/Main/Web/Bin*.pdb;
*.refresh;
*.vshost.exe;
*.manifest;
*.compiled;
$(BuildProjectFolderPath)/../../Development/Main/Web/Auth/MySoftware.dll;
$(BuildProjectFolderPath)/../../Development/Main/Web/BinApp_Web_*.dll;"
Condition="'%(_AllChildProjectItemsWithTargetPath.CopyToOutputDirectory)'=='Always' or '%(_AllChildProjectItemsWithTargetPath.CopyToOutputDirectory)'=='PreserveNewest'"
>
<Output TaskParameter="Include" ItemName="AllItemsFullPathWithTargetPath"/>
<Output TaskParameter="Include" ItemName="_SourceItemsToCopyToOutputDirectoryAlways"
Condition="'%(_AllChildProjectItemsWithTargetPath.CopyToOutputDirectory)'=='Always'"/>
<Output TaskParameter="Include" ItemName="_SourceItemsToCopyToOutputDirectory"
Condition="'%(_AllChildProjectItemsWithTargetPath.CopyToOutputDirectory)'=='PreserveNewest'"/>
</CreateItem>
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.WebDeployment.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="BeforeMerge">
</Target>
<Target Name="AfterMerge">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
I want to build everything that the builtin Deploy project is doing for me. But I don't want the generated web project as it contains App_Web_xxxx.dll assemblies instead of a single compiled assembly. How can I do this?
Hi,on my 32-bit machine (with an Intel T7700 duo core), I have 15 precision digits for both double and long double types for the C language. I compared the parameters LDBL_DIG for long doubles and DBL_DIG for doubles and they are both 15. I got these answers using MVS2008. I was wondering if these results can be compiler dependent or do they just depend on my processor?
Thanks a lot...
I am interested in new language from Google, GO. I have checked the materials in the golang.com. And now want to use GO in practice. Please share any ideas whats for you are using GO. Or are there any open source GO projects that it would be possible to join?
To produce a bundle from source using a tool such as javac, you need to provide it with a linear classpath. Unfortunately, it won't work in some situations still perfectly legal from an OSGi point of view:
dependencies with embedded JAR in them;
same packages contained by different dependencies.
Since javac doesn't understand OSGi metadata, I won't be able to simply but the dependencies in a classpath. A finer package grained approach seems necessary.
How this problem is addressed by people using OSGi in an automated process (continuous integration)? Strangely, there is a lot of resources on the web on how to create bundle JAR (creating the metadata, creating the JAR) provided you have the classes/inner JAR to put inside, but very few things on how actually get theses classes compiled.
Hi, there! I use springactionscript 1.0RC1 and found an error as following:
Error: A class with the name 'org.springextensions.actionscript.ioc.factory.con fig.flex.FlexPropertyPlaceholderConfigurer' could not be found.
Are you sure the specified class has been compiled?
Look for more information on this topic here:
http://www.springactionscript.org/do...inclusion.html
and my applicationContext.xml is
<objects>
<property file="config.properties" required="false" />
<object id="constants" class="com.libsys.utils.Constants">
<property name="endpoint" value="${endpoint}" />
</object>
</objects>
If the xml file has no properties file, it works fine. I don't know how this happens, could you tell me how to solve it? Thank you!
BTW, my compiler version is 4.1.0.14632 and springactionscrip is 1.0RC1.
I've decided that today - as soon as this question is answered, in fact - I'm going to dive into learning HTML.
But, looking online, I've noticed there are many types: HTML, XHTML, HTML5, and so on.
So, which should I start with? In what order should I learn them?
And, for that first language, where should I learn at?
The language is PHP. I have one foreach ( $a as $b) and another foreach ($c as $d = $e). How do i combine them to read as one. I tired foreach (($a as $b) && ($c as $d = $e)), but that is rubbish.
I want to put a dynamically generated icon (not static image) + possibly a tiny bit of text in OSX menu bar.
If possible I'd prefer to do it from Ruby or some other convenient scripting language, but I'll deal with Objective C if that's the only way.
How do I do that?
i validate urls with utf-8 characters with a rewrite rule
RewriteRule ^([a-z]{2})/([a-z0-9-]{1,256})/([[:print:]]{1,256})$ index.php?language=$1&categories=$2&get_query=$3 [L]
$get_query is the point, this accepts: test!?!'"<*+
but fails for accented chars as àèéìòù, or other utf-8
for example in wikipedia this works great: http://en.wikipedia.org/wiki/%E6%B1%89%E8%AF%AD_%E6%BC%A2%E8%AA%9E
any help? :-)
In the C language: How do I convert unsigned long value to a string (char *) and keep my source code portable or just recompile it to work on other platform (without rewrite code)
I have a .c file with the following
uint8_t buffer[32]
I have a .S file where I want to do the following
cpi r29, buffer+sizeof(buffer)
The second argument for cpi muste be an imidiate value not a location.
But unfortunetly sizeof() is a c operator.
Both files, are getting compiled to seperate object files and linked afterwards.
If I do avr-objdump -x file.c. Amongst other things, I get the size of the buffer. So it is already available in the object file.
How do I access the size of the buffer in my assembly file at compile time?
What are the location detecting tecniques for IP adresses?
I know to look at the
$_SERVER['HTTP_ACCEPT_LANGUAGE'] (not accurate but mostly useful to detect location, for example if an IP range's users set French to their browser then it means that this range belongs to France
gethostbyaddr($_SERVER['REMOTE_ADDR'])
then may be to whois gethostbyaddr($_SERVER['REMOTE_ADDR'])
sometimes
$HTTP_USER_AGENT (Firefox's user agent string has language code, not accurate but mostly can be used to detect the location)
But what about cities?
I'm trying to compile SDL_Image 1.2.10 with MinGW + MSys (gcc 4.5.0) on Windows, I have compiled all the requires libs (zlib 1.2.5, libpng 1.4.2, libjpeg 8a, libtiff 3.9.2). SDL_Image compiles fine, but fails to link to libpng, throwing .libs/IMG_png.o:IMG_png.c:(.text+0x16): undefined reference errors on various png structs.
If I run ./configure --prefix=/mingw --disable-png for SDL_Image, it compiles and links against the other libs just fine. I have tried older versions of libpng (1.2.43), but they also caused SDL_Image to throw the same errors.
I am a Junior CS Major at a Javaschool and I find myself having an easy time and thought there may be some good project or a language to learn or research in this newfound free time. What would you recommend so as to increase my ability to find a good job(somewhere that allows for continuous learning and treats its programmers well)after college?
My thoughts were learning Scheme, making a working Zelda-like game(the original), find some open source project to help with.
I am using visual studio 2008 with vb as my language. I have a databound multiextended listbox. I need to get the selected value for each item that is selected. I have searched for two weeks trying to find and answer. Can anyone help? I would greatly appreciate it.
I'm new to Python 3 and so far it seems like a decent language. I really like the string manipulation methods you can use and they are pretty radical. :)
I'm stuck however in thinking of a project to do with Python. Is there a site similar to Coding4Fun but for Python?
Community Wiki because I think this question is really interesting. :D
Hi,
I'm working on different language packs for my web app. Some of the output is generated by the JavaScript/JQuery and I can't use .aspx.resx resource files within the JavaScript. What options do I have in order to localize output produced by the client?
Thanky you
Given an image with a large dimension ( 1.000 x 1.000). What is a good approach to find a small image (e.g. 50 x 50) in the big one?
The smaller image can be rotated and differ in the size, but only with a 1:1 ratio.
It's not related to any programming language - I'm just interested in pattern recognition.
Thank you.
Nowadays, Standard Coding has become Synonymous to Object Oriented Programming.
But what are the reasons that forced classical procedural programming out of the way and rose the new concept of Object Oriented Programming.
What were the limitations that Procedural Programming could not accomplish?
and
Does procedural language still hold some value in the field of programming? If yes, What are they, and What are there advantages over OOP?
For university, I perform bytecode modifications and analyze their influence on performance of Java programs. Therefore, I need Java programs---in best case used in production---and appropriate benchmarks. For instance, I already got HyperSQL and measure its performance by the benchmark program PolePosition. The Java programs running on a JVM without JIT compiler. Thanks for your help!
P.S.: I cannot use programs to benchmark the performance of the JVM or of the Java language itself (such as Wide Finder).
The .NET framework makes it easy to get information about various locales; the Win32 C++ APIs are a bit harder to figure out.
Is there an equivalent function in Win32 to get the two-letter ISO language name given an integer locale ID?
In C# I'd do:
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(1034);
string iso = ci.TwoLetterISOLanguageName;
// iso == "es" now.