Comment by motagirl2 on utf8mb4 in MySQL Workbench and JDBC
Nothing. The same issue as at the beginnging: History: error in method 'create' : java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\xA2' for column 'srcctxt' at row 1 :/
View ArticleComment by motagirl2 on Add day(s) to a Date object
Doesn't work at all when the month or year needs to be incresed as well!
View ArticleComment by motagirl2 on Symfony+Doctrine: Correct YAML syntax for default...
How strange, I am using the same version (2.5) with this exact syntax, and it still refuses to work :/
View ArticleComment by motagirl2 on Questions on Doctrine ORM Repository
@Cerad I tried to keep the questions as concise as posible, but you made me think I failed hehe
View ArticleComment by motagirl2 on utf8mb4 in MySQL Workbench and JDBC
By "procedures involved" I mean those that were custom-created in that given database, by using the "CREATE PROCEDURE procedure_name etc etc" statement ("procedure_name" is the name you give to that...
View ArticleComment by motagirl2 on Amount of Wikidata entries in a given language
@AKSW As you can read in the question, I already downloaded the dump and I'm processing it to extract several properties. The processing has been running since friday afternoon (so, more than three...
View ArticleComment by motagirl2 on scp or sftp copy multiple files with single command
This should be the answer on top, since the server doesn't ask for the password for each file :)
View ArticleComment by motagirl2 on Solr/Solrj: How can I determine the total number of...
Something like wget http://hostname:8983/solr/collection_name_here/query?q=*:* also does the trick :)` (and stores the result in a file called query?q=*:*)
View ArticleComment by motagirl2 on Error in a line below zero, how do I find the...
@Tomerikoo There is a lot of lines to print, it will make the script take longer. Also, the line might not be suitable for being printed, or the faulty characters being non-printable ones, etc
View ArticleAnswer by motagirl2 for How do I make a menu that declares a variable within...
If you can use jQuery, it's quite simple, just invoke a function that creates the variable (keep in mind that you will only be able to operate with that variable inside that function), or if you need...
View ArticleAnswer by motagirl2 for Jackson Mapping to a Map variable
You need to have a non-parameter constructor for Class A, in order to get Jackson deserializing working:public A (){abc="";xyz = new HashMap<String, String>();}
View ArticleGet results from Solr facets
I am pretty new to Solr, so I don't know if what I'd like to achieve is actually feasible or not.Currently, I am querying my Solr to retrieve the amount of results that match the conditions in several...
View ArticleAnswer by motagirl2 for DataTables do not send ajax request at the...
You should use "iDeferLoading" : 0 in DataTables parameters, when you initialize it:var table = $("#table").dataTable({"bProcessing": true,"bServerSide": true,"iDeferLoading": 0,"sAjaxSource":...
View ArticleStrange Google Favicon queries to API
I have recently created an API for internal use in my company. Only my colleagues and I have the URL.From a few days ago, I detected that random requests where occuring to a given method of the API...
View ArticleAnswer by motagirl2 for Amount of Wikidata entries in a given language
As suggested in the notes above, using Quarry: https://quarry.wmflabs.org/query/27976USE wikidatawiki_p; DESCRIBE wb_terms;SELECT COUNT(*) FROM wb_termsWHERE term_type = 'label' AND term_language = "ca";
View Articleutf8mb4 in MySQL Workbench and JDBC
I've been working with a UTF-8 encoded MySQL DB that now needs to be able to store 4-byte emojis, so I decided to change from utf8 encoding to utf8mb4:ALTER DATABASE bstdb CHARACTER SET = utf8mb4...
View ArticleJava lambdas: Copy nodes from list to a new list
I am quite new to Java lambdas, and I am not sure if what I want is achievable:I have a list of objects, which I'd like to filter to extract those of them that are matching a given condition, and put...
View ArticleComment by motagirl2 on Create an average line for Google Charts
As it's happening now, 6 years after :/
View ArticleAnswer by motagirl2 for How do I get the current time in Python?
If you just want the current timestamp in ms (for example, to measure execution time), you can also use the "timeit" module:import timeitstart_time =...
View Article