w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Using Unity player/engine to load 3d in existing Android application
You may find some tips here : https://developer.vuforia.com/forum/faq/unity-how-can-i-extend-unitys-android-activity It was helpfull to me to override QCARPlayerActivity class, and it seems to work fine (actually, i'm stuck with another problem to finish() the activity...)

Categories : Android

Unity fails to load generic type definition via xml configuration
Try this instead of the [] notation <type type="Common.Utils.Logging.INLog`1, Common.Utils" mapTo="Common.Utils.Logging.NLog`1, Common.Utils" /> Feels awkward, I know, but it should work.

Categories : C#

Dependecy Injection works with Unity but doesn't with Ninject
I assume you're using MVC since you reference an article about using it with MVC. Did you do all the steps mentioned here? http://bubblogging.wordpress.com/2012/06/04/mvc-controller-factory-ninject/ Why are you using a custom controller factory instead of using the built-in dependency injection support of MVC, using Ninject.MVC3 package?

Categories : Entity Framework

ExtJS: store.load() doesn't load data
Yes, thanks for assist, the rout cause was, that store data loaded asynchronously. Code for load data, should be: allFilmGenresStore.load({ callback : function(records, options, success) { // some custom logik } });

Categories : Javascript

Facebook Unity SDK has error when send request with custom friends in Unity Webplayer
One of the Facebook software engineers here. Are you passing in null to the data or title param for FB.AppRequest()? There's a bug where it doesn't handle that correctly currently. Either exclude that or pass in an empty string. We'll get that fix ASAP. Thanks for finding that. Update: The latest SDK version has that fix.

Categories : Facebook

Is it practical to start a Unity game from an Android app and revert back from Unity to the app?
You should be able to have two activities in your app, one using your java code and another with the Unity game. Android is already pretty good at switching between activities. Check out this: http://developer.android.com/training/basics/firstapp/starting-activity.html You'll probably need to add your Java project as a plugin in Unity and override the AndroidManifest.xml in the Unity project to load the Java activity. Check out this documentation on extending android projects in Unity: http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html

Categories : Android

Unity iOs - screen gets black when changing rotation while Unity is paused
Not sure if you have fixed this, Its been a while... But the reason that your UnityViewController is not functioning properly is because a view controller that is not visible will not receive rotation events. Because you are setting your view controller as the root view controller, the UnityDefaultViewController defined in "iPhone_View.mm" is not receiving rotation events. I have been studying Unity's rotation for a while now as I have my own issue with a similar setup. There are a few things that you might be able to try: In iPhone_View.mm there is a function that is defined called: UpdateOrientationFromController(UIViewController* controller) that might be able to solve your problem. You would want to call this function on the view controller that you designed yourself where you plac

Categories : IOS

Unity Register For One Interface Multiple Object and Tell Unity Where to Inject them
In the example below you have an interface implemented twice and injected on demand into two different client classes, just as you request. The trick is to use named registrations. class Program { static void Main(string[] args) { IUnityContainer container = new UnityContainer(); container.RegisterType<IFoo, Foo1>("Foo1"); container.RegisterType<IFoo, Foo2>("Foo2"); container.RegisterType<Client1>(new InjectionConstructor(new ResolvedParameter<IFoo>("Foo1"))); container.RegisterType<Client2>(new InjectionConstructor(new ResolvedParameter<IFoo>("Foo2"))); Client1 client1 = container.Resolve<Client1>(); Client2 client2 = container.Resolve<Client2>(); } } public interface IF

Categories : C#

Xcode cannot parse exported project from Unity 4 after being upgraded from unity 3
Some Unity packages install editor scripts that modify the XCode project after it's generated. These scripts can cause the symptom described, if they have a bug, or if they subtly interfere with each other. Search your project for OnPostprocessBuild calls, try disabling them one-by-one, generate a fresh XCode project each time, and see if it starts opening with XCode. If it does start working, diff the working and non-working versions of Unity-iPhone/project.pbxproj, and see if you can figure out why.

Categories : IOS

Unity.AutoRegistration ?? Convention Based Registration Unity
It appears that what you are looking for is this: container.ConfigureAutoRegistration() .LoadAssemblyFrom(typeof(ITest).Assembly.Location) .LoadAssemblyFrom(typeof(Test).Assembly.Location) .Include(If.ImplementsITypeName, Then.Register()) .ApplyAutoRegistration(); This will tell Unity.AutoRegistration to register all types where there is an interface with the same name, prefixed with I.

Categories : C#

Jquery Mobile Dialog on page load, the dialog doesn't load
Make sure that you imports are in the right order. jQuery then UI and lastly jQuery Mobile. My dialog now loads correctly and with the proper formatting. <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>

Categories : Javascript

Resolving Unity Dependencies without a Unity.MVC
You're doing it in the right way. With DI you can remove dependencies from your application. So that you can get a "Repository agnostic" application. And you have effectively done it. At least on the projects that 'declare' the dependencies. However, when the application has to run, you need to specify the concrete objects which will be used for the "declared" abstract dependencies (interface, abstract class) is required. You do this by registering the types which object will be used for each abstract dependency. In you sample, when a IUnitOfWork or a DbContext, an instance of MyDbContext is provided. So the projects that 'declare' the dependencies are completely independent of a particular implementation. However, when you register the dependent types, you're loosing that independen

Categories : C#

Simplexml_load_string doesn't load everything
You can access the node attributes using the array access syntax: $xml->kp_rating['num_vote'] $xml->imdb_rating['num_vote'] From the documentation: SimpleXML can also access element attributes. Access attributes of an element just as you would elements of an array.

Categories : PHP

Can someone please tell me why this js function doesn't run on load?
try $(function() { recalc_tab_height(); }); instead of your last line. $(...) is a shortcut for $(document).ready(...) and is executed as soon as your page is entirely loaded, so that you can deal with DOM element properties.

Categories : Javascript

Window doesn't load — c++/SDL
You are prematurely invoking SDL_Quit() in the main function. This function shuts down all SDL subsystems and should instead be called at the end of your program. If you wish for the window to remain until you close it explicitly, add a loop such as the following: int main() { if (SDL_Init(SDL_INIT_EVERYTHING) == -1) { return 1; } screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE); if (!screen) { return 1; } bool running = true; SDL_Event event; while (running) { while (SDL_PollEvent(&event)) { if (event.type == SDL_QUIT) { running = false; } } } SDL_Quit(); return 0; } You can set running to false when some event occurs, such as when the window is closed.

Categories : C++

D3 doesn't load a CSV file from an external URL
Are you sure you're using the d3.csv function? Because your code says you're using the d3.json function. If that doesn't work, you may need to add the ".csv" ending to your file and then open it up as SOME_LINK.csv

Categories : D3 Js

Google web font doesn't load in IE
It could possibly be that you're not viewing the font on IE. If you look at the actual CSS file for the Google Webfont you'll see that the only font file they have is a .woff file. .woff are only supported by IE, and other browsers use a variety of different file types for fonts. src: local('Telex-Regular'), url(http://themes.googleusercontent.com/static/fonts/telex/v1/QBUn5F7b-9Ulki7K75J1Bw.woff) format('woff'); Check out the JSFiddle (http://jsfiddle.net/vj5jS/) on IE, then on any other browser. One will show the default sans-serif, IE will display Telex. Try finding the font online and using FontSquirrel's webfont generator found here for creating webfonts compliant with the most popular browsers. EDIT Forget the above, you're using IE. No, having an unregistered version won't aff

Categories : CSS

Window.load doesn't working
Assigning an event handler that is a named function is done without the () DEMO based on your fiddle var nump = 100; // setting a value that actually is visible function point() { nump++; document.getElementById('point').style.margin = nump + 'px 0px 0px'; } window.onload = point; unless the named function returns a function. Since you are using jQuery: var nump = 0; function point() { nump++; document.getElementById('point').style.margin = nump + 'px 0px 0px'; } $(function() { point(); // will move 1 pixel }); Perhaps you mean $(function() { setInterval(function() { point(); // will move 1 pixel },100); // move one pixel every 100ms });

Categories : Javascript

My webpage doesn't load changes due to cache
You don't need to do anything ugly and changing the manifest files. All you need to do is to add the current version of the app in the end of the url that you're loading the static files. This version number is changing with every deployment so it is going to be cached after every new deployment. <link rel="stylesheet" href="/static/css/main.css?{{VERSION}}" type="text/css" /> Where {{VERSION}} could be the os.environ.get('CURRENT_VERSION_ID', '') while running on production and maybe just a random number when running locally. You can check if you're running locally using the os.environ.get('SERVER_SOFTWARE',''). Here a simple example to get this value that you later on should pass to your base template: import random import os if os.environ.get('SERVER_SOFTWARE','').startswit

Categories : Javascript

CSS image doesn't load for 404 page
You have a relative path to the <img> src. The actual image is at /errors/rajni.jpg. Thus the image will only load if the path is in /errors. To fix this, simply change the src: <img src="/errors/rajni.jpg"> How apache serves it is different than how the browser requests it. The browser must make a separate HTTP request for every resource it downloads including the image. It makes one request to /not/a/page. Apache sees /not/a/page and returnsHTTP: 404; html=(basically). The browser parses HTML, displays, and seessrc=rajni.jpg. Then it makes another request:GET HTTP 1.1 /not/a/page/rajni.jpg`. Apache is happy to respond with another 404

Categories : CSS

FBPlacePickerViewController doesn't load any data
Found the answer: I wasn't creating the Facebook session before displaying the place picker. I totally forgot about the session. It'd be nice to see Facebook add an assertion check in loadData method of the picker for an existing Facebook session. I've created the session, and THEN tried my code, and it works perfectly now.

Categories : IOS

UIview doesn't load with viewdidappear
First, try adding this line at the end of viewDidAppear method: [self.view setNeedsDisplay]; Or: [_linesView setNeedsDisplay]; Second, Provide some more information. Post the code in viewDidLoad and viewDidAppear.

Categories : Iphone

Javascript doesn't work in first load
I would recommend using the Developer Tools (F12) within your browser to ensure that all of your scripts are being loaded properly and you aren't experiencing any errors related to them. You'll need to make sure that you are loading the necessary jQuery scripts and jQueryUI scripts (in that order) and that your datepicker() function isn't being called prior to those scripts being loaded : <!-- Related jQuery and jQueryUI scripts and CSS --> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> <!-- Pl

Categories : Jquery

MPMoviePlayerController doesn't load my video
Do it this way: -(void)playMovieAtURL:: (NSURL*) url { moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayer]; moviePlayer.controlStyle = MPMovieControlStyleDefault; moviePlayer.shouldAutoplay = YES; [self.view addSubview:moviePlayer.view]; [moviePlayer setFullscreen:YES animated:YES]; [moviePlayer play]; [self.view bringSubviewToFront:moviePlayer.view]; } - (void) moviePlayBackDidFinish:(NSNotification*)notification { MPMoviePlayerController *player = [notification object]; [[NSNotificatio

Categories : IOS

Splash screen doesn't load
you should close the activity after the intent-filter and second activity had no intent-filter .. <activity android:label="@string/app_name" android:name="com.example.GamePlay.SplashScreen" android:configChanges="orientation|keyboardHidden" android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen" android:screenOrientation="landscape"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.example.GamePlay.Game" android:configChanges="orientation|keyboardHidden" android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen" android:screenOr

Categories : Android

ZF2 doesn't load vendor's plugin
if you use composer to load add you module or plugin to autoload_classmap.php, autoload_namespaces.php see example below vendorcomposerautoload_classmap.php return array( 'ZendDeveloperTools\Module' => $vendorDir . '/zendframework/zend-developer-tools/Module.php'); vendorcomposerautoload_namespaces.php return array( 'ZendDeveloperTools' => $vendorDir . '/zendframework/zend-developer-tools/src');

Categories : PHP

jQuery.get() doesn't work for me.. but .load does
$.get('home.html', function(data) { $('.content').html(data); alert('Load was performed.'); }); You seem to be referring to the target in two different ways. #content vs .content. Possibly it should be $.get('home.html', function(data) { $('#content').html(data); alert('Load was performed.'); });

Categories : Jquery

Why doesn't XUL load handler work?
a) get a reference of the InspectorPanel object b) listen for the ready event var ip = window.ownerDocument.defaultView.inspector;` ip.on("ready", styleit)

Categories : Javascript

jQuery .load() won't doesn't work
Nope! You cannot use JavaScript to load a page from a remote website. This violates Same Domain Policy.

Categories : Javascript

CSS padding for safari and jQuery doesn't load
add http: at the start of the jquery script request. src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" And you don't have anything in you html with a class of jplnav. Unless it's added by the slider (which isn't running because jQuery isn't loaded).

Categories : Javascript

ExtJs doesn't load data to a form
You don't need the data store for something that can display only one set of data items at a time. The problem may be in Json Format too. Json format should contain success property and data property. Please refer below link for reference http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.Action.Load

Categories : Java

Indy FTP doesn't load correctly a progress bar
AWorkCountMax and AWorkCount are byte counts, not percentages. You need to take that into account when updating your UI, especially if you want to display a percentage. With that said, AWorkCountMax will only be valid on uploads, never on downloads. The reason for this is because The FTP protocol does not transmit the file size during transfers, so TIdFTP does not know the size of a file being downloaded, only the size of the local file being uploaded. For a download, you will have to retrieve the file size manually first, either with TIdFTP.Size(), TIdFTP.List(), or TIdFTP.ExtListItem(). And stay away from Application.ProcessMessages() altogether. If you want to trigger a repaint, use Update() instead. Try this: procedure TForm1.IdFTP1WorkBegin(ASender: TObject; AWorkMode: TWorkMo

Categories : Delphi

ASP.NET MVC4 doesn't load view in a different assembly
Your views are not going to end up in the assembly unless you set each view file's 'Build Action' to "Embedded Resource" in Visual Studio (right-click the file, select properties). But then the views are still not going to be found by the runtime, since the default behavior is to look for views on disk, not inside assemblies. But this behavior can be changed. So if you are really set on embedding the views inside your assembly, then you will have to implement a VirtualPathProvider and register it when the main application starts. All providers are given the chance to provide a 'virtual file', so your provider will get a chance to stream the view file out of the assembly (if and when the view is requested by the runtime). An alternative is to add a post build event to your secondary proje

Categories : Asp Net

Font doesn't load correctly when running from jar
If you say that the app runs correctly when running a command, then try this: Process proc = Runtime.getRuntime().exec("java -jar app.jar"); // make sure to provide path for it InputStream in = proc.getInputStream(); InputStream err = proc.getErrorStream(); OutputStream out = proc.getOutputStream(); // in/out/err streams of proc

Categories : Java

Google Fonts Font Doesn't load
Few tips: 1. Use the HTML code in the beginning of your <head>, before anything else. Example: <head> <link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'> /* Rest of the code after this */ </head> 2. If that doesn't work, put this in your CSS file instead: @import url(http://fonts.googleapis.com/css?family=PT+Sans);

Categories : CSS

Browser doesn't load .jnlp file
If you use Apache, add these lines to your httpd.conf: AddType application/x-java-jnlp-file .jnlp AddType application/x-java-archive .jar AddType application/x-java-archive-diff .jardiff

Categories : Java

Data doesn't load into c++ vector correctly
Your DisplayData function is a little weird, and so is your LoadData. Your LoadData pushes back a new copy of the current ENTRIES entry with every line. Your DisplayData starts at 1 (which is not the beginning of any vector or array), and iterates only up to the 1/5th entry of the entire vector. This needs a heavy rework. First, the size() member of any standard container returns the number of elements that it contains, and will not take the number of fields in a contained struct into account. For future reference, you'll want to post your question in a complete, standalone example that we can immediately compile to help. (see http://sscce.org/) Try this modified data, which runs correctly, and see if you can tell what is being done differently: #include <iostream> #include &

Categories : C++

UITableView within a UIViewController - Data doesn't load
Your child tableView is basically a cell of your parent tableView. So, unless you reload your parent tableView, the cell will not update, and hence, the child tableView will not be plotted. [childTableView reloadData]; [parentTableView reloadData]; EDIT : And @Desdenova is right. Make sure you set your delegate and data source to self or whatever class manages the tables.

Categories : Objective C

How can I find out why a trivial Word add-in doesn't load?
I recently came across the same problem, that it's very hard to find out why the loading of an addin fails. In my case it was just a version mismatch of the addin-dll, but there could be more possibilities. The tool AddinSpy was very helpful for me for figuring out the exact error (http://archive.msdn.microsoft.com/AddInSpy/). Also, you could enable the Fusion logs - if you are using .net to develop the addin, which is not quite clear from your question. You can find more information on the fusion log viewer here, it could provide valuable information if the .net runtime is not able to load your dll: http://msdn.microsoft.com/en-us/library/e74a18c4.aspx

Categories : Visual Studio 2010

JQuery doesn't keep an input focused on load
Alright, might as well make an answer. Your input HTML: <input id="searchinput" class="transparent" placeholder="Enter a car..." autofocus /> And your new more efficient jQuery: var $searchinput = $('#searchinput'); function returnResults(qdata,e){ e.preventDefault(); $('#results').load('search.php', {query: qdata}, function(response, status, xhr){ if (status == "error") { alertify.alert("There has been an error, please refresh and try again!"); } }); } $searchinput.on({ keyup:function(e) { returnResults($(this).val(),e); }, keydown:function() { if ($(this).hasClass("lightIn")) { $(this).removeClass("lightIn").val(""); } }, blur:function() { $("#find").removeClass("selec

Categories : Jquery



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