w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Problems configuring System.Net in Mono
I believe you have found a bug in mono. The DefaultProxySection constructor seems to forget to add the attribute properties to the collection, so the config reader doesn't know about them. Note that the default for the enabled property is true so you can omit that setting as a workaround for your problem. Nevertheless, please report the bug in bugzilla.xamarin.com

Categories : Asp Net

Cross compilation : jdk1.6 on jdk 1.7
That might not be enough. First of all, besides setting target to 1.6, you should also set source to 1.6: <javac source="1.6" target="1.6" srcdir="src"> to let the Java compiler know that it should interpret your code as 1.6-compatible source code. But a bigger problem is that this does not prevent you from using classes, interfaces and methods which are new in the Java 7 standard library. If you use Java 7-only classes, interfaces or methods, it will compile, but you'll get errors like NoSuchMethodError when you run it on Java 6 and you're calling a method that didn't exist in Java 6. The safest way to ensure that your code is compatible with Java 6 is installing JDK 6 and using that to compile your code. (Note: There's no problem with having multiple versions of the JDK insta

Categories : Java

Javac Cross-Compilation with 1.7
You cannot have a newer version of source and lower version of target. For example, In Java 5, a number of new features were added to the language, such as generics, autoboxing and you cannot expect a JVM 1.4 to understand it. So, you must tell the compiler that your source code is Java 1.4 source code. This explains the results you have. The default for -target depends on the value of -source: If -source is not specified, the value of -target is 1.7 If -source is 1.2, the value of -target is 1.4 If -source is 1.3, the value of -target is 1.4 If -source is 1.5, the value of -target is 1.7 If -source is 1.6, the value of -target is 1.7 For all other values of -source, the value of -target is the value of -source. For more info refer to http://docs.oracle.com/javase/7/docs/technotes/too

Categories : Java

Adapt Makefile for cross-compilation
An easy way to solve this would be: ALL_CFLAGS += -L$(PREFIX)/lib If you really want to install your lib in the toolchain, you should look for the usr/lib directory, usually the path is TOOLCHAIN_DIR/TOOLCHAIN_PREFIX/sysroot/usr/lib Check other binaries in the $(PREFIX)/lib directory, you will notice that they were compile to run in you host, and not in your target. The files the compiler need to check dependencies, link, and execute in your target, are installed in the sysroot directory.

Categories : C

Cross Compilation for C applications using Eclipse
You need a Linux -> Windows cross compiler. The MinGW tools would do the job, but, last I checked, they only provide binary downloads to run on Windows (i.e. not a cross-compiler). There are some (old) instructions for building your own here. The CodeBench compiler is probably exactly what you want, but it's not free (there is a free trial though). It's basically a professional build of the MinGW tools, and comes with it's own customized Eclipse so there's no fiddling about needed in that department. A quick google also comes up with these tools on sourceforge, but I've not tried them.

Categories : C

Cross compilation to embedded system
A quick google search indicates that chip has an ST40 cpu core. Another google search turned up this link which has all of the instructions you need.

Categories : C

Error in linux cross compilation u-boot
The distclean target is used to undo/clear any changes made to the local working directory by selecting any board/device-specific config. The error System not configured -see readme Error[1] indicates that the current u-boot working-directory is NOT yet configured for any device/board and hence the distclean target to make is redundant at this point.

Categories : Misc

Groovy Java cross compilation instanceof
instanceof GroovyObject? I created the following Java class: import groovy.lang.GroovyObject; public class A { public static void main(String[] args) { B b = new B(); if (b instanceof GroovyObject) { System.out.println("b is a groovyobject"); b.yeah(); } else { throw new RuntimeException("b is not a groovyobject"); } } } And the following Groovy class: class B { def yeah() { println "hell yeah" } } With the following result: $ javac -cp ~/groovy/embeddable/groovy-all-2.1.3.jar:. A.java $ java -cp ~/groovy/embeddable/groovy-all-2.1.3.jar:. A b is a groovyobject hell yeah

