w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Open document file with Google Docs, Asp.Net
Use an iframe to embed File.embedLink, documented on https://developers.google.com/drive/v2/reference/files#resource

Categories : Asp Net Mvc

ri yields "Nothing known about..." though rvm docs exist ('rvm docs open' works)
start with: rvm reinstall ruby-2.0.0-p247 --disable-binary rvm use ruby-2.0.0-p247 rvm docs generate ri GC the initial problem will be handled with https://github.com/wayneeseguin/rvm/issues/2118 (thx @a7d7p)

Categories : Ruby

How to open Google Maps links in a pop up window?
Both of those links have target="_blank" on them, so normally they should open in a new window automatically. For example the Google Maps link looks like this: <a target="_blank" href="http://maps.google.com/maps?..." title="Click to see this area on Google Maps" style="position: static; overflow: visible; float: none; display: inline;" > <div ...> <img ...> </div> </a> But it looks like PhoneGap is overriding that behavior as you mentioned in the comment. In fact if you search for: phonegap target _blank you will find quite a bit on the topic, in particular this discussion and this issue. It looks like they want people to use PhoneGap's InAppBrowser, but it appears to be tied specifically into the window.open() function. So you

Categories : Javascript

how to read, with google apps script, the heading reference in a google docs
Is it possible to read the heading reference at all? Absolutely, at least from the Table of Contents. Those references are in the attributes of the TOC entries. You can see an example, with a script, in this answer.

Categories : Google Apps Script

How can I disallow WebView to open links on the browser in WinRT( target=_blank links )?
There is a navigation starting event. It have a cancel property that can be used to cancel the navigation. Maybe this will work for you? http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.webview.navigationstarting

Categories : C#

