Re: Do you recommend the book: Web Development with Clojure

2014-02-21 Thread Stefan Kanev
in web apps (IMHO). -- Stefan Kanev ¦ @skanev ¦ http://skanev.com/ You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: clojure key destructuring motivation

2014-01-18 Thread Stefan Kanev
naming individual keys. Of course, I'm just guessing. -- Stefan Kanev ¦ @skanev ¦ http://skanev.com/ Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy. -- -- You received this message because you are subscribed to the Google Groups Clojure group

Re: How to handle configuration in Clojure?

2014-01-14 Thread Stefan Kanev
/2013/03/29/perils-of-dynamic-scope Fair enough. Thanks for the elaboration. -- Stefan Kanev ¦ @skanev ¦ http://skanev.com/ Bringing computers into the home won't change either one, but may revitalize the corner saloon. -- -- You received this message because you are subscribed to the Google

Re: How to handle configuration in Clojure?

2014-01-13 Thread Stefan Kanev
-safe, at least to some extend. I assume you mean something specific? -- Stefan Kanev ¦ @skanev ¦ http://skanev.com/ If a program manipulates a large amount of data, it does so in a small number of ways. -- -- You received this message because you are subscribed to the Google Groups Clojure

Re: Good learning resources for Clojure novice but with a long background i programming, both OO and some Fp?

2014-01-10 Thread Stefan Kanev
of Clojure. The first edition covered an oldered version and I have no idea about the second. -- Stefan Kanev Ś @skanev Ś http://skanev.com/ Often it is the means that justify the ends: Goals advance technique and technique survives even when goal structures crumble. -- -- You received this message

Re: How can I improve this?

2014-01-10 Thread Stefan Kanev
love, but I don't have the time for it now. If you want a lazy version, some modification is needed. -- Stefan Kanev Ś @skanev Ś http://skanev.com/ Giving up on assembly language was the apple in our Garden of Eden: Languages whose use squanders machine cycles are sinful. The LISP machine now

Re: How can I improve this?

2014-01-10 Thread Stefan Kanev
) modified (if occurences (str word _ occurences) word)] (recur (update-in encountered [word] (fnil inc 0)) (conj result modified) remaining)) result))) -- Stefan Kanev ¦ @skanev

Re: How can I improve this?

2014-01-10 Thread Stefan Kanev
of `uniquify`. -- Stefan Kanev ¦ @skanev ¦ http://skanev.com/ Think of all the psychic energy expended in seeking a fundamental distinction between algorithm and program. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

[Lug-bg] OpenFest 2013 - Call For Papers

2013-09-20 Thread Stefan Kanev
Здравейте, Тази година отново ще правим OpenFest (11 години от първия). Ще бъде на 2-3 ноември, отново в Интерпред, София. Тази година ще бъдем в три зали и както обикновено, входът е свободен. От името на екипа, каня всички ви да заповядате :) Също така, време е и да поканим желаещите да

Re: [rspec-users] Test execution time filtering

2011-08-17 Thread Stefan Kanev
RSpec is built around the premise that each example is run in its own environment, and that one should not depend on the outcome of another. This is not unique to RSpec, btw. It's how all of the unit testing frameworks of which I am aware work. I know I'm going off-topic, but TestNG

Re: [rspec-users] Test execution time filtering

2011-08-17 Thread Stefan Kanev
On Wed, Aug 10, 2011 at 2:23 AM, Mike Jr n00s...@comcast.net wrote: But a sophisticated test will make decisions in mid test. If a certain test condition occurs, set a singleton hash and then have later tests condition their processing on that hash. In my tests, these if statements are

Re: [rspec-users] ControllerExampleGroup.bypass_rescue

2011-08-11 Thread Stefan Kanev
I agree with Lenny. I can give an example. Lets say that parts of the application are restricted. Whenever they are accessed by an unauthorized user, they trigger UnauthorizedAccessError. Depending on the role the user has in the system, different actions should be performed, e.g. unauthenticated

[rspec-users] Overriding Kernel#inspect just for tests

2011-04-08 Thread Stefan Kanev
Hi all. Occasionally, I write specs that verify the order in which some ActiveRecord objects are returned. For example, in a toy project I do: Reply.stub :per_page = 2 topic.replies_on_page(1).should == [second, first] The spec out quickly get unwieldy when it fails: 1) Topic paginates its

Re: [rspec-users] Overriding Kernel#inspect just for tests

2011-04-08 Thread Stefan Kanev
Ah, that's clever. Thanks. On Fri, Apr 8, 2011 at 3:43 PM, David Chelimsky dchelim...@gmail.comwrote: On Fri, Apr 8, 2011 at 1:52 AM, Stefan Kanev stefan.ka...@gmail.com wrote: Hi all. Occasionally, I write specs that verify the order in which some ActiveRecord objects are returned