Categories : Java

cross compilation application qt from Windows to ubuntu
You cannot cross-compile to "Linux", because that's not an OS. Certain system-level libraries and interfaces differ from distribution to distribution, making it nearly impossible to get a one-binary-covers-all. Setting up a cross-compiler is generally a pain in the... nuts, and for Linux->Windows, there is no free alternative (a Windows license isn't free). For Windows->Linux, you can install the distribution you are targetting and compile it natively (perhaps in a virtual machine). This guarantees compatibility with the OS you're targetting and is much more reliable than cross-compiling.

Categories : Qt

Using cross-compilation tools in kernel-build
Answer to your first question is - No. You don't need cross compilation tools if you're building the kernel on the same computer that it'll run. Host compiler toolchain will do the work for you. Answer to the second question - two ways you can do it: a) using existing cross compilation tools (already build), you can download it via Software Center of any popular distro like Fedora, Ubuntu. Cross compilation will be prefixed with platform name i.e if you need arm tool chains it will be something like arm-linux-gnueabi-gcc. b) You can build your own cross compilation tool chains from the source of GCC. It's quite difficult and time consuming stuff. But, you can avoid all the above steps and can use tools like buildroot, openembedded etc. Which will ease all the task for you and help

Categories : Linux

Is there a cross platform way to detect debug mode compilation?
For many or most compilers, "debug" mode is a multifaceted concept that includes several orthogonal settings. For example, with gcc, you can add debugging symbols to the output code using -g, enable optimizations using -O, or disable assert() macros using -DNDEBUG (to define the NDEBUG macro). In my work, we have deployed production code with many combinations of these enabled or disabled. We have left -g on in order to attach to running processes and troubleshoot them using gdb (in which case we usually have to fight with the spaghetti -O produced), left assertions on to get more information about persistent errors across releases, and disabled optimizations for legacy codebases written under a more permissive interpretation of "undefined behavior" (until we could fix/replace it). Sin

Categories : C++

Python cross compilation to Windows with Nuitka failing
This might help (from Nuitka documentation): The resulting filename will be program.exe on all platforms, that doesn't mean it doesn't run on non-Windows! But if you compile program we wouldn't want to overwrite it, or be unsure which one is the compiled form, and which one is not.

Categories : Python

using wcf cross domain in svc host
I found it : Just add 'Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory"' code on the markup of svc service. <%@ ServiceHost Language="C#" Debug="true" Service="WFS.Services.Order" CodeBehind="Order.svc.cs" Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" %> and then I've corrected my config file : <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <authentication mode="None" /> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <standardEndpoints> <webScriptEndpoint&

Categories : C#

Incompatible libc.so.6 Found During Cross-Compilation of Qt5 OpenGL Test for i.MX6
It seems that you are compiling against the wrong libc. The location of the correct libc should be: /home/Desktop/poky-dylan-9.0.0/build/tmp/deploy/images/mountpoint/lib/ Can you check that? Run in that folder: file libc.so.6 Have a look if the architecture is fine. I do not have the sources in front of me, so please give feedback if things are going wrong. Your application is compiled in a chroot environment (see man chroot). The folder /home/Desktop/poky-dylan-9.0.0/build/tmp/deploy/images/mountpoint acts as the new rootfolder for your application. This is configured in the -sysroot option of your configure script. This is not valid for gcc, because the -no-gcc-sysroot is on. So the linker is looking to your native /lib/ folder to find the libraries. They are not there of course.

Categories : Linux

Apache Cross Compilation Error ./gen_test_char: cannot execute binary file
I searched and searched and found several tries to patch but none of them worked. Most of these were patches suggested directly from the Apache dev group. But I finally came across this Apache mail list. It suggests a straight forward solution that the patches could not provide. Compile the gen_test_char app before trying to cross-compile Apache. So I did. And followed the suggestions and it worked like a charm. instead just compile gen_test_char.c 1st with something like: gcc -Wall -O2 -DCROSS_COMPILE gen_test_char.c -s -o gen_test_char then run it and put its output into the include folder (or where its placed normaly); and after this compilation run it to get the desired output with: ./gen_test_char > test_char.h

