w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
IXSLTemplate (MSXML 6) - how to resolve xsl:import
I'm not a delphi programmer, but I've done this often with C++ for MSXML4. Here is the vb code example from MSXML4 documentation, that I simply translated to C++. Dim xslt As New Msxml2.XSLTemplate40 Dim xslDoc As New Msxml2.FreeThreadedDOMDocument40 Dim xmlDoc As New Msxml2.DOMDocument40 Dim xslProc As IXSLProcessor xslDoc.async = False xslDoc.Load "sample.xsl" Set xslt.stylesheet = xslDoc xmlDoc.async = False xmlDoc.Load "books.xml" Set xslProc = xslt.createProcessor() xslProc.input = xmlDoc xslProc.addParameter "param1", "Hello" xslProc.Transform MsgBox xslProc.output

Categories : Delphi

how to resolve circular import involving haystack?
taken from https://github.com/PitonFoundation/atlas/commit/cc0abcb Instead of importing the model on top of your signals.py file, import the models in the methods of your custom SignalProcessor using get_model: from django.db.models.loading import get_model class MySignalProcessor(signals.BaseSignalProcessor): def setup(self): MyModel = get_model('myApp', 'MyModel') models.signals.post_save.connect(self.handle_save, sender=MyModel)

Categories : Django

webstorm typescript display compile error
Based on Meta Discussion Update (25/8/2013) This issue has been fixed in typescript 0.9.1 Update (7/8/2013) Looks like this issue is already on the radar, please vote for it to make it a BIG blip.

Categories : Typescript

Python sh import causing Unresolved Import error in PyDev
Try using the subprocess module to call console commands. For example: from subprocess import call dir_name = '/foo/bar/' call('mkdir %s'%dir_name, shell=True)

Categories : Python

Get 'import' error when trying to import .rake file in ruby
I think you're probably going about this the wrong way. Why is that functionality in a Rakefile? Rake is Ruby's equivalent of make - it's designed to handle software tasks with dependencies, like building an app, or packaging an releasing a Rubygem. Even Wikipedia has a pretty good description of what it's for, or see this answer for a link dump. What you've described sounds like it's normal Rails stuff - take web input, act on it, interface with database. I'd seriously consider rewriting your Rake tasks inside Rails.

Categories : Ruby On Rails

Pygame Import Error: cannot import name _camera
It appears as though you are right. From the error messages alone it would appear that the issue isn't from your code but is from the pygame code, trying to import something that doesn't exist, though it's impossible to know without seeing your code. I'd try reinstalling pygame, and see if that fixes it.

Categories : Python

How to resolve this error "MySQL Error: 1109 (Unknown table 'table_name' in MULTI DELETE)"?
there are syntax error, try on this DELETE * FROM theory_sheet_set theory_sheet_set INNER JOIN theory_sheet_questions theory_sheet_questions ON theory_sheet_set.theory_sheet_set_id = theory_sheet_questions.theory_sheet_set_id WHERE theory_sheet_set.theory_sheet_id=".$theory_sheet_id

Categories : PHP

Import Error : cannot import register
If you look at the docs you see that register is something that used to exist and was deprecated in the last version. From the documentation: The 1.0 release of django-registration represents a complete rewrite of the previous codebase, and introduces several new features which [...] You either downgrade to django-registration v0.8 (where registration.views.register still exists) or learn how to implement the changes to fit the newest version

Categories : Django

Django: djcelery Import error from celery import current_app as celery in virtualenv
Did you wrote into the settings.py?: INSTALLED_APPS = ( ... 'djcelery', ... ) If you want work with Django's enviroment you must run console as ./manage.py shell or ./manage.py shell --settings=path_to_settings_file_without_extention

Categories : Django

Pydev tags import as "unresolved import" but code using this import works fine.
So, what you're seeing here is their distribution model. Usually a module will have one root import that everything stems from, but that's not necessarily the case. They're providing a package with (what I assume) is many modules that don't interact with each other; or they can all stand alone. instead of importing each package individually, you could use the 'from' keyword: from ROOTFOL.PACKAGE import * which will grab everything inside that sub-module. You could e-mail the developer and ask why they deployed it this way...or you could add your own __init__.py to the root folder and, from ROOTFOL import * which will walk the tree. Good luck!

Categories : Python

