[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Dynamic Arrary Names

Muzaffar Hameed

7/13/2008 11:58:00 AM

Is there any way in ruby to create dynamic array names?

correctarrayfiles=Dir.glob("array_ast_correct_*.rb").size
correctarrayfiles.times do |num|
correctfiles=findbug.file_exist("array_ast_correct")
array+num=findbug.mark_arrary(correctfiles[num])
end

There would be then a new arrays like

arrary0
arrary1
....
....

/Muzaffar
--
Posted via http://www.ruby-....

9 Answers

Islam's World Conquest agenda is a 21st century Trojan Horse

4/4/2008 3:09:00 PM

0

On Apr 2, 3:28 am, "Lee" <me@localhost> wrote:
> "Islam's World Conquest agenda is a 21st century Trojan Horse"<truthmong....@gmail.com> wrote in message
>
> news:d954ce5a-8ebf-4ea6-8c0f-801fe9d4ac04@p25g2000hsf.googlegroups.com...
> On Apr 1, 7:27 pm, "Lee" <me@localhost> wrote:
>
> > Enough with the freaking mosques already!
>
> >http://www.timesonline.co.uk/tol/comment/faith/article3...
>
> Petroleum could be our friend in this regard.
>
> That would be a refreshing change because so far it has been our worst enemy
> in so many ways.

Yea it has, but using oil to torch 1600 mosques would give oil a good
name :)

DEATH TO ISLAM!!!


------
Islam's World Conquest Agenda is like a 21st Century Trojan Horse

ISLAM = *Inferior *Satan *Lures *Armies *Mid-east
------
*Nazi leader speaks about Islam:
"I have nothing against Islam because it educates
the men in this division for me and promises them
heaven if they fight and are killed in action. A
very practical and attractive religion for soldiers."
- Heinrich Himmler (head of Nazi SS troops)
------
*.*.*Islam's bleeding head dance, aka Ashura, Tatbeer:
http://www.youtube.com/watch?v=8...

*Muslims chant for death while protesting the Mohammad cartoon:
http://www.youtube.com/watch?v=8... (short version)
http://www.youtube.com/watch?v=B...
http://www.youtube.com/watch?v=V...

*CAIR bears:
http://www.therudenews....

*Mohammed Dress-up (really fun to dress up the false prophet):
http://www.muhammaddr...

*Cartoons about Islam:
http://www.zipperfish.com/free/y...
http://www.outsidethebeltway.com/danish_musli...
http://www.faithf.../comics/...

*Websites to watch about the rising tide of Islam:
http://www.globalincidentmap.co...
http://www...
http://www.thereligiono...
http://www.anti-ca...
http://www.frontp...
http://www.jiha...
http://www.worldne...
http://www.nefafoun...
http://www.faithf...

*Talk radio with a focus on Islam and world politics:
http://www.glennbeck.com/home/i...
http://www.homestead.com/prosites-prs/...

*Movies about Islamic murder and their agenda of global conquest:
http://www.obsessionthe...
http://www.suicideki...
http://www.whatthewestneedst...

*TV news shows focused on middle-east and world politics:
http://www.cnn.com/CNN/Programs/g...
http://www.cnn.com/CNN/Programs/lou.dobbs.tonight/...
http://www...

*Glenn Beck - Exposed: The Extremist Agenda:
http://www.youtube.com/watch?v=P...

*History of the Middle East:
http://www.youtube.com/watch?v=2...
http://www.terrorismawareness.org/what-really...

*The Violent Oppression of Women:
http://link3.streamhoster.com/?u=seanruiz&p=%2FNational_Events%2F07-1022_IFAW%2F07-1023_VOOW_videol.wmv&...

