2010-01-01から1年間の記事一覧
You might see "this" statement usually in code who js programmer writes it. For js bignner, it is difficult or can not understand about meaning. what? it is.
I do not know about memory class of c language ever. recently I have restarted learning c language and to check language format detail. Example, static class.
If display error "No module named admin.site.urls", you have to rewrite follow from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), ) from django.conf.urls.defaults import * from django…
I installed git today. I had thought what git is like blog that I paste code easily until it installed. But it is different, I have to need configuration before using it. Most difficult thing was thisGenerating SSH keys (Linux) http://help…
Perl doesn't reflect that I want to make dir and set permission. If I write like this mkdir('dir', 0777); but this way will be setting 755. How to solve this problem↓http://perl.g.hatena.ne.jp/Cress/20080611/1213184541 umask(0); mkdir('dir…
I have not understand any word that it means what. example, Multithread,Multiprocess and Multitask any others. So, They are very similar! I mistake often. I list the meaning each word, I will not make a mistake more.
var h = document.getElementsByTagName('h3'); var span_s = '<span style=\"color:#BF1717;font-size:13px;font-weight:bold;\">'; var span_e = '</span>'; for(var i= 0;i
Post.pm package Post; use strict; use warnings; sub new{ my $class = shift; my $word = shift; return bless {'word'=>$word},$class; } sub wri{ my ($self,$arg) = @_; print $arg; } sub loop{ my $self = shift; for(my $i=0;$i<10;$i++){ print "$…
If you want to increase value of upload limit, you need to rewrite configuration file of php. There are two places that you rewrite in php.ini, post_max_size and upload_max_filesize. It directs about file size what it is decide limit size …
I read it that useful little skill of CSS.http://www.webcreatorbox.com/tech/css-tips20/It becomes study for me. I will introduce some thing that I had not known ever.
I were embarrassed about clipping photo that inside area of object. Example, it is complex object what it is bags or cup and more. There are inside area where needs to clip. I had clipped it separate each other. It means the inside and the…
This is too awful code >
I installed PowerPoint Viewer2007(PPT). Had completed install, to start PPT. But it dose not start long time! it seem to have serious bug. This entry served as a reference. http://morley-letter.cocolog-nifty.com/blog/2009/08/powerpoint-vie…
This script behaves like cat command. You input something file. And it will display list of files. use strict; use warnings; my $somefile = $ARGV[0]; sub read_dir { my $sef = shift; my @list; $sef =~/\./ || die "no dott!!\n"; opendir(DIR,'…
I had run GAP after a long time. Because I have thought to want to make app by python. But it dose not run normality that command line displays error follow this.http://groups.google.com/group/google-appengine/browse_thread/thread/ea016373…
One years ago, this article was popular in hatebu. That time I could not understand questions quite. But I came to understand a little. I will write answer things about it as possible as. Under this text is a possibility that it is not tru…
Using empty list and it creates an index. If character exists, dictionary will be updated by number. st = 'aaavbbaa' lis = [] di = {} for i in st: if i not in lis: lis.append(i) di[i]=1 else: di[i]+=1 >>>di {'a': 5, 'b': 2, 'v': 1}
PIL is flexibility and useful library about image file. I tried to use it. Install is complete but can not use ImageFont module. Display error,"ImportError: The _imagingft C module is not installed"It happened, module doesn't exist. I goog…
a = [1,2,3,4] b = [] c = 1 le = len(a) for i in range(le): b.append(a[le - c]): c = c + 1
If you think about to upload image file from mobile.What do you do? useually, web application is use form which has input type "file".but mobile(Japanese mobile only?) can not use it. So to need another way.Many web apps adopts mailto and …
I have tried to use sqlite3 on python programing. Because I want to develop blog system which run apache and mod_python. And, I am looking for database what it is easy to manage and simple one. A few month ago, I wrote about sqlite3. That …