Posts

Showing posts from February, 2012

Python imaplib deleting multiple emails gmail -

my code this... import imaplib import email obj = imaplib.imap4_ssl('imap.gmail.com','993') obj.login('user','pass') obj.select('inbox') delete = [] in range(1, 10): typ, msg_data = obj.fetch(str(i), '(rfc822)') print x = response_part in msg_data: if isinstance(response_part, tuple): msg = email.message_from_string(response_part[1]) header in [ 'subject', 'to', 'from', 'received' ]: print '%-8s: %s' % (header.upper(), msg[header]) if header == 'from' , '<sender's email address>' in msg[header]: delete.append(x) string = str(delete[0]) xx in delete: if xx != delete[0]: print xx string = string + ', '+ str(xx) print string obj.select('inbox') obj.uid('store', string , '+flags', '(\deleted)') obj.expunge() obj.close() obj.logout() the error ...

Lucene 6.2 and ISO-8859-1 (latin) characters -

i'm trying lucene index searcher on project. the content of documents indexed have latin (iso-8859-1) characters, users can (and will) search using charset. as far know, lucene generates index files using utf-8. questions: 1) there way specify charset when searching lucene? or have manually convert query utf-8 , run search? 2) indexsearcher.search() method not ignoring whitespaces, have guess "tokens" right meaningful results show up. if user forgets add whitespaces on searched term, no results showed. there way configure searcher (or queryparser) ignore whitespaces? not quite sure running trouble here. presume reading user input string, i'm don't know issue come up. providing code clarify that. if are, indeed, reading byte array user input, yes, converting necessary. it's not laborious process convert byte[] string though. use string ctor . queryparser tokenizes @ whitespace if analyzer have passed it does. standardanalyzer ty...

c++ - Getting error message saying my class does not name a type when trying to overload the "+" operator -

