w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Convert Web Friendly Django app to a Mobile friendly django app
In a word, no. You're going to have to rewrite most of your templates to be "responsive" to smaller (mobile) screen sizes. I'd recommend Bootstrap for your HTML5/CSS3 framework. Easy to get started, easy to extend.

Categories : Python

Problems with bttv camera mobile robot - intialisation noisy image
i would guess you are having hardware problems, either with your camera or with your framegrabber, most likely with your camera. make sure that your camera has it's optics mounted try connecting the camera to another display device (e.g. an old analog TV with composite in), and see whether you still have that noisy image try connecting another camera to your framegrabber card, and see what the image looks like. from the bttv-side, the only configuration that could help, is to select the correct video norm, e.g. whether camera and grabber both agree that they are using PAL or NTSC or whatever (and of course the various subformats). try changing the norm with any viewer program, that allows that during playback, e.g. xawtv PS: the fact that you get a nice blue image when the camera i

Categories : Linux

How to make a scrolling website mobile friendly?
The problem may be that your content is fixed at 800px so if your phones screen is approx 800px there wont be any space left on the sides. You should take a look at media queries for css and maybe have a different content width for phones, so there will still be margin left on the left and right. Example @media only screen and (max-width: 767px) { .content { width:500px; margin: 6% auto; } }

Categories : Javascript

SEOstats API Google Pagerank Blocked by Google
Well.. That is not an issue with SEOstats. The problem is that Google detected that you send automated requests to it, which is against their Terms of Services! You should be able to "solve" this by getting a fresh IP from your provider (turn router off/on) or sending your requests through proxies. Anyway, you must decrease your request frequency to avoid getting blocked again! See: https://github.com/eyecatchup/SEOstats/issues/33

Categories : Api

Google closure library blocked
If your site is running on HTTPS, then you need to access the Google Closure Library via HTTPS as well. Try using a protocol-relative link to keep your site's protocol usage consistent with the way it retrieves the Google Closure code. <script src="//closure-library.googlecode.com/svn/trunk/closure/goog/base.js""></script>

Categories : Misc

Blocked iframe in google chrome
I am afraid I do not have the reputation of marking it as a possible duplicate. Hence my only option is to paste the link here. Hope it helps. Unsafe JavaScript attempt to access frame with URL - in the same domain

Categories : Javascript

Google + SignIn Button Blocked Frame
Turns out that the reason that my button wasn't authenticating without a refresh was beacuse I forgot to close my <script> on my server, even though it was closed in the code in my question. For the error it does seem like you can ignore it (thanks @Ismael Toé).

Categories : Javascript

Keep google chrome extension ContentScripts working while javascript is blocked
Just in case someone stumbles upon this: There currently is no way in keeping functions of a contentScript running while JavaScript is disabled. Probably this feature will never be implemented, but who knows. You are still able to execute some code though e.g. DOM Manipulation is still possible, hence the menu I wanted to inject was still displayed.

Categories : Javascript

Javascript framework 'blocked' in Google+ Hangout app (insecure content)
Your assumption is correct. You need to embedd this script over HTTPS. Yahoo does not offer SSL support on their CDN. Read why. You may use the google CDN: https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build/yahoo-dom-event/yahoo-dom-event.js

Categories : Javascript

