w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
typescript 0.9.1 source maps not working anymore
They changed the format of the source map reference at the bottom of your *.js file. Change: //# sourceMappingURL=[filename].js.map to //@ sourceMappingURL=[filename].js.map See https://typescript.codeplex.com/workitem/1445 for more. It looks like newer versions of Chrome will support this new format.

Categories : Typescript

Determining the correct RGB for an html heat map
You might want to a look at Chroma.js. It's a library that will handle the generation of color scales and the conversion of colors for a variety of ranges and color spaces.

Categories : Javascript

Like box not showing photos anymore
This is "by design". The limited space of social plugins like the Like Box and Activity Feed means FB has to display 'compact' versions of large stories like photos. If you look at the CSS, you'll see the DIVs are tagged '!important' (not important).

Categories : Facebook

Google Maps API and Facebook SDK for Android don't work anymore, probably because of the debug key
I have facing same issue like this ,My problem is solved by print out the key hash sent to Facebook. put this code for getting the keyhash try { PackageInfo info = getPackageManager().getPackageInfo( "com.facebook.login", PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } } catch (NameNotFoundException e) { } catch (NoSuchAlgorithmException e) { }

Categories : Android

d3.js Date vs Half hour heat map not working
The scale for the y axis you're using is a linear scale. You're using .ticks(d3.time.minutes) to set the ticks for the axis for that scale. You can only do this for time scales, not linear scales. If you change either the way the ticks are computed or the type of scale it should work.

Categories : D3 Js

Google map showing NetworkError: 403 Forbidden - http://maps.googleapis.com/maps/api/js/QuotaService.RecordEvent
I'm not sure if that's the reason, but there is an issue with your code: var theLat = thePos.jb; var theLng = thePos.kb; and var theLati = thePos.ob; var theLngi = thePos.pb; you try to access properties of the LatLngs(jb, kb, ob, pb) that are used internally by the API, the names of these properties may change . Use the methods lat() and lng() to retrieve latitude and longitude: var theLat = thePos.lat(); var theLng = thePos.lng(); and var theLati = thePos.lat(); var theLngi = thePos.lng();

Categories : Jquery

Set JQuery HTML javascript Checkbox working but not showing as checked
DEMO Try this <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script> function selectAll() { if ($('#checkboxProd2').is(':checked')) { alert("checked"); $('#checkboxProd2').prop('checked', false); } else { alert("unchecked"); $('#checkboxProd2').prop('checked', true); } } </script> </head> Hope this helps,Thank you

Categories : Javascript

Trusted_Connection isn't working anymore
I would start doing following tests in the server. check the the SQL services are working: SQL Server & SQL Browser services at least check that you can connect to the SQL Server from the local station itself. use OSQL or SSMS check that the firewall at the Server is Off or allows access to critical SQL Ports like 1433 for TCP protocol and I believe that 445 & 139 for Named Pipes in SQL Configuration Manager check that you have TCP and Named Pipes enabled (assuming that you are using SQL 2005 and up)

Categories : C#

