Comment by krock on MySQL equivalent of DECODE function in Oracle
this only works for boolean expressions, not arbitrary length cases like DECODE() does.
View ArticleComment by krock on Serializing groovy map to string with quotes
.inspect() is extremely helpful for debugging code and pulling example maps out into unit tests. I see many upvotes in your future.
View ArticleComment by krock on Using vagrant to run virtual machines with desktop...
box-cutter don't provide the pre built images any more.
View ArticleComment by krock on Appending a byte[] to the end of another byte[]
@Shashwat in this case, we already know the length of ciphertext and mac byte arrays. That means we know the length of the new byte array should be the combined length of the original 2 byte arrays.
View ArticleComment by krock on Installing python36-devel on rhel7 failing
yum install python36-devel fails on a fresh oracle-linux VM with no existing python installed on the system. Seems to me the yum config got screwed up in the last week with different packages requiring...
View ArticleComment by krock on Gatling-Value baseURL is not a member of...
It looks like baseURL was renamed baseUrl in the gatling libraries at some point (maybe v3). So the case that works will depend on which version of gatling you are using.
View ArticleComment by krock on Openshift CLI - update Application with template and oc...
using oc apply on resources that were created via new-app with a template gives the warning message: "oc apply should be used on resource created by either oc create --save-config or oc apply". This...
View ArticleComment by krock on How to convert DateTime to string using Region Short Date
this seems like a windows only solution
View ArticleComment by krock on Error message: "'chromedriver' executable needs to be...
ChromeDriverManager().install() seems to edit the registry so you need to be a local admin for this to work
View ArticleComment by krock on Getting error with pip search and pip install
the question is basically that pip search is broken now, and what can we do to fix it. Answers show its probably not going to be fixed.
View ArticleComment by krock on Why does CSV file contain a blank line in between each...
this is a python 2 only answer
View ArticleComment by krock on Why the python __builtins__ length changed in debug mode...
what do you see when you use print instead of len? That will give you a hint.
View ArticleComment by krock on how to search a specific string in a xml file and than to...
maybe this question will help: stackoverflow.com/questions/10477294/…
View ArticleComment by krock on Function to replace multiple characters
_str has a length of 5, but the lists are only length of 3 which is why you are going out of range.
View ArticleComment by krock on opening Python script mode on a mac
that is opening the python repl which is a "proper" way to run a python shell. If you don't mean that, what do you mean e.g. IDLE?
View ArticleAnswer by krock for What is the prerequisite when try to learn the spring or...
In my opinion, the Spring in Action book is a bit behind the times now (Spring 2.0) and doesn't include any of the nifty new features in 2.5 or 3.0. I would start with the spring documentation.
View ArticleAnswer by krock for Flask web developments passing multiple variables thru...
If you want to get query string parameter values the best way is to do this in your @app.route function. For example, getting the action query string parameter:@app.route('/')def index(): action =...
View ArticleAnswer by krock for Do I need put " python" infront for the .py if write a...
How to execute a python file without calling "python" directlyIf you want to execute a python file directly set the file to executable (e.g. use chmod +x bot.py) and add a shebang on the first line of...
View ArticleAnswer by krock for How to ignore last digit and compare two strings using...
The easiest way to ignore the last character in a string is to use slicing, e.g.a[0..-2] == b[0..-2]Use negative numbers in the slice to represent an index from the end.
View ArticleAnswer by krock for Display time in 24 hour format
Check the date and time patterns table; Month is capital M and minute is lower m. So your date part should look like this: yyyy-MM-dd.The SimpleDateFormat in your code should look like this:new...
View Article
More Pages to Explore .....