Feed aggregator

syslog mortis, komputisto esprimado

Nnss::WebLog - Jue, 2010/03/04 - 23:36

estela@neko_vet$ /etc/init.d/syslog restart
syslog: not enough space
estela@neko_vet$ > /var/run/lung
Message from syslog: kernel panick
estela@neko_vet$ /etc/init.d/syslog restart
syslog: process died unexpectedly
estela@neko_vet$ write matias@matias_home "process syslog died unexpectedly"
matias@matias_home# tar -jcvf /dev/good_memories /home/syslog
matias@matias_home# rm -fr /home/syslog
Categorías: Blogs de Miembros

ruby on rails and reorder the columns order in the view

Nnss::WebLog - Mar, 2010/03/02 - 02:53
This year was quite difficult to me, as I don't have a job since the 4th of January until now (2nd of March). And I think that is going to be like that for a some more time (as the interesting projects that I was offered to work in, the money is not enough, but that projects are really cool).

Well, this weekend I tried to keep going into my cook book, now in ruby, as the previous version in Perl was quite nice, but nobody would take that serious, as I did everything by myself and with my own XML definitions. The model that now I'm working is quite easy, a simple database:



ActiveRecord::Schema.define(:version => 20100302024114) do

create_table "categories", :force => true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "ingredients", :force => true do |t|
t.string "name"
t.integer "recipe_id"
t.integer "quantity"
t.string "measure"
t.string "part"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "notes", :force => true do |t|
t.integer "recipe_id"
t.string "keyword"
t.text "text"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "recipes", :force => true do |t|
t.string "name"
t.integer "yield"
t.integer "category_id"
t.text "preparation"
t.datetime "created_at"
t.datetime "updated_at"
end

end



This is quite simple, but yet powerful enough to what I need. For example, if i ever need something like the origin of the recipe, I just could add a note titled "origin" and the region in the text field. The only problem and that I should reconsider in some time, is that some preparations have parts, for example the base, the filling and the cover (for example a lemon pie). I manage to put that in the ingredients, as some parts uses the same ingredients, but in different measures, and perhaps somebody just want to make only the filling or the cover, but not the whole meal. But having another table for the preparation, just I don't like for now (as the preparations could vary from 1 to 5 or more, that should be in a separated table).

The main problem that I had was that the documentation was quite nasty about the reorder of the columns. Every web that I found was telling how to reorder the rows (the information in the columns) by an specified column. But I want to reorder the column, and the formal documentation just don't say anything useful to me.

So, after digging a lot of time in Google, I found http://api.rubyonrails.org/ and inside that http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002294 That was the beginning of the solution.

I printed that method, the code was:

class RecipesController < ApplicationController

active_scaffold :recipe do |config|
p config.columns()
end

end


That was quite useful, the very first line of the output was:


Completed in 301ms (View: 26, DB: 0) | 200 OK [http://10.0.0.52/recipes/new?_method=get&adapter=_list_inline_adapter]
#<ActiveScaffold::DataStructures::Columns:0x7fa930f14100 @_inheritable=[:name, :yield, :category, :ingredients, :preparation, :notes],
[...]


For the first time I had the proper names to call the others tables and my recipe table without the default order.


config.columns = [:name, :yield, :category, :ingredients, :preparation, :notes]


I know that this post was quite long and in this nasty language, but most of the people (well, programmers) just search the things in English.
Categorías: Blogs de Miembros

the path to walk: me and the social mirror

Nnss::WebLog - Vie, 2010/02/05 - 11:49
Yesterday I was talking with a friend, and she was complying about her life. That she thinks that she is pretty, that she is fare, but others do think that she is arrogant.

What I think is that, more over that you think of your self, is important to know and to acknowledge what others say about you. But tacking care who is giving their opinion to you. I mean, when they like you, most of the opinions trend to be good. And if you are hated, trends to be (exaggerated) bad.

An opinion about yourself is important, more if that opinion shows something bad about you. And (IMHO) is good to change, even if changing something that is part of your common acting/personality. As a social being, being nice to others is important, and changing what to others is annoying is difficult, as someone could take that as an insult. But the effort and the trip of the change, could make you learn something.

I don't mean to change something that is good, just the things that for most of the people could take as annoying and that yourself could take as annoying in others (selfish, arrogant, etc). The path of the Truth is not simple or easy to walk, but enforces you and let you be a better person.
Categorías: Blogs de Miembros

importan update about working in ACS

Nnss::WebLog - Lun, 2010/01/18 - 12:48
There are some things that I quite hate now, and is that they told me that the project was closed. So they cant hire me.

Well, now I saw a mail from a friend of me, that they told him that there are still TSM and Unix job offers.

I don't know why they first told me (about 3 or 4 times) that they want to hire me because they think that my skill are hight, but after that they just kick me without any explanation.

Please, be aware of ACS and if you can, don't work with them. Now they call themselves as ACS-INC, not only ACS.
Categorías: Blogs de Miembros

working in ACS (or almost)

Nnss::WebLog - Dom, 2010/01/17 - 18:19
A long time passed since my last post. The main reason is that I was quite upset with my last job (at ibm), but was a personal thing with the crew that I was in. Then ACS came to my life. Some people called me from Mexico to tell me that they was looking someone with my skills (I'm certificated at TSM Admin, I have a large Unix experience and I'm a programmer also).

The first week of January they told me that they want to contract me as soon as possible. So I would begin to work with them the 11th of January. So the previous week I quit at IBM, and I prepared my self to make the movement to Cordoba Capital (they have the office there, 800 km from where I'm now). I had in mind that, as I haven't signed anything, I wasn't working with them, but they continuously called me to make my self comfortable. But at last time on the Thursday, they called me and said that the project is suspended, they was going to call me on Friday. But hey didn't.

On Monday (2009-01-11) I sent them an email to ask for news. But noting happened.

On Tuesday (2009-01-12) I sent another mail, coping more people, asking if the job offer is still there or I lost that, or any news. On that day, at my afternoon, they called me to tell me that the offer is canceled. That I have a nice profile to work with them, but the project was canceled.

So now, Sunday (2009-.01-17), after I paid for some fees for not making the moving of my stuff (but I have the packaging at home just to pack everything and be sent to Cordoba), I'm still in Buenos Aires, and I'm think that I'm going to work for some time in Unix.

I don't know if I would take in serious the world of ACS for now on, but I think that they didn't do this on porpoise. But the fact is that I'm unemployed now, and the firm that was going to hire me, just canceled the project didn't tell me anything else (nor any monetary compensation, or any other job proposition).

I don't know if this is normal to them, but be aware.
Categorías: Blogs de Miembros

the golden compass

Nnss::WebLog - Mié, 2009/11/18 - 01:18
Hodiaŭ mi vidis "The gondel compass" (eo: la ora kompaso). Estas historio en paralela universo. Estas bona historio, ĉefe, por ke en tio filmo estas la estroj ke volas ke la vero ne estas publikigita aŭ konigita por tute la personoj. Tio memoris al mi kio faris la katolikaj estroj kun la evoluado kaj aliaj faktoj.

Nun mi konas ke tio estas bazita en novelo nomiĝas "The Dark materials" (la obskuraj materialoj). Mi trovis ke tio estas por legi en torrent dosieroj. kiam mi finigis legi "Narnia Chronicles", mi legos tion.
Categorías: Blogs de Miembros
Distribuir contenido