momijizukamori: (dreamsheep | styles)
[personal profile] momijizukamori posting in [site community profile] dw_dev
Not dead! Just busy with life. But Fu is in the process of converting the widgets on /customize to something less ridiculous, which gives me time to prod some of the problems that have been stumping me.

1) Preserving search results
The order of actions to generate a page of results from the advanced search, as I have it right now, goes like this:
User checks boxes to indicate choices -> user presses 'search' button -> button triggers POST actions -> a query is generated as one of these actions -> query goes to worker -> worker performs search -> worker sends back a list of theme ids

The problem is that POST data is lost on reload/page change, so when you click to see the second page of results (if there are more than one page), all of the query and the results vanish. Most of our other ways of grabbing a set of layouts (by base style, by designer, etc) append the query string to the URL, which is then hidden from the user via routing, but even just the list of search elements has the potential to get unwieldy fast (and the return list is worse)

2) The auto-categorizer
I don't have this working yet because it's not necessary for the new search, just... nice, given we have almost fifteen hundred themes (!!!). The script needs to pull hexcodes out of the style layers (which is all text to the perspective of anything not the S2 compiler). That seems to say 'regex' to me but I don't know if that's safe/the best way to do it.

Question thread #26

Dec. 10th, 2014 02:37 pm
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma posting in [site community profile] dw_dev
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.

Dreamhacks: Locale::Codes upgraded

Dec. 7th, 2014 10:50 pm
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)
[personal profile] sophie posting in [site community profile] dw_dev
If you were having issues with reinstalls or database updates on the Dreamhack machine, you should be good to go now if you retry what was failing before. The code needed a new version of the Locale::Codes distribution, meaning that update-db.pl wouldn't work. It should work now!

(Yes, reinstalls work again; I've been meaning to announce it here for ages, but I've kept forgetting. They work now by reinstalling from your personal Git repositories; there's currently no means to automatically nuke those repositories and re-fork, so if you need to do that, let me know.)

Profile

csjewell

June 2011

S M T W T F S
   1234
567891011
12131415161718
192021 22232425
2627282930  

Style Credit

Page generated Dec. 19th, 2014 07:53 am
Powered by Dreamwidth Studios

Expand Cut Tags

No cut tags

Most Popular Tags