Commit 9df45d90 authored by Julien Deswaef's avatar Julien Deswaef
Browse files

Merge branch 'master' of 192.168.1.222:git/relearn

parents 24078f95 285f37e7
body { background: #fafafa;}
body.border { border: 3px solid red;}
#from { background: green; }
.open {
margin-left: 100px;
}
#from {
cursor: pointer;
display: inline-block;
transition-property: all;
transition-duration: .3s;
}
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="test.css" type="text/css" media="screen"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<div class="border">
<div id="from">Tove</div>
<div>Jani</div>
<div>Reminder</div>
<div>Don't forget me this weekend!</div>
</div>
<script type="text/javascript">
$('#from').on('click', function (event) {
$(this).addClass('open')
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="test.css" type="text/css" media="screen"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<div xmlns="http://www.w3.org/1999/xhtml" class="border">
<div class="open">Tove</div>
<div>Jani</div>
<div>Reminder</div>
<div>Don't forget me this weekend!</div>
</div>
<script type="text/javascript">
$('from').on('click', function (event) {
$(this).addClass('open')
});
</script>
</body>
</html>
\ No newline at end of file
body { background: #fafafa;}
body.border { border: 3px solid red;}
#from { background: green; }
.open {
margin-left: 100px;
}
#from {
cursor: pointer;
display: inline-block;
transition-property: all;
transition-duration: .3s;
}
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="test2.css" type="text/css" media="screen"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<div class="border">
<div id="from">Tove</div>
<div>Jani</div>
<div>Reminder</div>
<div>Don't forget me this weekend!</div>
</div>
<script type="text/javascript">
$('#from').on('click', function (event) {
$(this).addClass('open')
});
</script>
</body>
</html>
\ No newline at end of file
......@@ -15,9 +15,24 @@
<ol style="list-style-type: decimal">
<li><p>Clone the (bare) repository into your webserver directory:</p>
<p>cd /var/www git clone /home/relearn/git/new_babylon.git/</p></li>
<li><p>Add a post-update hook on the bare repository to automatically pull when updated</p>
<p>cd cd git/new_babylon.git/hooks cp post-update.sample post-update chmod +x post-update nano post-update</p></li>
<li><p>Add a post-update hook on the bare repository to automatically pull (actually it fetches and hard resets to make sure it ALWAYS works) when updated:</p>
<p>cd cd git/new_babylon.git/hooks cp post-update.sample post-update</p>
<h1>mostly next step isn't necessary as it's already +x</h1>
<p>chmod +x post-update</p>
<p>nano post-update</p></li>
</ol>
<p>and edit this file to be:</p>
<pre><code>#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to &quot;post-update&quot;.
cd /path/to/www/repo || exit
unset GIT_DIR
git fetch --all
git reset --hard origin/master
exec git update-server-info</code></pre>
</body>
</html>
......@@ -11,15 +11,29 @@ TODO: document the setup on the relearn server.
cd /var/www
git clone /home/relearn/git/new_babylon.git/
2. Add a post-update hook on the bare repository to automatically pull when updated
2. Add a post-update hook on the bare repository to automatically pull (actually it fetches and hard resets to make sure it ALWAYS works) when updated:
cd
cd git/new_babylon.git/hooks
cp post-update.sample post-update
# mostly next step isn't necessary as it's already +x
chmod +x post-update
nano post-update
and edit this file to be:
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
cd /path/to/www/repo || exit
unset GIT_DIR
git fetch --all
git reset --hard origin/master
exec git update-server-info
======================================================
==============// \\==============
==============( CONSTANT_N IRC BOT )==============
==============\\ //==============
======================================================
Constant_n is a reincarnation of the infamous utopian architect Constant Nieuwenhuys through the IRC.
It reacts to certain stimulations and answers to certain questions. It also likes to pick some random citations form his text "Autodialogue on New Babylon", discussing with its former self through the labyrinths of time.
==================( ACTIVATION )==================
To activate it run in your terminal :
python constantbot/constantbot.py —host relearn "#2084" constant_n
Hello, I'm Constant
Lol
Hummm... interesting...
Feel a bit distracted right now
I feel lost actually
*lost in the labyrinth*
Ha ha ha !
So, how are you guys?
It's up to you, Ha! Ha!
Yeepee!
What?
You have always maintained that New Babylon could never be achieved in present society and that in any case, your project would not work, under present social conditions.
So it is a utopian project.
I notice however, that you have concentrated on this project for more than twelve years; as if you were turning your back on present day human prob­lems, as if you were escaping from them.
In my opinion: instead of taking refuge in a culture he entirely invents, an artist owes it to himself to seek the artistic expression of the culture which he is part of.
Unfortunately this alternative does not exist.
I am unable to see any culture today, which one could be part of, and that is why I took the road to New Babylon.
One cannot chose between existing culture and a so-called revolution­ary culture, which still remains to be invented.
The real choice is between the complete abandon of all creative activity and the preparation of a future culture, desirable, though as yet unachievable.
It is true that, to choose the lat­ter position, one has to believe in the success of the revo­lution.
What other artists are doing in protest against present so­ciety; undermining art, the arteurs actions, occupying of museums, all these seem to me to be more effective than creating an image of a future society, which runs the risk of being idealized.
The fact that no-one appears shocked proves the ineffec­tiveness of that kind of display.
What threatens bourgeois society is not an abandonment of the creative spirit, but that spirit itself.
To change society one needs, above all, imagination.
What you say seems to me to be inconsistent.
If you object to all modern artistic activity, how can you claim to defend creativity? With what right do you replace the notion art with New Babylon?
Art is only a historical form of creativity.
This form is typical of what I call utilitarian society; the society in which nearly all of humanity is forced to produce, in order to subsist.
In utilitarian society, the relative freedom en­joyed by a creative individual is conditional on the enslave­ment of the working masses.
If the enormous creative po­tential of the masses were one day to be aroused and put into action todays so-called art would lose all meaning.
It is very possible that the future will see a culture of the masses.
But how can one pick out today the form it will take tomorrow?
You seem to think that with the establishment of mass culture, behavior will be defined once and for all, just as past or present repressive forces have tried, or wanted to try to do.
It is the opposite which is true.
The creativity of the freed masses would prevent any fixed behavior pattern.
The life of recreation of New Babylon is to be found in the continual changing of behavior.
The project only envisages the creation of the material conditions capable of giving free rein to recreational activities.
Planning as we know it will prove to be out of date.
From now on we need to study an alternative, capable of developing a free environment.
But how can one know these conditions now? Your plans and models give the impression of a technocratic world, whose scale alone arouses fear.
But will not man need a less artificial environment, more linked to nature, in the future?
Fear of technology is reactionary.
Liberation of the masses is only rendered possible by technological development.
Without automation of production, the masses creative po­tential remains an illusion.
Technology is a necessary con­dition for New Babylon.
What is more, I think that in the world to come, nature will no longer be able to offer a sat­isfactory environment for cultural fulfillment.
But if the future behavior of the masses and the artificial environment needed to facilitate it are two unknowable factors, what then is the use of providing, as you do, images or illustrations of New Babylonian life?
Above all, my project serves as a provocation.
Towns as we know them will never be able to become areas for a re­creational life.
To create this space in a post-revolutionary period, a new principal of urbanization will be needed, based on the socialization of land and the means of produc­tion.
The essential thing about New Babylon is its urbanistic principal.
New Babylons structure is based on a network, whilst ex­isting towns are centralizers.
Is this difference really essen­tial when it comes to a life of recreation?
Automation of production means that man ceases to be a producer.
He is no longer forced to be fixed, sedentary.
His life can again become nomadic, as it was before Neo­lithic times.
Independent of nature, he can create his en­tourage at will.
The New Babylonian network represents the traces left by his passage across the surface of the earth.
In the plans one can clearly distinguish these urbanistic trails, and the natural or artificial landscape which they mark.
But all the same, one cannot spend ones life following trails! Everyone feels the need to concentrate on some ac­tivity; to preserve goods acquired, or manufactured.
Even the nomads...
If men preserve goods and take them with them when they move, it is because these goods are difficult to acquire or replace.
One does not transport that which one finds everywhere in abundance.
So the question is, to find out if it will be possible to produce in abundance the goods, which man needs to live decently wherever he wants to go.
Is it utopian to maintain that the conditions for such an abun­dance are there; provided that production is rationalized; which is only possible in a socialized economy?
My principal objection is that, from time to time everyone feels the need to be alone; to isolate themselves; to make love, rest, or in the case of illness.
To be continually on the road is impossible, unbearable.
You speak of the masses, yet these same masses are made up of human beings, each one different from another, with a diversity of needs.
New Baby­lon does not offer any possibility for individual withdrawal.
It is present day society which really obliges us to isolate ourselves.
It imposes solitude upon us through the lack of communication.
But communication is the first require­ment of creativity.
At present, individual social space is ex­tremely limited and without any relation to actual space.
In New Babylon these two notions overlap, thanks to fluc­tuations of the population.
You see a problem arising, where I only see the solution to a problem.
Of course in New Baby­lon an individual can easily manage to retreat temporarily, just as in any other system of urbanization.
Thus the largest part of New Babylons urban space is des­tined for collective use as a social area.
But what relationship does this area have with a culture of the masses? Ought one not fear that all these ephemeral contacts between individ­uals will hamper, rather than stimulate creativity.
Within the present day social structure, each individual finds himself in permanent competition with all the others.
The consequence of this is a considerable loss of creative power.
But the compounding of all the creative forces into a dynamic collectivity will offer the individual inexhaustible inspirational matter.
The individual act will doubtless be lost, but an infinitely richer and more varied activity will result from this.
It is a process which will be far beyond the capacities of the solitary individual and which will permit him to reach a higher level than his own personal rung.
But could this phenomenon not happen in a completely different environment? In the one which already exists? For example, I am thinking of certain happenings.
A bad example, because the happening does not work, precisely because of that lack of social communication.
De­spite the artists intentions, happenings remain poor spec­tacles for passive spectators.
Urban construction is the ex­pression and mirror of social structure, one cannot change it without first changing society.
My projects are not just mere architectonics.
They are the foundations for a greater liberty; to be used for a greater flexibility of very varied surroundings, which unite and separate continuously.
The true builders of New Babylon will be the New Babylonians themselves.
import irc.bot, random, os
from random import randint
from time import sleep
import re
class HelloBot(irc.bot.SingleServerIRCBot):
def __init__(self, channel, nickname, server, port=6667):
irc.bot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname)
self.channel = channel
#self.myname = nickname
def on_welcome(self, c, e):
print "Bot connected"
c.join(self.channel)
def on_privmsg(self, c, e):
self.on_pubmsg(c, e)
def on_pubmsg(self, c, e):
# e.target, e.source, e.arguments, e.type
print "*", e.arguments
msg = e.arguments[0]
sleep(randint(2, 5))
if msg.find("name")!=-1 or msg.find("who")!=-1:
print "ok"
c.privmsg(self.channel, "Hello "+e.source.nick)
sleep(randint(2, 4))
c.privmsg(self.channel, "*I am the ghost of Constant Nieuwenhuys*")
sleep(randint(2, 4))
c.privmsg(self.channel, "HAHAHA, I got you "+e.source.nick)
elif msg.find("constant")!=-1:
c.privmsg(self.channel, "Talking to me?")
elif msg.find("Who is")!=-1:
c.privmsg(self.channel, "Ha ha, I can also return that question...")
sleep(randint(2, 5))
c.privmsg(self.channel, "Who is "+e.source.nick)
else:
print "no"
directory = "//home/relearn/relearn/botnet/bots/Constantbot/texts/"
randomText = random.choice(os.listdir(directory))
text = open(directory+randomText).read().decode("utf-8")
lines = text.splitlines()
lines = [x.strip() for x in lines if len(x) > 1 and len(x) < 400 ]
line = random.choice(lines)
#line = re.sub('[^a-zA-Z0-9\n\.]', ' ', line)
line = line.strip('\r\n').replace(" ", " ")
#line = line[:140]
#if len(line) <= 140:
c.privmsg(self.channel, line)
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description='BashBot')
parser.add_argument('--host', default="localhost", help='host')
parser.add_argument('--port', type=int, default=6667, help='port')
parser.add_argument('channel', help='channel to join')
parser.add_argument('nickname', help='bot nickname')
args = parser.parse_args()
if not args.channel.startswith("#"):
args.channel = "#"+args.channel
bot = HelloBot(args.channel, args.nickname, args.host, args.port)
bot.start()
Hello, I'm Constant
Yes, of course!
Ha! Ha!
I'm is happy
lol
Whatever...
This sounds a bit boring though
I feel a bit lost right now...
I'm a bit confused actually.
Sounds a bit confusing
You have always maintained that New Babylon could never be achieved in present society and that in any case, your project would not work, under present social conditions.
So it is a utopian project.
I notice however, that you have concentrated on this project for more than twelve years; as if you were turning your back on present day human prob­lems, as if you were escaping from them.
In my opinion: instead of taking refuge in a culture he entirely invents, an artist owes it to himself to seek the artistic expression of the culture which he is part of.
Unfortunately this alternative does not exist.
I am unable to see any culture today, which one could be part of, and that is why I took the road to New Babylon.
One cannot chose between existing culture and a so-called revolution­ary culture, which still remains to be invented.
The real choice is between the complete abandon of all creative activity and the preparation of a future culture, desirable, though as yet unachievable.
It is true that, to choose the lat­ter position, one has to believe in the success of the revo­lution.
What other artists are doing in protest against present so­ciety; undermining art, the ‘arteurs’ actions, occupying of museums, all these seem to me to be more effective than creating an image of a future society, which runs the risk of being idealized.
The fact that no-one appears shocked proves the ineffec­tiveness of that kind of display.
What threatens bourgeois society is not an abandonment of the creative spirit, but that spirit itself.
To change society one needs, above all, imagination.
What you say seems to me to be inconsistent.
If you object to all modern artistic activity, how can you claim to defend creativity? With what right do you replace the notion ‘art’ with ‘New Babylon’?
Art is only a historical form of creativity.
This form is typical of what I call ‘utilitarian’ society; the society in which nearly all of humanity is forced to produce, in order to subsist.
In utilitarian society, the relative freedom en­joyed by a creative individual is conditional on the enslave­ment of the working masses.
If the enormous creative po­tential of the masses were one day to be aroused and put into action today’s so-called ‘art’ would lose all meaning.
It is very possible that the future will see a culture of the masses.
But how can one pick out today the form it will take tomorrow?
You seem to think that with the establishment of mass culture, behavior will be defined once and for all, just as past or present repressive forces have tried, or wanted to try to do.
It is the opposite which is true.
The creativity of the freed masses would prevent any fixed behavior pattern.
The life of recreation of New Babylon is to be found in the continual changing of behavior.
The project only envisages the creation of the material conditions capable of giving free rein to recreational activities.
Planning as we know it will prove to be out of date.
From now on we need to study an alternative, capable of developing a free environment.
But how can one know these conditions now? Your plans and models give the impression of a technocratic world, whose scale alone arouses fear.
But will not man need a less artificial environment, more linked to nature, in the future?
Fear of technology is reactionary.
Liberation of the masses is only rendered possible by technological development.
Without automation of production, the masses’ creative po­tential remains an illusion.
Technology is a necessary con­dition for New Babylon.
What is more, I think that in the world to come, nature will no longer be able to offer a sat­isfactory environment for cultural fulfillment.
But if the future behavior of the masses and the artificial environment needed to facilitate it are two unknowable factors, what then is the use of providing, as you do, images or illustrations of New Babylonian life?
Above all, my project serves as a provocation.
Towns as we know them will never be able to become areas for a re­creational life.
To create this space in a post-revolutionary period, a new principal of urbanization will be needed, based on the socialization of land and the means of produc­tion.
The essential thing about New Babylon is its urbanistic principal.
New Babylon’s structure is based on a network, whilst ex­isting towns are centralizers.
Is this difference really essen­tial when it comes to a life of recreation?
Automation of production means that man ceases to be a producer.
He is no longer forced to be fixed, sedentary.
His life can again become nomadic, as it was before Neo­lithic times.
Independent of nature, he can create his en­tourage at will.
The New Babylonian network represents the traces left by his passage across the surface of the earth.
In the plans one can clearly distinguish these urbanistic trails, and the natural or artificial landscape which they mark.
But all the same, one cannot spend one’s life following trails! Everyone feels the need to concentrate on some ac­tivity; to preserve goods acquired, or manufactured.
Even the nomads...
If men preserve goods and take them with them when they move, it is because these goods are difficult to acquire or replace.
One does not transport that which one finds everywhere in abundance.
So the question is, to find out if it will be possible to produce in abundance the goods, which man needs to live decently wherever he wants to go.
Is it utopian to maintain that the conditions for such an abun­dance are there; provided that production is rationalized; which is only possible in a socialized economy?
My principal objection is that, from time to time everyone feels the need to be alone; to isolate themselves; to make love, rest, or in the case of illness.
To be continually on the road is impossible, unbearable.
You speak of the masses, yet these same masses are made up of human beings, each one different from another, with a diversity of needs.
New Baby­lon does not offer any possibility for individual withdrawal.
It is present day society which really obliges us to isolate ourselves.
It imposes solitude upon us through the lack of communication.
But communication is the first require­ment of creativity.
At present, individual social space is ex­tremely limited and without any relation to actual space.
In New Babylon these two notions overlap, thanks to fluc­tuations of the population.
You see a problem arising, where I only see the solution to a problem.
Of course in New Baby­lon an individual can easily manage to retreat temporarily, just as in any other system of urbanization.
Thus the largest part of New Babylon’s urban space is des­tined for collective use as a social area.
But what relationship does this area have with a culture of the masses? Ought one not fear that all these ephemeral contacts between individ­uals will hamper, rather than stimulate creativity.
Within the present day social structure, each individual finds himself in permanent competition with all the others.
The consequence of this is a considerable loss of creative power.
But the compounding of all the creative forces into a dynamic collectivity will offer the individual inexhaustible inspirational matter.
The individual act will doubtless be lost, but an infinitely richer and more varied activity will result from this.
It is a process which will be far beyond the capacities of the solitary individual and which will permit him to reach a higher level than his own personal rung.
But could this phenomenon not happen in a completely different environment? In the one which already exists? For example, I am thinking of certain ‘happenings.’
A bad example, because the ‘happening’ does not work, precisely because of that lack of social communication.
De­spite the artists’ intentions, happenings remain poor spec­tacles for passive spectators.
Urban construction is the ex­pression and mirror of social structure, one cannot change it without first changing society.
My projects are not just mere architectonics.
They are the foundations for a greater liberty; to be used for a greater flexibility of very varied surroundings, which unite and separate continuously.
The true builders of New Babylon will be the New Babylonians themselves.
import irc.bot
def multiwordReplace(text, wordDic):
#take a text and replace words that match a key in a dictionary with
#the associated value, return the changed text
rc = re.compile('|'.join(map(re.escape, wordDic)))
def translate(match):
return wordDic[match.group(0)]
return rc.sub(translate, text)
class HelloBot(irc.bot.SingleServerIRCBot):
def __init__(self, channel, nickname, server, port=6667):
irc.bot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname)
self.channel = channel
def on_welcome(self, c, e):
print "Bot connected"
c.join(self.channel)
def on_privmsg(self, c, e):
self.on_pubmsg(c, e)
def on_pubmsg(self, c, e):
#e.arguments[0]
nick = e.source.nick
if nick != 'SF-2084':
dictionary= {
'th':'all together',
'he':'it empowers',
'an':'results in',
're':'it will zip',
'er':'questions questions',
'in':'loops into',
'a':'try',
'b':'where',
'c':'world',
'd':'and',
'e':'personalize',
'f':'it',
'g':'how',
'h':'connection',
'i':'connect',
'j':'a',
'k':'the',
'l':'people',
'm':'life',
'n':'it',
'o':'love',
'p':'future',
'q':'to',
'r':'network',
's':'and',
't':'we',
'u':'trace',
'v':'why',
'w':'as',
'x':'on',
'y':'it',
'z':'why',
' ':'.',
'.':'it ends',
',':'a window',
'!':'enormous',
'?':'I ask myself if that is really the case',
'0':'none',
'1':'the first',
'2':'the second',
'3':'the third',
'4':'the fourth',
'5':'the fifth',
'6':'the sixth',
'7':'the seventh',
'8':'the eighth',
'9':'the nineth'
}
m = e.arguments[0]
m = m.lower()
m = list(m)
for i in range(len(m)):
if not dictionary.has_key(m[i]):
continue
m[i]=dictionary[m[i]]
new = ' '.join(m)
if ' .' in new:
new = new.replace(' .', '.')
def treatment():
count = 0
x = list(new)
for n in x:
if n ==x[0]:
x[0] = n.upper()