Cannot resolve ASP.NET MVC error
Your form doesn't have an <input name="id" /> (which is necessary per your action signature). Remember that MVC's action arguments are incoming values, so if this is a form submit, all those parameters need to be supplied (though sometimes they can be defaulted in a route definition, but I won't get in to that). Mis-read and missed the Id coming from a GET parameter. Assuming you follow traditional form handling with a GET & POST action, you're passing the Id to the GET, it renders a view, then on POST the Id's dropped. So, two options: If you don't need it, remove the long id parameter or make it optional (line id = 0) so that MVC can carry on with a default value. If you do need it, make sure to pass it off in your Url.Action() as a routeValue so it's received back in. A

Categories : C#

How can I resolve this error?
Assuming the code your wrote is the one you actually use, this line is odd: soundfileURLRef *CFBundleCopyResourceURL (mainBundle, (CFStringRef) @"Botao", CFSTR ("mp3"), NULL); The asteriks (*) should be equlas (=) I think it should be soundfileURLRef = CFBundleCopyResourceURL (mainBundle, (CFStringRef) @"Botao", CFSTR ("mp3"), NULL);

Categories : IOS

Python strange import behavior: import x.y works, from x import y doesn't
Works for me: danielallan@MacBook:~$mkdir myproject danielallan@MacBook:~$cd myproject/ danielallan@MacBook:myproject$mkdir lib danielallan@MacBook:myproject$cd lib danielallan@MacBook:lib$touch __init__.py danielallan@MacBook:lib$touch view.py danielallan@MacBook:lib$touch common_lib.py danielallan@MacBook:lib$cd .. In [1]: from lib import view In [2]: view Out[2]: <module 'lib.view' from 'lib/view.pyc'> What happens when you try that on your machine? Are you sitting in the wrong directory, or is your path not configured to find these files?

Categories : Python

How to resolve SIGABRT error for ios?
This issue is fixed. I am answering this question to let the user know about the issue. The cause of the issue was actually in the GUI. Some null pointer was the cause of the crash. So I have added null checks to resolve the crash. Null checks make code freaky but indeed a helpful way to resolve the similar type of crash as this.

Categories : C++

How to resolve the Wampserver error?
You must allow access to your XYZ directory in Apache configuration file httpd.conf: <Directory "c:/wamp/apps/XYZ"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow, Deny Allow from all </Directory>

Categories : PHP

How to resolve this compilation error
You can define _CRT_SECURE_NO_WARNINGS in the header file that generates the error, before including the header file or apply it to the entire project by adding it to the project settings in "Project->Properties->Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions". #define _CRT_SECURE_NO_WARNINGS #include "initshader.h" //... your code here If you are using pre-compiled headers and the header generating the errors is included in stdafx.h you will need to add it to the stdafx.h header or add in your project settings as described above.

Categories : C++

How to resolve the error 'not defined' in node js
After I formatted your code to make it readable, I see that the line return rows exists outside your callback function, where rows is not in scope. You need to define rows directly within myFunction and then assign to it from within your sproc callback function.

Categories : Node Js

How do I resolve an AutoComplete error when using CodeMirror?
In order to use autocomplete capabilities, you must insure to include the appropriate scripts, i.e. show-hint.js, show-hint.css and javascript-hint.js (which seems like the one causing the fuss here). Take a look at the autocomplete demo's source code for a reference.

Categories : Javascript

Scala - how to go resolve "Value is not a member of Nothing" error
Nothing is the type name. It's the subtype of all other types. You can't call methods from Nothing itself, you have to specify exact type ((bc: ExactType).broadcast(message)). Nothing has no instances. Method, that returns Nothing will, actually, never return value. It will throw an exception eventually. Type inference Definition of lookup: abstract public <T extends Broadcaster> T lookup(Object id); in scala this definition looks this way: def lookup[T <: Broadcaster](Object id): T There is not specified type parameter in lookup method. In this case compiler will infer this type parameter as the most specific type - Nothing: scala> def test[T](i: Int): T = ??? test: [T](i: Int)T scala> lazy val x = test(1) x: Nothing = <lazy>

Categories : Scala

How to resolve CASE statement error?
That's because you are returning different data types. The first part is returning a varchar whereas the else part returns a number. select -- this condition returns a varchar (case when isnull(t.runtotal,90) = 0 then 'You have reached max total' -- else condition is returning a number else t.runtotal end) runtotal. The data type of the return value should be same. Please correct it.

Categories : Sql Server

How do I resolve the following libtool 64-bit compilation error
How's FFT.o compiled? The huge cascade of error messages that ends with: .libs/FFT.o: could not read symbols: File in wrong format indicates that something doesn't match up. From the paste, it seems as if you have cross compiled with the Android NDK tools, but are linking with the native (x86_64) gcc (which in turn calls the native ld).

Categories : Gcc

Soundcloud API /resolve method 404 error
So after some testing I've confirmed that the issue is related to the fact that you're trying to request a private set. Because the set is private, you would need to first go through SoundCloud's OAuth 2 authentication process before being able to access the set.

Categories : Javascript

how to resolve the canvas not supported error
I had checked this , I didn't get , why are you facing this problem,though i don't know about tableau much canvas != null && canvas.getContext by this you are getting another error "Canvas not supported by your browser when i am dong this this error comes after the canvas is drawn. then i just delete that alert which gave me this alert message.i think you must try this ,search for this alert and see what happen next it does not effect the program and it runs fine

Categories : Javascript

How to resolve Spring Batch Error?
Which versione of spring-batch are you using? With 2.2.1.RELEASE (and 3.2.3.RELEASE of Spring framework) this example works fine! Libraries (from maven) are: org.springframework spring-core spring-beans spring-context spring-batch-core spring-batch-infrastructure

Categories : Java

How to resolve Liquibase changeSet error?
There is a "dropFirst" property on the spring implementation of liquibase: http://www.liquibase.org/documentation/spring.html This might be your issue. Are you sure liquibase is dropping the schema and not just the objects within the schema? Update I found more details about the "dropFirst" property (see CORE-964). It is indeed performing a dropAll liquibase action.

Categories : Database

Import statements are missing in android eclipse and throws "project contains error(s), please fix it before running it" error
That shouldn't be the case usually. You can try the auto import of the library needed instead of manually inserting the library one by one by ctrl+shift+O. Another common problem is that you included the library but it still cannot reference it correctly. Something like cannot reference R.id.xxx, that can be solved by making sure that you don't have import android.R in your code. Hope that helps :)