*Islam's methods of politics, propaganda and lawsuits:
http://www.youtube.com/watch?v=3...
http://www.youtube.com/watch?v=E...
------
Poem about Islam:
Don't worry Mother your son is safe in hell
got Stuffed by 72 goats but still feels quite well
Blew his bomb on that packed busy train
His intestines are scattered with some bits of his brain
Your son was a coward, listened to some shit
Spoken by an old moron doing his brainwash bit
Promised him better life in some outer space
Ordered him to kill some kuffars who refused to join the race
Now dear son body's eaten by mad hyena
And for you dear sister we bought some hard banana..
------
*Islamic terrorist attacks (this list is still growing, as Muslims
never stop their war against the rest of the world):
+Bombay (now known as Mumbai), India 3/12/93, 260 dead & 700+
wounded:
http://en.wikipedia.org/wiki/1993_Bomba...
+America 9/11/01, 3000+ dead:
http://www.september1...
+Bali, Indonesia 10/12/02, 202 dead & 100+ wounded:
http://www.globalsecurity.org/security/op...
+Madrid, Spain 3/11/04, 191 dead and 1800+ injured:
http://www.cnn.com/SPECIALS/2004/madri...
+Beslan school, Russia 9/2/04 - 9/4/04, 350+ dead & 700+ wounded:
http://www.washingtonpost.com/wp-dyn/articles/A58381-200...
+London, England 7/7/05, 56 dead & 700 wounded:
http://news.bbc.co.uk/2/shared/spl/hi/uk/05/london_blasts/html/d...
+Bali, Indonesia 10/02/05, 19 dead & 132+ injured:
http://www.cnn.com/2005/WORLD/asiapcf/10/02/bali.blasts/...
+Mumbai, India 7/11/06, 200 dead & 700 wounded:
http://www.msnbc.msn.com/id...
+Karachi, Pakistan 10/18/07, 136 dead & 250 wounded:
http://www.cbsnews.com/stories/2007/10/19/world/main338...
+++ and 1000's of other UNJUSTIFIED attacks from the cultists of the
"religion of death"
------
*Quotes from Islamic scripture, commanding murder of non-Muslims:
Qur'an, 8:12 "Remember Allah inspired the angels: I am with you. Give
firmness to the believers. I will instill terror into the hearts of
the unbelievers: you smite them above their necks and smite all their
fingertips off of them."
Qur'an, 8:37 "In order that Allah may separate the pure from the
impure, put all the impure ones [all non-Muslims] one on top of
another in a heap and cast them into hell. They will have been the
ones to have lost."
Qur'an, 8:39 "So fight them until there is no more Fitnah (disbelief
[non-Muslims]) and all submit to the religion of Allah alone (in the
whole world)."
Qur'an, 9:5 "Fight and kill the disbelievers wherever you find them,
take them captive, harass them, lie in wait and ambush them using
every stratagem of war."
Qur'an, 47:4 "When you meet the unbelievers in jihad [holy war], chop
off their heads. And when you have brought them low, bind your
prisoners rigorously. Then set them free or take ransom from them
until the war is ended."

Ron AF Greve

4/4/2008 3:36:00 PM

0