the part giving me error message in implementation file when wrote definition friend function overloads operator +. saying statistician not name type. friend function , written in implementation file header included not sure why not recognize this. realize spelled statistician wrong file name, don`t know how rename file in codeblocks. //header file #ifndef statistician_h #define statistician_h namespace gregory_stocker_statictician{ class statistician{ public: statistician(); void next_number(double); void erase_sequence(); int get_length() const {return length_sequence;} double get_sum() const{return sum;} double get_mean() const; double get_largest() const; double get_smallest() const; double get_last() const; friend statistician operator + (const statistician &,const statistician &); private: int length_sequence; double sum; double smallest; double largest; double last; }; #endif } //implement...

android - Add the result of several broadcasts on a single activity -

in application have broadcastque receives pushs notifications in background, push open activity information request accepted, happens @ same moment reading request receive app open on top in new intent. public class broadcastreceiveronesignal extends broadcastreceiver { @override public void onreceive(context context, intent intent) { bundle extras = intent.getbundleextra("data"); try { jsonobject customjson = new jsonobject(extras.getstring("custom")); if(customjson.has("a")){ string id = customjson.getjsonobject("a").getstring(constants.id_corrida); intent = new intent(context, activty.class); i.putextra(constants.id, id); i.addflags(intent.flag_activity_clear_top |intent.flag_activity_new_task); context.startactivity(i); } }catch (exception e){ e.printstacktrace(); } } } you can check if activity in foreground change it's content. if not, start activity. you c...

ruby - Sinatra / Rails : How to pass user input between views -

i've been looking bit , can't find or rather understand do, i'm sure quite simple i'm new ruby , web apps, 1 in sinatra simplicity. i'd pass @multiplication_table variable things user puts inputs next results page can see if put in answers correctly dont know how to, think know how form_for dont know how having loop. this web.rb file # web.rb require 'sinatra' def create_table(number) possibles = [1,2,3,4,5,6,7,8,9,10,11,12] int_set = possibles.shuffle result = [] @answer_list = [] while int_set.length > 0 random_int = int_set[0] string = (number.to_s + " x " + random_int.to_s) int_set.delete(random_int) if (random_int.to_s).length == 1 string += " &nbsp;&nbsp;= ______" else string += " = ______" end result << string @answer_list << random_int.to_i * number.to_i end return result ...

javascript - Three.js Inaccurate Raycaster -

i trying detect clicks on plane mesh. set raycaster using examples guide. here code: http://jsfiddle.net/bar24/o24eexo4/2/ when click below marker line, no click detected though click inside plane (marker line has no effect). also try resizing screen. then, clicks above marker line may not work. maybe has use of orthographic camera? or not updating required matrix? function onmousedown(event) { event.preventdefault(); mouse.x = (event.clientx / window.innerwidth) * 2 - 1; mouse.y = -(event.clienty / window.innerheight) * 2 + 1; //console.log("x: " + mouse.x + ", y: " + mouse.y); raycaster.setfromcamera(mouse, camera) var intersects = raycaster.intersectobjects(objects); if (intersects.length > 0) { console.log("touched:" + intersects[0]); } else { console.log("not touched"); } } your css affect raycasting calculations. 1 thing can set body { margin: 0px; } for more information, s...

c++ - How to set the top/bottom margins of a Win32 richedit -

Image
we can use em_setmargins message set left/right margins of richedit control. don't know how set top/bottom margins. body knows? thanks. use em_getrect / em_setrect message combination modify margins: rect rc; // current control rectangle sendmessage(hwndrichedit, em_getrect, 0, (lparam)&rc); rc.left += 20; // increase left margin rc.top += 20; // increase top margin rc.right -= 20; // decrease right margin rc.bottom -= 20; // decrease bottom margin (rectangle) // set rectangle sendmessage(hwndrichedit, em_setrect, 0, (lparam)&rc); the resulting control has 4 margins: update : per barmak shemirani , iinspectable comments below use getclientrect function current rectangle , inflaterect function manipulate rectangle / margin dimensions.

c# - No assembly found containing an OwinStartupAttribute Error -

Image
this error the following errors occurred while attempting load app. - no assembly found containing owinstartupattribute. - given type or method 'false' not found. try specifying assembly. disable owin startup discovery, add appsetting owin:automaticappstartup value of "false" in web.config. specify owin startup assembly, class, or method, add appsetting owin:appstartup qualified startup class or configuration method name in web.config. appears on screen on face burningly ugly error page ever created in history. ive tried follow instructions on page inserting owin:automaticappstartup in config. <appsettings > <add key="owin:appstartup" value="false"></add> </appsettings> this did not fix problem. suggestions? add below code in web.config under tag shown in image below. error gone <configuration> <appsettings> <add key="owin:automaticappstartup" value=...

php - Displaying multiple records in one row with duplicate user id -

Image
i have table setup awards tracked user id. there multiple records same user id different awards. current database +---------+----------+---------------------+ | user_id | award_id | award_date | +---------+----------+---------------------+ | 1 | 26 | 2016-08-20 00:00:00 | | 1 | 27 | null | | 1 | 28 | null | | 1 | 29 | null | | 1 | 30 | null | | 1 | 31 | null | | 2 | 26 | 2016-08-19 00:00:00 | | 2 | 2 | null | | 3 | 36 | null | | 3 | 2 | null | | 4 | 1 | null | | 4 | 2 | null | | 5 | 1 | null | | 5 | 2 | null | | 6 | 6 | 2016-08-23 23:06:48 | | 6 | 1 | null | | 2 | 20 | ...

ios - How do I access a variable in the viewcontroller from within a custom view? -

i have viewcontroller variable called conversationid. in viewcontroller have custom view it's own class. how can access userid variable within custom view class? try this: 1. set customviews customclass in storyboard. 2. make outlet custom view 3. can access userid using.. yourviewcontroller.custonview.userid

javascript - Detect #tags from html element and decorate it with color -

i want replace #tag html elements decorated color or surrounded tags can decorate it. <html> <head></head> <body> <div id="one">hello #there, how #are you?</div> <div id="two">i learning #javascript , #jquery client side technologies </div> </body> </html> if want decorate #there , #are , #javascript , #jquery changing colors, fonts or can use <span>there</span> . can give different styles text. <span style="color:blue">there</span> .

java - mock methods in same class -

i using mockito mock method in same class writing test. have seen other answers on ( mocking method in same class ), misunderstanding them, since running issues. class temp() { public boolean methoda(string param) { try { if(methodb(param)) return true; return false; } catch (exception e) { e.printstacktrace(); } } } my test method: @test public void testmethoda() { temp temp = new temp(); temp spytemp = mockito.spy(temp); mockito.doreturn(true).when(spytemp).methodb(mockito.any()); boolean status = temp.methoda("xyz"); assert.assertequals(true, status); } i expection printed out because definition of methodb gets executed. understanding definition of methodb mocked using spytemp. not appear case. can please explain going wrong? first issue have use spytest object expect mockito. here not same test. spytemp wrapped mockito obj...

blockchain - how to integrate java or other language with ethereum or solidity or web3js? -

i new blockchain. have implement 1 use case user meta information store in mysql database , receptive unique id store in blockchain database. i in confusion, how integrate java or other language(to store in mysql) etheruem or solidity or web3js(to store data in blockchain)? anyone have idea please guide me. thanks inadvance raja there options you: ethereum(j) library can embedded in java/scala project provide full support ethereum protocol , sub services. see ethereum json-rpc documentation . can use json-rpc client available java. if try other languages can use python implementation or nodejs uses official web3 library.

javascript - Validate html form when button click -

i need validate html form when click , display error message if field empty or else try using javascript <script type="text/javascript"> $(document).ready(function () { $('#idnext').click(function () { $("#fromtopupvalues").validate({ messages: { usernfidtxt:{required: "please enter nf id",}, first_name: {required:"please enter first name",}, last_name: {required:"please enter last name",}, email: {required:"please enter valid email address",}, phone: {required:"please enter valid phone number",}, address: {required:"please enter valid address",}, city: {required:"please enter city",}, country: {required:"please enter country",}, amount: {r...

VBScript - Displaying results of shell command in message-box using readline method within a function -

the script below displays last line of executed cmd . can't figure out how capture , display stdout stream. option explicit dim wshell, result, box set wshell = wscript.createobject("wscript.shell") box = msgbox("current arp entries:" &vbcrlf& execstdout("cmd /c arp -a")) function execstdout(cmd) set result = wshell.exec(cmd) while result.stdout.atendofstream <> true execstdout = result.stdout.readline loop end function can please point me in right direction? corrected code option explicit dim wshell, result, box set wshell = wscript.createobject("wscript.shell") box = msgbox("current arp entries:" & execstdout("cmd /c arp -a")) function execstdout(cmd) set result = wshell.exec(cmd) while result.stdout.atendofstream <> true execstdout = execstdout &vbcrlf& result.stdout.readline loop end function just edit line execstdout = ...

java - cannot be cast to com.google.android.gms.location.LocationListener exception in android -

i facing exception in application, exception related com.google.android.gms.location.locationlistner in android, please me in regards my mainactivity.java file: package com.ideabiz.fusedlocationprovider; import android.content.pm.packagemanager; import android.location.location; import android.location.locationlistener; import android.support.annotation.nonnull; import android.support.annotation.nullable; import android.support.v4.app.activitycompat; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; import com.google.android.gms.common.connectionresult; import com.google.android.gms.common.api.googleapiclient; import com.google.android.gms.location.locationrequest; import com.google.android.gms.location.locationservices; public class mainactivity extends appcompatactivity implements googleapiclient.connectioncallbacks, googleapiclient.onconnectionfailedlistener, locationlistener { textview txtoutputlat, txtout...

botframework - Which is the best Local database for Skype Bot? -

i writing skype bot using c# , bot framework , can created simple bot. wonder can use local database in project or not ? , kind of database best bot framework because newcomer in c# , visual studio? searched on internet there seem no topic mention it. azure recommended microsoft think need use bot. for small amounts of data associated user or conversation, can use bot state service . if need store larger amounts of data, you'll want use kind of cloud storage account. here's getting started guide azure storage .

support for ubuntu bash in windows -

i curious, there support forums ubuntu bash? i downloaded bash on windows laptop , i'd grateful if pointed me forums can questions answered. regards, sunil this place should further questions: https://github.com/microsoft/bashonwindows/issues and page tell what's working , not: https://github.com/ethanhs/wsl-programs

c - Proper way to implement environment locks -

in case have program needs basic configuration files cannot modified when running (during start-up), proper way implement lock in directory environment? details: the scenario i'm thinking is: software able modify files. so, need protect environment other instances of software. software might composed of several different programs. so, need find interface straightforward share among processes. idea 1: one way acquiring lock (flock) each configuration file. impractical implement , maintain. idea 2: the second way i've been thinking create .lock file in directory during start-up , delete when config files safe modified. i've seen many commercial softwares using similar approaches. however, suspect lack of atomicity of these operations might issue. method safe when several applications might concurrently try create/poll/delete lock file?

How to use measuring on (raster with kml) openlayer v3? -

i'm using open layer v3, in script: var raster = new ol.layer.tile({ source: new ol.source.bingmaps({ imageryset: 'aerial', key: '---' }) }); var vector = new ol.layer.vector({ source: new ol.source.vector({ url: 'url', format: new ol.format.kml() }) }); var map = new ol.map({ controls: ol.control.defaults().extend([ new ol.control.fullscreen() ]), layers: [ raster, vector], target: document.getelementbyid('map'), view: new ol.view({ center: [5379788.7775 , 3658497.76290000044 ], projection: projection, zoom: 10 }) }); i don't know how add measuring on layers, sample in open layer supports measuring layer on raster (i can't have both of kml , measuring) if can help, thank you.

php - how to make display cart shows different size yet maintaining other size already added -

the coding i'm working on right correct: add column when choose different size , submit form replace previous output new one. it suppose this cart ___________________________________________ item/size |qty | amount(price) | orange polo size: xs | 1 | 43.00 | orange polo size: l | 1 | 43.00 | ____________________________________________ but instead becomes cart ___________________________________________ item/size |qty | amount(price) | orange polo size: l | 2 | 86.00 | orange polo size: l | 2 | 86.00 | ____________________________________________ how make add new size maintaining previous size that's added? <?php session_start(); $products = $_post["item_name"]."size:".$_post["size"]; $key= $_post["size"]; $amounts = $_post["amount"]; if ( !isset($_session["total"]) ) { $_session["total"] = 0; ($i=0; $i< count($...

angularjs - Expecting value: line 1 column 1 (char 0) python -

i'm newbie in python , trying parse data in application using these lines of codes json_str = request.body.decode('utf-8') py_str = json.loads(json_str) but i'm getting error on json.loads expecting value: line 1 column 1 (char 0) this json formatted data send angular app (updated) object { clienttypeid: 6, clientname: "asdasd", clientid: 0, phoneno: "123", faxno: "123", ntn: "1238", gstnumber: "1982", officialaddress: "sads", mailingaddress: "asdasd", regstartdate: "17-aug-2016", 15 more… } these values in json_str clienttypeid=5&clientname=asdasd&clientid=0&phoneno=123&faxno=123&ntn=123&gstnumber=12&officialaddress=adkjh&mailingaddress=adjh&regstartdate=09-aug-2016&regenddate=16-aug-2016&status=1&cancreateuser=true&userquotafor=11&userquotatype=9&maxusers=132123&applyusercharges=true&applyrep...

php - PHPExcel Allowed memory size -

how fix error in phpexcel codeigniter? fatal error: allowed memory size of 134217728 bytes exhausted (tried allocate 131072 bytes) in /sites/apps/seller/www/application/libraries/excel/phpexcel/cachedobjectstorage/cachebase.php on line 173 there 2 ways solve error. put below code function @ beginning of code. ini_set('memory_limit', '2048m'); you can find php.ini file in system , find memory_limit , change value , restart server .

sql - difference between null and 0 while counting rows -

i have query follows select owner, table_name,num_rows all_tables for of tables num_rows 0 of table num_rows showing null i'm not getting difference between these two. on condition null come , when 0 displayed? thank i think null showing on tables without statistics. last_analyzed should null too. try query last_analyzed , check it. select owner, table_name,num_rows, last_analyzed all_tables;

node.js - No specs found issue in protractor with success run -

i running protractor tests in phpstorm 8.0.1. issue despite of providing parameter correctly in application parameters section, script not run, , outputs success run in console. here output. [12:45:30] i/hosted - using selenium server @ http://localhost:4444/wd/hub [12:45:30] i/launcher - running 1 instances of webdriver started 1..0 # tests disabled # 0 specs, 0 failures, 0 skipped, 0 disabled in 0.014s. # note: disabled specs result of xdescribe. success: 0 specs, 0 failures, 0 skipped, 0 disabled in 0.015s. no specs found finished in 0.016 seconds [12:45:34] i/launcher - 0 instance(s) of webdriver still running [12:45:34] i/launcher - chrome #01 passed process finished exit code 0 my application parameter configured this. http://screencast.com/t/hoqaw6ya4oe and here folder structure accordingly correctly configured. http://screencast.com/t/xk98jrdlc2a this working earlier fine , of sudden output. suggestions on how resolve of great help. specs: [ '../...

javascript array optimization -

i have multiple array items nested inside each other , cashed data want call, want know if there way can following. want reduce total number of variables. //function check change function datachange(olddata, newdata){ if(olddata > newdata){ alert('change'); } } //current code var num1 = item[key]['b02'][0]; var num2 = item[key]['b02'][1]; var numold1 = itemold[key]['b02'][0]; var numold2 = itemold[key]['b02'][1]; datachange(num1,numold1); //proposed code var num1 = ['b02'][0]; var num2 = ['b02'][1]; datachange(item[key].num1, itemold[key].num1); you don't need variables @ other item , itemold , , key : datachange(item[key]['b02'][0], itemold[key]['b02'][0]); which can written datachange(item[key].b02[0], itemold[key].b02[0]); but since item[key]['b02'] , item[key]['b02'] objects, can use variables refer them , use [0] , [1] : v...

upload - how to convert .pdf file to base64 string in swift 2.0? -

i have upload document in swift , have using icloud , can upload file server using icloud swift 3.x let filepath = ... //url of pdf let filedata = try data.init(contentsof: filepath!) let filestream:string = filedata.base64encodedstring(options: nsdata.base64encodingoptions.init(rawvalue: 0))

vbscript - Automatic Telnet to cisco switches -

i have many switches backup every night. need create job automatically backup running config. i using this, how can use list of server ip addresses instead of having repeat code. option explicit on error resume next dim wshshell set wshshell=createobject("wscript.shell") wshshell.run "cmd.exe" wscript.sleep 1000 'send commands window needed - ip , commands need customized 'step 1 - telnet remote ip' wshshell.sendkeys "telnet 10.1.130.91 23" wshshell.sendkeys ("{enter}") wscript.sleep 1000 'step 2 - issue commands pauses' wshshell.sendkeys ("password") wscript.sleep 1000 wshshell.sendkeys ("{enter}") wscript.sleep 500 wshshell.sendkeys ("enable") wshshell.sendkeys ("{enter}") wscript.sleep 500 wshshell.sendkeys ("password") wshshell.sendkeys ("{enter}") wscript.sleep 500 wshshell.sendkeys ("terminal length 0") wshshell.sendkeys ("...

java - How to pass multiple parameters to Jersey POST method -

i trying pass multiple parameters jersey post method . following below steps pass single parameter jersey post method. client client = clientbuilder.newclient(); webtarget target= client.target("http://localhost:8080/rest/rest/subuser").path("/insertsubuser"); subuserbean subuserbean=new subuserbean(); subuserbean.setiduser(1); subuserbean.setidsubusertype(1); subuserbean.setidsubuser(15); subuserbean.setfirstname("haritha"); subuserbean.setlastname("wijerathna"); subuserbean.setnumberofdaystoeditrecord(14); subuserbean.setusername("haritha"); subuserbean.setpassword("hariwi88"); subuserbean.setdatecreated(common.getsqlcurrenttimestamp()); subuserbean.setlastupdated(common.getsqlcurrenttimestamp()); target.request(mediatype.application_json_type).post(entity.entity(subuserbean, mediatype.application_json_type)); subuserjsonservice.java @path("/subuser") public class subuserjsonservice { @post @pa...

java - I am not using freemarker for struts2, but I see lots of logging generated by freemarker -

i using struts 2 , jsp web application, seeing lot of freemarker debugging message generated on console. i have turn off logging using slf4j , log4j2 configurations. however, looking deeper configurations. it seems freemarker included in struts-default package, , extending it, include freemarker support in web application well. did misconfigure struts.xml configuration? disabling output console way go? how "remove" freemarker application? my struts.xml <package name="test" namespace="/" extends="struts-default"> struts-default.xml <package name="struts-default" abstract="true" strict-method-invocation="true"> <result-types> <result-type name="chain" class="com.opensymphony.xwork2.actionchainresult"/> <result-type name="dispatcher" class="org.apache.struts2.result.servletdispatcherresult" default="true"...

html - Vertical bootstrap panel header -

Image
i trying design vertical bootstrap header panel, , have achieved using .panel { position: relative; } .panel-default > .panel-leftheading { color: #333; background-color: #f5f5f5; border-color: #ddd; } .panel-primary > .panel-leftheading { color: #fff; background-color: #428bca; border-color: #428bca; } .panel-success > .panel-leftheading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-info > .panel-leftheading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-warning > .panel-leftheading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-danger > .panel-leftheading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-leftheading { width: 42px; padding: 10px 15px; border-right: 1px solid transparent; borde...

java - My app crashes when I press navigation item twice using map View -

this onnavigationitemselected method: } do this: int id = item.getitemid(); fragmenttransaction fragmenttransaction; if (id == r.id.nav_sports) { fragment = new fragmentone(); } else if (id == r.id.nav_food) { fragment = new fragmenttwo(); } else if (id == r.id.nav_security) { fragment = new fragmentthree(); } if (fragment != null) { fragmenttransaction = getsupportfragmentmanager().begintransaction(); fragmenttransaction.replace(r.id.containerview, fragment).commit(); }

How to include modules from a different directory in puppet -

my module tree this - modules - socle1 - stdlib - socle2 - ntp how include stdlib module in site.pp ? i have tried include socle1::stdlib , not working . should modify environment.conf directory environment? if want arrange modules in separate trees, may so. should include each base path in environment's modulepath, , refer modules regular names. note in particular altering path module not change name or names of of classes or types defines -- path influences whether autoloader can find them. i advise against making subdirectories of standard module directory, however. instead, if want group modules in multiple directories create parallel module directories purpose: - modules - socle1 - stdlib - socle2 - ntp should modify environment.conf directory environment? in order support module directories beyond or instead of default, yes, should. puppet documentation describes how configure environment's modulepath ....

wordpress - Child themes of twentysixteen theme -

i using twenty sixteen child theme. need modify theme contents. files need modify , how? can explain in detail. advance thanks. when use child theme black screen this site http://i.stack.imgur.com/snsx9.png how extent full width of site.. read following documentation child themes child theme inherits functionality , styling of it's parent theme. if using child theme , theme update applied changes won't lost or overwitten you can create child theme theme, follow steps given below: 1 create folder , name theme name; append -child in name. e.g. creating child theme twentysixteen theme called twentysixteen-child folder should sit beside parent theme under wp-content/themes/ 2- child theme should have 3 files. style.css functions.php screenshot.png 3- in functions.php file can override parent theme functions. 4 in style.css file can override parent theme css code. 5 if want change header design have override header.php file. copy header.php file ...

c# - Unable to Create User using Google Admin SDK - Exception 401 Unauthorized -

i trying populate users in c# application. however, keep getting exception: {"error occurred while sending direct message or getting response."} [dotnetopenauth.messaging.protocolexception]: {"error occurred while sending direct message or getting response."} data: {system.collections.listdictionaryinternal} helplink: null innerexception: {"the remote server returned error: (401) unauthorized."} message: "error occurred while sending direct message or getting response." source: "google.apis" stacktrace: " @ google.apis.requests.clientservicerequest`1.execute() in c:\\code.google.com\\google-api-dotnet-client\\default\\tools\\buildrelease\\bin\\release\\release140\\default\\src\\googleapis\\apis\\requests\\clientservicerequest.cs:line 88\r\n @ googleaccountspopulation.directoryserviceclient.createuser(user user) in e:\\googleaccountspopulation\\googleaccountspopulation\\googleaccountspopulation\\directoryserviceclient.cs:l...