Re: [rspec-users] Good practices on spec'ing views?

2010-05-21 Thread Stefan Kanev
Thank you for your answers! In The Rspec Book, section 24.6 (chapter 24), When I write view specs offers some tips for determining when to write view specs. Have you read this section? I though I did, but I revisited it and I learned some new things. Thanks! I did some thinking on my own and

[rspec-users] Good practices on spec'ing views?

2010-04-30 Thread Stefan Kanev
Hey guys. I've been doing RSpec for more than a year by now, yet I cannot help but feel that I've never got a single view spec right. I can see that I have very few view specs and that my views tend be a lot messier than everything else. I've read the chapter in the RSpec book about spec'ing

[rspec-users] Disabling database access in controller specs

2010-03-03 Thread Stefan Kanev
It took a while, but now I an totally convinced that controller specs should not access the database and stub as much as possible. I'm committed to that style of writing, yet from time to time I incidentally allow it to happen. Is there a way to err on the safe side and have RSpec throw an error

[rspec-users] spec'ing controllers

2009-12-16 Thread Stefan Kanev
Hey guys. I switched completely to RSpec and Cucumber this spring and I am really happy with. While I think I've gotten quite good with it, I'm not sure I understand the value of spec'ing controllers (in Rails). I would appreciate if you can give me some suggestions. Let me elaborate: The RSpec

Re: [rspec-users] Where to put macros

2009-06-22 Thread Stefan Kanev
On Mon, Jun 22, 2009 at 7:37 PM, David Chelimsky dchelim...@gmail.comwrote: On Mon, Jun 22, 2009 at 11:28 AM, Andrew Premdasaprem...@gmail.com wrote:What would folks think if that was included in the generated spec_helper in spec-rails? I, while not a regular patron in this mailing list, +1

Profiling the memory usage

2007-10-08 Thread Stefan Kanev
Hi. I'm doubting that my wicket application is using to much memory because of serializing too much unnecessary stuff in the session (programmers' mistakes). Can you help me find a way to see what objects get serialized, so I can see what I'm doing wrong and correct my mistakes? Thanks in

[jira] Commented: (WICKET-695) Border.resolve() should not attempt to render contents if bodyVisible is false