Categories : Android

Resolve c++ pointer-to-member error in VS 2003
since you have: static BOOL CRrDoc::cFldFilter(LPMFFIELD f); its type is not a member variable but a function: //BOOL CRrDoc::*zcFldFilter = &CRrDoc::cFldFilter; // doesn't work BOOL (*zcFldFilter)(LPMFFIELD) = &CRrDoc::cFldFilter; // works Since dlg.ck is of a correct type, you should do dlg.ck = &CRrDoc::cFldFilter;

Categories : C++

How to resolve this error in GTK File Chooser Dialog
okay, I've got it. to resolve (gui.py:9127): Gtk-CRITICAL **: gtk_widget_grab_default: assertion 'gtk_widget_get_can_default (widget)' failed, you should change can default from Common Properties of your filechooser buttons to Yes. and to resolve (gui.py:9127): Gtk-CRITICAL **: _gtk_file_chooser_embed_initial_focus: assertion 'GTK_IS_FILE_CHOOSER_EMBED (chooser_embed)' failed, you should change filechooser.destroy() to filechooser.hide()

Categories : Python

Youtube API client error cannot resolve host
There seem to be two errors here, and I suspect they are issues with your server or network: Verify that whatever account is executing PHP has the right permissions. /tmp should be writable by all, but there might be something weird going on. As jlmcdonald suggests, check for space. From your server, verify that you have connectivity. This could be any number of reasons: DNS issues or general connectivity. You can troubleshoot these by SSHing into your server and running: Checks for DNS issues nslookup googleapis.com Checks for general connectivity ping googleapis.com This shouldn't be necessary, but checks to see if your server can even open an outbound socket on that port (ping = ICMP) telnet www.googleapis.com 443

Categories : PHP

Resolve a DRG-11119 error in emagent.trc on Oracle 11.2
I was able to fix the issue, and decided to answer my own question for others that might run into this problem and hit the same wall I did. I still don't know what caused it, but it is fixed. Further research pointed me to the following link, which contained enough hints to point me in the right direction. http://docs.oracle.com/cd/B14099_19/manage.1012/b16242/emctl.htm The section 2.7.6 "Reevaluating Metric Collections" had information on the files that the Enterprise Manager Metrics are stored in. To avoid dead links, I will copy some excerpts of that article here: 1. Go to $ORACLE_HOME/sysman/admin/metadata directory, where $ORACLE_HOME is the Oracle Home of the Management Agent. 2. Locate the XML file for the target type. For example, if you are interested in the host metric 'Files

Categories : Oracle

how to resolve Inconvertible types error in Maven
What is resultMap? Probably that resultMap contains some Object without specific type for exmpl: Map<String, Object>. 1) When you trying parse Integer try one of this ways: Integer newValue = (Integer) resultMap.get("changeNoterListSize").toString(); Integer newValue = Integer.parseInt(resultMap.get("changeNoterListSize").toString()); Maven always work better when you converting to Int from String 2) Convert to list List<ChangeNoter> can be tricky and in this situation try to loop through resultMap.get("changeNoterList") and add one by one items to new List<>();

