" /> Braindump: octobre 2003 Archives

Main | novembre 2003 »

octobre 30, 2003

Add host to Mysql (connect remotely)

Use the MySQL monitor to insert a new row into the host and user tables as follows.

1. Log in and start the MySQL monitor with this command:

/usr/local/mysql/bin/mysql

2. Run this command:

mysql> use mysql;

3. Add the user's host IP address to the host table:

mysql> INSERT INTO host VALUES
('[HOST_IP_ADDRESS]','%','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

Replace [HOST_IP_ADDRESS] with the I.P. of the location you want to be able to connect from.

4. Add the user's IP address, user ID, and password to the user table:

mysql> INSERT INTO user VALUES
('[HOST_IP_ADDRESS]','[USER]',PASSWORD('[PASSWORD]'),
'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

Replace [HOST_IP_ADDRESS] with the same I.P. from above, [PASSWORD] with your password, and [USER] with your username.

5. Restart MySQL

MySQL Restore

Dumping and Restoring MySQL Database Manually Restoring Database mysql -uu777_database -pPASSWORD \ u777_database < u777_database.sql gunzip < u777_database.sql.gz | \ mysql -uu777_database -pPASSWORD \ u777_database

octobre 27, 2003

Textile 2 - beta

Brad Choate: Thither MT-Textile 2 (beta)

Os X software to try.

Brad Choate: Happy Panther Day

Creating an Image Gallery - PHP Help

codewalkers.com - php tutorials - Creating an Image Gallery - PHP Help

octobre 26, 2003

SideBlog

"http://www.scriptygoddess.com/archives/004014.php":http://www.scriptygoddess.com/archives/004014.php Having seen some great "sideblogs" across the internet (Christine's Crumbs, Movablog's Asides, and many others) I'm inspired to add a Sideblog to my own MT-powered blog. Anders created a short "how-to" for those who are not using php and it has inspired me to create a php version here. What is a Sideblog? First, I guess it would be important to understand the "what" of the whole Sideblog phenomenon. A Sideblog could have many purposes, but is generally used as a quick link repository. For me, if I see something that was really interesting, but I didn't feel connected enough to blog it - I would post it in the Sideblog. The Sideblog would then be included in the main blog. How to create a Sideblog in MT A Sideblog is basically a new weblog that gets included in your original blog. The steps are very painless. The creation steps are universal. The include steps presume you are using php. Anders has an SSI version of these instructions as well. 1. Create a new blog in MT's main menu. I've called mine "Sideblog". 2. Create a basic index template that shows just the html that you want to include in your main blog. I strongly suggest that you implement some type of limit on the number of entries displayed. For example:
<$MTEntryDate format="%Y-%m-%d"$>:
<$MTEntryBody$>
3. Exit the Sideblog and edit the main index template for your existing main blog. We want to include the index page from the Sideblog, so we'll use a php include. For example: That's it! Now you can post to your Sideblog and (if you use the template I've shown) the 15 most recent posts will show up in your main blog. How to use the Sideblog There are a lot of variations on using the sideblog. Some people post the interesting link in the excerpt and use the extended entry to include a brief little message about it. I suggest posting the interesting link in the entry body and then any other comments I have on the link in the extended entry. That works for me in my testing. Your mileage may vary. Variations There are a lot of ways to "spice up" the sideblog. Since we just included the index template from the Sideblog into the main blog, all of our template tags are available to us. For example, Christine's Crumbs show the number of comments for each Sideblog post as a link to the Sideblog entry itself. This is a great way to allow your visitors to interact with your Sideblog. If we modify the template in #2 above as follows to mimic Christine's Crumbs: <$MTEntryBody convert_breaks="0"$> (<$MTEntryCommentCount$>)
You can additional spaces to separate the interesting link from the comment count or modify the code to include any detail you like. I like the way Christine's works, so I plan to use the comment count on my own Sideblog. That's all there is to it. Again, we just include the MT tags directly from the index template of the Sideblog. There are other ways to accomplish this, but I think this is the simplest of them all! Guest authored by Kevin Donahue- blog.kevindonahue.com

Intakto

"http://www.justin-time.com/albums/JTR84972/":http://www.justin-time.com/albums/JTR84972/ Intakto Label: Justin Time | World | October 1, 2002 CD 068944849727 JTR 8497-2 $ 18.99 For the past 7 years, Intakto has performed on stages in Quebec and Canada, as well as in the United States and Japan. Whether they use four musicians and two dancers (in a performance called Amoral Tango) or only two musicians for more intimate presentations, they create the same enthusiastic reaction from the public. Intakto was created in 1995 by Chilean guitarist-singer Alejandro Venegas and local violinist, Simon Claude. While tango and Latin American music filled Alejandro's childhood, Simon, a pop and jazz lover, studied classical music. Intakto (formerly known as Duo La Cumparsita) is the result of an encounter between a southern guitar and a northern violin. Chilean singer guitarist Alejandro Venegas shared his intimate knowledge of tango (music and songs, traditional and modern) with Simon Claude, Québec classical violinist, who brought to the group his experience as composer and jazz-rock musician. Through hard work and exchanges, they found their very own identity. From this sparkling cultural encounter and the benefits of various fertile tensions, emerged a group under its own influence: More than 150 performances in Montreal, throughout the province of Quebec and Canada, as well as in the U.S. and Japan, qualify Intakto to present a full fledge repertoire of tango mixed with Latin American traditional songs and some of their own compositions. Every time they perform, there is a full house and many encores. And more important still: the group appeals not only to tango lovers, but also to a diversified audience from the trendy teen to the nostalgic elderly. Anyone discovering Latin American music and songs for the first time is both amazed and moved by Intakto's performance filled with emotion and humour. To the point that many cafés, clubs and small theatres where Intakto has performed have asked them to come back.

CSS float on both side ?

Okay, I opened up top style and did some playing until I got something that looked fairly the same in both Mozilla and IE.

CODE
#log {
float:right;
margin-top:0px;
margin-right:10px;
width:560px;
}
#menu1 {
float:left;
margin-top:10px;
margin-left:10px;
width:155px;
}


Note that when you are using floats, the top, left, right, and bottom properties should be margin-top, margin-left, margin-right, and margin-bottom as needed... the others are for absolute positioning and don't always do the same thing on floating styles.

And because you are inside a table, I don't think you'll have any problem using both a float:right and a float:left like you might without the table. So this *should* work.

Post back if you have any more problems with this!

Kristine

DocType

http://www.alistapart.com/articles/doctype/