Calling External Dynamic Links from VBulletin > Need Links to Open in Base Target iFrame
Asuming all of this is on the same domain, and that your target iframe had an id like <iframe id="openlinkshere"> You could add a handler on your links like this: <script type="text/javascript" src="http://[VBulletin]/external.php?forumids=1&type=js"> </script> <script language="" type="text/javascript"> <!-- for (x = 0; x < 5; x++) { document.writeln("<a onclick="top.document.getElementById('openlinkshere').location.href = this.href; return false;" href="http://[VBulletin]/showthread.php?t=" +threads[x].threadid+"">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />"); } </script> This would open the link on your target iframe top.document.getElementById('openlinkshere').location.href = this.href; This stops

Categories : Javascript

Unable to open a published MVC Project
With MVC You don't access views like traditional ASP.NET WebForms i.e. /path/to/view.aspx. Everything is handled via routing & controllers. By default you will have a HomeController which will have an Index action which is invoked via a GET request. Assuming you haven't changed any of the default routing configuration you would just need to navigate to www.domainname.com/home to see your Index page. The default routing configuration looks like /controller/action/parameters, MVC will always work this way unless you tell it different. If you don't pass a specific action (like I didn't with the home url) the Index action of the controller is assumed.

Categories : Asp Net Mvc

CasperJS - How to open up all links in an array of links
Try something like this. var x; casper.start(URL, function() { x = links.split(" "); // now x is an array of links }); casper.then(function() { this.eachThen(x, function(response) { this.thenOpen((partialURL + response.data), function() { this.echo(this.getTitle()); // display the title of page }); }); }); casper.run(); x was undefined because the for loop was being executed before casper.start. In the above code, the eachThen() block is nested inside of a casper.then block in order to delay its execution.

Categories : Javascript

Updating a published Google spreadsheet with web app?
gspread link is a great Python package to manipulate Google spreadsheets. The documentation is comprehensive and the package is easy to implement. It allows you to address fields via direct cell name or via the cell coordinates. # With name val = worksheet.acell('B1').value # With coords val = worksheet.cell(1, 2).value

Categories : Python

Can i edit an app after it's published to Google Play?
A QR Code just contains data, in this case it would contain a link. So just find a tool or site that generates QR codes, and generate one from your apps link on google play, e.g. https://play.google.com/store/apps/details?id=com.yourapp And to answer the title, yes you can edit your app once its published. You can upload new versions. Just increment the version code and name.

Categories : Android

Localizing Google Docs form
Google will automatically translate things like the Submit button with the following priority: The language settings of the user's google account. The language setting in the link they access (eg &hl=ru for russian) I'm not sure what happens otherwise... If you link to the form with the &hl=.., then if your users are registered google users #1 will apply, otherwise #2 will apply. You can test these codes in Incognito mode in Chrome. A full list of codes is available here.

Categories : Javascript

importRange not working in google docs
ImportRange is a function for use in formulas, try using setFormula(formula) from Apps Script.

Categories : Google Apps Script

edit Google Docs using Emacs?
googlecl can be installed from macports. You can then open files with local emacs using emacs server. Once it is installed, you can follow these commands: $ google docs list # gets a list of the files $ google docs get <FILE> /tmp/edit$$.txt # gets the <FILE> to /tmp/edit$$.tmp $ emacsclient /tmp/edit$$.tmp $ google docs upload /tmp/edit$$.tmp <FILE> However, I've found that google docs get doesn't work as well as it should.

Categories : Emacs

AIDL registerCallback() google docs
google docs have a tutorial on how to make an AIDL service. That is not a tutorial. It is just ordinary documentation. However, when I tried to do the same, I got an error "The method registerCallback(IRemoteInterface) is undefined for the type IRemoteInterface. That is because you do not have a method named registerCallback() in your AIDL. I have not seen this "registerCallback" method in any tutorial It is not in a tutorial. The only occurrences of registerCallback() in the Web page that you linked to are from "some sample code demonstrating calling an AIDL-created service, taken from the Remote Service sample in the ApiDemos project". The ApiDemos project is in your SDK installation, if you elected to download sample code from the SDK Manager.

Categories : Java

Sorting error with google-docs-api
I think the problem is in the line 89, GetTotalCitations Wrt_CitationURL = Sorting(Department, "CitationURL") Either "CitationUrl" should be an integer index, or the value of value passed to the key function in the sorted() should be a dictionary.

Categories : Python

Get Title and Published Date of All posts published in Blogger Site using PowerShell
You are looking at a wrong URL. Look at the RSS feed URL. Invoke-RestMethod -Uri http://www.vinithmenon.com/feeds/posts/default Now, explore the properties like title, etc

Categories : Arrays

embed google docs in wordpress site
Create your Google doc document then make sure all people are able to edit the document without logging in. To do this click share on the upper right hand corner of the page when you've opened the document and then try changing the "who can access" from private to "anyone with the link". Now simply publish the document on the web, get the embedded code and simply paste it in your blog post. I think this should do the trick.

Categories : Wordpress

Check if PDF has been exported from Word/Google Docs
For anyone looking this up, what I am doing now is using pdfinfo (from Xpdf) with the -meta flag to check if the PDF has XMP metadata. PDFs exported from Word and Google Docs do not have this metadata, but other PDFs do.

Categories : Pdf

One Google Docs workbook as a database for another using a script?
This is totally possible, though you will quickly find that spreadsheet functions are too cumbersome for this sort of operation. With Google Apps Scripts you can query and write to and from multiple workbooks with ease. You would be working in Javascript, using javascript objects and arrays. Start by reading the Google documentation and checking out their examples.

Categories : Database

Reading URL's from google docs spreadsheet python
As you said, newlist is the last URL, so naturally when you ask for its indices you get individual letters. You need to create a list before the loop and then append each url to it, instead of setting urls to the text of each one: urls = [] for row in rows: for key in row.custom: urls.append(row.custom[key].text) Now urls is a list where each element is one URL.

Categories : Python

Is google play notify the user if my published apk is updated....???How to do that?
Google Play periodically reminds users to update their app is a new version compatible with their device is available. It is entirely up to the user to actually install the update. You can notify them by building in a notification system into your app that checks with your server to see if an update is available, and asks the user to install it if it is.

Categories : Android

How to Customize & Validate Google Docs Form (an easier way?)
Here's the answer, source code to my question. Details and info on the code is given at my blog post on my website blog post: Google Form Customization & Validation Tutorial Here's the link to the : Form Demo Page <title>Demo Google Form</title> <style> body{} #pagewrap {} .tableradio {} .sbutton {} .sbutton:hover {} .sbutton:active {} a{} a:hover{} </style> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <script> $(function() {

Categories : Javascript

Google Docs Viewer - File Request Timeout
If its PDF only, you can also just use pdfjs from Mozilla directly. Then you should check your URL encoding. If the issue remains, check out https://code.google.com/p/google-api-php-client/ for converting your docs in-place. Opening them with pdfjs is still recommended to bypass Google-Doc-Viewer problems, at least that is how I could get this working properly.

Categories : Joomla

Find&Replace script in Google Docs SpreadSheets
A function to do what you ask is simple, if you have a basic understanding of the language (Javascript), know how to use the development environment, and read the API documentation. For example, see this script. It's been added to your shared spreadsheet, so you can also view it (and run it) in the script editor there. /** * Scan column A, looking for images that have been inserted using * =image() function. For any row with an image, set the row height * to 100 pixels. */ function resizeImageRows() { var sheet = SpreadsheetApp.getActiveSheet(); // Get a handle on the sheet var HEADERS = 1; // Number of header rows at top var firstRow = HEADERS + 1; // First row with data var lastRow = sheet.getLastRow(); // Last row

Categories : Image

PHP - Post data Form with json to Google Docs
Sure you can. Have a look at: https://wiki.base22.com/pages/viewpage.action?pageId=72942000 There is a section describing how to post data to google docs by ajax from javascript but it should be similar in php

Categories : PHP

Google docs spreadsheet event Timer not firing
As far as I can tell, the script will fire every hour, its the Browser.MessageBox which will not fire. The script may not have a handle to an open spreadsheet when it executes and even less to a browser. If you use another test, you should see that your script fires, for instance : function timerResponse(e) { Logger.log('Timer Fired'); var cell = SpreadsheetApp.getActiveSheet().getRange(4, 4); cell.setValue(e); }

Categories : Google Apps Script

How to stream PDFs from outside the web root to google's docs reader
JUST IN CASE ANYONE WAS WONDERING... i added this to the image server script (imageserve.php) if ($type = "application/pdf") { header('Content-Description: File Transfer'); header('Content-Type: application/pdf'); header('Content-Disposition: inline; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Accept-Ranges: bytes'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); exit; } else and then on the page where i wanted to display the pdf i added $temp = "home/..../..../development/imageserve.php?filename=xxxxxx"; <embed style="width:1200px; height:730

Categories : PHP

Google Docs Script to transfer data from a questionnaire to a new document?
Shouldn't be too difficult - tricky bit comes with what you want to do with the data in the new doc. Example script to do this would be: function sendToNewSheet() { var sheet = SpreadsheetApp.getActiveSheet(); var row = sheet.getActiveRange().getRowIndex(); var range = sheet.getRange(row,1,1,sheet.getLastColumn()).getValues(); var doc = DocumentApp.create(new Date().getTime()); doc.appendParagraph(range.join()); doc.saveAndClose(); } function onOpen() { var subMenus = [{name:"Send to new sheet", functionName: "sendToNewSheet"}]; SpreadsheetApp.getActiveSpreadsheet().addMenu("Help Desk Menu", subMenus); }​ With that, you can select a cell in your spreadsheet and then use the menu to execute a function that will take the data in that cell's row, create a new document, a

Categories : Google Apps Script

(Android) Read Public or Shared Spreadsheet, Google Docs
First, Documents List API is depricated. Use Drive API instead. You can achieve the same goal by Files.insert(). Second, use spreadsheets api to read spreadsheet. You can also use Spreadsheet service of Google Apps Script. You don't have to publish to the web if you use either one of these two.

Categories : Android

Google Play Services Jar files Java Docs and Sources
Download it from Android SDK Manager ie extras->Google play services It will be present in android-sdk-windowsextrasgooglegoogle_play_serviceslibproject Create a project and add that library in your project ie right click project->Android->below that add that libproject location of google play services. Tutorial is given here. http://www.vogella.com/articles/AndroidGoogleMaps/article.html

Categories : Android

Can one display pdf files to user dynamically using google docs viewer from localhost?
Obviously, localhost points to your local server. This means Google Docs' servers won't be able to reach a server that is local to your network. I think the best(and simplest!) solution for you is to use the browsers' built-in PDF readers, which can easily be achieved by using an iframe: <?php $url = "localhost/foldername/books/book.pdf"; ?> <iframe src="<?php echo $url; ?>" width="720" height="600" style="border: none;"></iframe> Note that each browser has it's own way to display PDF's, but as far as I know most major browsers do it just fine.

Categories : PHP

optimizing code and how to take selected region of active spreadsheet as input-google docs
One key to optimize your code is to reduce the number of calls to Google services and try getting them done using JavaScript. Here is an optimized version that you could use. Note that I havent tested it - so if you come across minor syntax errors, feel free to fix them or give a shout if you cannot fix them. function myFunction() { var sheet=SpreadsheetApp.getActiveSheet(); var rows= sheet.getDataRange(); var values=rows.getValues(); var COL_H = 8; var numRows=values.length ; // Length of array = nuymRows. rows.getNumRows(); var column = []; //var p = 0; //var k = "H"; var destArray = new Array(); for (var i=0;i<numRows;i++) { // var cell = //Split the string a the . var string = values[i][7].split("."); string[0] = string[0].toString();

Categories : Google Apps Script

How to exlude empty fields in sendmail function (Google Docs script editor)
Whenever you find yourself repeating code, using cut & paste, pause and think about writing a function to do the job instead. In this case, here's how we can spew out HTML for a table row only if it's non-blank: function addRowIfData( heading, item ) { var rowHtml = ''; if (item && item !== '') { rowHtml = "<tr>" + "<th align='left'>" + heading + "</th>" + "<td>"+ data[0][1] +"</td>" + "</tr>" } return rowHtml; } And this is what your original code collapses down to. I've left out many lines of the table, but you get the idea. var emailAddress = Session.getActiveUser().getEmail(); var body = "<HTML><BODY>" + "<P>" + "New Form submitted on: " + data[0][

Categories : HTML

Technically what is an "application" when referred to in the Google Static Maps Rate Limits docs
I start by declaring that I do not know this, but the logical choice is the domain. With ip restriction multiple clients on the same web server would consume each others quotas which they should have thought of. *Client ip would be useless in every metric. *Server ip would mean multiple clients on one host would consume each others quota. Whats left is the domain. However with that said, Google is know to use their brains and I would not be surprised if they have a combination running to find abuse. Like so. If domainA.com uses up 25 000 in one day and them immediately domainB.com comes online and starts asking for images from the same ip that might ring some bells. Of course the same would be true even for different ip if they all request the same location. So in summary, I think if

Categories : Misc

Import data from web in MS EXCEL (web page published from Google Spreadsheet), but preserve line feeds
You're right, the import result of your sample are really bad. But how did you create those multiline cellss ? I tried the same and it works fine ! https://docs.google.com/spreadsheet/pub?key=0Aj_YidytSKgidFZuTGwzdkZRWDYydXpWbTJNTmJYbkE&single=true&gid=0&output=html I used Ctrl+Enter to create the new lines, and option File, Publish to the web, HTML, to get te link above. (wording may be slightly different, my version is in french)

Categories : Excel

Links to open apps in iOS
The apps would need to have a custom URL scheme registered in their info.plist. I believe the following site will help you find what you are looking for: http://handleopenurl.com/

Categories : HTML

Can we use Google Android in-App purchase in Android apps published on Samsung Store?
For samsung app Store you need to use Plasma.... for more ref. visit http://developer.samsung.com/distribute/monetization http://developer.samsung.com/android/technical-docs/In-App-Purchase-using-Plasma-in-Android This may help you

Categories : Android

Excel equivalent Google Docs function to "query()" custom VBA function
Based on @chuff's approach, give your data array labels (I chose A>Z from A14:Z14) and name the array (A14:Zn) - I chose GParry. DATA > Get External Data - From Other Sources, From Microsoft Query, Databases, Excel Files*, OK. Select your workbook name, OK, Table: GParry, Add, Close. In the list under GParry, double-click on A, J and Z in turn, then click on the SQL button. In SQL statement: change SELECT to SELECT TOP 9 and append: WHERE J = 'WH' ORDER BY Z DESC OK, OK. If you want the results back into Excel just select the extract (top left), Edit, Copy and Paste where it suits you.

Categories : Excel

External links in phonegap app do not open well
I would start by asking : in the file config.xml the preference stay-in-webview is deprecated now for phonegap 2.3.0 right? So nothing to hope here? That's correct. Dont even worry about this setting if you are using 2.9 I read and try a lot about the plugin InAppBrowser with window.open and target system / blank / self but no differences for me. I stay InApp but useless because no navigation buttons. Am I missing something here? I had a few issues getting this to work as well. Their documentation is a bit scattered and need to read it all. Here is how I get it working: Ensure you have <script src="phonegap.js"></script> in each of your pages that wants to use the inappbrowser You should NOT need to include a plug-in tag in your config.xml. I am pretty sure that a

Categories : Cordova

links within an iframe window to open in new tab
//pass the iframe to this iframe getting function function iframeRef( frameRef ) { return frameRef.contentWindow ? frameRef.contentWindow.document : frameRef.contentDocument } //Get Iframe var inside = iframeRef( document.getElementById('iframeID') ); //Get all links var links = inside.getElementsByTagName('a'); //Loop throught links and set their attributes for (var i = 0 ; i<links.length ; i++){ links[i].setAttribute('target','_blank'); } //No jQuery needed! thanks to meder EDIT Due to iframe same source restrictions I had to find a website with inner iframe from same source so you can paste this code //pass the iframe to this iframe getting function function iframeRef( frameRef ) { return frameRef.contentWindow ? frameRef.content

Categories : Javascript



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