nous avions offert (had offered) de piendre (to paint) des salles de classe à l'école. elle est au centre de la ville. nous nous sommes réveillés (awoke) de bonne heure et nous nous sommes rétrouvés (met) au travail à sept heures quarante cinq. au debut, je ne connaissais pas personne et j'avais une peu peur (fear) mais plus tard, j'étais cool. j'ai pensé que j'y étais allé parce que je voulais aider. c'est tout. j'étais chargé (charged) de nettoyer (to clean) la salle cinq. j'étais avec d'autre gens mais j'ai oublié leurs noms. puis, nous avons fait les murs et le plafond de couleur beige (blanche + brun?). nous avons fini à temps pour déjeuner. j'ai pris vraiment à plaisir cette expérience. je le referai.
je viens d'entendre de ma mère que ma soeur est malade. elle semble shizophrène. elle entend des voix. ou comme mon ami de travail, elle est peut-être simplement psycho active. que c'est triste. un autre ami a un frère qui est schizophrène aussi mais son cas semble pire. je ne sais pas sur comment je peux l'aider.
avais-tu entendu de LAURA PAUSINI. une chanteuse d'italie qui chante en italien, espagnol, portugais (il semble), et bien sur dans ma langue favori, en français? elle est célèbre en europe. elle a besoin de chanter en anglais aussi puis elle sera célèbre partout. j'ai téléchargé ses chansons du multiply site (j'oublie le site). je les adore! voici un lien où tu pouvais trouver les paroles de ses chansons. voici un autre video d'elle. je pense que c'est en portugais .
english - have you heard of LAURA PAUSINI. a singer from italie who sings in italian, spanish, portuguese (it seems), and of course my favorite language in french. she is famous in europe. she needs to sing in english too then maybe she will be famous everywhere. i donwloaded her songs from a multiply site (i forget the site). i love them.
mes deux parents sont ici avec mon neveu peenpen et ma nièce thea. ils sont venus de manille. le week-end passé, nous sommes allés au bato toledo parce que il y avait là-bas une fête de quelque saint catholique inconnu. pendant la fête, j'avais parlé avec inday marcela qui était notre bonne quand j'étais petit. elle m'a parlé des animaux de la ferme. je lui ai acheté mon premier porc. c'était une idée que ma mère m'a donnée quand elle m'a raconté comment mes autres cousins, mes autres oncles et aunts à la campagne avaient des porcs, des veaux, et des oies. peut-être que dans un futur lointain, je posséderai plus de porcs.
dimanche, avril 30
mercredi, avril 26
plus miso soup
apparemment, il y a plusieurs manières de dire "leave/go" en français. depuis beaucoup gens de travaille partent ou étaient parti ou partiront, je pense que je dois les apprendre. par exemple. mes familles partiront de manille à cebu ce week-end. ils vont prendre les enfants thea et peepen. ça va bien. en plus, j'espère et je souhaite que ces gens mauvais au travaille me laisseront tranquille. hehehe. un autre ami m'a dit qu'il part pour les états-unis. c'est quelque chose que je ne pense pas que se passera? pourquoi? parce que il y a une guerre en irak. mais n'importe comment, voici un autre chance max ... sois contente ..
partir (to leave, to die) - mes amis sont partis en bus.
s'en aller (to go away, to die) - je m'en vais parce que je suis en retard.
sortir (to go out) - je vais sortir ce soir.
quitter + do (to leave someone/something) - il m'a quitté.
laisser (to leave behind/alone) - laissez moi tranquille.
i feel distant, alien, unwanted, unneeded. what am i doing?? it looks like that i CAN stand the verbal abuse. i choose to be here because its easier. its near my family. and i am at a safe distance. i am relax if left alone. i decide to be happy. rather i pretend to be on top of it. i have my alone time. thats critical. being in front of the computer almost 24/7. i have time to think about why my family only remembers to call when they need something. like money. i feel i have been robbed of everything because i have to put them first. then i turn around asking why shouldnt i. i owe them everything. i feel guilty and angry. now the prospects of getting back to heaven is higher. i have seen the signs. things ARE looking up. i feel the need to pretend that its okey to live back in the third world is at an end. there was a point when i have believed the pretense. because it was less painful. when the time is right .. ill show these losers .. moral lesson there are good and bad people everywhere.
meanwhile, im trying to develop several habits. no sodas. no coffee. just tea, miso soup, and water. lots of fruits. oranges and grapes. then less rice. also no smoking. i was able to do without it for months. i should be able to do better this time. what do i need to do to stay motivated? un de chose que me manque est le miso soup de japon. il représent un temps en ma vie que c'était bon et heureuse ...
benchmark site #1
The Upload Speed is : 131.2 KiloBits/Sec
The Download Speed is : 476.3 KiloBits/Sec
je dois d'etre heureuse parce que j'étais faire la soixantième leçon. elle parle des animaux de la ferme. en plus, j'ai actualisé mon autre site d'apprendre à parler philippine/cebuano et français. je viens d'ajouter les animaux de la ferme et quelque mots adultes en cebuano. sais-tu que les cebuano ont de beaucoup mots pour penis, shit and vagina?? hahaha oui oui je pensais que il était très drole aussi. mais qu'est-ce que tu pense?
partir (to leave, to die) - mes amis sont partis en bus.
s'en aller (to go away, to die) - je m'en vais parce que je suis en retard.
sortir (to go out) - je vais sortir ce soir.
quitter + do (to leave someone/something) - il m'a quitté.
laisser (to leave behind/alone) - laissez moi tranquille.
i feel distant, alien, unwanted, unneeded. what am i doing?? it looks like that i CAN stand the verbal abuse. i choose to be here because its easier. its near my family. and i am at a safe distance. i am relax if left alone. i decide to be happy. rather i pretend to be on top of it. i have my alone time. thats critical. being in front of the computer almost 24/7. i have time to think about why my family only remembers to call when they need something. like money. i feel i have been robbed of everything because i have to put them first. then i turn around asking why shouldnt i. i owe them everything. i feel guilty and angry. now the prospects of getting back to heaven is higher. i have seen the signs. things ARE looking up. i feel the need to pretend that its okey to live back in the third world is at an end. there was a point when i have believed the pretense. because it was less painful. when the time is right .. ill show these losers .. moral lesson there are good and bad people everywhere.
meanwhile, im trying to develop several habits. no sodas. no coffee. just tea, miso soup, and water. lots of fruits. oranges and grapes. then less rice. also no smoking. i was able to do without it for months. i should be able to do better this time. what do i need to do to stay motivated? un de chose que me manque est le miso soup de japon. il représent un temps en ma vie que c'était bon et heureuse ...
benchmark site #1
The Upload Speed is : 131.2 KiloBits/Sec
The Download Speed is : 476.3 KiloBits/Sec
je dois d'etre heureuse parce que j'étais faire la soixantième leçon. elle parle des animaux de la ferme. en plus, j'ai actualisé mon autre site d'apprendre à parler philippine/cebuano et français. je viens d'ajouter les animaux de la ferme et quelque mots adultes en cebuano. sais-tu que les cebuano ont de beaucoup mots pour penis, shit and vagina?? hahaha oui oui je pensais que il était très drole aussi. mais qu'est-ce que tu pense?
lundi, avril 10
séparez et conquérez
je sais que je suis un pervers. mais parfois je me surprends même. je ne peux pas montrer la photo ici j'ai fait ici parce que elle est déviante. j'ai pris deux photos. la première photo était pris de la voyage. la deuxième photo était pris de porn. et puis j'ai utilisé un logiciel (photoshopcs) à transférer son visage de la première photo à suivante photo. et elle apparaissait parfaite. peut-être même trop parfaite. j'ai envoyé la photo à quelque personnes . j'ai les demandé à voir de quoi ont-ils pensé. et je me demande quand je peux trouver quelqu'un. jamais. jamais parce que je suis absolutement un aliéné (a mental case).
this week's challenge was creating a dataset and a datagrid at runtime. i had been thinking of using this technique for earlier problems but it was only this weekend that i thought that i found the perfect reason to do so. two reasons. first, the resulting table comes from two separate sources. and second, the resulting table contains a column which is a bit more complicated to instantiate at design time. like all complicated problems, it is breakable into smaller parts. each piece being more manageable.
CREATING A DATASET AT RUNTIME
1. create the data set with the required number of columns. in my case, i had to create two columns. notice that we gave our table a name. this name will be used later to populate the table.
1. we just create a grid. add columns to it. then bind our previously created dataset into it. one thing to point out maybe is that there are many types of columns that we can use. ex: BoundColumns. i just happen to need one that is able to display more complicated "stuff". so i chose to use TemplateColumns. im not aware of any other type that is able to do this. in my case i had to display a hyperlink in the first column and a dropdownlist in the second column. last thing. the panel is the control that is declared at design time. asp:Panel. it is the container which will hold our datagrid.
this week's challenge was creating a dataset and a datagrid at runtime. i had been thinking of using this technique for earlier problems but it was only this weekend that i thought that i found the perfect reason to do so. two reasons. first, the resulting table comes from two separate sources. and second, the resulting table contains a column which is a bit more complicated to instantiate at design time. like all complicated problems, it is breakable into smaller parts. each piece being more manageable.
CREATING A DATASET AT RUNTIME
1. create the data set with the required number of columns. in my case, i had to create two columns. notice that we gave our table a name. this name will be used later to populate the table.
string tablename = "le nom du table";
string columnUn = "le nom du column un";
string columnDeux = "le nom du column deux";
DataSet dataset = new DataSet();
DataTable table = new DataTable(tablename);
table.Columns.Add(new DataColumn(columnUn,typeof(string)));
table.Columns.Add(new DataColumn(columnDeux,typeof(string)));
dataset.Tables.Add(table);2. populate our table with data. we create a row. we retrieve the data from our sources. then we add it back to the table. now we have created our dataset at runtime.foreach (...)
{
DataRow row = dataset.Tables[tablename].NewRow();
row[columnUn] = source 1;
row[columnDeux] = source 2;
dataset.Tables[tablename].Rows.Add(user);
}CREATING A DATAGRID AT RUNTIME1. we just create a grid. add columns to it. then bind our previously created dataset into it. one thing to point out maybe is that there are many types of columns that we can use. ex: BoundColumns. i just happen to need one that is able to display more complicated "stuff". so i chose to use TemplateColumns. im not aware of any other type that is able to do this. in my case i had to display a hyperlink in the first column and a dropdownlist in the second column. last thing. the panel is the control that is declared at design time. asp:Panel. it is the container which will hold our datagrid.
DataGrid grid = new DataGrid();
// add column one to grid
TemplateColumn column1 = new TemplateColumn();
column1.HeaderText = "Column 1";
column1.ItemTemplate = new ColumnOneTemplate();
grid.Columns.Add(column1);
// add column two to grid
TemplateColumn column2 = new TemplateColumn();
column2.HeaderText = "Security Access Level";
column2.ItemTemplate = new ColumnTwoTemplate();
grid.Columns.Add(column2);
grid.DataSource = dataset;
grid.DataBind();
panel.Controls.Add(grid);2. to make template columns work, i needed to declare a class that derives from Itemplate for each of the columns. i am going to show here just one since it is pretty much the same apple/banana. there are two functions. InstantiateIn() and Bind(). InstantiateIn() is where we put in the child control we are going to use. and Bind() contains the evaluation expressions we are used to seeing at design time. watch out for the column name we used in our previously created dataset. this way when we bind our dataset with our datagrid. it would know how to populate it.public class NameTemplate : ITemplate
{
public void InstantiateIn(System.Web.UI.Control container)
{
HyperLink link = new HyperLink();
link.DataBinding += new System.EventHandler(this.BindLink);
container.Controls.Add(link);
}
private void BindLink(object sender,System.EventArgs e)
{
string column = "le nom du column un";
HyperLink link = (HyperLink) sender;
DataGridItem container = (DataGridItem) link.NamingContainer;
link.Text = DataBinder.Eval(container.DataItem,column).ToString();
link.NavigateUrl = "http://www.google.fr";
}
}
dimanche, avril 2
custom image gallery
voici un autre photo que nous avons pris aux collines de chocolat. je pense qu'elles sont brunes seulement pendant l'été quand le soleil est près de la terre et il fait le plus chaud. et elles sont vertes pendant les mois de decembre à février, quand il fait plus froid.il y en avait plusieurs gars au travaille qui considéraient de partir (ou ils avaient déjà parti). je suis habituellement le premier gars à partir avant personne. c'était un peu consternant (disconcerting) à voir mes gens favoris disparaître. chacun. tu pouvais dire qu'ils sont (été) mes amis. c'etait commencé avec he-i. et puis, c'était bo-g. la semaine dernière, c'était mu-e. et plus tard ch, ja-e, jm-x, et puis j'ai entendu recemment de de-r. je sens abandonée (abandonned). je suis perdu. qu'est-ce que je fais ici, n'importe comment. qu'est-ce que j'attends? je suppose que j'attends quelqu'un ou quelque chose se passe bien que c'est clair kristal que rien se passera .. peut-être c'est temps pour moi partir cet endroit aussi? ce n'est pas facile pour moi. it is not easy for me to just pack up and leave esp when i have grown attached to the people and places here. in fact, i might even be ready to settle here. si seulement j'ai trouvé cela quelqu'un special. i have said many times. it takes me two years to adjust. je n'aime pas l'idée de recommencer encore.
the problem group i dealt with this weekend was traversing the list of departments and subdepartments (and its subdepartments and so on and on), then presenting them in an unordered list. i had a hard time deciding what class to use. i thought it was going to be a cascading datagrid/datalist/repeater. and i had to work on this for one week. finally, it became too big a monster of a problem. it became too complicated. i was forced to go back to the basics come friday, which was to spit out simple html code programmatically. j'ai utilisé ce class HTMLTextWriter. i created a user control and called the following code from the overriden method Render( ). ce code était originalement iterative depuis c'était plus facile mais ce n'était pas naturel, et puis je l'ai amelioré.
private void RenderSections(
ref HtmlTextWriter writer,
ref DataSet dataSet,
int parentID)
{
// start
writer.RenderBeginTag("ul");
foreach (DataRow section in dataSet.Tables[0].Rows)
{
int parent = Convert.ToInt32(section["ParentID"].ToString());
int ID = Convert.ToInt32(section["ID"].ToString());
string name = section["Name"].ToString();
if (parent != parentID) continue;
// display current node
string displayItem = (parentID == 0) ? "" + name + "" : name;
WriteListItem(ref writer,ID,displayItem);
// traverse this nodes children
RenderSections(ref writer,ref dataSet,ID);
}
// end
WriteListItemEnd(ref writer);
}another task i was asked to do for sfa was to make a custom popup image gallery to be called from freetextbox. there are three identifiable problems with this task. (1) the custom image gallery page. this was easy and pretty straight forward. a regular aspx. elroi is doing something along the same line so i dont have to worry about it. (2) making the custom button for freetextbox. also straightforward. (3) insert the selected image from our custom image gallery page back to the caller page and into its freetextbox control. this is the complicate part. the following are the steps and some code snippets to do this task.1. add TKC_InsertImage() to FTB-ImageGallery.js. this function will insert the specified image back to the calling freetextbox control with hardcoded id = usercontrolFTB. InsertHtml() is an ftb exposed function. the greater than and less than is not being rendered properly here so i replaced them square brackets instead.
function TKC_InsertImage(path)
{
img = '[img src="http://www.blogger.com/" /]';
window.opener.FTB_API['ftbEditor_usercontrolFTB'].InsertHtml(img);
};2. from inside customImageGallery.aspx, add a reference to the javascript functions so we'll have access to the function we just added from this page. indicate the path to FTB-ImageGallery.js in the head block of the page3. from inside customImageGallery.aspx, add a on double click attribute so that when the user double clicks on an image, the image selected is inserted back to the calling freetextboxcontrol. and also closing the popup. this is done by calling our new function TKC_InsertImage() . in my application the images were inside a datalist object. it is often that i find this same task, where i needed to dig in to the collection before getting to the actual object that i need. so i traverse thru the children objects as follows.
//
// add on double click attribute
//
// img id="datalistImages__ctl0_imgItem"
// ondblclick="TKC_InsertImage(path)"
// style="WIDTH: 100px; HEIGHT: 100px" alt=""
// src=path
// border="0"
//
foreach (DataListItem item in datalistImages.Controls)
{
foreach (Control control in item.Controls)
{
if (control.GetType() == typeof(System.Web.UI.WebControls.Image))
{
System.Web.UI.WebControls.Image image =
(System.Web.UI.WebControls.Image) control;
string command =
"TKC_InsertImage('" + image.ImageUrl + "');window.close()";
image.Attributes.Add("ondblclick",command);
}
}
}pretty neat eh!
Inscription à :
Messages (Atom)