FlowPlayer: Is there an equivalent for the html5 "timeupdate" event, so I can get the currentTime property of flowPlayer Object? -

$("video").on('timeupdate', function() { console.log(this.currenttime); }); like this, how console flowplayer object currenttime? maybe can do flowplayer(function (api, root) { api.on("progress", function (e, api) { console.log(api.video.time); }); });

indexing - Solr index removing stopwords does not seem to work -

i remove stopwords index during indexing , query somehow words within stopwords.txt not seem removed index (i can still use these in query , result hits them). here schema.xml: <fieldtype name="text" class="solr.textfield" positionincrementgap="100"> <analyzer type="index"> <tokenizer class="solr.standardtokenizerfactory"/> <!-- in example, use synonyms @ query time <filter class="solr.synonymfilterfactory" synonyms="index_synonyms.txt" ignorecase="true" expand="false"/> --> <filter class="solr.lowercasefilterfactory"/> <filter class="solr.stopfilterfactory" ignorecase="true" words="stopwords.txt" /> <filter class="solr.worddelimiterfilterfactory" generatewordp...

Google bar chart margin between axis and first colum -

how increase space between axis , first column in material bar charts ? tried many things options.chartarea = { left: '8%', top: '8%', width: "70%", height: "70%" }; it not working. there isn't option adjust space reference would have insert blank row adjusting chartarea move axis , first column, still in same proximity each other in addition, chartarea option doesn't work on material chart along several others see following working snippet a blank row used create space, can see difference chartarea.left makes on core chart, mentioned, axis still in close proximity without blank row there option -- theme: 'material' -- core charts google.charts.load('current', { callback: function () { var data = google.visualization.arraytodatatable([ ['id', 'col a'], [' ', null], ['1000', 4], ['1001', 4], [...