nXIII wrote:
sparks wrote:
oh yes, Loading images, even small ones from an online file is a no-go. I tried it with a tiny image and it took a long time, about 1 pixil every half a second. My internet speed is pretty good too.
Load all the information into a variable, then parse the variable, then draw it.
Ya, loading it one line at a time is SLOW!
Offline
Meh, im just sticking to my own stuff and not going online or anything.
Offline
nXIII wrote:
sparks wrote:
oh yes, Loading images, even small ones from an online file is a no-go. I tried it with a tiny image and it took a long time, about 1 pixil every half a second. My internet speed is pretty good too.
Load all the information into a variable, then parse the variable, then draw it.
wouldn't that take longer? surely reading a colour online is faster than reading it to a variable and then reading the variable?
remember that as each pixil of colour is stored on one line or list item, only one line can be read at once.
Offline
a quick test.
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Offline
sparks wrote:
a quick test.
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Nope, that didn't work...
Offline
Squeak is so confusing...
Offline
ok, I hope this works, 40X40 image coming your way...
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••
Offline
MathWizz wrote:
The code for <list [] exists?> instance is:
Code:
listExists: aList self variableNameInUse: aList
Not really.... that tests if a list OR A VARIABLE exists.
Just lists would be
^ (self listVarNames includes: aListName) or: [(self ownerThatIsA: ScratchStageMorph) listVarNames includes: aListName].
Offline
sparks wrote:
ok, I hope this works, 40X40 image coming your way...
It does work, but you might want to use any of these instead:
░▒▓█
___
Does anyone know a nice way to convert strings to blocks in Squeak?
Last edited by nXIII (2010-04-14 14:18:09)
Offline
█ Would be a better one,like what Mathwhizz used.
Offline
nXIII wrote:
MathWizz wrote:
The code for <list [] exists?> instance is:
Code:
listExists: aList self variableNameInUse: aListNot really.... that tests if a list OR A VARIABLE exists.
Just lists would be^ (self listVarNames includes: aListName) or: [(self ownerThatIsA: ScratchStageMorph) listVarNames includes: aListName].
Sorry, but that comes up with an Error! message.
Offline
Sperry wrote:
nXIII wrote:
MathWizz wrote:
The code for <list [] exists?> instance is:
Code:
listExists: aList self variableNameInUse: aListNot really.... that tests if a list OR A VARIABLE exists.
Just lists would be^ (self listVarNames includes: aListName) or: [(self ownerThatIsA: ScratchStageMorph) listVarNames includes: aListName].
Sorry, but that comes up with an Error! message.
Oh, well, whatever. But the one you're using is wrong. I would get you the right one but I'm kind of in the middle of custom blocks.
Offline
nXIII wrote:
Sperry wrote:
nXIII wrote:
MathWizz wrote:
The code for <list [] exists?> instance is:
Code:
listExists: aList self variableNameInUse: aListNot really.... that tests if a list OR A VARIABLE exists.
Just lists would beSorry, but that comes up with an Error! message.
Oh, well, whatever. But the one you're using is wrong. I would get you the right one but I'm kind of in the middle of custom blocks.
Nevermind, I made a typo in te blockspecs that made it call the wrong function (one that didn't exist)
Offline
guy's can't believe I haven't thought of this sooner!
open Panther and write the script:
set page to (whatever web address the current page of the forum is)
forever:
set previous to (number of lines on URL (page)
wait until (previous) is not = number of lines on URL (page)
play sound pop
et voila! you have a project that pops when someone posts something new to the current topic page!
finally! no more refreshing, you KNOW when someone has posted!
it works!
downsides:
Panther don't like reading it too much so maybe put a wait in there.
once we reach a new page, it won't pop until the variable "page" is change
I hope you like it!
Last edited by sparks (2010-04-14 14:27:20)
Offline
you could use it to check if a change had been made to the Panther site since you last stopped the project, or see if something else has changed. As long as it means a new line is added to that web page, it will notice without having to parser anything.
my thing hasn't popped in a while, where is everyone?
Offline
I can't belive it's possible... it's such as simple script, but we had the blocks for DAYS before anyone realised what we could do with them! I'm telling you, I'm so glad I don't have to keep refreshing anymore.
Offline
sparks wrote:
guy's can't believe I haven't thought of this sooner!
open Panther and write the script:
set page to (whatever web address the current page of the forum is)
forever:
set previous to (number of lines on URL (page)
wait until (previous) is not = number of lines on URL (page)
play sound pop
et voila! you have a project that pops when someone posts something new to the current topic page!
finally! no more refreshing, you KNOW when someone has posted!
it works!
downsides:
Panther don't like reading it too much so maybe put a wait in there.
once we reach a new page, it won't pop until the variable "page" is change
I hope you like it!
Or
[set previous to (contents of file at URL (page))]
[repeat until <not <(previous) = (contents of file at URL (page))>]
|| [wait 10 secs]
[___________________________________________________________]
[play sound [pop]]
Offline
nXIII wrote:
sparks wrote:
guy's can't believe I haven't thought of this sooner!
open Panther and write the script:
set page to (whatever web address the current page of the forum is)
forever:
set previous to (number of lines on URL (page)
wait until (previous) is not = number of lines on URL (page)
play sound pop
et voila! you have a project that pops when someone posts something new to the current topic page!
finally! no more refreshing, you KNOW when someone has posted!
it works!
downsides:
Panther don't like reading it too much so maybe put a wait in there.
once we reach a new page, it won't pop until the variable "page" is change
I hope you like it!Or
[set previous to (contents of file at URL (page))]
[repeat until <not <(previous) = (contents of file at URL (page))>]
|| [wait 10 secs]
[___________________________________________________________]
[play sound [pop]]
no, because the (contents of file[]) block only reports the first line... I'm pretty certian that's the case
really? mine only pops when I post or someone else posts.
Offline