User Profile

Collapse

Profile Sidebar

Collapse
Wiinie
Wiinie
Last Activity: Jun 28 '11, 05:54 PM
Joined: Feb 17 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Wiinie
    replied to Windows Vista 64bit recovery disc
    I think i should be missing 1 file in the bootable CD when u copy CD from one to other .. find other win or use the original one to install
    See more | Go to post

    Leave a comment:


  • music only sync is one way - computer to ipod.
    so use your music from your computer to sync..
    or if you purchase some musics from itune store u can transfer it ..
    See more | Go to post

    Leave a comment:


  • Error of "undefined method `each' for #<Pictograph:0x927dea0>"

    hi all,

    I have an error "undefined method `each' for #<Picture:0x927 dea0>"
    what is that mean?

    in my view
    Code:
    <% @user.each do |p| %>
    <%= p.image %>
    <% end %>

    in controller
    Code:
               @user=picture.all(
    		 :joins => :culture,
                      :conditions => (Album.joins(:description))).first
    ...
    See more | Go to post

  • Wiinie
    started a topic error of Unknown key(s): #<Picture:0xa4d673c>
    in Ruby

    error of Unknown key(s): #<Picture:0xa4d673c>

    i have this error .. when i try to take a value from other table. plus, in the terminal, it shows "select "users".* from users.
    picture - album one-to-many relationship

    Code:
    def self.pic
    Picture.all(joins => :album, :select => "album.image" )
    end
    Code:
    
    
    Code:
    //controller
      def show
           @user= User.all
           @me
    ...
    See more | Go to post

  • Wiinie
    started a topic taking value from DB in rails
    in Ruby

    taking value from DB in rails

    Hi, I am new in Rails, and now i have a problem to take data from one of tables in DB

    This is my code:

    Code:
    //user model
    belongs_to season
    belongs_to album
    has_many albums
    
    #### ----->
    def get_pic
    
    @pic = Picture.where(:album_id => 'Album.album_id' ,
          user.where(:culture_id => 'Culture.culture_id')).first
    
    end
    ### ----->
    ...
    See more | Go to post

  • Wiinie
    replied to Why am I getting a MySQLi Syntax error?
    you have to check your spelling and desc table again .. make sure everything is correct spelling in table's structure
    See more | Go to post

    Leave a comment:


  • Hi Frinavale,

    when i print. i cannot print the div and plus.. i cannot make 2 options of printing (print whole page - print div)

    please give me some advices
    See more | Go to post

    Leave a comment:


  • This is a css that i just update
    Code:
    @media screen 
    {
    div#print {	display:block;
    	height: 100%;
    	width: 100%;
    	font-family:verdana,sans-serif;font-size:14px;	
    	}
     h2,h1, h3,a {display: none}
    	  }
    
    @media print
      {
    	 div#print { 
    		display:block;
    		height: 100%;
    		width: 100%;
    		div#print {font-family:times,serif;font-size:10px;}
    	  }
    ...
    See more | Go to post

    Leave a comment:


  • Ya, I am trying your idea as well. beside that,, i have a print function that can print whole page.. then i dont know how to add the print that can only print div..

    Please help

    This my css file

    Code:
     /**print.css **/
    @media screen 
    {
    div.print {	display:block;
    	height: 100%;
    	width: 100%;
    	font-family:verdana,sans-serif;font-size:14px;
    	}
    	@media print
    ...
    See more | Go to post

    Leave a comment:


  • Wiinie
    started a topic Print a whole page and print div content

    Print a whole page and print div content

    Hi, all

    I am new, I am using rails to write the application... and now I want to make a function for print the specific div in the page.

    What can I do with this?

    Please give me some advice.

    I did try to use
    Code:
      <a href="#" onclick="window.print();return false;"><img src ="http://png.findicons.com/files/icons/61/dragon_soft/512/printer.png" width="20"
    ...
    See more | Go to post
    Last edited by Frinavale; Jun 7 '11, 05:07 PM. Reason: Fixed code tags. Corrected grammar and formatted the question to use proper English.

  • Error of uninitialized constant LanguageController::Languages

    Hi,

    I am a new comer on Ruby on Rails
    I have no idea what i have made with this error
    Code:
    def new
     @language = Language.new
    end
    Code:
    rails generate model title:string body:string

    can anyone help me
    thanks
    See more | Go to post

  • what is the error of "uninitialized constant Object::Person (NameError)"?

    Hi all,

    I am new bird using Ruby, I just occur the problem "uninitiali zed constant Object::Person (NameError)"
    can any experts help me?

    my code is
    Code:
    class Person
      def initialize(fname, lname)
        @fname = fname
        @lname = lname
      end
      
      def to_s
        "Person: #@fname #@lname"
      end
    end
    
    person = Person.new("Yen",
    ...
    See more | Go to post

  • Error of DBD::SQLite::db do failed: near ",": syntax error at C:\

    Hi,
    I have this error when i try to insert some values into the database via perl script.

    there is my code
    Code:
    sub addWords {
    	my $self = shift;
    	my $wordsRef = shift;
    	my @words = \$wordsRef;
    	my $language = Language->new();
    	my $classId = undef;
    	my $wordId = undef;
    	if (!@words || !$language){
    		die "addWords invalid arguments.";
    	}
    ...
    See more | Go to post

  • Error Can't use string ("Test") as an ARRAY ref while "strict refs" in use

    Hi guys,

    I have an error "Can't use string ("Test") as an ARRAY ref while "strict refs" in use ~~~"

    I am trying to add word into the database, and then it gives me this error. please help ,,

    Code:
    sub addWords {
    	my $self = shift;
    	my $wordsRef = shift;
    	my @words = @$wordsRef;
    	my $language = shift;
    	my $wordId;
    	if (!@words ||
    ...
    See more | Go to post

  • but i have to disconnect the db. so how can i do if i want to do it
    because my db locate outside of the sub..
    See more | Go to post

    Leave a comment:


  • how to fix error attempt to prepare on inactive database handle in SQLite

    Code:
    sub languages{
    	my $self = shift;
    	
    	if (!$self->{LANGUAGE})
    	{
    		my @language = ();
    		my $statement = $db1->prepare("select Id, Name, syllableData from language");
    		$statement->execute();
    
    		while(my @array = $statement->fetchrow_array()){
    			my ($id , $name, $syllableData) = @array;
    			push (@language, $object);				
    		}	
    		$statement->finish();
    ...
    See more | Go to post

  • Wiinie
    replied to How to add array to array in Perl?
    in Perl
    yes. I did not c before i asked u again .. anyway .. thank you a lot about your help //

    Cheer .. Master of Perl/~~~

    Thanks
    See more | Go to post

    Leave a comment:


  • Wiinie
    replied to How to add array to array in Perl?
    in Perl
    thank you very much my master of Perl scriot
    Can I have anther question for u?
    do you know how can i count the matching word in the string
    such as I have dic~tum~st

    how can i count how much time that i match it..
    See more | Go to post

    Leave a comment:


  • Wiinie
    replied to How to print out the count the word in Perl?
    in Perl
    can you give me an example please..
    I am a new in Perl so there are something that I may not understand all..


    Thanks
    See more | Go to post

    Leave a comment:


  • Wiinie
    started a topic How to count matching sign in string in Perl?
    in Perl

    How to count matching sign in string in Perl?

    Do you know there is any ways to count the matching time
    Dic~tum~st

    I want to count the time that "~" sign appear..

    thank so very much
    See more | Go to post
No activity results to display
Show More
Working...