Re: XFCE forum?

corenominal wrote:
anonymous wrote:

^ Maybe we need a newer version of PunBB or maybe Philip disabled that feature?

I have not disabled that feature, so I guess it could be something included in a later release. I have made several modifications to this instance of PunBB and so upgrading it will not be as simple as I would like; however, I will look into it. smile

Meanwhile, searches on topic titles can be performed in Google like so: "site:crunchbanglinux.org/forums/ intitle:openbox theme"

I wonder if there might be any chance of a "search this thread" option some day? For those 600-post threads...

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: XFCE forum?

Its somewhat possible. Using an example:

site:crunchbanglinux.org/forums/ intitle:openbox conky

It will search the CrunchBang forums for threads with the word openbox, then look inside the page for the word conky. Heres an example searching the June screenshot thread:

http://www.freeimagehosting.net/uploads/1d7fea228f.png

As you see it only points you to the right page.

Some more tips: if you want to search for a phrase put it in quotes like intitle:"openbox theme". You can also use operators like intitle:openbox OR theme, intitle:openbox AND theme.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: XFCE forum?

anonymous wrote:

Its somewhat possible. Using an example:

site:crunchbanglinux.org/forums/ intitle:openbox conky

It will search the CrunchBang forums for threads with the word openbox, then look inside the page for the word conky. Heres an example searching the June screenshot thread:

http://www.freeimagehosting.net/uploads/1d7fea228f.png

As you see it only points you to the right page.

Some more tips: if you want to search for a phrase put it in quotes like intitle:"openbox theme". You can also use operators like intitle:openbox OR theme, intitle:openbox AND theme.

isn't google awesome? lol

just call me...
~FSM~

Re: XFCE forum?

anonymous wrote:

Its somewhat possible. Using an example:

site:crunchbanglinux.org/forums/ intitle:openbox conky

Nice stuff ... wish there was a way to have that is a bash script:

gs-i.sh

#!/bin/bash
iceweasel -googlesearch: site:crunchbanglinux.org/forums/ intitle: $string

gs-or.sh

#!/bin/bash
iceweasel -googlesearch: site:crunchbanglinux.org/forums/ intitle: $string1 OR $string2

gs-and.sh

#!/bin/bash
iceweasel -googlesearch: site:crunchbanglinux.org/forums/ intitle: $string1 AND $string2

http://www.tonyrogers.com/news/images/chimp_computer.jpg
... because my typing and bash script abilities are on par with that of a mentally challenged chimpanzee using a computer compared to other here.  roll

Re: XFCE forum?

Heres the scripts:

#!/bin/sh
q=$1
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q"
#!/bin/sh
q=$1
r=$2
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q AND $r"
#!/bin/sh
q=$1
r=$2
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q OR $r"
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: XFCE forum?

^ Oh my, I was kind of joking thinking it wasn't really possible.  I should know better.

Since switching to #! v9.04 and now Statler, I have been spending more time with the terminal and "under the hood", but not too deep under mind you, so I am forcing myself little by little to learn more.

But this is great, thank you once again anonymous.

Re: XFCE forum?

^ Couldn't that be folded into a single script with a few if/elif statements that parse the first variable for '-a' or '-o', then run the appropriate search?  (Could also include '--and' and '--or'...)

...but this should probably be moved to another thread...maybe in the Tips & Tricks section.

while ( ! ( succeed = try() ) );

Re: XFCE forum?

pvsage wrote:

...but this should probably be moved to another thread...maybe in the Tips & Tricks section.

Like this: Bash Scripts - make crunching easier

Re: XFCE forum?

@pvsage - My bash knowledge is just slightly higher than that of Sector11. If you know how to do the if/elif stuff, go ahead.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: XFCE forum?

anonymous wrote:

Its somewhat possible. Using an example:

site:crunchbanglinux.org/forums/ intitle:openbox conky

It will search the CrunchBang forums for threads with the word openbox, then look inside the page for the word conky.
Some more tips: if you want to search for a phrase put it in quotes like intitle:"openbox theme". You can also use operators like intitle:openbox OR theme, intitle:openbox AND theme.

Ah yes! So if you use the full name of the thread in the "intitle" bit you should be able to do a search on that one thread.

site:crunchbanglinux.org/forums/ intitle:"xfce forum?" debian

This worked fine. smile

pvsage wrote:

...but this should probably be moved to another thread...maybe in the Tips & Tricks section.

True...

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: XFCE forum?

Just an idea, but the $* variable uses all arguments as a single word, so if the script was:

#!/bin/bash
q="$*"
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q"
exit

You could just call it like so:

'scriptname query1', which would equate to 'site:crunchbanglinux.org/forums/ intitle:$query'

or like so:

'scriptname query1 OR query2', which would equate to 'site:crunchbanglinux.org/forums/ intitle:$query1 OR $query2'

or like so:

'scriptname query1 AND query2', which would equate to 'site:crunchbanglinux.org/forums/ intitle:$query1 AND $query2'

and so on...

Re: XFCE forum?

OK that just leaves the question of putting in the quotes for phrase title searches, eg

iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:\"$q\""

This works for searching for "xfce forum", but now AND and OR searches don't... neutral

edit:
Makes it more complicated, but you could add a '-p' option to search for a phrase in the title:

#!/bin/bash
case $1 in    # allows for adding more options later
    -p)shift
    q="\"$*\"";;
    *)q="$*";;
esac
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q"
exit

so '-p xfce forum' searches for 'xfce forum' in the title.
btw 'intitle:conky AND file' seems to search for conky in the title and file anywhere, not both conky and file in the title.

Last edited by johnraff (2010-06-23 05:16:19)

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: XFCE forum?

johnraff wrote:

btw 'intitle:conky AND file' seems to search for conky in the title and file anywhere, not both conky and file in the title.

Simple fix:

#!/bin/sh
q=$1
r=$2
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q AND intitle:$r"
#!/bin/sh
q=$1
r=$2
iceweasel "http://www.google.com/search?q=site:crunchbanglinux.org/forums/ intitle:$q OR intitle:$r"
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: XFCE forum?

Posted a bloated version of Crunchbang search on Sector11's thread:
http://crunchbanglinux.org/forums/post/73953/#p73953

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: XFCE forum?

johnraff wrote:

Posted a bloated version of Crunchbang search on Sector11's thread:
http://crunchbanglinux.org/forums/post/73953/#p73953

With all due respect, I started Bash Scripts - make crunching easier to (I'll look at yours a little later):

A - keep things on topic here, and
B - hopefully people will share various bash scripts that they find useful - like sharing conky files, tint2 configs etc etc. and we all can learn something.

Re: XFCE forum?

Sector11 wrote:
johnraff wrote:

Posted a bloated version of Crunchbang search on Sector11's thread:
http://crunchbanglinux.org/forums/post/73953/#p73953

With all due respect, I started Bash Scripts - make crunching easier to (I'll look at yours a little later):

A - keep things on topic here, and
B - hopefully people will share various bash scripts that they find useful - like sharing conky files, tint2 configs etc etc. and we all can learn something.

...so I posted that script (incorporating some of the ideas that came up here) over there precisely because I thought it was a more appropriate place than an "XFCE forum?" thread, with the vague hope that this googly discussion might move over there too. If your intention was something different, apologies. smile

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: XFCE forum?

johnraff wrote:

If your intention was something different, apologies. smile

Reply is here!  big_smile