Categories : C++

Most lightweight cross-platform http python host
The most lightweight would be wsgiref.simple_server from the standard library which Django's runserver command uses internally. Alternatively you can use WSGI server from the Paste This is a minimalistic WSGI server using Python’s built-in BaseHTTPServer; if pyOpenSSL is installed, it also provides SSL capabilities. Waitress from the Pylons project Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 2.6+ and Python 3.2+. It is also known to run on PyPy 1.6.0 on UNIX. It supports HTTP/1.0 and HTTP/1.1. WSGI server from CherryPy A high-speed, production ready, thread pooled, g

Categories : Python

FTDI D2XX library works with ubuntu. but shows error on ezsdk cross compilation
Kernel versions are different.. arm926 built for kernel version 2.6.32 Ezsdk 6.0 for beagleboard XM uses kernel version 3.3.7 I think, need to use open source library (http://www.intra2net.com/en/developer/libftdi/)

Categories : Linux

Detecting errors from cross domain AJAX request when the host doesn't respond
This is the intended behavior. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. Error callbacks do not get triggered for cross-domain script and cross-domain jsonp requests. If there was a workaround that worked consistently jQuery would probably have already implemented it.

Categories : Jquery

SIGSEGV and mono crash issue while running .NET binary using mono
Try this: Disable increasing amounts of your own/application code until the error goes away. Then refine, with smaller steps, to see which part/line of your code is causing this. If in the end, there is absolutely no own/application code left, play with the configuration, version, compiler options, of the libraries you're using. Sorry I can't give you a detailed answer, but I HTH. Good luck!

Categories : C

Configuring properties via datasource vs configuring them via hibernateProperties
The first you get a Spring managed datasource, which you can also use for a JdbcTemplate or other work. The second you get a hibernate managed datasource which is not reusable by Spring. I strongly suggest the first approach as it also makes it quite easy to replace your datasource for testing (by replacing it with an in-memory database) or to replace it with a JNDI lookup.

Categories : Java

orde links by their hosts - from a multi link textarea to a table ordred by host (colomn n = host n contains all links of that host)
According to what you've described , you just need a function that will sort the links by the abc. function just_host($link) { return array_shift( explode( '.', str_replace('www.', '', parse_url($link, PHP_URL_HOST)))); } $multi = $_POST['multi_links']; //$_Post is not right , all upper-case! $links = explode(" ", $multi); $links = array_map($links , 'just_host'); //Call the 'just_host' for every link and update the value in the array. sort($links); //Sort the array foreach($links as $link) //Instead of 'for' , use 'foreach' { echo $link . "<br />"; } Should work , please update me if not and I'll edit it.

Categories : PHP

How to transfer a Wordpress site from Bitnami (local host) to a live host online?
I had a similar problem. To get my particular site working, I added the following code to my configuration file: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); After adding the lines, my CSS and uploaded images came back. Don't forget to replace example.com with your site's domain name. I found that code at: http://codex.wordpress.org/Changing_The_Site_URL. Actual user results may vary.

Categories : Wordpress

How could a local user on a host use a buffer overflow attack to get root access to the host?
Usually, it's about exploiting a vulnerability in a process that runs as root: Either a server that accepts connections (sockets, pipes, etc.) or an executable with the SETUID flag. If by "gain root access" you mean take control of a shell running as root, the buffer overflow payload must start a shell and use dup2 to redirect its input and output to something the attacker controls (such as a socket connection to a "command and control" server running on the attacker's machine).

Categories : C

