Posts

Showing posts from March, 2015

How to generate dynamic LINQ queries with GroupBy and Aggregates (SUM, COUNT, AVG)? -

the following code generates dynamic linq queries simple .where clauses involving field , value. extend class able generate groupby , equivalent of "having sum(amountfield)" or "having count(field)". in essence should generate equivalent of: _people.groupby(c => c.name) .where(grp => grp.count() > 1) .select(grp => grp.key); or _orders.groupby(c => c.custid) .where(grp => grp.sum(x => x.amount) > 100) .select(grp => grp.key); can help? here code i'm using: public class expressioncriteria<t> { list<expressioncriterion> _expressioncriterion = new list<expressioncriterion>(); private string _andor = "and"; public expressioncriteria<t> and() { _andor = "and"; return this; } public expressioncriteria<t> or() { _andor = "or"; return this; }

javascript - How can I change the body of template in meteor with a html on another template? -

i'm trying generate many graph on template, first graph default , i'd when click on zone generate graph exist in template. how can ? i try return template other grahp. template.test.events({'click .zone' : function (e){ console.log("j'ai cliqué sur le template test ... on va essayer d'ouvrir une pop up"); e.preventdefault(); //$('#animalsmodal').modal('show'); return {template: template[creategraph]}; }}); you can use template.dynamic purpose. //html <template name="graphdisplayer"> {{> template.dynamic template=helpertogetdynamictemplate}} </template> //js template.graphdisplayer.oncreated(function(){ this.templatenameofgraph = new reactivevar('yourdefaulttemplate'); }); template.graphdisplayer.events({ 'click .zone':function(e,t) { t.templatenameofgraph.set('yourothertemplate'); } }); template.graphdisplayer.helpers({ helpertogetdynamictemp

mysql - PHP Laravel Task Scheduling Best Practice -

i building simple application schedule ad set enabled / disabled based on time user inputs. for example, user may want have ads run 6 - 9 , 5 pm - 10 pm , off @ other times. what best way schedule this? store of data in mysql, should have cron/task checks every minute rows in table match time , function enable/disable? to continue example, table might contain columns, time, function. 6 am, enable 9 am, disable 5 pm, enable 10 pm, disable my question if have 10,000 users or so, web server or there more efficient way this? in below approach, doing is... there 2 tables - ads , ad_timings saves different start_time , end_time each ad... where saving start_time 0600 , end_time 0900 . so, you'll check if current time (say, 2016-23-12 06:50:11 )... convert 0650 . now find out ads start_time less 650 , end_time more find out active ads , reverse ads stop. run every 10 mins... give each user minimum input time interval of 10 mins... way run cron every

ios - Objective-C pointer and swift -

i'm following apple document , unfortunately examples written on objective-c, have confidence swift language , can not understand meaning of things, in particular, in example: void runloopsourcesperformroutine (void *info){ runloopsource* obj = (runloopsource*)info; [obj sourcefired]; } this line: runloopsource* obj = (runloopsource*)info; the parameter: void *info indicates info pointer void, can put address of type of data structure, following various apple documents saw translation of : void *info swift language : info: unsafemutablerawpointer? now, runloopsource* obj = (runloopsource*)info; line indicates obj variable of type: runloopsource, , assigned value of (runloopsource *) info , precisely mean statement? : (runloopsource *) info , , how translates in swift language ? what dealing ( void *info ) c pointer-to-void , arrives swift form of unsaferawpointer. means type info has been cast away , memory being managed elsewhere. in order

powerpivot - Reduce the size of Very Large Excel Data Model -

hi created data model 295k rows , 27 columns comes out 17 mb when ran power pivot table. after adding table 227k row data model sudden data size jumps on 42 mb? can advise me on how reduce size of data model... thanks there's few options. reference recommend reading this article discusses powerpivot's compression techniques. powerpivot more columns rows. fewer distinct values have in columns, better. can roll-up of dimensions or rid of columns before importing data? reduce rows aggregating data. need detail, 275k rows, in order run analysis? you'd surprised if take critical look, how little might need.

c - Program memory space is being overwritten -

i writing firmware atmel mega645a controller using atmelstudio7. have bunch of messages display on 16x2 character display. in order preserve sram space, attempting store these messages in rom program memory. problem seems overwriting parts of program memory being used other code. here details: i have following statements near beginning of main program: #include "adht.h" #include "languages.h" in adht.h have following: #include <avr/pgmspace.h> i believe nut of problem in header file languages.h, created. in languages.h have hundreds of lines of code this: const char m1_1_1[] progmem = {32,32,32,32,69,110,116,101,114,105,110,103}; const char m1_2_1[] progmem = {32,32,83,116,97,110,100,98,121,32,77,111,100,101}; const char m2_1_1[] progmem = {32,32,70,87,32,82,101,118,105,115,105,111,110}; const char m2_2_1[] progmem = {32,32,32,32,40,110,117,109,98,101,114,41}; const char m3_1_1[] progmem = {32,78,79,46,32,79,70,32,84,72,69,82,65,80,89}; c

android - Call Google Place Api on EditText -

i using google place api in app , working perfactly when using fragment want call functionality on click on edittext how call that? placepicker.intentbuilder builder = new placepicker.intentbuilder(); mgoogleapiclient = new googleapiclient .builder(this) .addapi(places.place_detection_api) .enableautomanage(this, this) .build(); try { startactivityforresult(builder.build(this), place_picker_request); } catch (googleplayservicesrepairableexception | googleplayservicesnotavailableexception e) { e.printstacktrace(); } pendingresult<placelikelihoodbuffer> result = places.placedetectionapi .getcurrentplace(mgoogleapiclient, null); result.setresultcallback(new resultcallback<placelikelihoodbuffer>() { @override public void onresult(placelikelihoodbuffer likelyplaces) { (placelikelihood placelikelihood : likelyplaces) { }

python - Redis - Parse data stream provided by remote server -

i have set locally redis , want connect remote server provides synthetic data stream in form < id, value >. have far managed connect server mentioned above using sockets, read data stream , print it. instead want store pairs in hash data structure (i'm going store more informations each id later). problem don't know how parse data stream in order use hget , how continuously. in higher level able pass name , value incoming data stream arguments hget . forgot mention i'm using python api. far: import socket client_socket = socket.socket(socket.af_inet, socket.sock_stream) client_socket.connect(('xx.xx.xx.xxx', 1337)) while 1: data = client_socket.recv(512) print data a sample of data stream: 'amzn,780.6758\n' 'tsla,197.1802\n' 'csco,29.7491\n' 'goog,761.3758\n' 'aapl,112.4122\n' 'grpn,4.5848\n' 'fb,121.1232\n' 'msft,60.3529\n' 'intc,35.9056\n' 'nvda,94.473\n

jquery - Datatables - how to get columns of dataSrc -

so backend returning [{"id":"371","ref":"35\/2016","creator":"name","status":"part1","username":"user","date":"2016-12-14 00:00:00","title":null,"site":null,"location":"","comment":null}] i saw datasrc : "" being used in example, in example: https://datatables.net/examples/ajax/custom_data_property.html conveniently don't make example of how when they're array of objects. any tips on how use columns: [...] working appreciated. method 1 : have here think answer. method 2 : can parse json response , create multidimention array , pass datasrc how convert json array javascript 2d array method 3 : can parse response , create table structure below , append div : <table id="example" class="display" cellspacing="0" width="100%">

python - scipy.integrate.quad() without using lambda -

i making program involves rectification. module can complex integration scipy scipy.integrate.quad() command. however, in code, need have variable represents function itself, since there more different functions used in rectification process derived using preceding equation. every source have seen command either involves lambda or creating definition outputs equation. you input equation manually. so, question is, there way integrate without doing that? here's code: import scipy import sympy scipy.integrate import quad def rectify(smallestterm, nextsmallestterm, poly, coef, exp): test = rectification(coef,exp) = quad(test, smallestterm, nextsmallestterm) print(a) = a[0] dist = a/2 return dist def test(x): return rectification(coef, exp) def rectification(coef, exp): u = poly(lint(coef,exp)) #generated equation b = u.all_coeffs() poly = b c = len(poly) - 1 exponents = [] while c +

arrays - How to make responsive table in Java? -

i beginner in programming , learning how build responsive table in java. came across think need figure out with. let me use easy example illustrate it. i have 2 arrays, string[] name = new string[] {"james","tom","rodriguez"}; integer[] score = new double[] {15,20,13}; and want transform them this, name score james 15 tom 20 rodriguez 13 i using "\t" , somehow successful in making them aligned when add name bit longer output become this. name score james 15 tom 20 rodriguez fernandes 13 my friend told me use system.out.printf not sure how apply arrays, when data large. me how better format table this? in order this, first need find string maximum length , append (max length minus string length) spaces while printing other names, e.g.: public static void print(string[] names, integer[] score){ //find name max length int maxlength = arrays.stream(names) .maptoint(string::le

typescript - Angular 2 - ActivatedRoute don't carry data -

i followed tutorial on angular website , fine. however, tried create project same patterns, can't pass data through activatedroute. here's code : app.module.ts import { browsermodule } '@angular/platform-browser'; import { appcomponent } './app.component'; import { levelservice } './level.service'; import { routermodule } '@angular/router' import { ngmodule } '@angular/core'; import { levelcomponent } './level.component'; import { selectorcomponent } './selector.component'; @ngmodule({ imports: [ browsermodule, routermodule.forroot([ { path: '', redirectto: '/selector', pathmatch: 'full' }, { path: 'selector', component: selectorcomponent }, { path: 'level/:id', component: levelcomponent } ]) ], declarations: [ appcomponent, selectorcomponent, levelcom

reactjs - Getting absolutely NO output from Jest when running tests -

here package.json: "jest": { "cachedirectory": "/tmp/jestcache", "scriptpreprocessor": "node_modules/babel-jest", "modulepaths": [ "<rootdir>/app/static/react/" ], "moduledirectories": [ "node_modules", "app/static/react/app" ], "testpathdirs": [ "app/static/react/__tests__" ], "testregex": "(.*tests?\\.jsx?)$" } when run jest --verbose , tests run, there no way communicate stdout far can tell except throwing error. console.log not exist. using jest 16.0.2. i've read there recent changes around automocking , console buffering, seems i'm missing more fundamental. the tests otherwise run fine. working on osx yosemite, node 7.4, npm 4.0.5. i feel have configuration overwriting defaults. 1 of reasons jest awesome works out of box. first update latest version of jest

Find UPPER Alphabets in mysql in LIKE clause? -

Image
i search state_abbreviation tx. below query tried far: select * `usa_address` ' 1 american center, suite 3000 600 congress avenue austin , tx &nbsp;78701' concat('%',usa_address.city,'%') , ' 1 american center, suite 3000 600 congress avenue austin , tx &nbsp;78701 ' concat('%',upper(usa_address.state_abbreviation),'%')

C# Find the closest centroid -

i have code it's not because add centroid the list(todos_centroides) , after find squares calculate 1 closest. it's causing delay on image processing. does have better idea? public void quadrado() { frame_drone_copia = frame_drone.copy(); //copia imagem original para evitar pixeis escritos na imagem tamanho_imagem.x = frame_drone.width; tamanho_imagem.y = frame_drone.height; //frame_drone = frame_drone.smoothbilatral(9,0,) frame_drone = frame_drone.smoothblur(11,11); frame_drone = frame_drone.pyrdown().pyrup(); cvinvoke.cvcvtcolor(frame_drone, frame_drone_gray, color_conversion.bgr2gray); //cvinvoke.cvcvtcolor(frame_drone, frame_drone_hsv, color_conversion.bgr2hsv); //converte imagem da camera rgb para hsv frame_drone_hsv = frame_drone.convert< hsv, byte >(); //frame_drone_threshold_hsv = frame_drone_hsv.inrange(new hsv(0,110,0), new hsv(255,255,255)); //utiliza trackbars

javascript - When inside a frame, the innerHeight and innerWidth in Safari is 0 -

if run js innerheight , innerwidth of page, , if page inside iframe, correct results in chrome (i.e. height , width of page), in safari value of 0 both items. is there way innerheight , innerwidth of page if inside iframe in safari? thanks

REST Web Service transfer data over HTTP which must be text format only -

i came across rest web service implanted in spring, , accepting byte array input. confusion , rest implemented using http protocol , http transfer data in string format only, may json , html , xml or simple text. how byte array transferred , accepted @ server side. aware http message converters spring uses convert input appropriate data type question http data transfer not on spring implementation... http transfer data in string format only as say, uses string format . string interpretation of data contained in byte[] . data transferred/stored in form of byte[] . if read data convert else text or maybe picture interpreting single bytes character or maybe pixel. in case spring gives raw data of request.

java - How Would I Export My Code Correctly In Eclipse -

i right click on project press export press runnable jar file , export when launch it, has clear screen in eclipse shows image. how fix this? i've tried numerous posts , did when try put .jar file in images folder , launch jar still launches no background-image. i had same issue. took me bit find answer. here answer found. save images in seperate folder somewhere in src folder , add build path. then, since images static can access this: bluesprite = imageloader.bluesprite; don't forget call imageloader.loadimages() too. final public class imageloader { public static bufferedimage bluesprite; public static inputstream load(string path) { inputstream input = imageloader.class.getresourceasstream(path); if (input==null) { input=imageloader.class.getresourceasstream("/"+path); } return input; } public static void loadimages() { try { bluesprite= imageio.read(imageloader.

python - With scrapy, how can get part of xpath parsed result? -

here part of spider: def parse(self, response): titles = htmlxpathselector(response).select('//li') title in titles: item = eksidefeitem() item['favori'] = title.select("//*[@id='entry-list']/li/@data-favorite-count").extract() item['entry'] = ['<a href=https://eksisozluk.com%s'%a in title.select("//*[@class='entry-date permalink']/@href").extract()] item['yazari'] = title.select("//*[@id='entry-list']/li/@data-author").extract() item['basligi'] = title.select("//*[@id='topic']/h1/@data-title").extract() item['tarih'] = title.select("//*[@id='entry-list']/li/footer/div[2]/a[1]/text()").extract() return item i getting date , time item['tarih'] not exact date , time has values inside it. here example of parsed data it:

excel vba - Check only for weekday values and color using VBA -

i have below vba code color values in col "m" if greater 1 , have text "moved sa (compatibility reduction)". what want is: i have dates in col k , code should run on weekday dates , not on weekend dates. i need add additional text along "moved sa (compatibility reduction)", let's "text 2" , "text 3". so, if col p has either "moved sa (compatibility reduction)" or "text 2" or "text 3", coloring should happen.(it great if possible use wildcards here) this code should run in sheet "latency" sub latencymarker() dim r long dim m long on error goto exithere: m = range("m:p").find(what:="*", searchorder:=xlbyrows, searchdirection:=xlprevious).row application.screenupdating = false r = 1 m if range("p" & r) = "moved sa (compatibility reduction)" if range("m" & r) >= 1 range("m" & r).cells.fo

jquery - Wordpress/Visual Composer - Show 1 div when another div is clicked -

Image
i forever grateful if me out this... i've been trying implement feature 4 days now, no joke.. have researched everywhere, tried everything, , accept i'm defeated. i know incredibly simple javascript/jquery function, can't of functions i've tried work within visual composer important info: i'm using visual composer inside wordpress. visual composer allows add classes elements (divs), not id's. visual composer has "raw javascript" element, "raw html" element, , separate section enter css. setup: have 2 images (div aa , ba) links separate part of page. have 2 sections of content (div ba , bb). what trying do: div aa , ab should hidden default. when div aa clicked, ba appears , bb stays hidden. when div ab clicked, bb appears , ba stays hidden. if bb visible , aa clicked, bb disappears while ba appears, , vice versa i've come pretty close script: html <div id="aa">image #1</div> <div id="

unity3d - Git checkout freezes and does not change branch -

i working on git branch in unity project. issue unity loads , loads of files can binary , large. well, it's game development. i'd merge branch master, haven't done couple weeks, execute first step git checkout master git never finish command, blinking curser below line. can see in github desktop client 2100 files being changed ( happens in few minutes) due checkout branch never changed. had running 8 hours , nothing. i don't know can - suggestions? you try , clone again repo in new folder, , add previous folder remote git clone /url/for/repo/unity unity2 cd unity2 git remote add first_unity ../unity git fetch fist_unity git merge first_unity/my_branch

Jekyll output collection list organized by tag -

i'm having trouble grouping items tags in collection. i've managed site.categories (check bellow), i'm having trouble fecthing yaml attributes collection items in same way. {% imagens in site.imagens %} <div class="card"> <ul class="lista-imagens"> <li><a class="categories" name="{{ imagens.tags | first }}">{ {{ imagens.tags | first }} }</a> <ul > <li> <img src="{{ imagens.image_path }}" alt="{{ imagens.title }}"> <a href="{{ imagens.original_path }}" target="_blank">{{ imagens.title }}</a> <span class="ano">{{ imagens.year }}</span> </li> </ul> </li> </ul> </div> {% endfor %} {% category in site.categories %} <div class="col-md-3"> <ul class="listinha"> <li><a class="categories" name=&q

jenkins - How to avoid OverlyPermissiveMethod issue? -

in sonarqube 6.4 findbug plugin 3.5 installed, see issue in every build job: info: findbugs output report: /var/lib/jenkins/workspace/.........../findbugs-result.xml following errors occurred during analysis: exception analyzing ch.axonivy.fintech.acrevis.document.service.acrevisdocumentservice using detector com.mebigfatguy.fbcontrib.detect.overlypermissivemethod java.lang.runtimeexception: incompatible bcel version @ com.mebigfatguy.fbcontrib.detect.overlypermissivemethod.getbootstrapmethod(overlypermissivemethod.java:379) @ com.mebigfatguy.fbcontrib.detect.overlypermissivemethod.sawopcode(overlypermissivemethod.java:167) @ edu.umd.cs.findbugs.visitclass.dismantlebytecode.visit(dismantlebytecode.java:881) @ edu.umd.cs.findbugs.visitclass.bettervisitor.visitcode(bettervisitor.java:218) @ edu.umd.cs.findbugs.visitclass.preordervisitor.visitcode(preordervisitor.java:240) @ com.mebigfatguy.fbcontrib.detect.overlypermissivemethod.visitcode(o

javascript - Custom validator dynamic message -

i want custom validator dynamic messages. custom validator required field , regular expression. don't want use required field validator , regular expression validator creates more problems me. here javascript code <script type="text/javascript"> function checkmytext(sender, args) { var compare = regexp("^.{1,10}$"); args.isvalid = compare.test(args.value) return; } </script> here custom validator , text field code <asp:textbox id="summary" runat="server" width="627px" cssclass="texrbox"></asp:textbox> <asp:customvalidator id="customvalidator2" runat="server" clientvalidationfunction="checkmytext" controltovalidate="summary" errormessage="" text="*" validateemptytext="true"></asp:customvalidator> it working fine want show message when regular expression error fired only

MySQL replace into behavior with unique constraint -

i have quick question mysql behavior. imagine table 3(relevant) columns: id (pk + ai),somedate,someuser,etc... i have put unique constraint on (date,user). when start clean test table , run following query twice: replace `testtable` (somedate,someuser) values('2017-01-01','admin'); i expected row 'id' column on 1. instead everytime run query id goes because of auto increment , can't have happen (this corrupt data relations). why this? can make can keep original primary key when replace occurs? not replace . that's insert preceded delete . behavior observe replace same behavior see if executed these 2 statements: delete `testtable` somedate = '2017-01-01' , someuser = 'admin'; insert `testtable` (somedate,someuser) values ('2017-01-01','admin'); and means auto_increment column on newly inserted row have new value. perhaps consider using insert ... on duplicate key update . reference: htt

php - Validation of Soap-XML against XSD does not work -

since lot of days try validate soap requst xml against xsd, no success: this xml (generated php-soap-client): <?xml version="1.0" encoding="utf-8"?> <env:envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://localhost/apitest" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> <env:body> <ns1:hello env:encodingstyle="http://www.w3.org/2003/05/soap-encoding"> <input xsi:type="ns1:hellorequest"> <name xsi:type="ns1:name">martinmartinmartinmartin</name> <car xsi:type="ns1:car">ford</car> </input> </ns1:hello> </env:body> </env:envelope> and xsd: <?xml version="1.0" encoding=&qu

android - Choosing Images on a Samsung Galaxy Device rotates -

i'm working on android-project, in user can upload image profile image. worked fine until point (eventually samsung-update). since then, images on samsung galaxy devices (maybe on others), on htc 1 xl works fine, on lenovo yoga tablet , on sony (don't know which) also. on galaxy's s6 , s5 rotates image. idea is, image set in "normal" perspective user took it. means, should take square, of course, had upright. samsung-devices head 90 degree wrong anticlockwise. code works on other devices. has same problem? idea? here code // after image taken public void onactivityresult(int requestcode, int resultcode, intent data) { try { // data returned if (resultcode != fragmentactivity.result_canceled) { if (requestcode == result_load_image && resultcode == getactivity().result_ok){ // set profile image gallery try { uri selectedimage = data.getdata(); photo

babeljs - babel cli installed as local node module does not work: permission denied -

i can't run babel-cli local node modules folder. i installed babel-cli in local node modules folder using: npm install babel-cli --save-dev so not have install babel globally. can see installed in node_modules , added package.json file. "devdependencies": { "babel-cli": "^6.18.0" } when build using command babel app.js -o build/app.js i message saying babel the program 'babel' can found in following packages: * babel-1.4.0 * openbabel try: sudo apt-get install <selected package> i using ubuntu 14.4 i tried access babel through script adding "scripts": { "babelversion": "babel --version", } when run command 'npm run babelversion' same error sh: 1: babel: permission denied and , npm error exit status 126 how local babel (without installing globally) work? i had same problem, found solution calling program locally, this: ./node_modules/babel-cli/bin/babel.

java - Spring boot with maven for parent project -

i having spring boot maven project, name "csmaster", contains common code use in projects (appadmin). csmaster project contains- common code domains, repository layer, service layer , pom.xml file. appadmin project contains- controller layer, helper classes, jsp files , pom.xml file. in controller layer have autowired service layer present in master project. now while writing code able access methods of parent project in appadmin project while generating war of appadmin project mvn install throwing following error- [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 7.996 s [info] finished at: 2016-10-26t13:07:25+05:30 [info] final memory: 28m/280m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (def

tsc - Where does Yarn add global binaries on Windows? -

i'm on windows 7, , tried install typescript yarn : yarn global add typescript success installed typescript@2.0.6 binaries: - tsc - tsserver done in 11.59s. after successful installation, type tsc in command line, find command not available. yarn tsc yarn tsc v0.16.1 error command "tsc" not found. get config: yarn config prefix c:\program files (x86)\nodist\bin i checked path: there's no tsc or tsserver exectuables. it? it works now : mkdir ~/yarn-global yarn config set prefix ~/yarn-global check with yarn config prefix add ~/yarn-global path env var.

sqlite3 - "UPDATE OR ROLLBACK" produces a different result than "UPDATE" when used together with "INSERT OR REPLACE" trigger and unique constraint -

i'm using sqlite3 version 3.8.8.3 , i'm wondering whether following problem leads expected result: begin transaction; create table ta ( integer(10) not null, id integer not null primary key ); insert "ta" values(1,1); insert "ta" values(2,2); insert "ta" values(3,3); create table tb ( integer(10) not null, constraint c unique (a) ); insert "tb" values(2); insert "tb" values(1); create trigger t after update on ta each row when (old.a != new.a ) begin insert or replace tb(a) select new.a; end; commit; update or rollback ta set a=3; --> error: unique constraint failed: tb.a

objective c - libc++abi.dylib: terminating with uncaught exception of type NSException in Xcode 8.0 -

i quite new ios app developing. working on project builded long time ago (i think in 2011). i don't have knowledge xcode , objective c. i have solved of problems can't solved 1 :( although many other peoples asked question can't find solution of this. i getting error 2016-10-26 12:51:59.200 testcordova1[12758:1094626] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '- [appdelegate application:didfinishlaunchingwithoptions:]: unrecognized selector sent instance 0x7fc476e02be0' *** first throw call stack: ( 0 corefoundation 0x000000010310134b __exceptionpreprocess + 171 1 libobjc.a.dylib 0x000000010221621e objc_exception_throw + 48 2 corefoundation 0x0000000103170f34 -[nsobject(nsobject) doesnotrecognizeselector:] + 132 3 corefoundation 0x0000000103086a2e ___forwarding___ + 526 4 corefoundation

html - Bootstrap 3 and CodeIgniter 3 Google Maps API v3 BIOSTALL Library show a gray square -

i using pure html , css on views , works fine changed views , began use bootstrap 3, div map show grey square,my view: <div class="col-md-8"> <div class="panel panel-default"> <div class="panel-heading"> <span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span> map </div> <div class="panel-body"> <?php echo $map['html'];?> </div> </div> </div> what can make show?

drupal - Remove 'Disqus' from header part -

Image
i use 'disqus' module on drupal8 website. knows how remove or re-write this: i couldn't find answer on internet thought maybe here knows solution. thanks! try this. view manage display tab of content type implements disqus comments field , set label hidden , save. to access manage display page, go to: admin/structure/types in operations column, select "manage display".

vcl - Delphi- Make a EditBox to accept only numbers lessthan or equal to(<=) 12 on Keypress event -

this question has answer here: only specific numbers in edit box 2 answers i have edit box , trying make accept numbers 0 12. wrote onexit handler this: procedure tfrmcourse.edtdurationexit(sender: tobject); begin if not string.isnullorempty(edtduration.text) begin if strtoint(edtduration.text) > 12 begin edtduration.clear; edtduration.setfocus; end; end; end; ... want check while typing . tedit should accept numeric input , warn when value > 12. answer propose question final answer procedure tfrmcourse.edtdurationkeypress(sender: tobject; var key: char); var stextvalue: string; begin if sender = edtduration begin if (key = formatsettings.decimalseparator) , (pos(formatsettings.decimalseparator, edtduration.text) <> 0) key := #0; i