Posts

Featured post

google bigquery - Delta between query execution time and Java query call to finish -

context our container cluster located @ us-east1-c we using following java library: google-cloud-bigquery, 0.9.2-beta our dataset has around 26m rows , represents ~10g all of our queries return less 100 rows grouping on specific column question we analyzed last 100 queries executed in bigquery, these executed in 2-3 seconds (we analyzed calling bq --format=prettyjson show -j jobid , end time - creation time). in our java logs though, of calls bigquery.query blocking 5-6 seconds (and 10 seconds not out of ordinary). explain systematic gap between query finish in bigquery cluster , results being available in java? know 5-6 seconds isn't astronomic, curious see if normal behaviour when using java bigquery cloud library. i didn't dig point analyzed outbound call using wireshark. our tests executed in our container cluster (kubernetes). code queryrequest request = queryrequest.newbuilder(sql) .setmaxwaittime(30000l) .setuselega

javascript - Angular2 intelliJ config error.. Cannot find module '@angular/core' -

Image
i new angular2. following tutorial angular2 example . first simple tutorial called guess-the-number i used code described in github provided example https://github.com/chandermani/angular2byexample/tree/master/guessthenumber . it loads fine in browser. intellij setup i'm having issues. intellij returning following error.. seen in screenshot. cannot find module '@angular/core' my properties file follows systemjs.config.js system.config({ map : { 'app': 'app', 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.12', '@angular/common': 'https://unpkg.com/@angular/common@2.0.0', '@angular/compiler': 'https://unpkg.com/@angular/compiler@2.0.0', '@angular/core': 'https://unpkg.com/@angular/core@2.0.0', '@angular/platform-browser': 'https://unpkg.com/@angular/platform-browser@2.0.0', '@angular/platform-browser-dynamic': 'https://unpkg.c

reactjs - How to prevent both routes from being matched in react-router v4? -

if path /posts/new , both components postsnew , postsshow below rendered, , :id matched, id being word new instead of number: reactdom.render( ( <provider store={createstorewithmiddleware(reducers)}> <router> <app> <route exact={true} path="/" component={postsindex} /> <route path="/posts/new" component={postsnew} /> <route path="/posts/:id" component={postsshow} /> </app> </router> </provider> ), document.queryselector('#root') ); in app.js: <div> <h1>an awesome app</h1> {this.props.children} </div> how can /posts/new not matched twice? we call "ambiguous routes" , there's example on our site here . the switch component should solve this. reactdom.render( ( <provider store={createstorewithmiddleware(reducers)}> <router>

php - Permission denied. Laravel linux server -

when try register , send email user got error. working till yesterday. today gives me , cant figure out why. way on local testing work's. i'm stuck. please errorexception in compiled.php line 7512: file_put_contents(/var/www/html/storage/framework/views/53de219dee4f11a2db4f64a2c574ad02db5613f4.php): failed open stream: permission denied in compiled.php line 7512 @ handleexceptions->handleerror('2', 'file_put_contents(/var/www/html/storage/framework/views/53de219dee4f11a2db4f64a2c574ad02db5613f4.php): failed open stream: permission denied', '/var/www/html/bootstrap/cache/compiled.php', '7512', array('path' => '/var/www/html/storage/framework/views/53de219dee4f11a2db4f64a2c574ad02db5613f4.php', 'contents' => 'please activate account clicking on following link. <a href="<?php echo e(route('auth.activate', $token)); ?>"><?php echo e(route('auth.activate', $token)); ?

c# - SQL server where clause equals instead of IN -

this question exact duplicate of: linq equal instead of contains 3 answers here generated t-sql linq select [extent1].[id] [id], [extent1].[name] [name] [dbo].[hospital] [extent1] ( exists (select 1 [c1] ( select [extent2].[id] [id] [dbo].[hospitaldepartment] [extent2] [extent1].[id] = [extent2].[hospitalid] ) [project1] exists (select 1 [c1] ( select [extent3].[id] [id] [dbo].[unit] [extent3] [project1].[id] = [extent3].[hospitaldepartmentid] ) [project2] exists (select 1 [c1] [dbo].[device] [extent4] ([project2].[id] = [extent4].[unitid]) , ([extent4].[devicetypeid] in (10,20)) ) ) i need use equal instead

python - Pandas two dataframes multiplication? -

i have 2 data frames (a , b) a: column 1, column 2, column 3 0.1 0.5 0.7 b: row 1 5 row 2 6 row 3 7 how perform multiplication like (0.1)*5, (0.5)* 6, , (0.7)*7? in other words, how multiply value in first row of b value in first column of a, second row of b value in second column of b, , etc? you want multiply values without respect whether rows or columns. pd.series(a.values.ravel() * b.values.ravel()) 0 0.5 1 3.0 2 4.9 dtype: float64

node.js - How to check multiple conditions to be true or false using protractor ,so that it helps in validating input before click -

here code want check value of inputs nick_name , room_name before clicking button(createroom_btn).but not getting how check multiple conditions in single if statement using protractor. var nick_name = element(by.model('user.vcard.nickname')); var room_name = element(by.model('roomname')); var createroom_btn = element(by.tagname('button')); describe('protractor demo app', function () { it('should click on create room button', function () { condition = function () { return [ nick_name.getattribute('value').then(function (value) { return value.length > 0 }), room_name.getattribute('value').then(function (value) { return value.length > 0 }) ]; }; browser.wait(condition, 8000, "text still not present").then(function (resp) { }); //button click