Jul 9

I hate to build software. I tell you why. Here’s an example:

MacBook-Air:~ admin$ sudo port install mysql5-server
---> Fetching mysql5
---> Verifying checksum(s) for mysql5
---> Extracting mysql5
---> Applying patches to mysql5
---> Configuring mysql5
---> Building mysql5
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql5/work/mysql-5.0.83" && make all " returned error 2
Command output: _new_VioSSLFd in libvio.a(viosslfactories.o)
"_EVP_BytesToKey", referenced from:
Item_func_des_encrypt::val_str(String*) in item_strfunc.o
Item_func_des_decrypt::val_str(String*) in item_strfunc.o
load_des_key_file(char const*)in des_key_file.o
"_BN_bin2bn", referenced from:
_new_VioSSLFd in libvio.a(viosslfactories.o)
_new_VioSSLFd in libvio.a(viosslfactories.o)
"_SSL_get_verify_depth", referenced from:
show_status_array(THD*, char const*, show_var_st*, enum_var_type, system_status_var*, char const*, st_table*)in sql_show.o
"_CRYPTO_set_id_callback", referenced from:
init_common_variables(char const*, int, char**, char const**)in mysqld.o
"_SSL_CTX_use_PrivateKey_file", referenced from:
_new_VioSSLFd in libvio.a(viosslfactories.o)
"_SSL_CIPHER_get_name", referenced from:
acl_getroot(THD*, user_resources*, char const*, unsigned int)in sql_acl.o
acl_getroot(THD*, user_resources*, char const*, unsigned int)in sql_acl.o
show_status_array(THD*, char const*, show_var_st*, enum_var_type, system_status_var*, char const*, st_table*)in sql_show.o
_mysql_get_ssl_cipher in client.o
"_SSL_set_quiet_shutdown", referenced from:
_vio_ssl_close in libvio.a(viossl.o)
"_X509_STORE_CTX_get_current_cert", referenced from:
_vio_verify_callback in libvio.a(viosslfactories.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [mysqld] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: mysql5
Error: Status 1 encountered during processing.
MacBook-Air:~ admin$

I just rarely works. One has to set all sorts of paths and install stuff and google for hours and know a lot of stuff and have friends who know stuff. I can’t do it. I need mysql, I just need it for my job. I don’t want to be a system administrator. I don’t like this kind of work. I know there are many guys who love it and who are proficient, but I am not. I just want to do my job. I don’t want to learn how to make or build stuff.

Talking about OS X 10.5.7, macports, mysql5-server, or mysql5 +server, which does not work at all.

*Sigh*

Update: this helped

Jul 3
RedCloth live preview
admin, 3. Juli 2009

I have a form with textile text, and I needed live preview. Unfortunately forms cannot be nested, so I had to make a second form.

Here’s my code:

edit.html.erb

<% form_for @media, :html => {:id => "redclothpreview_form"}, :url => redclothpreview_admin_lesson_medias_path do |rform| %>
  <%= rform.submit "Redclothpreview submit" %>
<% end %>
 
<script type="text/javascript">
document.observe("dom:loaded", function() {
  new TryRedClothObserver('media_description', 'redclothpreview_form', 'result').parseRedcloth();
  $('redclothpreview_form').hide();
});
</script>
 
<div class="output" />
  <div class="type">Text Preview</div>
  <div id="result"></div>
</div>

tryredcloth.js

/* original code from http://redcloth.org/ */
/* since forms cannot be nested but we need a form for the ajax seperately ... hoe hoe */
 
var TryRedClothObserver = Class.create({
  // observable: the id of some textfield to observe for changes
  // requestForm: the id of the form that gets submitted
  initialize: function(observable, requestForm, resultElement) {
    this.observable = $(observable);
    this.requestForm = $(requestForm);
    this.resultElement = $(resultElement);
    this.initObserver();
  },
  initObserver: function() {
    new Form.Element.Observer(
      this.observable,
      0.5,  // 500 milliseconds
      this.parseRedcloth.bind(this)
    );
  },
  parseRedcloth: function(event) {
    var rcObserver = this;
    var request_url = rcObserver.requestForm.action;
    //if (request_url.blank()) request_url = '/';
    new Ajax.Request(request_url, {
      parameters: { previewtext: rcObserver.observable.value },
      onSuccess: function(response) {
        rcObserver.resultElement.update(response.responseText);
      }
    });
  }
});

medias_controller.rb

  def redclothpreview
    render :text => RedCloth.new(params[:previewtext]).to_html
  end

routes.rb

      lesson.resources :medias, :collection => { :redclothpreview => [:post, :put] }, :has_many => :mediatypes

Note in routes.rb, it’s a put, but AJAX makes a post, so I had to add this. A common question if you google for “Only get, put, and delete requests are allowed.”

Sorry for the shitty formatting on the < and > and so forth … that’s why I use textile and not tinymce …

Jul 2
Problems with Paypal
admin, 2. Juli 2009

Ok. Time for a Blogpost.

1. Some years ago I signed up for paypal to try it, I added my creditcard.
2. Some years later paypal.de was introduced, so I changed to there. However, paypal.de is limited in functionality concerning their Website Payment Integration.
3. Another or so year later finally paypal.at openend, and it had all the functions I needed, since I’m from Austria, it made perfect sense to move there.

But alas, I cannot add my creditcard. I wrote like 10 emails before I finally made the decision to call the customer service. Went well though, but they could not help me at all. They asked me to send more emails.

So I’m sending more emails, my mailbox has about 20 emails to and from paypal support line. It’s full of bs. They all read like

Thank you for contacting PayPal.

It is our intention to reply to our customers within 24 hours. However,
due to an increase in email volume, our response time has been delayed
and we are diligently working to reply to each email received. Thank you
for your understanding and patience.

Our record shows that your email address a….r@googlemail.com is
not yet registered on PayPal.

Not their fault, my a…r@gmail.com sends as a…r@googlemail.com obviously (maybe because some german dickhead registered gmail first and then sued google for using gmail). But just one of the many answers I receive from paypal customer service.

No way to add my creditcard … I’m writing more email now ….

paypal_gmail

Jul 2

Hat schon mal jemand zugehört wie Erwachsene mit Kindern sprechen, und vor allem: was? Ich meine so auf der Strasse, im Vorbeigehen, im Supermarkt usw.

nur S C H E I S S E. Mich wundert es überhaupt nicht mehr, dass diese Menschen dann ihr Leben lang damit kämpfen müssen, diese Programmierung wieder los zu werden. Ein hartes Stück Arbeit.

Wenn man dann so in der Scheisse schwimmt, merkt man natürlich nicht was draussen los ist. Geht ja auch garnicht, weil man ist ständig damit beschäftigt Luft zu holen und nicht noch mehr Scheisse in den Mund zu bekommen.

Naja, ok, übertrieben gesagt. Ist natürlich alles nicht so schlimm. Vor allem bei uns nicht. Ich meine, in meiner Gesellschaftsschicht in meiner Region nicht. Kein Problem hier, alles in Butter. Was könnte mit der Welt nicht stimmen? Ist doch eh alles super … so zumindest kommt es mir vor, wenn ich die Sorglosigkeit mancher Menschen betrachte.

Hah. Krasses Posting. Rant rant.

Warum ich das eigentlich schreibe: Weil der USB-Funktstick mit dem A1 Internet, A1 Breitband Unlimited, bei meinem Macbook pro nicht funktioniert, die Software hat sich lahmgelegt, und war nichtmal mit kill -9 zu stoppen. Hatte ich noch nie erlebt sowas zuvor. Der 3 Stick funktioniert reibungslos, aber man beachte das Interfacedesign vom 3DataManager:

picture-31

Was muss ein Mensch durchgemacht haben, um zu so etwas fähig zu sein? Wieviel Leid und Schmerzen, wieviel Scheisse muss so ein Mensch (oder die vielen Menschen, die dieses Design gemacht haben) gefressen haben? Schockierend schockierend. Ich habe Mitleid.

Und überreagiere. Ist mir schon auch klar. So. Ich muss jetzt arbeiten.

Next Entries »