DZPath: textnews.cambrium.nl!feeder3.cambrium.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeeder.dynfx.net!border2.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-2.ams.xsnews.nl!212.23.6.69.MISMATCH!zen.net.uk!demorgan.zen.co.uk!prichard.zen.co.uk.POSTED!not-for-mail
From: "Lee" <me@localhost>
Newsgroups: alt.religion.islam,england.religion.islam,uk.religion.islam
References: <47f2c4ef$0$26074$db0fefd9@news.zen.co.uk> <d954ce5a-8ebf-4ea6-8c0f-801fe9d4ac04@p25g2000hsf.googlegroups.com> <47f335a1$0$10645$fa0fcedb@news.zen.co.uk> <e0af9dd5-2df2-432c-b7b5-53a222ead2a7@c65g2000hsa.googlegroups.com>
Subject: Re: 1600 Mosques in Britain and counting, someone finally noticed.
Date: Fri, 4 Apr 2008 16:35:51 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Lines: 31
Message-ID: <47f64ad5$0$26080$db0fefd9@news.zen.co.uk>
Organization: Zen Internet
NNTP-Posting-Host: 2aebcd28.news.zen.co.uk
X-Trace: DXC=`\F^^H;P;HFJeN4gDZk]mF0g@SS;SF6nGEYe`[E1R\@FK`lUd;]HjRF:mBbdP4T;oB@[AAEg?QWb@
X-Complaints-To: abuse@zen.co.uk
Xref: textnews.cambrium.nl alt.religion.islam:480973 england.religion.islam:1633 uk.religion.islam:137004


"Islam's World Conquest agenda is a 21st century Trojan Horse"
<truthmonger9@gmail.com> wrote in message
news:e0af9dd5-2df2-432c-b7b5-53a222ead2a7@c65g2000hsa.googlegroups.com...
On Apr 2, 3:28 am, "Lee" <me@localhost> wrote:
> "Islam's World Conquest agenda is a 21st century Trojan
> Horse"<truthmong...@gmail.com> wrote in message
>
> news:d954ce5a-8ebf-4ea6-8c0f-801fe9d4ac04@p25g2000hsf.googlegroups.com...
> On Apr 1, 7:27 pm, "Lee" <me@localhost> wrote:
>
> > Enough with the freaking mosques already!
>
> >http://www.timesonline.co.uk/tol/comment/faith/article3...
>
> Petroleum could be our friend in this regard.
>
> That would be a refreshing change because so far it has been our worst
> enemy
> in so many ways.

Yea it has, but using oil to torch 1600 mosques would give oil a good
name :)

Britain is an island surrounded by water but encumbered by a prime minister
that would rather blow a sheik off for an extra year in office than get his
finger out of his fat and useless arse and start building off shore wind
farms and other renewable energy sources so we can cut ties with these
savage, medieval people as much as possible for once and for all.


Islam's World Conquest agenda is a 21st century Trojan Horse

4/8/2008 2:45:00 AM

0

On Apr 4, 11:35 am, "Lee" <me@localhost> wrote:
> "Islam's World Conquest agenda is a 21st century Trojan Horse"<truthmong....@gmail.com> wrote in message
>
> news:e0af9dd5-2df2-432c-b7b5-53a222ead2a7@c65g2000hsa.googlegroups.com...
> On Apr 2, 3:28 am, "Lee" <me@localhost> wrote:
>
> > "Islam's World Conquest agenda is a 21st century Trojan
> > Horse"<truthmong...@gmail.com> wrote in message
>
> >news:d954ce5a-8ebf-4ea6-8c0f-801fe9d4ac04@p25g2000hsf.googlegroups.com...
> > On Apr 1, 7:27 pm, "Lee" <me@localhost> wrote:
>
> > > Enough with the freaking mosques already!
>
> > >http://www.timesonline.co.uk/tol/comment/faith/article3...
>
> > Petroleum could be our friend in this regard.
>
> > That would be a refreshing change because so far it has been our worst
> > enemy
> > in so many ways.
>
> Yea it has, but using oil to torch 1600 mosques would give oil a good
> name :)
>
> Britain is an island surrounded by water but encumbered by a prime minister
> that would rather blow a sheik off for an extra year in office than get his
> finger out of his fat and useless arse and start building off shore wind
> farms and other renewable energy sources so we can cut ties with these
> savage, medieval people as much as possible for once and for all.

You make excellent points and I agree with you about the wimpy
politicians who are Dhimi's to Muslim arrogance.

But check out this story about Air Cars being made in India:
http://www.popularmechanics.com/automotive/new_cars/4251491.html...

Muslims will surely want to control this. They could profit off it or
shut it down. Hard to say which they'd do, but it will be violent
regardless. Muslims care nothing about green movements but like to
understand world trends, and meet and decide their next gremlin
infection.

Did you read the story about Muslims pirating ships? Yea, they take
hostages and demand money. They don't need oil for money; they have
lots of ways to make money like extorsion.


fellaj.s." <"jsfk.dhimz

4/8/2008 6:54:00 AM

0

extortion is sanctified in the quran.
any mo slim can tell you that.

Ron AF Greve

4/8/2008 8:22:00 AM

0


"Islam's World Conquest agenda is a 21st century Trojan Horse"
<truthmonger9@gmail.com> wrote in message
news:791e1d29-4ed2-4790-adcc-98423b4f312c@k13g2000hse.googlegroups.com...
On Apr 4, 11:35 am, "Lee" <me@localhost> wrote:
> "Islam's World Conquest agenda is a 21st century Trojan
> Horse"<truthmong...@gmail.com> wrote in message
>
> news:e0af9dd5-2df2-432c-b7b5-53a222ead2a7@c65g2000hsa.googlegroups.com...
> On Apr 2, 3:28 am, "Lee" <me@localhost> wrote:
>
> > "Islam's World Conquest agenda is a 21st century Trojan
> > Horse"<truthmong...@gmail.com> wrote in message
>
> >news:d954ce5a-8ebf-4ea6-8c0f-801fe9d4ac04@p25g2000hsf.googlegroups.com...
> > On Apr 1, 7:27 pm, "Lee" <me@localhost> wrote:
>
> > > Enough with the freaking mosques already!
>
> > >http://www.timesonline.co.uk/tol/comment/faith/article3...
>
> > Petroleum could be our friend in this regard.
>
> > That would be a refreshing change because so far it has been our worst
> > enemy
> > in so many ways.
>
> Yea it has, but using oil to torch 1600 mosques would give oil a good
> name :)
>
> Britain is an island surrounded by water but encumbered by a prime
> minister
> that would rather blow a sheik off for an extra year in office than get
> his
> finger out of his fat and useless arse and start building off shore wind
> farms and other renewable energy sources so we can cut ties with these
> savage, medieval people as much as possible for once and for all.

You make excellent points and I agree with you about the wimpy
politicians who are Dhimi's to Muslim arrogance.

But check out this story about Air Cars being made in India:
http://www.popularmechanics.com/automotive/new_cars/4251491.html...

Muslims will surely want to control this. They could profit off it or
shut it down. Hard to say which they'd do, but it will be violent
regardless. Muslims care nothing about green movements but like to
understand world trends, and meet and decide their next gremlin
infection.

//If concept of running a car off compressed air is inovative but you still
need some way to run the compressors to fill the air tanks. It is good that
people consider alternitives though.//


Did you read the story about Muslims pirating ships? Yea, they take
hostages and demand money. They don't need oil for money; they have
lots of ways to make money like extorsion.

// Muslim pirates, you think the trade in black slaves is bad, Islamic
bastards were plundering the coast of Britain up to 500 years ago over
1,000,000 Europeans may have been taken as slaves.

Perhaps we should demand compensation the same as Black Africans rightly do
for such barbaric treatment.//

http://www.guardian.co.uk/uk/2004/mar/11/highereduca...











Islam's World Conquest agenda is a 21st century Trojan Horse

4/11/2008 12:59:00 AM

0

On Apr 8, 4:22 am, "Lee" <me@localhost> wrote:
> "Islam's World Conquest agenda is a 21st century Trojan Horse"<truthmong....@gmail.com> wrote in message
>
> news:791e1d29-4ed2-4790-adcc-98423b4f312c@k13g2000hse.googlegroups.com...
> On Apr 4, 11:35 am, "Lee" <me@localhost> wrote:
>
>
>
>
>
> > "Islam's World Conquest agenda is a 21st century Trojan
> > Horse"<truthmong...@gmail.com> wrote in message
>
> >news:e0af9dd5-2df2-432c-b7b5-53a222ead2a7@c65g2000hsa.googlegroups.com...
> > On Apr 2, 3:28 am, "Lee" <me@localhost> wrote:
>
> > > "Islam's World Conquest agenda is a 21st century Trojan
> > > Horse"<truthmong...@gmail.com> wrote in message
>
> > >news:d954ce5a-8ebf-4ea6-8c0f-801fe9d4ac04@p25g2000hsf.googlegroups.com....
> > > On Apr 1, 7:27 pm, "Lee" <me@localhost> wrote:
>
> > > > Enough with the freaking mosques already!
>
> > > >http://www.timesonline.co.uk/tol/comment/faith/article3...
>
> > > Petroleum could be our friend in this regard.
>
> > > That would be a refreshing change because so far it has been our worst
> > > enemy
> > > in so many ways.
>
> > Yea it has, but using oil to torch 1600 mosques would give oil a good
> > name :)
>
> > Britain is an island surrounded by water but encumbered by a prime
> > minister
> > that would rather blow a sheik off for an extra year in office than get
> > his
> > finger out of his fat and useless arse and start building off shore wind
> > farms and other renewable energy sources so we can cut ties with these
> > savage, medieval people as much as possible for once and for all.
>
> You make excellent points and I agree with you about the wimpy
> politicians who are Dhimi's to Muslim arrogance.
>
> But check out this story about Air Cars being made in India:http://www.popularmechanics.com/automotive/new_cars/4251491......
>
> Muslims will surely want to control this.  They could profit off it or
> shut it down.  Hard to say which they'd do, but it will be violent
> regardless.  Muslims care nothing about green movements but like to
> understand world trends, and meet and decide their next gremlin
> infection.
>
> //If concept of running a car off compressed air is inovative but you still
> need some way to run the compressors to fill the air tanks. It is good that
> people consider alternitives though.//
>
> Did you read the story about Muslims pirating ships?  Yea, they take
> hostages and demand money.  They don't need oil for money; they have
> lots of ways to make money like extorsion.
>
> // Muslim pirates, you think the trade in black slaves is bad, Islamic
> bastards were plundering the coast of Britain up to 500 years ago over
> 1,000,000 Europeans may have been taken as slaves.
>
> Perhaps we should demand compensation the same as Black Africans rightly do
> for such barbaric treatment.//
>
> http://www.guardian.co.uk/uk/2004/mar/11/highereducat... Hide quoted text -
>
> - Show quoted text -

Good idea!!

David A. Black

7/13/2008 12:32:00 PM

0

Hi --

On Sun, 13 Jul 2008, M. Muzaffar wrote:

> Is there any way in ruby to create dynamic array names?
>
> correctarrayfiles=Dir.glob("array_ast_correct_*.rb").size
> correctarrayfiles.times do |num|
> correctfiles=findbug.file_exist("array_ast_correct")
> array+num=findbug.mark_arrary(correctfiles[num])
> end
>
> There would be then a new arrays like
>
> arrary0
> arrary1

Try Googling as follows:

create dynamic variables ruby

As you'll see, it's impossible (or nearly so) and ill-advised.


David

--
Rails training from David A. Black and Ruby Power and Light:
Intro to Ruby on Rails July 21-24 Edison, NJ
Advancing With Rails August 18-21 Edison, NJ
See http://www.r... for details and updates!

Gregory Seidman

7/13/2008 1:24:00 PM

0

On Sun, Jul 13, 2008 at 08:58:22PM +0900, M. Muzaffar wrote:
> Is there any way in ruby to create dynamic array names?
>
> correctarrayfiles=Dir.glob("array_ast_correct_*.rb").size
> correctarrayfiles.times do |num|
> correctfiles=findbug.file_exist("array_ast_correct")
> array+num=findbug.mark_arrary(correctfiles[num])
> end
>
> There would be then a new arrays like
>
> arrary0
> arrary1
> ....
> ....

You are overcomplicating.

correctarrayfiles = Dir.glob("array_ast_correct_*.rb").size
corrected_files = (0...correctarrayfiles).map do |num|
correctfiles = findbug.file_exist("array_ast_correct")
findbug.mark_arrary(correctfiles[num])
end

Now corrected_files contains an array of whatever findbug.mark_arrary
returns. This is semantically identical to your original code, though I
think there are probably issues with the original code, including typos.

> /Muzaffar
--Greg


Muzaffar Hameed

7/13/2008 1:52:00 PM

0

Thanks Greg

It works for me. So nice of your.

/Muzaffar

Gregory Seidman wrote:
> On Sun, Jul 13, 2008 at 08:58:22PM +0900, M. Muzaffar wrote:
>> arrary0
>> arrary1
>> ....
>> ....
>
> You are overcomplicating.
>
> correctarrayfiles = Dir.glob("array_ast_correct_*.rb").size
> corrected_files = (0...correctarrayfiles).map do |num|
> correctfiles = findbug.file_exist("array_ast_correct")
> findbug.mark_arrary(correctfiles[num])
> end
>
> Now corrected_files contains an array of whatever findbug.mark_arrary
> returns. This is semantically identical to your original code, though I
> think there are probably issues with the original code, including typos.
>
>> /Muzaffar
> --Greg

--
Posted via http://www.ruby-....