View unanswered posts | View active topics It is currently December 21st, 2014, 8:05 pm



Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
 Random stringindex problem - for "quote of the day" 
Author Message

Joined: October 5th, 2010, 3:30 am
Posts: 3
Post Random stringindex problem - for "quote of the day"
October 5th, 2010, 4:13 am
I am a noob to programming in rainmeter. I can program Turing haha, that's about it.

This is a rework of an existing RSS feeder to Desktop skin by owencmoore@gmail.com
I'm trying to basically put a random "quote of the day" onto my desktop, nicely formated.
It is reading from a text file, but I somehow named it xxxxx.htm, don't ask.

I am trying to get a random STRINGINDEX.
It works if an integer is hard coded, eg "StringIndex=54" but does not work when I put in "StringIndex=Random" or variants of this.

THE SOURCE FILE looks like this:
<title>text text text text text text text text text text text text text text
<title>more text text text text text text text text text text text text text text
<title>more text text text text text text text text text text text text text text
<title>more text text text text text text text text text text text text text text
<title>more text text text text text text text text text text text text text text
<title>more text text text text text text text text text text text text text text
Currently it displays the quote, but I have to manually change the number for the index each time :( Can someone please shed some light on this? Or maybe offer another way to accomplish the same, thank you.

Bob
;================================================

[MeasureQuoteRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#URL#
RegExp="(?siU)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)"


[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=5
HighBound=80
UpdateRandom=0

[Quote]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
;StringIndex=54
StringIndex=MeasureCalc  ;THIS IS WHERE I THINK THE PROBLEM IS
;================================================================

[QuoteText]
MeasureName=Quote
Meter=STRING
X=1
Y=1
W=800
H=300
FontColor=255,255,255,155
FontSize=30
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1
ClipString=1

Profile

Rainmeter Sage

User avatar

Joined: July 19th, 2009, 5:59 am
Posts: 661
Location: Montreal, QC, Canada
Post Re: Random stringindex problem - for "quote of the day"
October 5th, 2010, 4:31 am
Your problem is twofold. First, you cannot just use the name of a measure wherever you like and expect its value to be used there. Instead you must encase the name of the measure in [Square Brackets] and add the line DynamicVariables=1. Your second problem is that even if you do this, Dynamic Variables are not supported by plugins. Since WebParser is a plugin, you won't be able to dynamically change the String Index this way. Or at all without refreshing for that matter.

Profile

Developer

User avatar

Joined: July 31st, 2009, 2:23 pm
Posts: 267
Location: Tokyo, JPN
Post Re: Random stringindex problem - for "quote of the day"
October 5th, 2010, 7:06 am
Your approach would not succeed as Alex explained. (especially for the second problem reason)

But you can use following two solutions to solve your purpose.

1. The way to change Variable n dynamically using DynamicVariables.
(you need to retrieve all StringIndex once at least, so this way is not efficient, but this is comparatively an easy-to-understand way.)
[Variables]
n=0

[MeasureQuoteRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#URL#
RegExp="(?siU)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)"
FinishAction=!Execute [!RainmeterSetVariable n [MeasureCalc]][!RainmeterRedraw]

[Quote1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=1

[Quote2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=2

 â†“
 
 â†“ (skip)
 
 â†“
 
[Quote91]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=91

[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=1
HighBound=91
UpdateRandom=0

[QuoteText]
Meter=STRING
X=1
Y=1
W=800
H=300
FontColor=255,255,255,155
FontSize=30
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1
ClipString=1
Text=[Quote#n#]
DynamicVariables=1


2. The way to change Variable n substantially using !RainmeterWriteKeyValue.
(This way is a smart solution, but this is a little bit confusing way)
Rainmeter-1.3 is required
[Variables]
n=1

[MeasureQuoteRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#URL#
RegExp="(?siU)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)"

[Quote]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=#n#

[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=1
HighBound=91
UpdateRandom=0

[MeasureSetNumber]
Measure=Calc
Formula=Counter
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterWriteKeyValue Variables n [MeasureCalc]][!RainmeterRefresh]

[QuoteText]
Meter=STRING
MeasureName=Quote
X=1
Y=1
W=800
H=300
FontColor=255,255,255,155
FontSize=30
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1
ClipString=1

[MeasureSetNumber] would be executed only at the time of starting of skin and would not be executed at the refreshing.
This is one method for not making an endless refresh loop.

Profile WWW

Joined: October 5th, 2010, 3:30 am
Posts: 3
 Re: Random stringindex problem - for "quote of the day"
October 6th, 2010, 12:47 am
You guys rock!!! Kenz0 thanks so much for your help. I implemented the *dumbed down* version of your code and it works like a charm! (not elegant, but it works)

Here it is in case anyone out there is interested in a random quote of the day program. Provide your own quotes and changes at manual refresh of rainmeter.
The source is a simple .txt (or in my case .htm) file that is formatted as follows:
<title>what ever text you want to put here
<title>what ever text you want to put here
<title>what ever text you want to put here
.
.
.
to 100 lines (as it's setup in the code)
[Rainmeter]
Update=1000
Author=Bob with much thanks to kenz0 from Tokyo!


[Variables]
;URL=http://dl.dropbox.com/u/xxxxxxx/xxxxx.htm
URL=http://www.somesite.com/somefile.htm          ;see format as noted before
Font=Trebuchet MS
n=0

[MeasureQuoteRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#URL#
RegExp="(?siU)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)"
FinishAction=!Execute [!RainmeterSetVariable n [MeasureCalc]][!RainmeterRedraw]

[Quote1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=1

[Quote2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=2

[Quote3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=3

[Quote4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=4

[Quote5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=5

[Quote6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=6

[Quote7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=7

[Quote8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=8

[Quote9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=9

[Quote10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=10

[Quote11]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=11

[Quote12]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=12

[Quote13]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=13

[Quote14]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=14

[Quote15]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=15

[Quote16]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=16

[Quote17]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=17

[Quote18]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=18

[Quote19]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=19

[Quote20]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=20

[Quote21]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=21

[Quote22]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=22

[Quote23]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=23

[Quote24]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=24

[Quote25]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=25

[Quote26]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=26

[Quote27]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=27

[Quote28]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=28

[Quote29]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=29

[Quote30]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=30

[Quote31]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=31

[Quote32]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=32

[Quote33]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=33

[Quote34]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=34

[Quote35]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=35

[Quote36]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=36

[Quote37]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=37

[Quote38]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=38

[Quote39]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=39

[Quote40]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=40

[Quote41]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=41

[Quote42]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=42

[Quote43]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=43

[Quote44]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=44

[Quote45]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=45

[Quote46]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=46

[Quote47]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=47

[Quote48]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=48

[Quote49]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=49

[Quote50]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=50

[Quote51]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=51

[Quote52]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=52

[Quote53]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=53

[Quote54]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=54

[Quote55]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=55

[Quote56]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=56

[Quote57]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=57

[Quote58]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=58

[Quote59]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=59

[Quote60]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=60

[Quote61]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=61

[Quote62]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=62

[Quote63]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=63

[Quote64]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=64

[Quote65]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=65

[Quote66]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=66

[Quote67]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=67

[Quote68]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=68

[Quote69]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=69

[Quote70]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=70

[Quote71]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=71

[Quote72]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=72

[Quote73]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=73

[Quote74]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=74

[Quote75]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=75

[Quote76]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=76

[Quote77]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=77

[Quote78]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=78

[Quote79]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=79

[Quote80]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=80

[Quote81]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=81

[Quote82]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=82

[Quote83]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=83

[Quote84]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=84

[Quote85]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=85

[Quote86]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=86

[Quote87]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=87

[Quote88]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=88

[Quote89]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=89

[Quote90]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=90

[Quote91]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=91

[Quote92]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=92

[Quote93]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=93

[Quote94]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=94

[Quote95]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=95

[Quote96]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=96

[Quote97]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=97

[Quote98]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=98

[Quote99]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=99

[Quote100]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=100

[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=1
HighBound=101
UpdateRandom=0

[QuoteText]
Meter=STRING
X=1
Y=1
W=800
H=300
FontColor=255,255,255,155
FontSize=30
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1
ClipString=1
Text=[Quote#n#]
DynamicVariables=1

Profile

Joined: October 5th, 2010, 3:30 am
Posts: 3
 Re: Random stringindex problem - for "quote of the day"
October 8th, 2010, 7:57 pm
For anyone searching for a "quote of the day" type app for your rainmeter desktop, please see attached zip file. This is courtesy of Kenz0.

It works like a charm! Thanks Kenz0.


Attachments:
File comment: "Quote of the day"
testsample.zip [1.4 KiB]
Downloaded 292 times
Profile

Joined: October 17th, 2010, 10:43 am
Posts: 4
Post Re: Random stringindex problem - for "quote of the day"
October 22nd, 2010, 1:24 pm
i am using this code for a new skin and it works really fine...

now i am trying to put in a second randomizer for another measure using another textfile... i changed url, measure/metere names but both measures are always getting the same number. is there a way that there a 2 random numbers for 2 measures at the same time?

Profile

Joined: April 30th, 2012, 3:58 am
Posts: 3
Post Re: Random stringindex problem - for "quote of the day"
April 30th, 2012, 4:04 am
Hello,

Thanks Bob H and Kenzo - it does work like a charm! I was wondering how to add more than a 100 quotes? I've changed the upper bound below

[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=1
HighBound=143
UpdateRandom=1

Added the extra

[Quote99]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=99

... to ...

[Quote143]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=143

and I run into a problem when I try to add more <title>(.*) into the reg expression. If I do not change this and change the above, it seems to not recognize the above 99+ quotes I have entered into my testsample.txt page.

[Variables]
URL="file://#CURRENTPATH#testsample.txt"
Font=Gabriola
n=0

[MeasureQuoteRSS]
Measure=Plugin
UpdateRate=7
Plugin=Plugins\WebParser.dll
Url=#URL#
RegExp="(?siU)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)"
FinishAction=!Execute [!RainmeterSetVariable n [MeasureCalc]][!RainmeterRedraw]

[Quote1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=1

[Quote2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=2

[Quote3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=3

[Quote4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=4

[Quote5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=5

[Quote6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=6

[Quote7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=7

[Quote8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=8

[Quote9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=9

[Quote10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=10

[Quote11]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=11

[Quote12]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=12

[Quote13]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=13

[Quote14]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=14

[Quote15]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=15

[Quote16]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=16

[Quote17]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=17

[Quote18]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=18

[Quote19]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=19

[Quote20]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=20

[Quote21]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=21

[Quote22]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=22

[Quote23]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=23

[Quote24]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=24

[Quote25]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=25

[Quote26]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=26

[Quote27]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=27

[Quote28]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=28

[Quote29]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=29

[Quote30]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=30

[Quote31]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=31

[Quote32]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=32

[Quote33]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=33

[Quote34]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=34

[Quote35]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=35

[Quote36]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=36

[Quote37]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=37

[Quote38]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=38

[Quote39]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=39

[Quote40]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=40

[Quote41]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=41

[Quote42]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=42

[Quote43]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=43

[Quote44]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=44

[Quote45]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=45

[Quote46]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=46

[Quote47]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=47

[Quote48]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=48

[Quote49]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=49

[Quote50]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=50

[Quote51]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=51

[Quote52]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=52

[Quote53]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=53

[Quote54]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=54

[Quote55]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=55

[Quote56]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=56

[Quote57]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=57

[Quote58]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=58

[Quote59]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=59

[Quote60]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=60

[Quote61]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=61

[Quote62]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=62

[Quote63]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=63

[Quote64]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=64

[Quote65]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=65

[Quote66]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=66

[Quote67]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=67

[Quote68]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=68

[Quote69]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=69

[Quote70]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=70

[Quote71]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=71

[Quote72]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=72

[Quote73]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=73

[Quote74]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=74

[Quote75]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=75

[Quote76]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=76

[Quote77]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=77

[Quote78]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=78

[Quote79]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=79

[Quote80]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=80

[Quote81]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=81

[Quote82]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=82

[Quote83]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=83

[Quote84]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=84

[Quote85]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=85

[Quote86]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=86

[Quote87]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=87

[Quote88]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=88

[Quote89]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=89

[Quote90]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=90

[Quote91]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=91

[Quote92]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=92

[Quote93]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=93

[Quote94]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=94

[Quote95]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=95

[Quote96]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=96

[Quote97]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=97

[Quote98]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=98

[Quote99]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=99

[Quote100]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=100

[Quote101]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=101

[Quote102]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=102

[Quote103]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=103

[Quote104]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=104

[Quote94]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=105

[Quote95]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=106

[Quote96]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=107

[Quote97]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=108

[Quote98]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=109

[Quote88]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=110

[Quote89]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=111

[Quote90]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=112

[Quote91]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=113

[Quote92]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=114

[Quote93]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=115

[Quote94]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=116

[Quote95]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=117

[Quote96]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=118

[Quote97]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=119

[Quote98]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=120

[Quote85]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=121

[Quote86]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=122

[Quote87]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=123

[Quote88]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=124

[Quote89]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=125

[Quote90]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=126

[Quote91]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=127

[Quote92]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=128

[Quote93]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=129

[Quote94]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=130

[Quote95]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=131

[Quote96]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=132

[Quote97]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=133

[Quote98]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=134

[Quote99]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=135

[Quote100]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=136

[Quote101]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=137

[Quote102]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=138

[Quote103]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=139

[Quote104]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=140

[Quote94]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=141

[Quote95]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=142

[Quote96]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureQuoteRSS]
StringIndex=143

[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=1
HighBound=143
UpdateRandom=1

[QuoteText]
Meter=STRING
X=1
Y=1
W=800
H=600
FontColor=255,255,255,255
FontSize=15
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
StringEffect=Shadow
FontEffectColor=0,0,0,140
Antialias=1
ClipString=1
Text=[Quote#n#]
DynamicVariables=1


Here is my testsample.txt page (Quotes)
<title>Do not follow where the path may lead. Go, instead, where there is no path and leave a trail. 
-Ralph Waldo Emerson
<title>Success: To laugh often and much, to win the respect of intelligent people and the affection of children, to earn the appreciation of honest critics and endure the betrayal of false friends, to appreciate beauty, to find the best in others, to leave the world a bit better, whether by a healthy child, a garden patch, or a redeemed social condition; to know even one life has breathed easier because you have lived. This is to have succeeded!
-Mr. Ralph Waldo Emerson
<title>Today I do what others will not, so that tomorrow I can do what others can't.
-J. Rice
<title>Effort is one of the things that gives meaning to life. Effort means you care about something, that something is important to you and you are willing to work for it. It would be an impoverished existence if you were not willing to value things and commit yourself to working toward them.
-C. Dweck
<title>You have to start where you are, not where you would like to be.
-P. Moffit
<title>
<title>It takes 20 years to build a reputation and five minutes to ruin it. If you think about that, you'll do things differently.
-W. Buffet
<title>Life, if well lived, is long enough. 
-Seneca
<title>It is not the length of life, but depth of life. 
-Ralph Waldo Emerson
<title>Only those who will risk going too far can possibly find out how far one can go.
-T.S Elliot
<title>‘I’m bored’ is a useless thing to say. I mean, you live in a great, big, vast world that you’ve seen none percent of. Even the inside of your own mind is endless. The fact that you’re alive is amazing, so you don’t get to say ‘I’m bored.’ 
-Louis CK
<title>I am a proud don't know-it-all.
-Unknown
<title>You are as young as your faith, as old as your doubt; as young as your self-confidence, as old as your fear; as young as your hope, as old as your despair.
-D. MacArthur
<title>To persevere, trusting in what hopes he has, is courage in a man. The coward despairs.
-Euripides
<title>It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood, who strives valiantly; who errs and comes short again and again; because there is not effort without error and shortcomings; but who does actually strive to do the deed; who knows the great enthusiasm, the great devotion, who spends himself in a worthy cause, who at the best knows in the end the triumph of high achievement and who at the worst, if he fails, at least he fails while daring greatly. So that his place shall never be with those cold and timid souls who know neither victory nor defeat.
-T. Roosevelt
<title>All courses of action are risky, so prudence is not in avoiding danger (it's impossible), but calculating risk and acting decisively. Make mistakes of ambition and not mistakes of sloth. Develop the strength to do bold things, not the strength to suffer. 
-Niccolò Machiavelli, The Prince
<title>Love your enemies. It makes them so damned mad.
-P. D. East
<title>To live is the rarest thing in the world. Most people exist, that is all. 
-O. Wilde
<title>It is what you read when you don't have to that determines what you will be when you can't help it. 
-O. Wilde
<title>If one studies too zealously, one easily loses his pants
-A. Einstein
<title>Reality is merely an illusion, although a very persistent one
-A. Einstein
<title>We can't solve problems by using the same kind of thinking we used when we created them.
-A. Einstein
<title>Intellectual growth should commence at birth and cease only at death
-A. Einstein
<title>Intellectual growth should commence at birth and cease only at death
-A. Einstein
<title>Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.
-A. Einstein
<title>Too much stock is laid into arbitrary dates. Make every day count. Do things for a reason, not for a season.
-Redditer
<title>Education is what remains after one has forgotten everything he learned in school.
-A. Einstein
<title>I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor.
-H. D. Thoreau
<title>I want to know God's thoughts; the rest are details.
-A. Einstein
<title>Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
-Albert Einstein
<title>He also said of his name, I simply like the way the word looked (Fiasco). You know how rappers always have names like MC Terrorist--like they're 'terrorizing' other rappers? I knew fiasco meant a great disaster or something like that, but I didn't realize that the person named Fiasco would be the disaster, and that you should be calling other MCs fiascos--not yourself. I was moving real fast at the time, and it kind of humbled me in a sense. It taught me like, 'Yo, stop rushing, or you're going to have some fiascos.' So I just kept it. It's like a scar, I guess, a reminder to not over think or overrun anything ever again.
-L. Fiasco
<title>How can we remember our ignorance, which our growth requires, when we are using our knowledge all the time?
-H. D. Thoreau
<title>How can we remember our ignorance, which our growth requires, when we are using our knowledge all the time?
-H. D. Thoreau
<title>Some day, in the years to come, you will be wrestling with the great temptation, or trembling under the great sorrow of your life. But the real struggle is here, now. . . Now it is being decided whether, in the day of your supreme sorrow or temptation, you shall miserably fail or gloriously conquer. Character cannot be made except by a steady, long continued process.
-P. Brooks
<title>Treat a man as he is and he will remain as he is. Treat a man as he can and should be and he will become as he can and should be.
-Goethe
<title>We must not cease from exploration. And the end of all our exploring will be to arrive where we began and to know the place for the first time.
-T. S. Elliot
<title>If you want something done, ask a busy person to do it.
-L. Ball
<title>No one can persuade another to change. Each of us guards a gate of change that can only be opened from the inside. We cannot open the gate of another, either by argument or by emotional appeal.
-M. Ferguson
<title>Imagination is more important than knowledge. For knowledge is limited to all we now know and understand, while imagination embraces the entire world, and all there ever will be to know and understand.
-A. Einstein
<title>When a friend is in trouble, don’t annoy him by asking if there is anything you can do. Think up something appropriate and do it.
-E. Howe
<title>Freedom of thought is the foundation of our national character, and at its best the Internet represents the full flowering of that freedom. The Internet itself is the result of an open system that has encouraged technological innovation and creative energy we could never have dreamed of.
-N. Minow
<title>Freedom of thought is the foundation of our national character, and at its best the Internet represents the full flowering of that freedom. The Internet itself is the result of an open system that has encouraged technological innovation and creative energy we could never have dreamed of.
-N. Minow
<title>A mind that is stretched by a new experience can never go back to its old dimensions.
-O. W. Holmes
<title>There's a difference between knowing the path and walking the path.
-Morpheus
<title>It is better to be hated for who you are than to be loved for who you are not.
-K. Cobain
<title>To further the appreciation of culture among all the people, to increase respect for the creative individual, to widen participation by all the processes and fulfillments of art - this is one of the fascinating challenges of these days.
-J. F. Kennedy
<title>Remembering that I’ll be dead soon is the most important tool I’ve ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.
-S. Jobs
<title>Every saint has a past, and every sinner has a future. 
-O. Wilde
<title>Be more concerned with your character than your reputation, because your character is what you really are, while your reputation is merely what others think you are.
-J. Wooden
<title>Be more concerned with your character than your reputation, because your character is what you really are, while your reputation is merely what others think you are.
-J. Wooden
<title>Be more concerned with your character than your reputation, because your character is what you really are, while your reputation is merely what others think you are.
-J. Wooden
<title>History will be kind to me, for I intend to write it. 
-W. Churchill
<title>Thousands of candles can be lit from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared.
-Buddha
<title>Find a job you love and you'll never work a day in your life.
-Confucius
<title>The Agile Manifesto:
We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value:
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
That is, while there is value in the items on the right, we value the items on the left more.
-Customer satisfaction by rapid delivery of useful software
-Welcome changing requirements, even late in development
-Working software is delivered frequently (weeks rather than months)
-Working software is the principal measure of progress
-Sustainable development, able to maintain a constant pace
-Close, daily co-operation between business people and developers
-Face-to-face conversation is the best form of communication (co-location)
-Projects are built around motivated individuals, who should be trusted
-Continuous attention to technical excellence and good design
-Simplicity
-Self-organizing teams
-Regular adaptation to changing circumstances
<title>You need not see what someone is doing
to know if it is his vocation,
you have only to watch his eyes:
a cook mixing a sauce, a surgeon
making a primary incision,
a clerk completing a bill of ladling,
wear the same rapt expression, forgetting
themselves in a function,
How beautiful it is,
that eye-on-the-object look.
-W. H. Auden
<title>Not just any talk is conversation; not any talk raises consciousness. Good conversation has an edge: it opens your eyes to something, quickens your ears. And good conversation reverberates: it keeps on talking in your mind later in the day; the next day, you find yourself still conversing with what was said. That reverberation afterward is the very raising of consciousness; your mind’s been moved. You are at another level with your reflections.
-J. Hillman
<title>Seek first to the understand, then to be understood.
-S. Covey
<title>If your only tool is a hammer, every problem will look like a nail.
-A. Maslow
<title>The ability to perceive or think differently is more important than the knowledge gained.
-D. Bohm
<title>It does feel like something to be wrong. It feels like being right.
-K. Schulz
<title>God himself does not propose to judge man until the end of his days. Why should you or I?
-Dr. Johnson
<title>The end had ceased to charm, and how could there ever again be any interest in the means?
-J. S. Mills
<title>As we press forward on every front to realize a flexible world order, the role of the university becomes even more important, both as a reservoir of ideas and as a repository of the long view of the shore dimly seen.
Knowledge is the great sun of the firmament, said Senator Daniel Webster. Life and power are scattered along its beams.
In its light, we must think and act not only for the moment but for our time. I am reminded of the story of the great French Marshal Lyautey, who once asked his gardener to plant a tree. The gardener objected that the tree was slow-growing and would not reach maturity for a hundred years. The Marshal replied, In that case, there is no time to lose, plant it this afternoon.
Today a world of knowledge—a world of cooperation—a just and lasting peace—may be years away. But we have no time to lose. Let us plant our trees this afternoon.
-J. F. Kennedy
<title>Promise yourself to be so strong that nothing can disturb your peace of mind.
Look at the sunny side of everything & make your optimism come true. 
Think only of the best, work only for the best & expect only the best. 
Forget the mistakes of the past & press on to the greater achievements of the future.
Give so much time to the improvement of yourself that you have no time to criticise others. 
Live in the faith that the world is on your side as long as you are true to the best that is in you.
-Christian D.Larson
<title>Coming up here today, I have no hidden agenda. I am fighting for my future. Losing my future is not like losing an election or a few points of the stock market. I am here to speak for all generations to come. I am here to speak on behalf of the starving children around the world whose cries go unheard. I am here to speak for the countless animals dying across this planet because they have no where else to go... I challenge you, please, make your actions reflect your words.
-S. C. Suzuki
<title>But as a young adult, I'm learning that as we have to make choices--education, career, lifestyle--life gets more and more complicated. We are beginning to feel pressure to produce and be successful. We are learning a shortsighted way of looking at the future, focusing on four-year government terms and quarterly business reports. We are taught that economic growth is progress, but we aren't taught how to pursue a happy, healthy or sustainable way of living. And we are learning that what we wanted for our future when we were 12 was idealistic and naive...
I know change is possible, because I am changing, still figuring out what I think. I am still deciding how to live my life. The challenges are great, but if we accept individual responsibility and make sustainable choices, we will rise to the challenges, and we will become part of the positive tide of change.
-S. C. Suzuki
<title>I think what we’re going to see, though, is that the profit motive is going to be increasingly paired with this purpose motive and that the two are not inherently at odds; that they can work together and a profit motive without a purpose motive is actually less effective.
-D. Pink
<title>Purpose is something that is discovered and then acted upon over the long term. To some extent autonomy is the same way, that is, it’s not a matter of having the freedom to come and go to your office whenever you want this Wednesday, it’s really about, are you able to direct your own life? I think that distinction is hugely important.
-D. Pink
<title>Be the change you want to see in the world.
-Gandhi
<title>There will never be another [Insert Year].
-T. Hsieh
<title>Changes -
It's time for us as a people to start makin' some changes.
Let's change the way we eat, let's change the way we live
and let's change the way we treat each other.
You see the old way wasn't working so it's on us to do
what we gotta do, to survive.
-2Pac
<title>Changes -
It's time for us as a people to start makin' some changes.
Let's change the way we eat, let's change the way we live
and let's change the way we treat each other.
You see the old way wasn't working so it's on us to do
what we gotta do, to survive.
-2Pac
<title>I may not agree with a word you say, but I will defend to my death your right to say it.
-Voltaire
<title>It is the mark of an educated mind to be able to entertain a thought without accepting it.
-Aristotle
<title>Every man I meet is superior in some way. In that, I learn of him.
-Emerson
<title>The chains of habit are too light to be felt until they are too heavy to be broken.
-W. Buffet
<title>I have never in my life learned anything from any man who agreed with me.
-D. Malone
<title>A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.
-W. Churchill
<title>What lies behind us and what lies before us are tiny matters compared to what lies within us. 
-R. W. Emerson
<title>A man may die, nations may rise and fall, but an idea lives on
-J. F. Kennedy
<title>After investing in better research and education, we didn’t just surpass the Soviets; we unleashed a wave of innovation that created new industries and millions of new jobs. This is our generation’s Sputnik moment.
-B. Obama
<title>But while it’s easy to scoff at Page’s quirks—his odd obsessions, his unrealistic expectations, his impatience for a future dangling out of immediate reach—sometimes his seemingly crazy ideas wind up creating breakthrough innovations, and skeptical Googlers wind up admitting Page was right, after all.
-S. Levy
<title>The master of the art of living makes little distinction between his work and his play, his labor and his leisure, his mind and his body, his education and his recreation, his love and his religion. He simply pursues his vision of excellence in whatever he does, leaving others to decide whether he is working or playing. To him, he is always doing both.
-L. Tzu
<title>Fall in love with some activity, and do it! Nobody ever figures out what life is all about, and it doesn't matter. Explore the world. Nearly everything is really interesting if you go into it deeply enough. Work as hard and as much as you want to on the things you like to do the best. Don't think about what you want to be, but what you want to do. Keep up some kind of a minimum with other things so that society doesn't stop you from doing anything at all.
-R. P. Feynman
<title>Ordinary -
Why am i such in a rush to be somebody? 
Leaving behind all the things I’d rather be 
I don’t know how success ever mattered to me 
Daddy always told me only doctors and some lawyers succeed 
In what we call the present day 
My mama always said that I would never stand a chance in this world 
Singing’ my life away 
I may never be a times square poster 
And I’ll never be on a popular magazine 
I may never be an actor on the big screen 
And I don’t remember if I ever cared at all
I’m just an ordinary guy 
Just getting by 
Riding the tide trying to hide 
I’m just an ordinary face 
Finding my place 
You won’t remember my name 
After I go away
-Tim Be Told
<title>It covers the surface of society with a network of small complicated rules, minute and uniform, through which the most original minds and the most energetic characters cannot penetrate, to rise above the crowd. The will of man is not shattered, but softened, bent, and guided; men are seldom forced by it to act, but they are constantly restrained from acting. Such a power does not destroy, but it prevents existence; it does not tyrannize, but it compresses, enervates, extinguishes, and stupefies a people, till each nation is reduced to nothing better than a flock of timid and industrious animals, of which the government is the shepherd.
-Tocqueville
<title>Listening to my daughter tell me her story with a sense of purpose I'd never heard before, I knew this was a mission form the inside out, not outside in.
-P. Guber
<title>Work without hope draws nectar in a sieve,
And hope without an object cannot live.
-S. T. Coleridge
<title>Say what you want and be who you are because those who mind don't matter and those who matter don't mind.
-Dr. Seuss
<title>Out beyond ideas of wrongdoing and rightdoing, there is a field. I will meet you there.
-J. Rumi
<title>My country is the world, and my religion is to do good.
-T. Paine
<title>It was then that I drew, almost unconsciously, on the inner strength I had developed in Cell 54 of Cairo Central Prison - a strength, call it a talent or capacity, for change. I found that I faced a highly complex situation, and that I couldn't hope to change it until I had armed myself with the necessary psychological and intellectual capacity. My contemplation on life and human nature in that secluded place had taught me that he who cannot change the very fabric of this thought will never be able to change reality, and will never, therefore, make any progress.
-A. Sadat
<title>Those who do not have power over the story that dominates their lives, the power to retell it, rethink it, deconstruct it, joke about it, and change it as times change, truly are powerless, because they cannot think new thoughts.
-S. Rushdie
<title>Watch your thoughts; they become words.
Watch your words; they become actions.
Watch your actions; they become habits.
Watch your habits; they become character.
Watch your character; it becomes your destiny.
-L. Tze
<title>Some people automatically associate morality and altruism with a religious vision of the world. But I believe it is a mistake to think that morality is an attribute only of religion. We can imagine two types of spirituality: one tied to religion, while the other arises spontaneously in the human heart as an expression of love for our neighbors and a desire to do them good. -D. Lama
<title>Your time is limited, so don't waste it living someone
else's life. Don't be trapped by dogma - which is living
with the results of other people's thinking.
-S. Jobs
<title>Live each season as it passes; breathe the air, drink the drink, taste the fruit, and resign yourself to the influences of each.
-H. D. Thoreau
<title>Be kind, for everyone you meet is fighting a hard battle.
-Plato
?<title>The unexamined life is not worth living. 
-Socrates
<title>Words I Never Said -
Complain about the liquor store but what you drinking liquor for?
Complain about the gloom but when’d you pick a broom up?
Just listening to Pac aint gone make it stop
A rebel in your thoughts, aint gon make it halt
If you don’t become an actor you’ll never be a factor
...
I think that all the silence is worse than all the violence
Fear is such a weak emotion thats why I despise it
We scared of almost everything, afraid to even tell the truth
So scared of what you think of me, I’m scared of even telling you
Sometimes I’m like the only person I feel safe to tell it to
I’m locked inside a cell in me, I know that there’s a jail in you
Consider this your bailing out, so take a breath, inhale a few
My screams is finally getting free, my thoughts is finally yelling through
-L. Fiasco
<title>For the great majority of mankind are satisfied with appearance, as though they were realities and are often more influenced by the things that seem than by those that are 
-Machiavelli
<title>The most beautiful and deepest experience a man can have is the sense of the mysterious. It is the underlying principle of religion as well as all serious endeavour in art and science. He who never had this experience seems to me, if not dead, then at least blind. To sense that behind anything that can be experienced there is a something that our mind cannot grasp and whose beauty and sublimity reaches us only indirectly and as a feeble reflection, this is religiousness. In this sense I am religious. To me it suffices to wonder at these secrets and to attempt humbly to grasp with my mind a mere image of the lofty structure of all that there is.
-A. Einstein
<title>Morpheus: I imagine that right now, you're feeling a bit like Alice. Hm? Tumbling down the rabbit hole?
Neo: You could say that.
Morpheus: I see it in your eyes. You have the look of a man who accepts what he sees because he is expecting to wake up. Ironically, that's not far from the truth. Do you believe in fate, Neo?
Neo: No.
Morpheus: Why not?
Neo: Because I don't like the idea that I'm not in control of my life.
Morpheus: I know exactly what you mean. Let me tell you why you're here. You're here because you know something. What you know you can't explain, but you feel it. You've felt it your entire life, that there's something wrong with the world. You don't know what it is, but it's there, like a splinter in your mind, driving you mad. It is this feeling that has brought you to me. Do you know what I'm talking about?
Neo: The Matrix.
Morpheus: Do you want to know what it is?
Neo: Yes.
Morpheus: The Matrix is everywhere. It is all around us. Even now, in this very room. You can see it when you look out your window, or when you turn on your television. You can feel it when you go to work, when you go to church, when you pay your taxes. It is the world that has been pulled over your eyes to blind you from the truth.
Neo: What truth?
Morpheus: That you are a slave, Neo. Like everyone else, you were born into bondage, born into a prison that you cannot smell or taste or touch. A prison for your mind. Unfortunately, no one can be told what the Matrix is. You have to see it for yourself. This is your last chance. After this, there is no turning back. You take the blue pill, the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill, you stay in Wonderland, and I show you how deep the rabbit hole goes. Remember: all I'm offering is the truth. Nothing more.
-Morpheus / Neo, The Matrix
<title>He who binds to himself a joy
Doth the winged life destroy.
He who kisses the joy as it flies,
Lives in eternity's sunrise. 
-W. Blake
<title>To be nobody but yourself in a world which is doing its best, night and day, to make you everybody else means to fight the hardest battle which any human being can fight; and never stop fighting.
-E.E. Cummings
<title>Don't let someone else's opinion of you become your reality.
-L.Brown
<title>Life has become immeasurably better since I have been forced to stop taking it seriously.
-H. S. Thompson
<title>When I get sad, I stop being sad and be awesome instead. True story. 
-B. Stinson
<title>I sought no comfort by speaking to others of what I felt. If I had loved anyone sufficiently to make confiding my griefs a necessity, I should not have been in the condition I was. I felt, too, that mine was not an interesting, or in any way a respectable distress. There was nothing in it to attract sympathy. Advice, if I had known where to seek it, would have been most precious. The words of Macbeth to the physician often occurred to my thoughts. But there was no one on whom I could build the faintest hope of such assistance... It was however abundantly intelligible to myself; and the more I dwelt upon it, the more hopeless it appeared
-J. S. Mills
<title>Ghetto Gospel - 
Everyone's ashamed of the youth, cuz the truth look strange
And for me it's reversed, we left them a world that's cursed and it hurts
Cuz any day they'll push the button
And all good men like Malcolm X and Bobby Hutton died for nottin
don't it make you get teary , the world looks dreary
When you wipe your eyes see it clearly
There's no need for you to fear me
If you take your time to hear me, maybe you can learn to cheer me
It ain't about black or white, cuz we're human
I hope we see the light before it's ruined
...
Even now I get discouraged
Wonder if they take it all back, will I still keep the courage?
I refuse to be a role model
I set goals, take control, drink out my own bottles
I make mistakes but learn from every one
And when it's said and done
I bet this brotha be a better one
If I upset you dont stress
Never forget, that God isn't finished with me yet
I feel his hand on my brain
When I write rhymes I go blind and let the Lord do his thang
But im less holy?
Cuz I took a puff of blunt and drink a beer with my homies
Before we find world peace
We gotta find peace and end the war on the streets
My Ghetto Gospel
-2Pac
<title>It is better to be a human being dissatisfied than a pig satisfied. Better to be a Socrates dissatisfied than a fool satisfied. And if the fool or the pig are of a different opinion, it is because they only know their side of the question.
-J. S. Mill
<title>Life moves pretty fast. If you don't stop to look around once in a while you could miss it.
-F. Bueller
<title>Nothing of me is original. I am the combined effort of everybody I’ve ever known.
-C. Palahniuk
<title>When you're curious, you find lots of interesting things to do. And one thing it takes to accomplish something is courage.
-W. Disney
<title>Or heritage and ideals, our code and standards - the things we live by and teach our children - are preserved or diminished by how freely we exchange ideas and feelings. 
-W. Disney
<title>I always like to look on the optimistic side of life, but I am realistic enough to know that life is a complex matter.
-W. Disney
<title>I can never stand still. I must explore and experiment. I am never satisfied with my work. I resent the limitations of my own imagination.
-W. Disney
<title>Don't worry when you are not recognized, but strive to be worthy of recognition.
-A. Lincoln
<title>Soundtrack To My Life -
You know how hard it be when you start livin' large
I control my own life, Charles was never in charge
No sitcom could teach Scott about the dram
Or even explain the troubles that haunted my mom
On Christmas time, my mom Christmas grind
Got me most of what I wanted, how'd you do it mom, huh?
She copped the toys I would play with in my room by myself, why he by himself?
He got two older brothers, one hood, one good
An independent older sister got me fly when she could
But they all didn't see, the little bit of sadness in me, Scotty
...
I'm super paranoid, like a 6th sense
Since my father died, I ain't been writing since
And I tried to piece the puzzle of the universe
Split an eighth of shrooms just so I could see the universe
I tried to think about myself as a sacrifice
Just to show the kids they ain't the only ones who up at night
-K. Cudi
<title>- Runaway
And I know it did damage 
Cause the look 
In your eyes 
Is killing me 
I'm guessin' you're at an advantage 
Cause you could blame me 
For everything 
And I don't know 
How I'ma manage 
If one day 
You just up and leave 
And I always find 
Yeah, I always find 
Something wrong 
You've been puttin' up 
With my shit 
Just way too long 
...
I'm so gifted at finding 
What I don't like the most 
...
So I think it's time 
For us to have a toast 
Let's have a toast for the douchebags 
Let's have a toast for the assholes 
Let's have a toast for the scumbags 
Every one of them that I know 
Let's have a toast for the jerkoffs 
That'll never take work off 
Baby, I got a plan 
Run away fast 
As you can 
-K. West
<title>The world needs dreamers and the world needs doers. But above all, the world needs dreamers who do.
-S. Breathnach
<title>It’s only after we’ve lost everything that we’re free to do anything.
-T. Durden, Fight Club
<title>She said starin at the sun won’t blind you
It’s just a lie used by the world to confine you
-Medeiros
<title>Cowards die many times before their actual deaths.
-Shakespear
<title>I see in fight club the strongest and smartest men who have ever lived. I see all this potential, and I see squandering. An entire generation pumping gas, waiting tables; slaves with white collars. Advertising has us chasing cars and clothes, working jobs we hate so we can buy shit we don’t need. We’re the middle children of history. No purpose or place. We have no Great War. No Great Depression. Our Great War’s a spiritual war, our Great Depression is our lives. We’ve all been raised on television to believe that one day we’d all be millionaires, and movie gods, and rock stars. But we won’t. And we’re slowly learning that fact. And we’re very, very pissed off.
-T. Durden, Fight Club
<title>This is what he told me.
‘Because you might as well be dead. If you always put limits on what you can do, physical, mental, or anything else, it will spread over into the rest of your life. It will spread into your work, your morality, into your entire being
There are no limits.
There are plateaus, but you must not stay there, you must go beyond them.
If it kills you, it kills you. A man must constantly exceed his level.’
-B. Lee
<title>In 2003, when executives met to consider opening engineering offices overseas, Schmidt asked Page how quickly he would like to grow.
How many engineers does Microsoft have? Page asked.
About 25,000, he was told.
We should have a million, Page said, in all seriousness.
-L. Page
<title>Mentor: Someone whose hindsight can become your foresight
-Unknown
<title>The Show Goes On -
Have you ever had the feeling that you was being had
Don’t that sh-t make you mad
They treat you like a slave, with chains all on your soul,
and put whips up on your back,
they be lying through they teeth
hope you slip up off your path
I don’t switch up I just laugh
put my kicks up on they desk
unaffected by they threats than get busy on they ass
see that’s how that Chi-Town made me
That’s how my daddy raised me
that glittering may not be gold, don’t let no body play me
if you are my homeboy, you never have to pay me
Go on and put your hands up, when times are hard you stand up
L-U-P the man, cause a brand that the fans trust
so even if they ban us they’ll never slow my plans up!
...
One in the air for the people that ain’t here
Two in the air for the father that’s there
Three in the air for the kids in the ghetto
Four for the kids who don’t wanna be there
None for the n-ggas trying to hold them back
Five in the air for the teacher not scared to tell those kids thats living in the ghetto that the n-ggas holdin back that the World is theirs!
Yeah yeah, the World is yours, I was once that little boy
Terrified of the World
Now I’m on a World tour
I will give up everything, even start a world war
for these ghettos girls and boys im rapping round’ the World for!
Africa to New York, Haiti then I detour, Oakland out to Auckland
Gaza Strip to Detroit, say hip-hop only destroy
tell em’ look at me, boy!
i hope your son don’t have a gun and that would be a D-boy
...
So no matter what you been through
no matter what you into
no matter what you see when you look outside your window
brown grass or green grass
picket fence or barbed wire
Never ever put them down
you just lift your arms higher
raise em till’ your arms tired
Let em’ know you’re their
That you struggling and survivin’ that you gonna persevere
Yeah, ain’t no body leavin, no body goin’ home
even if they turn the lights out the show is goin’ on!
-L. Fiasco
<title>I have never let my schooling interfere with my education.
-M. Twain
<title>There is nobody in this country who got rich on his own. Nobody. You built a factory out there — good for you. But I want to be clear. You moved your goods to market on the roads the rest of us paid for. You hired workers the rest of us paid to educate. You were safe in your factory because of police forces and fire forces that the rest of us paid for. You didn't have to worry that maurauding bands would come and seize everything at your factory... Now look. You built a factory and it turned into something terrific or a great idea — God Bless! Keep a Big Hunk of it. But part of the underlying social contract is you take a hunk of that and pay forward for the next kid who comes along. 
-E. Warren
<title>Act weak when strong, act strong when weak. Know when to bluff.
-T. Hsieh
<title>Poetry is when you make new things familiar and familiar things new.
-Unknown
<title>If I were able to live my life anew, in the next I would try to commit more errors. I would not try to be so perfect, I would relax more. I would be more foolish than I’ve been, In fact, I would take few things seriously. I would be less hygienic. I would run more risks, take more vacations, contemplate more sunsets, climb more mountains, swim more rivers. I would go to more places where I’ve never been, I would eat more ice cream and fewer beans, I would have more real problems and less imaginary ones.
I was one of those people that lived sensibly and prolifically each minute of his life; Of course I had moments of happiness. If I could go back I would try to have only good moments. Because if you didn’t know, of that is life made: only of moments; Don’t lose the now.
I was one of those that never went anywhere without a thermometer, a hot-water bottle, an umbrella, and a parachute; If I could live again, I would travel lighter. If I could live again, I would begin to walk barefoot from the beginning of spring and I would continue barefoot until autumn ends. I would take more cart rides, contemplate more dawns, and play with more children, If I had another life ahead of me.
But already you see, I am 85, and I know that I am dying.
-J. L. Borges
<title>In life, people tend to wait for good things to come to them. And by waiting, they miss out. Usually, what you wish for doesn't fall in your lap; it falls somewhere nearby, and you have to recognize it, stand up, and put in the time and work it takes to get to it. This isn't because the universe is cruel. It's because the universe is smart. It has its own cat-string theory and knows we don't appreciate things that fall into our laps.
-N. Strauss
<title>Dream as if you'll live forever. Live as if you'll die today.
-J. Dean
<title>Press on. Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education alone will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent - C. Coolidge 
Logic will get you from A to B. Imagination will take you everywhere.
-A. Einstein
<title>If the person you're talking to isn't listening, be patient. Maybe he has a small piece of fluff in his ear.
-Winnie The Pooh
<title>What the world needs is more geniuses with humility, there are so few of us left.
-O. Levant
<title>Never miss an opportunity to be fabulous.
-T. Seelig
<title>Being a professional is doing the things you love to do, on the days you don't feel like doing them.
-J. Irving
<title>Remember remember, the fifth of November,
The gunpowder, treason, and plot.
I know of no reason why the gunpowder treason,
Should ever be forgot.
-Fawkes, V for Vendetta



Thank you for your help! :D

Profile

Developer

User avatar

Joined: November 24th, 2011, 1:42 am
Posts: 1102
Location: Ohio
Post Re: Random stringindex problem - for "quote of the day"
April 30th, 2012, 4:12 am
If I am not mistaken, I believe there is a limit of 100 string indexes that can be used with webparser.

-Brian

Profile

Administrator


Joined: April 3rd, 2009, 4:31 am
Posts: 1337
Location: NC, US
Post Re: Random stringindex problem - for "quote of the day"
May 1st, 2012, 1:57 am
It should be possible to add another Webparser measure if you start it searching from the 99th quote onward. For example, if this is your 99th quote...

<title>Find a job you love and you'll never work a day in your life.
-Confucius

Then make your second Webparser measure use

RegExp="(?siU)<title>Find a job you love and you'll never work a day in your life.*<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*) and so on until the 198th quote.

Theoretically.

You will have to come up with some way of randomly changing the MeasureName= on your string meter though to make use of the separate measures.

Profile
Online

Developer

User avatar

Joined: April 19th, 2009, 11:02 pm
Posts: 11360
Location: Fairfax, VA
Post Re: Random stringindex problem - for "quote of the day"
May 1st, 2012, 2:17 am
dragonmage wrote:
It should be possible to add another Webparser measure if you start it searching from the 99th quote onward. For example, if this is your 99th quote...

<title>Find a job you love and you'll never work a day in your life.
-Confucius

Then make your second Webparser measure use

RegExp="(?siU)<title>Find a job you love and you'll never work a day in your life.*<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*)<title>(.*) and so on until the 198th quote.

Theoretically.

You will have to come up with some way of randomly changing the MeasureName= on your string meter though to make use of the separate measures.


You can't ever dynamically change MeasureName= on a meter. You can however not use a MeasureName at all on a string meter, and instead use Text=[SomeMeasure] and DynamicVariables=1. That you can then change with !SetOption SomeMeter Text [*SomeOtherMeasure*] and it will be set to use that new measure in the Text option. Note that SomeOtherMeasure is "escaped" with "*", so it actually puts the measure there and not just the current value of the measure as of the time the !SetOption was executed.

I have not fully tested, but I suspect you could be pretty clever and have two "sets" of 99 measures, and reuse one set of 99 meters, all with Group= on them. Then use a single !SetOptionGroup statement to change all of the meters' Text option to the appropriate measure from the second or first set as needed, using a number concatenated to the end of the measure names.

P.S. I would be very tempted to use Lua to read the file and just get one random "quote" out of it and display it. This approach of having hundreds of WebParser measures kinda makes me sad...

Profile
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.