![]() |
| From |
I was with the CentOS people at LinuxTag and then this happened:
http://distrowatch.com/weekly.php?issue=20090629
My Rant about computing and other things in life
![]() |
| From |

On August 13-16, 2009 the 20th anniversary edition of the four-yearly Dutch outdoor technology-conference will take place near Vierhouten, NL.And if you are a technological enthusiast like me you should really go. Here is the abstract
Cloud computing is rapidly gaining the interest of service providers, programmers and the public as no one wants to miss the new hype. While there are many theories on how the cloud will evolve no real discussion on the programmability has yet taken place. In this talk a programing language named objic is described, that enables programs to run in a distributed manner in the cloud. This is done by creating an object orientated syntax and interpretation environment that can create objects on various distributed locations throughout a network and address them in a scalable, fault tolerant and transparent way. This is followed by a discussion of the problems faced and an outlook into the future.Cu @ HAR
\makeatletter @ \makeatother what seams stupid to me. There is a simple solution go into math mode$@$should do the trick.
The only difference is that Stallman now has no right to complain anymore since the SC he wanted acknowledged the status quo. I hope he will now shut up forever.
The morale of this is that people will hopefully realize what a
control freak and raging manic Stallman is. Don't trust him. As soon
as something isn't in line with his view he'll stab you in the back.
*NEVER* voluntarily put a project you work on under the GNU umbrella
since this means in Stallman's opinion that he has the right to make
decisions for the project.
When I started porting glibc 1.09 to Linux (which
eventually became glibc 2.0) Stallman threatened me and tried to force
me to contribute rather to the work on the Hurd. Work on Linux would
be counter-productive to the Free Software course.
This part has a morale, too, and it is almost the same: don't trust
this person. Read the licenses carefully and rip out parts which give
Stallman any possibility to influence your future.
I cannot see this repeating, though. Despite what Stallman believes,
maintaining a GNU project is *NOT* a privilege. It's a burden, and
the bigger the project the bigger the burden.
AUTHORBut they still claim to have the Copyright. Funny maybe the original author didn't approve with this.
Written by FIXME unknown.
So if you are a web developer please never forget the date something was created.Further I was looking for a tool which detects changes and dispays the last changed date. Google somtimes can display this but for about 80% of the pages this information is not available. Why has nobody written a tool that wgets pages and md5sums them to see it they have changed and displays this date. I know it is not always that easy, but a tool like that would be soo usefull. Maybe a firefox plugin could help.
echo $? but now I have added a new line to my .bashrc that will show me this in colour.
export PS1='\[\033[0;32m\]\u@\h \[\033[0;33m\]\w\[\033[${?/[^0]/31}m\]\$ \[\033[0;38m\]'
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.This is very simple
$ yum install yum-utils
$ /usr/sbin/yum-complete-transaction
DeTeX is a filter program that removes the LaTeX (or TeX) control sequences from the input so that the real content can be passed to a spell or diction checker.I am using this for my dissertation to count the words used
detex dissertation.tex | wc
Summary: Strips Tex and LaTex commands from a file
Name: detex
Version: 2.8
Release: 1
License: BSD
Group: Applications/Text
URL: http://www.cs.purdue.edu/homes/trinkle/detex/
Source: http://www.cs.purdue.edu/homes/trinkle/detex/%{name}-%{version}.tar
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Patch0: mallocandtroff.patch
BuildRequires: flex
BuildRequires: groff
%description
DeTeX is a filter program that removes the LaTeX (or TeX)
control sequences from the input so that the real content can be
passed to a spell or diction checker
%prep
%setup
%patch -p0
%build
%{__make} detex man-page prefix="%{_prefix}" CFLAGS="%{optflags} -DNO_MALLOC_DECL"
%install
%{__rm} -rf %{buildroot}
#%{__make} install DESTDIR="%{buildroot}"
%{__install} -Dp -m0755 detex %{buildroot}%{_bindir}/detex
%{__install} -Dp -m0644 detex.1 %{buildroot}%{_mandir}/man1/detex.1
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc %{_mandir}/man1/detex.1*
%{_bindir}/detex
%changelog
* Tue Apr 21 2009 Hoffmann Geerd-Dietger- 2.8-1
- Initial package.
--- Makefile.orig 2009-04-21 01:50:44.735919044 +0100
+++ Makefile 2009-04-21 01:51:18.237692007 +0100
@@ -49,7 +49,7 @@
# Compile time flags, just uncomment the necessary lines
# Some say GNU make does not correctly handle += -- you may have to use :=
#
-DEFS =
+DEFS += -DNO_MALLOC_DECL
#
# Add -traditional for GNU cc on ISC 386/ix system and possibly others
# (reported by pinard@iro.umontreal.ca)
@@ -116,7 +116,7 @@
mv detex.c lexout.c
man-page:
- troff -man detex.1l
+ nroff -man detex.1l > detex.1
# If you want detex available as delatex, uncomment the last two lines of
# this target
But this was quite inflexible and I didn't like all the returns. As the type of the comparison was already checked by the parser I came up with a simpler method
if typeOfCompare == "==":
return firstVal == secondVal
elif typeOfCompare == "!=":
return firstVal != secondVal
elif typeOfCompare == "<=":
return firstVal <= secondVal
....
return eval(str(firstVal) + typeOfCompare + str(secondVal))This might be a performance hit and not as clear but its easier to code and more extensible. You got to love python enabling something like this using a string as comparison operator.
:
#!/usr/bin/ruby
require "open-uri"
require 'rubygems'
require 'hpricot'
page = open("cit0708.html")
doc = Hpricot.parse(page)
(doc/"table.body_showcase").each do |link|
a = (link/"p")
puts "firefox \'http://www.google.co.uk/search?q=\"" + a.first.inner_html + "\"\'"
end<?phpand this worked fine, but it took ages for the page to load. So I did some benchmarking
header( 'Location: http://www.ribalba.de/pmwiki/' ) ;
?>
Static HTMLSo what can we conclude? pmwiki is not a fast wiki and that the redirect took just a little time.
real 0m39.731s
user 0m0.206s
sys 0m0.659s
PmWiki with php redirect
real 4m16.862s
user 0m0.260s
sys 0m0.717s
Just PmWiki
real 4m7.132s
user 0m0.259s
sys 0m0.743s
