Skip to content

Instantly share code, notes, and snippets.

Preparing to replace kde-window-manager 4:4.1.3-0ubuntu1~intrepid1 (using .../kde-window-manager_4%3a4.1.80-0ubuntu1~intrepid1~ppa1_amd64.deb) ...
Unpacking replacement kde-window-manager ...
dpkg: error processing /var/cache/apt/archives/kde-window-manager_4%3a4.1.80-0ubuntu1~intrepid1~ppa1_amd64.deb (--unpack):
trying to overwrite `/usr/share/kde4/apps/kconf_update/plasma-add-shortcut-to-menu.upd', which is also in package kdebase-workspace-data
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace systemsettings 4:4.1.3-0ubuntu1~intrepid1 (using .../systemsettings_4%3a4.1.80-0ubuntu1~intrepid1~ppa1_amd64.deb) ...
Unpacking replacement systemsettings ...
dpkg: error processing /var/cache/apt/archives/systemsettings_4%3a4.1.80-0ubuntu1~intrepid1~ppa1_amd64.deb (--unpack):
trying to overwrite `/usr/lib/kde4/kcm_fonts.so', which is also in package kdebase-workspace-bin
dpkg-deb: subprocess paste killed by signal (Broken pipe)
<% for resultado in @resultado %>
<b>Fecha </b><%= resultado.fecha %><br>
<b>Examen </b><%= resultado.examen.nombre %><br>
<%end%>
# -*- coding: utf-8 -*-
# This file is part of emesene.
#
# Emesene is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# emesene is distributed in the hope that it will be useful,
Traceback (most recent call last):
File "/home/fitoria/code/emesene/plugins_base/CurrentSong.py", line 172, in onMediaEnabled
self.action(True)
File "/home/fitoria/code/emesene/plugins_base/CurrentSong.py", line 191, in action
currentsong = self.player.getCurrentSong()\
AttributeError: 'NoneType' object has no attribute 'decode
##/opt/lampp/etc/extra/httpd-vhost.conf
##esto es lo que hace la magia
<VirtualHost 127.0.0.1>
Servername local.clickmanagua.com
DocumentRoot /opt/lampp/htdocs/almidon/clickmanagua.com/public_html
Options +FollowSymLinks
</VirtualHost>
def save_offer
if request.post?
@offer = Offer.new(params[:offer])
@offer.post = Post.find_by_id(session[:post_id])
@offer.save
redirect_to :controller => 'post', :action => 'show' , :id => params[:id]
end
end
def add_offer #accion para agregar oferta
<div>
<%= error_messages_for 'offer' %>
<fieldset>
<legend>Haga su oferta</legend>
<% form_for :offer, :url => {:action => :save_offer} do |form| %>
<p>
<%= label :offer, :name, "Name:" %>
<%= form.text_field :name, :size => 40%>
<p>
<b>Name:</b>
<%=h @post.name %>
</p>
<p>
<b>Email:</b>
<%=h @post.email %>
</p>
@fitoria
fitoria / gist:64857
Created February 15, 2009 21:24
qt creator
fitoria@fitoria-laptop:~/code$ git clone git://labs.trolltech.com/qt-creator #bajamos qt creator desde el repositorio git
fitoria@fitoria-laptop:~/code$ cd qt-creator
fitoria@fitoria-laptop:~/code/qt-creator$ qmake -v #comprobamos si la version de qmake es la correcta.
QMake version 2.01a
Using Qt version 4.5.0-rc1 in /usr/local/Trolltech/Qt-4.5.0-rc1/lib
fitoria@fitoria-laptop:~/code/qt-creator$ qmake qtcreator.pro
fitoria@fitoria-laptop:~/code/qt-creator$ make
fitoria@fitoria-laptop:~/code/qt-creator$ make install ## como root
@fitoria
fitoria / mis repos.
Created March 9, 2009 03:20
mi sources.lst
# deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016.1)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ni.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted multiverse