Posts

is it possible to pull images of the internet with Google app script? -

i wondering if possible use google app script search image using key word , pull image document or spreadsheet , if how. thanks yes, can use urlfetchapp fetch image , store blob in drive. var blob = urlfetchapp.fetch(image_url).getblob(); var file = driveapp.create(blob);

ruby on rails - cap rubber:create_staging failed near end -

i trying deploy aws sample rubber test in quick start wiki https://github.com/rubber/rubber/wiki/quick-start i past part prompts local machine password write hosts file ( creates roles, instance, , lot of other things; got through error not connecting - renamed private key without .pem extension , fixed ), , runs on while, , gives error here: failed: "/bin/bash -l -c 'sudo -p '\''sudo password: '\'' bash -l -c '\''export debian_frontend=noninteractive; apt-get -q -o dpkg::options::=--force-confold -y --force-yes install postfix build-essential git-core libxslt-dev ntp mysql-client libmysqlclient15-dev subversion curl autoconf bison ruby zlib1g-dev libssl-dev libreadline6-dev libxml2-dev libyaml-dev apache2 libapache2-mod-proxy-html libcurl4-openssl-dev libapache2-mod-xsendfile apache2-mpm-prefork apache2-prefork-dev collectd libperl-dev monit mysql-server percona-toolkit openjdk-7-jdk unzip python-django python-django-tagging python...

javascript - 'undefined' is not a function (evaluating 'Backbone.$(window).on('hashchange', this.checkUrl)') -

i'm trying configure router backbone.js , receiving exception @ line 1414 of backbone.js 1.1.2 the error exists safari , chrome: [error] typeerror: 'undefined' not function (evaluating 'backbone.$(window).on('hashchange', this.checkurl)') start (backbone.js, line 1414) (anonymous function) (index.html, line 27) here's index.html file, line 27 backbone.history.start() <!doctype html> <html lang="en"> <meta charset="utf-8"> <head> <link rel="stylesheet" href="bootstrap.min.css"> </head> <body> <div class="container"> </div> <script src="../jquery.js"></script> <script src="../underscore.js"></script> <script src="../backbone.js"></script> <script src="../json2.js"></script> </body> <!-- backbone --> <script type...

postgresql - install pyscopg2 on windows 7 64 bits + python 3.4 -

i've read several links that. if try python port windows : i'm using python 3.4 fails. for both downloading archive + "setup.py install" or "pip install pyscopg2" got below error. had visual studio 2012 installed, installed 2010 version rid of "vcvarsall.bat not found" error: c:\program files (x86)\microsoft visual studio 10.0\vc\bin\link.exe /dll /nologo /incremental:no /libpath:c:\python34\libs /libpath:c:\python34\pcbuild /libpath:c:/progra~1/postgr~1/9.3/lib ws2_32.lib advapi32.lib secur32.lib libpq.lib shfolder.lib build\temp.win32-3.4\release\psycopg\psycopgmodule.obj build\temp.win32-3.4\release\psycopg\green.obj build\temp.win32-3.4\release\psycopg\pqpath.obj build\temp.win32-3.4\release\psycopg\utils.obj build\temp.win32-3.4\release\psycopg\bytes_format.obj build\temp.win32-3.4\release\psycopg\connection_int.obj build\temp.win32-3.4\release\psycopg\connection_type.obj build\temp.win32-3.4\release\psycopg\cursor_int.obj build\t...

c# - Which Lucene SearchAnalyzer to be used for special character search -

i using lucene.net standard analyzer in asp.net project search. search not return results keywords c#, .net etc. if type c or net (removing . , #) works. on stackoverflow (which uses lucene too), noticed when type .net changes [.net] while searching, got links standard analyzer not able handle special character search, , white space analyzer not work not give expected results. can on how manages search? i'll characterize doing bit more closely here: while i'm not privy implementation details of stackoverflow, you'll note same behavior when searching "java" or "hibernate", though these have no issues standard analyzer. transformed "[java]" , "[hibernate]". denotes tag search. doesn't happen searching "lucene" or "junit" has popularity of tags. suspect tag titles indexed in un-analyzed form. for interesting example, try out "j++". dead-end java implementation has mere 8 questions u...

mysql - Can I Add SQL QUERY in EXPRESSION MAPFILE? -

can add sql query in expression mapfile ? .. class name '> 0' expression (select * tb_kelurahan id_kecamatan='[id_kecamatan]' > 0) color 20 215 0 outlinecolor 0 0 0 end # class no. alternative can add sql additional column data statement , reference in expression. data "the_geom (select case when id_kecamatan>0 1 else 0 end myexpress, the_geom, ...) foo ...." and use: expression ([myexpress] = 1)

javascript - Using PHP variables in jQuery plugin initialization? -

i have jquery image gallery plugin i'm using extensively throughout site i'm building php templates. in properties plugin initialization, of values remain same throughout site, aside few exceptions. in these instances, i'm wondering if it's ok me pass in value property via php; e.g. if there property called "thumbnailsvisible" in cases want set true, , in others, false. thus, there wrong assigning value corresponding variable , including following in jquery initialization within template: thumbnailsvisible : <?php echo $thumbnailsvisible; ?> i realize externalize initialization in js file , create different versions needed, simpler provided there isn't wrong approach... also, if there's different approach optimal, i'd appreciate sort of assistance. thanks. yes. can this. php processed on server side , sent client when it's processed. you write php script return javascript , pass in argument. eg. <?php $thumbn...