it may look very simple question for many of you. As a beginner in XUL::Gui, this question is most useful to me:
I have Perl scripts, running well in my system. Now, I am interested to develop it as standalone application using XUL::Gui. I don't have any prior experience in XUL::Gui, so how to go?
As far as i know, First I need to pack my scripts using PAR, then i have to create GUI using XUL::Gui. after these steps, what to do?
Your help will be appreciated!
Thanks in advance
Ramesh
Related
I'm about to start devlopment of a new website and want to use yeoman/grunt to speed up development/testing. However the site needs to be build with limited CMS functionallty with a flatfile cms such as http://getkirby.com/. Now I'm a little confused as to how to use these tools together?
Anyone had previous experience with this or have any tips?
Thanks
I have a Kirby site with a grunt taskrunner for developement-stuff. I use coffeescript, sass, minification, linting, autoprefixer etc. You could have a look at my current grundfile.coffee or an earlier version of my gruntfile.coffee. I guess they are a good start point - you could pick some tasks you need, and add your own stuff.
But i'm not sure if it answers your question, because all this is nothing Kirby-specific, except the file-paths. So if this is no help, you could specify your question/issue.
I was working around with Postgres a bit. I am trying to get familiar to editing the source code of the same.
One of the suggested exercise was to change the buffer replacement policy of the system of Postgres 7.4. (It was in one of the homeworks of some university. First few links of google. I am just using them to get familiar to the code.)
I understand parts of it but I am not able to fully understand how to modify the system. I mean, I know the particular files,buffer folder files in the src/backend/storage location as the files where I have to make changes, but how to implement my own scheme and test it, is going over my head.
So my question is, can anyone help me with some basic code snippet understanding? (Probably, give me idea how to solve the question mentioned above? and how to test it ( most important). ) (This is not a homework of any sort, promise. I am just trying to get a hang of things.)
If not, can anyone refer me to some book which can help me with modification of the postgresql source code? There are books to use postgresql, but I couldn't find any that could help to modify the source code.
P.S: I know the online documentation of PGSQL source code resides at: http://doxygen.postgresql.org/
But I am not able to understand a lot from there. I need a book that can help the layman!
Any help is much appreciated!
Apart from the Developer FAQ your best starting point will be the PostgreSQL mailing lists.
You might start with posting to http://archives.postgresql.org/pgsql-novice/ ("No question is too simple for this list")
And if you really start changing the source code you will need to subscribe to http://archives.postgresql.org/pgsql-hackers/ as well.
And don't use the 7.x source code. PostgreSQL is at Version 9.1 now and I'm sure studying the ancient history won't be very helpful.
I've found a lot of threads around this question here at stackoverflow. They are 2 years old now. So I would like to know if someone is using scottmuc functions to perform a BDD in powershell. It seems very powerful at first sight.
What's your opinion about? Somebody knows some other well effective BDD framework? I would like something really close to rspec.
Note I need BDD not TDD (PSUnit) suggestions/indications.
No many using BDD on powershell then, seen the answers :). Does it mean that BDD is not useful at all, only because powershell is just scripting? I don't think it's a valid reason.
Anyway here the list up to now:
Pester, much more close to something like rspec
PowerSpec, is seems just a few should
I'm the author of Pester and happy to see that you found it! Pester was created to surround another project I did called PowerYaml (as well as the stuff #manojlds mentioned). I wanted to refactor it, but without test coverage, I didn't feel comfortable doing that. So Pester was born, and PowerYaml got refactored. It might be a decent example to show a real world situation where it is useful.
Secondly, I've just recently published a blog post that my shed some light on how to use Pester and it's workflow.
Hope this helps. If you have feature requests, please submit them to the github project.
We are using Pester in our project. It serves our purpose and we are trying to improve upon it. And yeah, the author is my colleague and wrote it for the project.
There is also PowerSpec - https://github.com/shishkin/PowerSpec ( though the description says it is aimed at TDD with Powershell )
I am searching for a tool that behaves similarly to Unix's expect tool (or at least, its main function).
I want to automate command-line interactive programs with it.
EDIT:
I am preferring single executables or small apps without big multi megabyte depencies.
Ty.
Take a look at ActiveState's Tcl distribution which has a port of Expect for Windows.
Late answer: Expect.exe, compiled with Go, running Lua-scripts. Fairly new, but does exactly what it is supposed to do. See https://github.com/zetamatta/expect/
Check the closed issues as well.
I guess AutoIt is what you need.
I your familiar with expect, then why not install Cygwin and run it that way?
You could use pexpect, written in Python.
There is a team working on acceptance testing X11 GUI application in our company, and they created a monstrous acceptance testing framework that drives the GUI as well as running scenarios.
The framework is written using Perl 5, and scenario files look more like very complex Perl programs (thousands of lines long with procedural-programming style) than acceptance tests.
I recently learned Ruby's Cucumber, and generally have been using Ruby for quite a lot of time. But unfortunately I can't just shove Ruby to replace Perl because the people who are writing all of this don't know Ruby and it's quite certain that they wont want "this" kind of interruption.
So to bring Ruby's Cucumber a bit closer to their work, I rewrote it using Perl 5. Unfortunately I am really not a Perl programmer, and would love to get a code review and to hear suggestions from people who both know Perl and Cucumber.
Hi Perl/Cucumber StackOverflow users - please help me create this "open source" attempt to re-create Cucumber for Perl! I would love to hear your comments and will accept any acceptable help.
The minimal source code is here:
http://github.com/kesor/p5-cucumber
Thank you for your attention.
For those not familiar with cucumber - please take just one small moment to take a look at this one small little page: http://cukes.info/
You might get good help on Perlmonks. That site is geared toward this sort of post, whereas Stackoverflow is more about direct and answerable questions.
Good luck, :)
There's a rather fuller implementation of Cucumber on Perl in the form of Test::BDD::Cucumber.
Can you review my Perl rewrite of
Cucumber?
Answer: Yes.
I've read through the github code you posted. It looks pretty good.
I'm curious about the following snippet from Parser::Parser.yp::ERROR. Why did you chose to use "and do {}" over "if( ){ }"? Style? scoping? other?
exists $parser->YYData->{ERRMSG}
and do {
print $parser->YYData->{ERRMSG};
delete $parser->YYData->{ERRMSG};
return;
};
I haven't used cucumber and am still trying to wrap my head around the usage model. How would someone go about verifying/running your calculator example?
If you plan to release your code to CPAN (and you should), then you'll want to bundle this git source into an installable tarball. You'll want to include one of the module installing tools: ExtUtils::MakeMaker, Module::Build, etc. I've recently started using Dist::Zilla, and am really happy with it. It got me over the activation energy of releasing my first cpan module.
20 second tour of Dist::Zilla:
download and install Dist::Zilla
and its requirements (there are
many, as it's a developer only tool)
create a dist.ini file in the top
level of your package ( 'dzil new MyPackage' )
run
'dzil test', 'dzil build', and 'dzil
release',to test, (build and test),
(build, test and release)
See the Dist::Zilla::Tutorial
Does Test::A8N fit your requirement?
If not there are plenty of other Test:: modules on CPAN which may do what you're after.