Posts

Axibase Time Series Database - report of hits per hour -

i using axibase time series database community edition, version 11499, store count every time hit particular web service. how can report of hits per hour last 7 days? you can use of of 2 built-in aggregation functions compute rate of change on period of time: delta , counter. here examples: example 1 example 2 as can see, difference in how these functions handle resets. counter function works particularly continuously incrementing metric might reset (drop 0 or negative value) in case of data type overflow or restart.

x86 - How to compile Tensorflow with SSE4.2 and AVX instructions? -

this message received running script check if tensorflow working: i tensorflow/stream_executor/dso_loader.cc:125] opened cuda library libcublas.so.8.0 locally tensorflow/stream_executor/dso_loader.cc:125] opened cuda library libcudnn.so.5 locally tensorflow/stream_executor/dso_loader.cc:125] opened cuda library libcufft.so.8.0 locally tensorflow/stream_executor/dso_loader.cc:125] opened cuda library libcuda.so.1 locally tensorflow/stream_executor/dso_loader.cc:125] opened cuda library libcurand.so.8.0 locally w tensorflow/core/platform/cpu_feature_guard.cc:95] tensorflow library wasn't compiled use sse4.2 instructions, these available on machine , speed cpu computations. w tensorflow/core/platform/cpu_feature_guard.cc:95] tensorflow library wasn't compiled use avx instructions, these available on machine , speed cpu computations. tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] successful numa node read sysfs had negative value (-1), there must @ least 1 numa nod...

sql server - Non Deterministic Function -

sql server telling me function non deterministic. confused because given date x return same. dateadd(d, 13 - datediff(d, '9/23/10', servicedate) % 14, servicedate) convert(date, dateadd(d, 13 - datediff(d, convert(date, '9/23/10',101), servicedate) % 14, servicedate),101) when refer date data type string literals in indexed computed columns in sql server, recommend explicitly convert literal date type want using deterministic date format style. list of date format styles deterministic, see cast , convert. expressions involve implicit conversion of character strings date data types considered nondeterministic, unless database compatibility level set 80 or earlier. because results depend on language , dateformat settings of server session. example, results of expression convert (datetime, '30 listopad 1996', 113) depend on language setting because string '30 listopad 1996' means different months in different la...

c# - Returning newly-added record in EFcore -

i doing prototype using efcore , struggling way return object i've added collection on entity. for example: public songleader addsongleader(int congregationid, songleader songleader) { var congregation = _dbcontext.congregations.include(c => c.songleaders).firstordefault(c => c.id == congregationid); congregation.songleaders.add(songleader); _dbcontext.savechanges(); //todo: return recently-added record... return null; } a congregation has collection of songleaders . once save context, though, i'm not sure of way return new instance. id of songleader generated when it's inserted db can't return object passed method... is there strategy or baked ef in scenario? you can return songleaders caller or integer value return savechanges() method. depend on requirements you. from controller can use createdatroute method return response. here tutorial can read. mention http recommendation rest api. ...

javascript - unable to delete google contact from nodejs -

from offical google contact api docs: deleting contacts to delete contact, send authorized delete request contact's edit url. the url of form: https://www.google.com/m8/feeds/contacts/ {useremail}/full/{contactid} simple request delete returns 401 error response. var url = "https://www.google.com/m8/feeds/contacts/"+req.token.body.sub.agent.agentid+"/full/"+result.googleid; unirest.delete(url) .header({ 'authorization': 'accesstoken='+req.token, 'if-match': '*', }) .timeout(60000) .end(function (res1) { console.log('delete success... ', res1); res.send(res1); }); note: tried 'authorization': 'bearer '+req.token, still same issue fixed it. problem access token (req.token) sending. sending object instead of actual token string

php - Get sum of all the data inside an multidimensional array recursively : -

i've array : array ( [self] => folder [my_data] => array ( ) [18] => array ( [self] => folder aa [my_data] => array ( [0] => stdclass object() ) [20] => array ( [self] => folder aa [my_data] => array ( [0] => stdclass object() ) [21] => array ) i want total number of records in of present in ' my_data '. i've created function call recursively add count : function getdocumentcount($tab, $count = 0) { foreach ($tab $subtabkey => $subtabvalue) { if ($subtabkey == 'my_data') { $count += count($subtabvalue); } if ( count($tab) > 2 && $subtabkey != 'self' && $subtabkey...

css - Hovering all images on a td? -

i want hover images on td or on table . found way came tiring me. way : classed of images 1 one , css'ed them hover. but want shortway instead of this. want group pictures , hover them. images on td or table. how can this? tried <div> td didn't work. help. try this. using > after td in css, apply style img direct child of td . if not direct child can remover > . td>img{ width:100px; display:inline-block; margin:10px; } td>img:hover{ opacity:0.2; cursor:pointer; } <table> <tr> <td class="hoverover"><img src="http://www.chinabuddhismencyclopedia.com/en/images/thumb/b/b8/nature.jpg/240px-nature.jpg"></td> <td class="hoverover"><img src="http://www.chinabuddhismencyclopedia.com/en/images/thumb/b/b8/nature.jpg/240px-nature.jpg"></td> <td class="hoverover"><img src="http://www.chinabuddhismencyclo...