PHP verify Baidu search engine by host when web host DNS server returns only IP
I was able to use a different DNS server via the host command via shell... $p = trim(trim(explode(' pointer',shell_exec('host -W 2 180.76.5.168 68.238.96.12'))[1]),'.');

Categories : PHP

How do I resolve "Missing host to link to! Please provide the :host parameter"? (RoR)
The problem may be that you have not defined default_host for test environment. Define default_host inside config/environments/test.rb like this: config.action_mailer.default_url_options = {:host => "localhost:3000"}

Categories : Ruby On Rails

MySQL "Unable to connect to host [host] because access was denied."
Did you issued the flush privileges after granting access to the wildcard user? What happens if you add an entry with user = sadmicrowave and host = [your actual ip] (don't forget to issue the flush privileges command after adding the user) ?

Categories : Mysql

Responsive Cross Browser and Flexible way of "cross-background" images
It doesn't matter if the fonts in the text boxes are in EM. If the font size change, the text boxes size will change, but that it doesn't mean that the space between them also has to change (it could has a fixed height -the background height-). Here's a really basic example (try changing the body font-size): <html> <head> <style> body { font-size: 12px;} .text { border: 1px solid #999; padding: 15px; font-size:1em; } .line { background: url(http://www.agavegroup.com/images/articles/photoshopCurvedLine/curveFinal.gif) no-repeat center center; height: 50px; } </style> </head> <body> <div class="text"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. </div> <div class="line"><

Categories : CSS

Cross Platform, Cross .NET versions Hash-function
If performance is not an issue, try one of the cryptographic hash functions that come with the .NET Framework library: MD5, SHA256, RIPEMD160. If performance is an issue, you could perhaps go for something like MurMurHash3. All of these are dependent only on the input. (If you want to hash for security purposes, it's worth noting that you should only use cryptographic hash functions and that MD5 and older versions of SHA have known vulnerabilities and should be avoided.)

Categories : C#

WCF service streaming - Console host vs. IIS host
How do you know its buffered? Check the config file on the client side after proxy generation. Sometimes the proxy generated config file has incorrect transfermode. When you start writing the file on the client, don't any see any chunk wise increase in the size of file? The hosting shouldn't affect the transfermode. The only difference between IIS and Console would be the way activation/deactivation is managed.

Categories : Wcf

Cross-origin image load denied by Cross-Origin Resource Sharing policy
If you wish to load cross-origin images to a canvas, you need to either serve the image with cross-origin headers or under the same origin. That image under Facebook is served with the following header option set: Access-Control-Allow-Origin:* Meaning, it can be cross-origin loaded with the useCORS option. However, it would appear that your Host B isn't serving them with cross-origin headers set.

Categories : Javascript

Request.Url.Host identical to Request.Headers["host"]?
They're not identical. HttpRequest.Headers["Host"] gives you direct access to the client-to-server HTTP header. HttpRequest.Url is rebuilt by ASP.NET and it does use the incoming request's Host: header by default, however there is an internal setting UseHostHeaderForRequestUrl, if this is set to false then ASP.NET will use HttpRequest.Headers["SERVER_NAME"] instead, but under certain circumstances it uses value of "127.0.0.1" instead.

Categories : Asp Net

XSLTemplate in Mono
For running an xsl[t] transformation over xml, you should be able to use either System.Xml.Xsl.XslTransform or System.Xml.Xsl.XslCompiledTransform from System.Xml.dll. The API should be largely identical to the Microsoft implementations: mono, XslCompiledTransform mono, XslTransform microsoft, XslCompiledTransform microsoft, XslTransform

Categories : C#

mono iPhoneBackupExtractor.exe
Logs show that there seems to be an issue with creation of UI window panel as the system font the application is trying to look up for could be found on your mac. There could be 2 main reasons why this could happen:- The latest version of mountain lion (as you point it out to be 10.8.4) does not have that font in their font library The application was created only for windows and developer didn't port it to /tested on mac thoroughly. if you need to extract your iphone data in urgency then its better to try using a different application which has made for mac and does not require mono UPDATE Have a look at Total Saver application. It works on mac and windows without the need for you to install any 3rd party frameworks (mono). You'll need JRE (Java Runtime Environment) though. You c

Categories : Osx

Mono mkbundle on OSX
It looks like the pkg-config tool is not found. Maybe it's not in the default paths. Do you have a 'pkgconfig' directory somewhere? It should be a subdirectory of your Mono installation. Try to see if you have a path looking like /Library/Frameworks/Mono.framework/Versions/XXXX/lib/pkgconfig If yes, point the PKG_CONFIG_PATH environment variable to this path, you can specify it directly when running your mkbundle command (this is just an example): $ PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/XXXX/lib/pkgconfig mkbundle ....

Categories : Osx

CSS styling for Mono C#
I think Pixate tries to do this. https://github.com/Pixate/MonoTouch-Pixate No idea how good it is though.

Categories : C#

What Happened to Mono 2.11.X?
Everything I have seen on their list is that the last stable release is the 2.10.x, they will be maintaining it for about 6 months and are encouraging everyone to use the 3.0 branch even though it is still stated as beta. http://www.mono-project.com/Release_Notes_Mono_3.0 From above link: Mono 3.0 is an update to Mono 2.10 based on the master branch of github, it is not a minor upgrade to 2.10. Mono 3.0 was released on October 18th 2012. We will continue to bug fix and update Mono 2.10 for another six months for users that can not upgrade to Mono 3.0. New Microsoft Open Source Stacks We now include the following assemblies as part of Mono from Microsoft's ASP.NET WebStack: System.Net.Http.Formatting.dll System.Web.Http.dll System.Web.Razor.dll System.Web.We

Categories : C#

Running Mono 3.2.0 with .NET MVC 4
Success If you want to run MVC4 on Mono, you need to use some Microsoft dlls which are not provided by Mono at this time. A word of caution - Taking a cursory look at the Mono source, there appears to be methods and classes in the MC4 source that do not exist in the 3.2.0 build. There may be features that are broken. The site I am running is for all intents and purposes an MVC3 site built against the latest dlls. Microsoft DLLs to copy System.Web.Abstractions - 4.0 System.Web.Helpers - 2.0 System.Web.Mvc - 4.0 Once you copy over the dlls, if you're still having problems you may have to do some detective work if the above fix doesn't work. If you get an error message saying that Mono can't find the DLL, it's usually one of three reasons: Troubleshooting Is doesn't have the dl

Categories : Asp Net

Spring MVC Form Hibernate Validator : Cross parameter constraint has no cross parameter validator
Try moving your @NotNull and @NotEmpty validation constraint in the getter. Change your form like this public class TaskForm extends WebForm<TaskModel> { public TaskForm(){ this(new TaskModel()); } public TaskForm(TaskModel form) { super(form); } public void setName(String taskName){ target.setTaskName(taskName); } public void setDescription(String description){ target.setDescription(description); } public void setStartDate(DateTime startDate){ target.setStartDate(startDate); } public DateTime getStartDate(){ return target.getStartDate(); } //@DateTimeFormat(pattern = "MM/dd/yyyy") public void setEndDate(DateTime endDate){ target.setEndDate(endDate); } pu

Categories : Forms

How can I get an ASP.NET MVC site running on Mono?
It's very easy. Use MonoDevelop IDE http://monodevelop.com/. Check this page http://www.integratedwebsystems.com/2011/06/get-mvc3-razor-running-on-mono/

Categories : Asp Net Mvc

Running Umbraco / Mono on OS X
I fairly sure you can't run Umbraco on OSX. However, there are members of the community working on Mono-specific ports of Umbraco. Check out Strawberry Fin's blog for details: http://www.strawberryfin.co.uk/blog/2013/02/02/umbraco-6-is-out-mono-roadmap/

Categories : Osx



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.