Quantcast
Channel: User Thomas - Stack Overflow
Browsing all 39 articles
Browse latest View live
↧

Comment by Thomas on Tokenize String for words including non-word characters

This works, I thought using word delimiters (\b) would be in a way more save, but I can't think of an edge case right now where this applies, so your solution should work totally perfect, thanks.

View Article


Comment by Thomas on Suddenly getting SQL Exceptions when using sql variables...

Good suggestion, I will try this. Strangely, in other parts of my application, the driver has no problems to prepare it in one step.

View Article


Comment by Thomas on Suddenly getting SQL Exceptions when using sql variables...

The actual statement is far more complex and has variable calculations in it, that can not just be set externally without prior calls.

View Article

Comment by Thomas on SQL Statement with bad performance, although using index

This seems to be right, when I use the SQL_NO_CACHE option the query always takes 20 seconds.

View Article

Comment by Thomas on SQL Statement with bad performance, although using index

This is what EXPLAIN shows: SIMPLE; key_event_reports; ref; report_model_id_2,get_latest_report; report_model_id_2; 4; const; 8873835; Using where, Using index

View Article


Comment by Thomas on SQL Statement with bad performance, although using index

Unfortunately this is used for real-time data, so execution time matters a lot in this case. We get a live feed of messages, which are analyzed in real-time with scores falling into different groups,...

View Article

Comment by Thomas on SQL Statement with bad performance, although using index

This solved the problem perfectly. Both queries are running very smoothly now. Thank you for saving my day!

View Article

Comment by Thomas on How to concatenate a list with conditional entries to...

Thanks for the answer. This is basically how I did it before and it's feasible when you have three columns, but not if you go beyond that.

View Article


Comment by Thomas on How to concatenate a list with conditional entries to...

I like the trim solution.

View Article


Comment by Thomas on How to run Tensorflow on CPU

@Crashalot: This is not true. Look for various benchmarks for interference, CPUs are an order of magnitude slower there too.

View Article

Comment by Thomas on How to reference the latest Stream of a DynamoDB table...

Thanks Laurent for your answer. Unfortunately, I don't have access to the original DynamoDB Cloudformation definition, when I need to reference the Stream ARN, those two things can happen in entirely...

View Article

.apply without changing scope

I want to use the JavaScript .apply method to functions of a thrift compiled for Node.js. The thrift .js file has code like this:...var NimbusClient = exports.Client = function(output, pClass) {...

View Article

Pattern for continuous rule matching

I have a continuous stream of messages which are analyzed. The analysis returns different variables, like author, topic, sentiment, word-count and a set of distinct words. Users in the system are able...

View Article


Tokenize String for words including non-word characters

I want to tokenize Twitter messages including hash- and cash-tags. A correct example for tokenization would be like this:"Bought $AAPL today,because of the new #iphone".match(...);>>>>...

View Article

Session lifetime in node.js with express and MongoDB

I am using node.js with the express framework. As a session store I am using MongoDB. How can I set the lifetime after which the session objects are removed from MongoDB. This is how I am doing the...

View Article


Why is my custom Error object converted to a String by the Express router?

I am using custom Error objects in node.js (0.8.12) with express (2.5.8). When errors occur, I want to route them to my custom error handler, but my custom Error objects are converted to Strings, while...

View Article

How to pass values to a callback function at the time of the request call?

I have the following situation:var foo = [ 0, 1, 2 ]for (var i in foo) { Asyncstuff.get(URI).on('response', function(res) { console.log(i); } });}Because the .on('response',...) is called in an...

View Article


Remote monitoring of system stats with node.js

We have implemented a monitoring solution in node.js, which does some basic checks for database integrity and API up-time. We want to expand this system to collect basic system stats of our Linux...

View Article

Using a selfdefined ObjectId and avoiding double entries in Mongoose

I am getting JSON objects through an external API in node.js and want to store them in MongoDB. I defined a model like this:var Product = new Schema({ id: ObjectId, name: String});And now I'm trying to...

View Article

How to get the pure raw HTML of a page in HTMLUnit while ignoring JavaScript...

I just want the text content of page and I want the fetching to be as lightweight as possible. Can I turn off all the parsing and additional loading of JavaScript, CSS and other external content that...

View Article
Browsing all 39 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>