20210528
20210419
new project
After some time that I left my previous job, now I'm retaking one of the projects that I began doing there. But now, a full rewrite is gong to be made (as I do not have that code).
The idea is a parser that takes the nmon files, and makes a html report file using highchart graphs and some jquery.
By now, I'm analizying again the nmon files, and for most of the cases, the main regex that I'm thinking is:
r'([^,]+)\s*,\s*([^,]+)\s*,\s*((?:\s*[^,]*\s*,?)+)\s*$'Basicaly is just taking the index code, the title, and the rest of the parameters. The title is given before the first ZZZZ as:
CPU001,CPU 1 aserulo,User%,Sys%,Wait%,Idle%,Steal%or
MEM,Memory MB aserulo,memtotal,hightotal,lowtotal, swaptotal,memfree,highfree,lowfree,swapfree,memshared, cached,active,bigfree,buffers,swapcached,inactiveAnd the first ZZZZ code is:
ZZZZ,T0001,10:59:55,16-MAR-2021and using the time code as part of the hash, then I got a full table with datetime index, and the rest of the values of each row (getting the title as hash keys) and the values as:
CPU001,T0064,2.4,5.0,44.0,48.7,0.0or
MEM,T0063,9959.7,-0.0,-0.0,976.0,131.6,-0.0, -0.0,111.5,346.8,2476.6,2581.7,-1.0,225.0,30.4,6148.0
20210121
filosofía en un manga
No importa que tan buena persona seas, o que tan duro trabajes, vas a terminar siendo el villano en la historia de alguien.
20191218
20180603
20171124
20171030
1 more good thing about jetbrains
I have some recurrent payments each month and year. And for the year payments, even the ones that are more than 100 USD I do not get any advance warning. But JetBrains 3 months before the end date, they sent me an email telling that they are going to charge the yearly subscription to the products via PayPal.
Really, my respects to that company. This is the first subscription that I have that sends me an email some months before the end of the term to warn me that if I do not want the automatic renewal, I should cancel it.
But really, working without PyCharm and DataGrid or for my projects using Redmine would be really difficult.
20170824
20170717
20170627
20170622
lvl 100 at wow
Atentamente, yo <Matías>
生老病死
Victory breeds hatred, for the conquered is unhappy. He who
Victory breeds hatred, for the conquered is unhappy. He who
has given up both victory and defeat, he, the contented, is happy.
20170221
bought an IDE license
I'm not a full time java developer, nor any kind of developer. But for my work and for my life, I do a lot of things in java, python and ruby. Since a long time I'm using www.jetbrains.com/, and I was really hoping for one day to one day be stable enough to buy the all packages license.
And from past month, I'm a happy owner of all the products, the ones that I used by now pychar, intellij idea (java) and was about to use redmine but I had to arrange my code to put in in a repository, so is taking some time to tidy up everything and began to code again.
20161226
20161221
20160906
20150828
what about my experience with kindle
I got a kindle about a year ago. Before that, I read some books, I enjoyed some of them (and really slept with others). Reading a normal book (tree format) is more about the light and the angle that you are reading in the bed, and from page to page, you must change to read the opposite page.
Reading in a kindle, as in a PDA, is more about getting the only angle or position to read. Once you are confortable, you can read for a long time without perturbations. Getting a kindle paperwhite, menas that I can read at night without any other light, and even in the train, an being able to view the page without problems.
I've already read the saga of Percy Jackson (in a couple of months, really nice story); and now I'm at the third book of "Is wrong to pick up girl in a Dungeon?" (light novel from Japan).
I'm stuck because I have a lot of work, but I really enjoy the saga that I'm reading now. Reading with a kindle is quite interesting and easy, I really recommend it. I had the chance to use a tablet to read, but I really think that the e-ink is quite better to an e-book hardware-book. And also with "calibre" you an change the format of anything to .mobi to be able to read it from the kindle without problems.
Reading in a kindle, as in a PDA, is more about getting the only angle or position to read. Once you are confortable, you can read for a long time without perturbations. Getting a kindle paperwhite, menas that I can read at night without any other light, and even in the train, an being able to view the page without problems.
I've already read the saga of Percy Jackson (in a couple of months, really nice story); and now I'm at the third book of "Is wrong to pick up girl in a Dungeon?" (light novel from Japan).
I'm stuck because I have a lot of work, but I really enjoy the saga that I'm reading now. Reading with a kindle is quite interesting and easy, I really recommend it. I had the chance to use a tablet to read, but I really think that the e-ink is quite better to an e-book hardware-book. And also with "calibre" you an change the format of anything to .mobi to be able to read it from the kindle without problems.
one more time with RoR
Today I'm interesting again for testing some of the RoR gems that I was reading and researching a long time ago, but combined all together.
First I added the necessary gems to the Gemfile:
As I was using openshift, I had to get rid of the pg (not used, I'm using mysql || sqlite3).
Then:
(mounting admin as /admin, the default option)
Then for devise:
For CanCan:
And for PaperTrail:
After that, only last to add the ":username" to the User model
Then the usual
And for the groups, if needed:
And the base is quite OK
Just to become a nice and easy start up app within a few seconds.
- rails_admin
- devise
- cancan
- papertrail
First I added the necessary gems to the Gemfile:
As I was using openshift, I had to get rid of the pg (not used, I'm using mysql || sqlite3).
Then:
rails g rails_admin:install
(mounting admin as /admin, the default option)
Then for devise:
rails generate devise:install rails g devise:views rails g devise User
For CanCan:
rails g cancan:ability
And for PaperTrail:
rails generate paper_trail:install --with-changes --with-associations
After that, only last to add the ":username" to the User model
rails g migration AddUsernameToUser username:string
Then the usual
bundle exec rake db:migrate
And for the groups, if needed:
rails g model Role name:string rails g migration addRoleIdToUser role:references rake db:migrate
And the base is quite OK
20150420
new job, new life
When I was working at Peugeot I was quite boring of my job. I was listening to new job offers, some were quite interesting, but they didn't call me back. Some others were just bad options for me.
But after some time I found a job that they were quite anxious to hire me. And after some weeks of interviewing and calls, I'm working at VIZRT.
By now is a quite nice place, and the job is really interesting.
But after some time I found a job that they were quite anxious to hire me. And after some weeks of interviewing and calls, I'm working at VIZRT.
By now is a quite nice place, and the job is really interesting.
20141125
kind of ToDo for my recipe site
For a long time I have a site that I made for recipes. Now, I got a module to handle in the way that I want, the uses, it's called device.
Now, in my internal ToDo, I only have to improve the import of the recipes (avoid having lines with ------~, etc). And is going to be my beta1 (after so many years).
After being in beta for some time, testing all the soft. I'm going to add the "make a buying list", that is quite simple, just an array associated to the user, that contains all the recipes selected by the user, when the user wants to see the list, is generated. All recipes are summed (quantities). for this, I have to have a list of different names for the same ingredient (like flour, flour 000 and flour 0000 are not the same, but general cooking flour is quite the same as flour 000). And also, the measurement in the different types. But it's going to be a nice improvement to my site.
Also, I have to improve the related article, so it can use tags (or title as a tag), and perhaps have a table to avoid consulting the DB too much; of related articles to related recipes. And have it shown only in the recipe view as a box like:
Or maybe floating on the bottom of the page. I have to test some ideas and view the best way to see the "related articles" in the recipe.
Now, in my internal ToDo, I only have to improve the import of the recipes (avoid having lines with ------~, etc). And is going to be my beta1 (after so many years).
After being in beta for some time, testing all the soft. I'm going to add the "make a buying list", that is quite simple, just an array associated to the user, that contains all the recipes selected by the user, when the user wants to see the list, is generated. All recipes are summed (quantities). for this, I have to have a list of different names for the same ingredient (like flour, flour 000 and flour 0000 are not the same, but general cooking flour is quite the same as flour 000). And also, the measurement in the different types. But it's going to be a nice improvement to my site.
Also, I have to improve the related article, so it can use tags (or title as a tag), and perhaps have a table to avoid consulting the DB too much; of related articles to related recipes. And have it shown only in the recipe view as a box like:
Or maybe floating on the bottom of the page. I have to test some ideas and view the best way to see the "related articles" in the recipe.
20141001
Suscribirse a:
Entradas (Atom)