How to create Google Chart friendly JSON arrays from MySQL?
Try replacing this line: $statement->store_result(); with: $results = $statement->get_result(); and replace the foreach loop with a while loop: while ($r = $results->fetch_assoc()) { $temp = array(); // The following line will be used to slice the Pie chart $temp[] = array('v' => (string) $r['projid']); // Values of the each slice $temp[] = array('v' => (int) $r['hours']); $rows[] = array('c' => $temp); } That should get the query to return results. You don't need the lines: $statement->bind_result($projid, $hours); $statement->fetch();

Categories : PHP

how to navigate in a mobile app without reloading all resources?
You can do an AJAX call to whatever the local URL is and wrap the entire response in something traversable via jQuery, like... // on click link -> $.get('myUrl.html', function(response) { var new_body, traversable; traversable = $('<div></div>', { html: response }); new_body = traversable.find('body').html(); // code to replace your content here ... }); And if you have a lot of scripts/styles running per page, you could traverse through the list of traversable.find('link') and traversable.find('script') to compare what has and has not been used yet. Then append to the document after replacing your markup.

Categories : Javascript

Google analytics event tracking - make the reports user friendly
substr(this.href, -10) will only work correctly, whenever the filename is accidentially 10 characters long. A more sophisticated solution would be something like this: var page = this.href.splitOnLast('/'); // this should return an array with two elements: path and filename page = (page.length > 1) ? page[1].substr(1) : page[0]; // just in case there is no / in the this.href _gaq.push(['_trackEvent','Download','PDF', page]); Now you should get "somethingToRead.pdf" in your Google Analytics tracking.

Categories : PHP

Google Places Autocomplete with Jquery Mobile not working on mobile/touch device
After much hair pulling I have found the problem to be the "FastClick" library I added to my project. As @Saravanan Shanmugam points out in this comment http://stackoverflow.com/a/16932543/1177832 FastClick seems to interfere with autocomplete. Also see above link for the workaround he has added to get the two to play nice.

Categories : Jquery

how to get google style fixed header in mobile (no jquery mobile)
<html> <head> </head> <body> <style> body { margin: 0; padding: 0; } .TOP_TOOLBAR, .BOTTOM_TOOLBAR { height: 50px; width: 100%; position: fixed;background: #ccc;z-index: 10; } .TOP_TOOLBAR { top: 0; } .BOTTOM_TOOLBAR { bottom: 0; } .SCROLLER_FRAME { width: 100%; position: absolute; top: 50px; bottom: 50px; } </style> <div class="TOP_TOOLBAR"> ... toolbar content ... </div> <div class="SCROLLER_FRAME"> <div class="SCROLLER"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sollicitudin molestie

Categories : Jquery

Google Apps Engine, Sending out Emails Receiving this Error (Attempt to access a blocked recipient without permission.) Java
This is not a definitive answer ... The exception message says this: Could not connect to SMTP host: localhost, port: 25 (java.net.SocketException: Permission denied: Attempt to access a blocked recipient without permission.)) So the transport is attempting to use an SMTP service running on the same machine as the GAE. But the error message seems to indicate that it succeeding in connecting, and the SMTP service refused to accept the email for delivery to any of the recipients. So I would suggest that you do the following: Try it out with a real email addresses not "xxx@example.com" addresses. Check the configurations for your local MTA service (whatever it is) to see if it is configured to relay email to external addresses. Check the MTA log files. There should

Categories : Java

HTTP server implementation: Mobile web browsers (e.g. Android standard) stop loading page resources
The reason is the connection limit! Some of the credits for this answer go to Eun who had the best hunch. The answer came to me when looking at the connection logs that can be generated by Chrome for Android and viewed by Desktop Chrome. I found that all resources that fail to be loaded result from the connections being rejected on the server side. That means that request jobs that are queued for a connection that fails due to server-side reset, are not rescheduled for another connection despite other connections being alive and having the "Connection: keep-alive" header field. I can also verify that chrome does not use request pipelining. When connected to a WiFi that is. Desktop browsers do reschedule failed request jobs and that is why it works with them. I have a workaround that cur

Categories : Android

Where I can find resources of Google Szl (Sawzall)?
Unfortunately there is not money resources available on the web and most them comes from google itself. beside Slz official site code.google.com/p/szl and its wiki you can also join Slz google group and ask question about the code there. and you can find some examples of slz in there. Also there is a good paper about Slz here

Categories : C++

Titanium SDK: The Google Play services resources were not found
The maps only work on device. Are you running this in the emulator? I have an additional permission set "android.permission.ACCESS_NETWORK_STATE" Also double check to ensure your appId is correct and matches what is in your tiapp.xml file <android xmlns:android="http://schemas.android.com/apk/res/android"> <tool-api-level>14</tool-api-level> <manifest> <!-- uses-sdk android:minSdkVersion="11" android:targetSdkVersion="14" --> <!-- Camera Access --> <uses-permission android:name="android.permission.CAMERA"/> <uses-feature android:name="android.hardware.camera"/> <uses-feature android:name="android.hardware.camera.autofocus"/> <!-- Allows the API to download data from Google Ma

Categories : Android

Resources exceeded during query execution error, Google BigQuery
An equivalent query on public data, that throws the same error: SELECT actor, repository_name, count(*) AS count FROM [githubarchive:github.timeline] AS d GROUP EACH BY actor, repository_name ORDER BY actor, count desc Compare with the same query, plus a limit on the results to be returned. This one works (14 seconds for me): SELECT actor, repository_name, count(*) as count FROM [githubarchive:github.timeline] as d GROUP EACH BY actor, repository_name ORDER BY actor, count desc LIMIT 100 Instead of using a LIMIT, you could go through a fraction of the user_ids. In my case, a 1/3 works: SELECT actor, repository_name, count(*) as count FROM [githubarchive:github.timeline] as d WHERE ABS(HASH(actor) % 3) = 0 GROUP EACH BY actor, repository_name But what you really want is "to get th

Categories : SQL

Grails Resources Plugin: how to inline JavaScript via resources boundles defined in ApplicationResources.groovy?
If you provide <r:script>var appId = 22;</r:script> either in the body or disposed in head, inside main layout, shouldn't it be available to the child pages whichever uses the layout? @Resource r:script

Categories : Grails

Maximize resource utilization given multiple types of resources and specific mixtures of resources per task
This sounds just like a multiple knapsack problem - the only thing you need to change is to assign each item value that is equal to the sum of the items it use, then it becomes a standard knapsack since while maximizing the sum, the remainder is minimized.

Categories : Algorithm

wpf - Context menu - Reuse static resources within dynamic resources
Try StaticResourceExtension and x:Shared="false". <MenuItem x:Key="PrintDoc" x:Shared="false" Header="Print" Click="PrintDoc_OnClick" Icon="{StaticResource IconPrinter}" /> <ContextMenu x:Key="MergedContextMenu"> <StaticResourceExtension ResourceKey="PrintDoc" /> </ContextMenu> Check this link.

Categories : C#

Using client-customized resources (resx) as well as default resources
As T.S. mentioned above, I would also recommend a database resource provider. http://msdn.microsoft.com/en-us/library/aa905797.aspx Depending on your application, you can use the standard MS SQL Resource provider or customize it in case it's an app where MS SQL makes no sense.

Categories : C#

Google Mobile Ads SDK App Events with Click Tracking
Hello i think this answer is a bit late but the code you quoted actually works!! Inside your head tag of HTML of the creative <script src="http://media.admob.com/api/v1/google_mobile_app_ads.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script> // Send an event when ad loads. // admob.events.dispatchAppEvent("adId", "1"); // handle your click with onClick="handleClick()" handleClick = function() { admob.log("click ad: call handleClick()"); // call a log to XCode console for debug // Send an event when ad is clicked. admob.events.dispatchAppEvent("eventName", "params"); //{action}|{action params}... //magic goes here //i think the click measure throu

Categories : IOS

Loading Google Charts with jQuery Mobile
I figured it out. Instead of setting a callback to fire once the API has loaded, because the way I am using it, it should always be loaded by the time I am trying to use a chart, I just fire off the drawChart() function when needed. Changed // Set a callback to run when the Google Visualization API is loaded. google.setOnLoadCallback(drawChart); function drawChart() { //Code here... } To *Main Function* { drawChart(); } function drawChart() { //Code here... }

Categories : Javascript

google analytics not working for mobile website
I think this might be possible by using _getLinkerUrl() in your GA tracking code. Please refer to the GA documentation for more details, I am sure this will help.

Categories : Google Analytics

how can i use google earth API with backbone.js+jquery mobile?
The Earth API works with the Google Earth Plugin, which is available only on Windows and Mac OSX. It is not available on mobile devices, sorry! If you're testing on your Mac or Windows system, you should be able to get it working. The error code ERR_INVALID_DIV sounds like it isn't finding the map3d div. I would put a debugger; statement in the code just before the google.earth.createInstance() call, and then look around in the DOM inspector and see if map3d is in the DOM. It should be coming in from your template if that part is working. But this won't help you when you try to load your site on a mobile device, because you won't have the Earth plugin available there.

Categories : Jquery

Serious issue with Swipebox and Google Chrome mobile
Try to leave class as "swipebox", I mean like this: class="swipebox" everywhere for each of your 3 galleries. To run Swipebox use "rel" attribute like this: <div class="box"> <a rel="gallery-1" href="example/assets/full/leap.jpg" class="swipebox" title="Leap"> <img src="example/assets/leap_thumb.jpg" alt="leap"></a> </div> <div class="box"> <a rel="gallery-2" href="example/assets/full/leap.jpg" class="swipebox" title="Leap"> <img src="example/assets/leap_thumb.jpg" alt="leap"></a> </div> Let us know if that works!

Categories : Google Chrome

mobile IOS Google chrome address bar behaviour
Well, I found a way to work. <body style="overflow:hidden;"> <header style="width:auto;display:block;padding:12px;text-align:center;background-color:#1276c7;color:white;position:fixed;top:0;left:0;right:0;opacity:1;">FIXED HEADER</header> <div role="main" style="height:100%;overflow-y:scroll;padding:60px 0;box-sizing:border-box;-webkit-overflow-scrolling: touch;"> <article> ...(content)... </article> </div> </body> It appears that we need an inner scrollable element and remove overflow on body. I overthought it, it seems. Hope this helps someone.

Categories : IOS

Google Cast capabilities on Chrome Mobile
It is a little unclear what you're asking, but it seems like you're asking if there is any hope of getting a native extension on the mobile version of Chrome. From https://developers.google.com/chrome/mobile/docs/faq Does Chrome for Android support apps and extensions?Chrome apps and extensions are currently not supported on Chrome for Android. We have no plans to announce at this time. I wouldn't plan on having extensions anytime soon. You could always write a native application to the operating system and broadcast from there.

Categories : Google Chrome

Android Mobile as Gesensor Remote for Google TV
We aren't offering any protocols for this. You might wish to open a socket on your TV when the app is running, and listen for input, then your remote can send messages to that socket. While you could use either TCP or UDP, I think you'll find UDP gives better performance.

Categories : Android

Tracking Facebook Mobile Ads with Google Analytics
On Android, the android SDK actually has libraries to process that referral: https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#general-campaigns

Categories : Android

Google map not showing on Jquery Mobile page
Changed to this code instead and it seems to work. Don't ask me why... <div id="map_canvas" style="height: 500px; width: 600px;"></div> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;language=en"></script> <script> var mapOptions = {zoom: 5, center: new google.maps.LatLng(34,32), mapTypeId: google.maps.MapTypeId.ROADMAP}; var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); var myMarker1 = new google.maps.Marker({position: new google.maps.LatLng(29.979175, 31.134358), map: map, icon: 'http://www....1.png' }); var myMarker2 = new google.maps.Marker({position: new google.maps.LatLng(32.483333, 44.433333), map: map, icon: 'http://www....2.png' }); var myMarker3 = new google.maps.Marke

Categories : Google Maps

How can I measure retention using Google Analytics Mobile SDK
You can do this with the Quantcast app measurement SDK. It allows you to define any install date cohort on the fly and look at user retention for that cohort. It will also compare your app to the average app user retention. A good example of this is the profile for the GoodReads iOS app. Look at the "User Retention After Install" section. Full Disclosure: I work at Quantcast

Categories : Google Analytics

RESTfully adding multiple resources as sub-resources
Use POST on the collection resource /collection/COLL-1234/items. You are right that PUT is meant to replace the collection. But POST creates a new sub-resource. If the representation you POST is not one sub-resource but a list of sub-resource, this is OK, too.

Categories : Rest

Playing audio from data:url google chrome mobile
This is most certainly a bug. Any time that you have it working on desktop and it fails to work on Chrome for Android that it is 99.5% likely to be a bug. I have raised the bug here: https://code.google.com/p/chromium/issues/detail?id=253466 with a demo of the error here: http://jsbin.com/ajocid/latest There is another solution on the desktop to encode the audio into a Blob and play that, unfortunately that does not work either on Chrome for Android and needs to be fixed. The best you can currently hope for until the two bugs are fixed is to upload this to a server and play it from there.

Categories : Javascript

Using custom entity IDs with the Google Mobile Backend Starter
I'm a Googler on the MBS project. I recreated your issue and first glance shows this as a bug on our side. I'll edit my response with updates. Would this workaround be ok until we push a fix? avg.put("samId", upc)

Categories : Android

Upgrading Google Mobile Ads iOS SDK from 5.0.5 to 6.4.2 results in linker errors
Maybe you need the -all_load linker flag option too? According to this article it's obsolete for newer ARM7 targets, but perhaps you have an old target? http://vntin.com/feeds.feedburner.com/blogspot/LTiVe See under this section: "Support for armv7s" "If you’re targeting the armv7s architecture, you will not need to add the -all_load linker flag to your projects anymore. " [Update] You can try to verify what's in the lib*.a file by using the nm command. nm -U libGoogleAdMobAds.a | grep kGADAdSizeBanner Also, clicking on the Log Navigator may provide some additional information. Select the last icon then your last build in the left nav. [Update 2] Someone on this site also complained about a linker problem with the new API. Might have to make small changes to your code. h

Categories : IOS

Google Analytics Mobile SDK "request for permission" requirement
Found it! Sort of. It's in the Measurement Protocol / SDK Policy doc. It states: You will give your end users proper notice about the implementations and features of Google Analytics you use (e.g. notice about what data you will collect via Google Analytics, and whether this data can be connected to other data you have about the end user). You will either get consent from your end users, or provide them with the opportunity to opt-out from the implementations and features you use. That's the Measurement Protocol / SDK Policy. It's not 100% clear to me that it refers to the iOS and Android SDKs. On the one hand, the table of contents type thing on the left has it under Measurement Protocol > Resources. The iOS and Android SDKs are outside of Measurement Protocol. So that suggests it d

Categories : Google Analytics

Google chart legend pager issues on mobile
You cannot edit the size because it's an SVG path. The size of those can only be edited within the tag and not with css. The only option could be with JavaScript. You have to edit the attribute d and figure out higher dimensions as path only uses dimensions instead of height and width. Play a bit around with path{ fill:red; } to see what you can do more with it. This is the current tag from the left arrow: <path d="M356,162L351,151L345,162Z" stroke="none" stroke-width="0" fill="#cccccc"></path> Where d is the dimension. Hope this helped you a bit though this is not the solution.

Categories : Javascript



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