ODRefreshControl isn´t working anymore
I added only one Value in ODRefreshControl.m to fix the Issue for iOS7. Maybe the value is a little bit different from app to app! BEFORE: - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if ([keyPath isEqualToString:@"contentInset"]) { if (!_ignoreInset) { self.originalContentInset = [[change objectForKey:@"new"] UIEdgeInsetsValue]; self.frame = CGRectMake(0, -(kTotalViewHeight + self.scrollView.contentInset.top), self.scrollView.frame.size.width, kTotalViewHeight); } return; } AFTER: - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change: (NSDictionary *)change context:(void *)context { NSInteger iOS7Value = 60.0f; if ([keyPath isEqualToString:@"co

Categories : IOS

Stream closed showing up in play framework 1.2.5
i found the answer. in my application i found like this public static Response upload(File file){ System.out.println("Appliaction.upload"); response = ResumableUpload.post(); return response; // render(response); } the parameter file, it must be delete, then it work!

Categories : Java

jQuery JSONP not working anymore?
Content-Type:application/javascript rather than Content-Type:application/json; Could it be because your file is named .js, that Apache is serving the content type itself? Try changing the file type, to JSON and setting up Apache to serve that filetype with the correct MimeType. I found this using Fiddler - A HTTP Debugger.. open Fiddler(2), make your request in your browser and Fiddler2 then picks it up. From there, just checked the response for your file. It looks like your server is returning the response as "Application/Javascript"

Categories : Javascript

GetFollowerIDs function is not working anymore
What is happening here: a = None a -= 5 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for -=: 'NoneType' and 'int' for some reason your total_count variable is set to None

Categories : Python

mysql trigger not working right anymore
My trigger all of a sudden stopped working. As of myself I would say your trigger suddenly start working as expected :D More seriously, auto_increment fields don't have value until the row is inserted. It is strange you could have accessed that auto_increment value in your BEFORE trigger, obtaining anything else that 0. Maybe you could switch to an AFTER INSERT trigger? OTOH, if you really need access auto_increment value from your before trigger, try using that in your trigger: Set ai = (SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='tbl') I don't know however how this will behave regarding of concurrent insert into your table.

Categories : Mysql

Audio wav file not working anymore in java
You can build AudioInputStream this way: InputStream is = ClassLoader.getSystemResourceAsStream("Audio/police.wav"); AudioInputStream ais = AudioSystem.getAudioInputStream(is); Don't forget to check if the InputStream is null. It will give you more control to investigate if something goes wrong. This snippet assumes there is a resource Audio/police.wav available in your classpath

Categories : Java

Console.WriteLine isn't working anymore in VS2012
Getting output from Console.Write/Line() to appear in the VS Output window is a non-trivial feature. it requires debugging with the "Visual Studio Hosting Process". You'll see it back in both your build directory and TaskMgr.exe's Processes tab, it has the same name as your project but ends with "vshost.exe". A fair amount of invisible magic happens inside the hosting process. It is a custom host for the CLR that gives the CLR different behavior from the one you normally run with. It is very poorly documented, the primary reason for its existence appears to be related to security. But one goody it takes care of is being able to redirect output written with Console.Write to the Output window. Project + Properties, Debug tab, verify that the "Enable the Visual Studio hosting process"

Categories : C#

Python scipy.weave not working anymore
It is finding python27.lib (in the python folder) but is skipping it as incompatible most likely as it was built with Visual C++ and you are using gcc - You probably had a gcc build of python on your path - if so you need to add it back or set the linker path to include . i.e. the current directory.

Categories : Python

PHP Code for getting Facebook likes not working anymore
They have removed the open Rest API, to get this you need to implement the Oauth2.0 in your application. The steps involved are : 1) Register your app You will receive a CustomerKey and a Secret Code 2) Use both the Key and Code to receive an accessToken 3) Uses the same url which you are using, along with a new parameter which is accessToken=/*the one you received*/

Categories : PHP

Which options for python deployment do I have if GCC not working anymore
Build elsewhere, on a build host -- run buildout in a place it can be run (a box of same architecture running GCC) -- then integrate Fabric into your build environment to push the build to your deployment host. I have not done this, but assume you would have to write much of the means to push what you need (e.g. built eggs, develop-eggs, src, parts, bin directories) to your server in your fabfile.

Categories : Python

Eclipse has stopped working and won't start anymore
Okay so here's a temporary fix I've found to this: On the splashscreen box where it says Workspace, change the workspace to something else. I've looked at other solutions and they did not work for me at all and I'm not going to reinstall Eclipse all over again if I can help it ! The intuitive sense of the problem that I have is that when I shut down eclipse the error causing task was still running. Some insight might be found here as well: http://www.metod.si/job-found-still-running-after-platform-shutdown-eclipse/ , although it was not the same error. Au revoir, and I'll post any updates if I have them.

Categories : Java

Why have maps stopped working with the latest Google Maps update?
The problem here is, if you start navigation without enabling gps and then enable it while the app is running, it doesn't sense that gps is on. Its just because it asks if the gps is on when it first turns on. The solution would be that you need to enable gps before entering the app, or if you forget, just back out of the app and re-enter.Also can stop updates to fix the issue. Also have a look at it: Google Services Bug Causing Location Issues, Google Working On A Fix

Categories : Android

Twitter Bootsrap 3.0 - tabs-left not working anymore?
Unfortunately, as I used them too, it appears that all of the non-default tab alignments have been removed in 3.0 with no equivalent. Copied directly from the above link, all three tab alignments were removed from 3.0: .tabs-left .tabs-right .tabs-below

Categories : HTML

highchart.. browser stop working on loading a chart
PRoblem was with setting xAxis. In Highcharts it's not possible to set in the same time categorized axis and datetime. Also when setting minRange to some high values like 60 000 for categorized chart, Highcharts expect to display at least 60 000 categories, which is impossible to display 60 000 of labels for xAxis on a chart with width ~1000px.

Categories : Javascript

How to optimize a SQL query showing 2 adjacent rows with closed in values timestamps?
may be you can simply your query by using subquery select b1.create_stamp as st1, b2.create_stamp as st2, b1.request_id as b1_id, b2.request_id as b2_id, msi1, msi2, (msi1 - msi2) as diff from ( select * , Cast(date_part('milliseconds', create_stamp) as Integer) as msi1 from request ) b1 , ( select * , Cast(date_part('milliseconds', create_stamp) as Integer) as msi2 from request ) b2 where (b1.request_id - b2.request_id) = 1 and (msi1 - msi2) < 100 and (msi1 - msi2) > 0 order by b1.request_id;

Categories : SQL

.htaccess forctype not working on godaddy anymore possible rewrite rule?
Add the following lines to your .htaccess file: Options +ExecCGI AddHandler x-httpd-php5-3 .php This should allow the ForceType to work properly! F.Y.I: I had the exact same issue, so I called GoDaddy tech support, and surprisingly they were able to solve the problem. It did in fact have to do with the switch to Apache 2.4 and some changes in GoDaddy's servers. Good Luck! Edit: I forgot to mention that a php5.ini file that sets cgi.fix_pathinfo = 1 is necessary! If you are getting a "No input file specified" error, this should solve it.

Categories : Apache

form with post method to google spreadsheet not working anymore
I recall reading somewhere that G doesn't like third party apps bypassing the Form in order to post directly to the spreadsheet. You might need to write a simple Apps Script or App Engine servlet to get a robust alternative.

Categories : Javascript

iOS maps and google maps SDK - working with coordinates
As you have said, generating random coordinates and checking for streetview availability will be inefficient since many countries do not have streetview coverage. I would recommend the below approach: 1, Get the list of countries with full streetview coverage as given in the list. 2, Choose the set of countries you would like to cover in your app and for those countries create a list of bounding boxes. For example , if you use the geocoding api with the address as a country, then the response will have coordinates of the bounding box that will approximately enclose the country. 3, In your app, retain the list of countries and bounding boxes. Now randomly pick a country from the list and then build a random coordinate that lies within the bounding box for that country. That is SW.lat

Categories : IOS

Google maps not showing correctly
You're setting up your map in a function called initialize(), which is called when the page is loaded by this line of code: google.maps.event.addDomListener(window, 'load', initialize); However, your map-canvas element is not yet sized properly, because it has width:100% and it is a child of the .contact-overlay element which has display:none. Remove that line of code, and instead call initialize() explicitly after you click the Contact Us link and the slide-open area appears. Once that is visible and sized, then initialize the map with the initialize() call. This will also help your page load faster, since it won't initialize the map on every page load, only when the contact overlay panel is opened.

Categories : Google Maps

Google maps control is not showing
Looks like you haven't added the options for the controls, or at least the zoom control. https://developers.google.com/maps/documentation/javascript/controls#Adding_Controls_to_the_Map Based on that it would appear you need to add them just after the Initialize.

Categories : CSS

Google maps api marker not showing
You appear to be missing the var keyword in front of the marker and Atlanta variables. To fix, I would also declare the map, marker and Atlanta variables outside of the initialize() function in the global space, so they are accessible to other functions. Try this: var map; var marker; var Atlanta; function initialize() { var map_canvas = document.getElementById('map_canvas'); var myLatlng = new google.maps.LatLng(33.748995, -84.387982); var mapOptions = { center: myLatlng, zoom: 11, mapTypeId: google.maps.MapTypeId.TERRAIN }; map = new google.maps.Map(map_canvas, mapOptions); TestMarker(); } // Function for adding a marker to the page. function addMarker(location) { marker = new google.maps.Marker({ position: location,

Categories : Javascript

Google Maps API showing blank map
It is because of the worng "google.maps.LatLng" provided. provide for a test the coords and it will work. replace the line center: new google.maps.LatLng(results[0].geometry.location), with center: new google.maps.LatLng(-34.397, 150.644) get England coords

Categories : Javascript

Backbone and Google Maps not showing
I finally found where the problem was, after searching stackoverflow intensively I found this question. Basically I had to change my call to google map's API and append "&callback=gMapsCallback" at the end of the call, so where I was doing: <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> I had to do this even though I'm not using the callback <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=gMapsCallback"></script> and now the map is showing. Hope this helps somebody else!. Thank you all.

Categories : Backbone Js

Google maps marker not showing up
Try the following code <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Simple markers</title> <link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet"> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <script> function initialize() { var myLatlng = new google.maps.LatLng(38.895112,-77.036366); var mapOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: 'Hello World!' }); } google.maps.even

Categories : Javascript

Google Maps not showing up Android
If you're completely sure that your API key from the manifest file is the right one, your SHA1 key / package name are correctly copied down and you have an active Internet connection, then you should try uninstalling app from your device or emulator and build it again afterwards.

Categories : Android

Doesn't all HTML tags need to be closed?
No tags do not always have to be closed; the HTML5 spec enumerates when and where this behavior is appropriate. However it is much easier for browsers to parse the HTML if tags are closed properly, IE9 do not follow the HTML5 parsing rules and may break if tags are not closed properly.

Categories : HTML

Showing a lot of points on Google Maps Android v2.0
The best way is to only plot what you can see on the map and when the map moves get the new points you can see so that you eventually dont have to plot anymore. You can also look into clustering where if you have a bunch of markers in a certain area you can indicate a group of markers by just plotting one marker this link goes over the different method you can use https://developers.google.com/maps/articles/toomanymarkers

Categories : Android

Showing multiple markers on google maps
If you want to have control of your markers, you need to add them into an array and then remove all of them before adding a new one: markersArray = [] function codeAddress() { var sAddress = document.getElementById("inputTextAddress").value; document.getElementById("map_canvas").style.removeProperty('display'); geocoder.geocode( { 'address': sAddress}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); map.setZoom(10); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); RemoveMarkers(); markersArray.push(marker) } else { alert("Helaas

Categories : Javascript

Shadow not showing google maps marker
With the release of v3.14 as the experimental version, any maps not specifying a version number, will get the new visual refresh behavior, which includes no shadows. Changes in the visual refresh All shadows have been removed in the visual refresh. Any shadows specified programmatically will be ignored.

Categories : Javascript

Google Maps API, problems showing InfoWindow
In the following section of code var coordInfoWindow = new google.maps.InfoWindow({maxWidth : 10}), Change the maxWidth property to a higher value (at least 100), or remove it, and you will see your address information. Here is the updated jsFiddle showing a value of 120 for the maxWidth.

Categories : Javascript

Android Google Maps not showing in signed apk V2
You don't need a separate API key for your release signing key. The only thing you need to do, is adding SHA of release key on APIs Console, so you have two lines there instead of one: D3:49:EF:3D:0E:...:D5:5F:59:46:11:C1:85;pl.mg6.android.maps.extensions.demo C1:3A:96:3E:F8:...:4D:F1:52:77:D0:01:0E;pl.mg6.android.maps.extensions.demo

Categories : Android

Google Maps API v3 - google.maps.geometry.poly.containsLocation not working the first time
Main reason is at first time google api is not loaded properly and you are trying to use var rsul = google.maps.geometry.poly.containsLocation(new google.maps.LatLng(-12.043333, -77.028333), bermudaTriangle); so it is showing 'Cannot read property 'poly' of undefined' so we need to use timeout to getting work on page load. example: setTimeout(function() { var rsul = google.maps.geometry.poly.containsLocation(new google.maps.LatLng(-12.043333, -77.028333), bermudaTriangle); console.log(rsul); }, 1000); so it is giving proper boolean value

Categories : Javascript



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