Re: [pollen] Caching weirdness with Pollen

2019-03-23 Thread Brendan Stromberger
whoops, *now* the repo should be public. :) 

On Saturday, March 23, 2019 at 11:55:42 AM UTC-5, Brendan Stromberger wrote:
>
> That suggestion made sense–I moved all my functions from my non-pollen.rkt 
> modules into my root pollen.rkt, but it is still caching values until I 
> restart the server and reset the cache. I opened up my repo in case you 
> happen to have time to take a look; https://gitlab.com/bstro/richmond
>
> If you `raco pollen start` and navigate to 
> http://localhost:8080/body/hexagrams/3.html for instance, and then 
> attempt to change the return value for the function ->monogram in 
> ./pollen.rkt at line 204 (for instance, change (monogram (yang)) to 
> (monogram "xxx"), and hit refresh, you should see the shape at the top of 
> the page change. It won't, at least for me, until I halt the server and 
> `raco pollen reset` the cache. 
>
> On Friday, March 22, 2019 at 9:01:05 PM UTC-5, Matthew Butterick wrote:
>>
>>
>> On Mar 22, 2019, at 6:06 PM, Brendan Stromberger  
>> wrote:
>>
>> It seems to still be caching, even with your code snippet, or even if 
>> explicitly disabling the cache in each individual racket file. Also, 
>> browser cache is off.
>>
>>
>> I'm afraid it's hard for me to offer a better answer without a full 
>> example that demonstrates the failure. Cache invalidation is one of the two 
>> famously difficult problems in programming (the others being naming things, 
>> and off-by-one errors). 
>>
>> For instance, if your "pollen.rkt" files import bindings from other .rkt 
>> modules, those secondary modules will be cached. Would you believe there's 
>> another setup value called `cache-watchlist` [1] that lets you specify 
>> other files that the cache should notice.
>>
>>
>> [1] 
>> https://docs.racket-lang.org/pollen/Setup.html#%28def._%28%28lib._pollen%2Fsetup..rkt%29._setup~3acache-watchlist%29%29
>>  
>> 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Caching weirdness with Pollen

2019-03-23 Thread Brendan Stromberger
That suggestion made sense–I moved all my functions from my non-pollen.rkt 
modules into my root pollen.rkt, but it is still caching values until I 
restart the server and reset the cache. I opened up my repo in case you 
happen to have time to take a look; https://gitlab.com/bstro/richmond

If you `raco pollen start` and navigate to 
http://localhost:8080/body/hexagrams/3.html for instance, and then attempt 
to change the return value for the function ->monogram in ./pollen.rkt at 
line 204 (for instance, change (monogram (yang)) to (monogram "xxx"), and 
hit refresh, you should see the shape at the top of the page change. It 
won't, at least for me, until I halt the server and `raco pollen reset` the 
cache. 

On Friday, March 22, 2019 at 9:01:05 PM UTC-5, Matthew Butterick wrote:
>
>
> On Mar 22, 2019, at 6:06 PM, Brendan Stromberger  > wrote:
>
> It seems to still be caching, even with your code snippet, or even if 
> explicitly disabling the cache in each individual racket file. Also, 
> browser cache is off.
>
>
> I'm afraid it's hard for me to offer a better answer without a full 
> example that demonstrates the failure. Cache invalidation is one of the two 
> famously difficult problems in programming (the others being naming things, 
> and off-by-one errors). 
>
> For instance, if your "pollen.rkt" files import bindings from other .rkt 
> modules, those secondary modules will be cached. Would you believe there's 
> another setup value called `cache-watchlist` [1] that lets you specify 
> other files that the cache should notice.
>
>
> [1] 
> https://docs.racket-lang.org/pollen/Setup.html#%28def._%28%28lib._pollen%2Fsetup..rkt%29._setup~3acache-watchlist%29%29
>  
> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Moving to Pollen from WordPress

2019-03-23 Thread Matthew Butterick
1) Converting individual HTML pages is sometimes more straightforward than 
unraveling the mysteries of the XML export.

2) See the `pollen/unstable/convert` module for possibly useful helper 
functions.

https://docs.racket-lang.org/pollen/Convert.html?q=pollen%2Funstable%2Fconvert 




> On Mar 22, 2019, at 12:18 PM, Shrutarshi Basu  wrote:
> 
> I've been a light Pollen user for a few years, but I'm considering biting the 
> bullet and finally converting my WordPress blog to Pollen. My blog has over 
> 500 posts on it at this point, so I definitely want to do an automated 
> conversion, possibly with a longer manual editing/checking process over the 
> next few months. I'm wondering if anyone has converted a WordPress blog or 
> site to Pollen and has any pointers? I will probably do an export to XML and 
> then convert that. I'm also considering using a converter for another static 
> site engine to get things into a more manageable format before pollenizing.

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.