Categories : Java

Spray io - unable to resolve an error about dependencies in sbt
There is no version 1.0 of spray yet, according to the docs (and browsing the repo): see spray - Current Versions. The latest seems to be either 1.0-M7 for scala 2.9.2 or 1.1-M7 for scala 2.10.0-RC5.

Categories : Scala

Script runs in spite of an unresolved import error in Eclipse PyDev, but stops running if the error is fixed
Solution is as follows: - I removed these errors by going to: Window -> Preferences -> PyDev -> Editor -> Code Analysis -> Undefined -> Undefined Variable From Import -> Ignore And for import not found errors: - It may also be, Window -> Preferences -> PyDev -> Editor -> Code Analysis -> Imports -> Import not found -> Ignore We forcibly remove these errors because python interpreter do not have a solution for this. Let me know if you need further info on this.

Categories : Python

Array.forEach / .map returning error when used with path.resolve
This happens because the parameters passed to each call of the mapped function will get not only the actual elment, but also the array index and the whole array. To see exactly what parameters gets sent to map, try this: > var a = ['1', '2', '3']; ['1', '2', '3'] > a.map(function() { return arguments}); [ { '0': '1', '1': 0, '2': [ '1', '2', '3' ] }, { '0': '2', '1': 1, '2': [ '1', '2', '3' ] }, { '0': '3', '1': 2, '2': [ '1', '2', '3' ] } ] Since the object sent to the mapped function (path.resolve in this case) is not a string but an object, you get a TypeError.

Categories : Node Js

how to resolve fatal error from require in php to try to load files?
Anfer many hours searching and reading i identify some problens: the comment from M.Svrcek make me think more about the paths, and this question Require path does not work for cron job?, i got the tip from Robus, to identify where the php file work. I changed the paths to: self::$pathsCssJs = require __DIR__.'/config/cssJsPaths.php'; self::$appInfo = require __DIR__.'/config/templateGlobal.php'; And the stupid part, i had 2 forlders 'configs' and 'config', just move the files to 'config' and delet the 'configs', now is working... thanks to everyone that tryied to help me. :) ... sometimes is too simple to belive that is wrong...

Categories : PHP

How to resolve SuspiciousOperation: Invalid HTTP_HOST header error?
When Django validates the host from the HTTP request it attempts to match it against the following regex which you can find in the source here: host_validation_re = re.compile(r"^([a-z0-9.-]+|[[a-f0-9]*:[a-f0-9:]+])(:d+)?$") The underscore in your username is causing Django to reject the host name on the request. You can create a new PythonAnywhere account with a new username or use a different web framework.

Categories : Python

How do I resolve the `Procedure or function addQuestion has too many arguments specified.' error?
You may get the list of paramters with this script: SELECT * FROM sys.parameters p WHERE p.object_id=OBJECT_ID(N'[dbo].[addQuestion]'); References: Books Online sys.parameters Contains a row for each parameter of an object that accepts parameters. If the object is a scalar function, there is also a single row describing the return value. That row will have a parameter_id value of 0.

Categories : Sql Server

How to resolve Microsoft Reporting Services error: rsCredentialsNotSpecified
Open Reporting Services Configuration Manager click Report Manager URL tab, browse to the URL specified open the applications data manager section specify credentials for the report server to use

Categories : Sql Server

Htaccess rule to resolve the 404 error when host name is repeating twice
Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s/+.+?(/forum/[^s]+) [NC] RewriteRule ^ /%1 [R=302,L,NE] Once you verify it is working fine, replace R=302 to R=301. Avoid using R=301 (Permanent Redirect) while testing your mod_rewrite rules. Explanation: %{THE_REQUEST} represents the original request as received by Apache which in your case may look like: GET /http://www.example.com:80/forum/viewtopic.php?f=5&t=221&‌​st=0&sk=t&sd=a&start=10 HTTP/1.0 Breaking down my regex: ^[A-Z]{3,}s/+.+?(/forum/[^s]+) now This part of regex ^[A-Z]{3,}s matches 'GET ' part

Categories : Htaccess

How do I resolve force close error upon onActivityResult() call?
You can call activity result like that and get the path of the image button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent i = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(i, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); } }); and call this way @Override protected void onActivityResult(int requestCode, int resultCode, Intent resultData) { super.onActivityResult(requestCode, resultCode, resultData); try { if ( resultData != null) { String[] projection = { MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery(

Categories : Android



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