2007-07-04 Thread Stefan Kanev (JIRA)
[ https://issues.apache.org/jira/browse/WICKET-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510137 ] Stefan Kanev commented on WICKET-695: - Where does the following method come from: Border border = findBorder

[jira] Created: (WICKET-695) Border.resolve() should not attempt to render contents if bodyVisible is false

2007-06-25 Thread Stefan Kanev (JIRA)
Issue Type: Bug Components: wicket Affects Versions: 1.3.0-beta1, 1.3.0-beta2, 1.3.0-beta3 Reporter: Stefan Kanev Priority: Minor Border.resolve() should not attempt to render its nested components if setBorderBodyVisible(false) has been called. This way

[Wicket-user] Foldable border

2007-06-25 Thread Stefan Kanev
Hello. I'm trying to create a foldable box component - not unlike the quick contacts and labels boxes in gmail. I want to render some markup around a border's contents - particulary, an open/close link. So far, I've made it toggle the value of Border.setBorderBodyVisible() and it works fine.

[Wicket-user] Foldable panels

2007-04-18 Thread Stefan Kanev
Hello. I'm trying to achieve the following effect using Wicket 1.3. I want to have a component (let's dub it widget), that draws a thin border around its contents and makes it possible to fold and unfold it (pretty much like the Quick Contacts and Labels in GMail. In the perfect scenario, I would

[jira] Updated: (WICKET-338) DateTextField

2007-03-01 Thread Stefan Kanev (JIRA)
[ https://issues.apache.org/jira/browse/WICKET-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Kanev updated WICKET-338: Attachment: DateTextField.java The DateTextField itself. DateTextField

Re: [Wicket-user] new initiative for a user guide

2006-10-06 Thread Stefan Kanev
I'm not really sure why you're giving me that JPA hype, as I already said I'm a big fond of using it and my motivations for evading it are different. But since Justin Lee gave me that repository, I think I can pull it out greatly.

Re: [Wicket-user] new initiative for a user guide

2006-10-05 Thread Stefan Kanev
I'm a big fan of JPA myself, but a JPA application is not easy to distribute since the akward policy Sun has for their enterprise jars. Thus I cannot create an application that is as easily runned localy as mvn jetty:run - I'm having the same problem with the commercial projects I'm doing and with

Re: [Wicket-user] new initiative for a user guide

2006-10-05 Thread Stefan Kanev
Does the same go for Hibernate? Maybe create an in-memory domain model, that doesn't persist in any kind and use it instead? This would simplify the sample application and put the focus to Wicket instead. It might be especially useful to people, who are not familiar with Spring and Hibernate.

[Wicket-user] AjaxSubmitButton don't working with button

2006-10-05 Thread Stefan Kanev
I found out that AjaxSubmitButton is not working with button html tags. I didn't see a reason why not to allow that, so I tried to create a patch, but I failed miserably. Can anyone please look into it, or at least give me a hint what I'm doing wrong with my patch. I'm trying to put this chunk of

Re: [Wicket-user] new initiative for a user guide

2006-10-05 Thread Stefan Kanev
I'm thinking with starting from a user guide to a sample app and then continuing with a reference guide. I would like to start simple, and if I see I can handle it, I'll start writing a reference manual - Take Surveys. Earn

Re: [Wicket-user] AjaxSubmitButton don't working with button

2006-10-05 Thread Stefan Kanev
Sorry, was very sleepy - a stupid mistake. I will send my bugfix within few hours. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on

Re: [Wicket-user] new initiative for a user guide

2006-10-05 Thread Stefan Kanev
Maybe I didn't express myself cleary, sorry. JPA is very cool and all, but it requires jars that you have to download from Sun, because they aren't distributed freely (thus ibiblio.org). This is a major problem with Maven, since this is what Maven does - gets the publicly available jars for you,

Re: [Wicket-user] new initiative for a user guide

2006-10-05 Thread Stefan Kanev
Oh, cool. So I might use JPA after all. Is it freely available and is there a change that you might suddenly stop supporting it (I have another projects that would be good to dedirect here). - Take Surveys. Earn Cash.

Re: [Wicket-user] AjaxSubmitButton don't working with button

2006-10-05 Thread Stefan Kanev
I'm not sure it is a good solution, but I've made AjaxSubmitButton inherit from WebMarkupComoponent to allow buttonFoo/button. I've also expanded the tag name check to allow button. Works for me now. Submitting the change as a patch. Index: .

Re: [Wicket-user] A Reorderer component

2006-08-11 Thread Stefan Kanev
No, I don't depend on any external libs, but some polishing is definatelly needed. The .js is well done (not tested in Safari yet, would be grateful if someone can try it), but I think the wicket code can be done better (although I don't have an idea how). I was hoping that any of you guys can

[Wicket-user] A Reorderer component

2006-08-10 Thread Stefan Kanev
Hey to all.I just finished a draft version of a small ajax component that allows the user to change the order of elements in a list. I'm doing an application that requires such functionality in a number of places and so I decided to pack it out as a seperate component and send it to the mailing

[Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Stefan Kanev
Hi. Is there a quick way to implement the sorting of the DataTable with AJAX, or should I go rewriting everything from the OrderByLink to the HeadersToolbar? ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Stefan Kanev
I don't see an AJAX sortable example with the DataTable component (Wicket extensions). Can you point me to it, if I have missed it, please? ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net

[m2.0.4] Javadoc aggregate problems with multiple modules projects

2006-05-22 Thread Stefan Kanev
Hi all. Setting aggregate to true for the javadoc plugin doesn't seem to work for me, in a multiple-module build. I won't paste error message, because they are just too large, but it tells me that it can't find some classes (from external dependencies) that it succesfully finds when I'm building

[Wicket-user] A ListView with no items

2006-05-19 Thread Stefan Kanev
Hi. I want to be able to display easily a ListView with no items. There are two things that bother me, thought. First, I would like to dipslay a message You have no foo's in the place of the list. And second, how do I drop the ul, given that my code is like this: ul li wicket:id=foos span

[Wicket-user] Re: UML diagram?

2006-04-27 Thread Stefan Kanev
I sketched a small diagram of the components hierarchy of Wicket. Grayed classes are final. It is compact enough to be printable (and readable) on A4. Here it is: http://spider.bg/~aquarius/dl/Wicket%20Components%200.1.png

Re: [Wicket-user] UML diagram?

2006-04-25 Thread Stefan Kanev
Actually, I meant which classes should I put there? I cannot put everything, since (1) it is too much and (2) won't be that helpful if it has a lot of stuff. :DStefan

[Wicket-user] UML diagram?

2006-04-24 Thread Stefan Kanev
HiDon't you think that an UML diagram for the basic objects in wicket would be useful for newbies to the frameworks (shows the complete) picture and for all users, where it can serve as a quick reference. Since such a diagram is not present, I'm willing to put up one. What do you think should be

Re: [Wicket-user] call for i18n contributions

2006-04-22 Thread Stefan Kanev
This is a translation in Bulgarian, I hope that GMail sends as UTF-8. And I do hope it will be useful to somebody.Application_bg.propertiesRequiredValidator=Полето '${label}' е задължително.TypeValidator='${input}' не е валиден ${type}. NumberValidator.range=${input} трябва да бъде между