Hello,
I get input (x) from user, convert it to Int by let y = (read x)::Int and then I would like the function to behave in a special way if user gave nothing (empty string).
-- In this place I would like to handle situation in which user
-- gave empty string as argument
-- this doesnt work :/
yearFilter [] y = True
--This works fine as far as y is integer
yearFilter x y | x == (objectYear y) = True
| otherwise = False
Thanks for help,
Bye
I want to make a component that includes a list of integers as one of its serialized properties. I know I can't declare a TList<integer> as a published property, because it doesn't descend from TPersistent. I've read that you can define "fake" published properties if you override DefineProperties, but I'm not quite sure how that works, especially when it comes to creating a fake property that's a list, not a single value.
Can someone point me in the right direction?
I have been pondering why it is recommended that we should not release managed resources inside finalize.
If you see the code example at http://msdn.microsoft.com/en-us/library/system.gc.suppressfinalize.aspx , and search for string "Dispose(bool disposing) executes in two distinct scenarios" and read that comment, you will understand what I mean.
Only possibility I can think of is that it probably has something to do with the fact that it is not possible to predict when finalizer will get called.
Does anyone know the right answer ?
thanks,
mishal
Hi!
Which programming language to use for serious web project (price catalogue)?
After some time of studying web PHP frameworks i got that:
Codeigniter: good, but when i read about authorization (that 20% users can login correctly without party solutions), i am disappointed.
Zend Framework: more serious, but raises questions about speed and i found only few examples.
PHP: long time to understand PHP frameworks functionality
I just read a pretty interesting article on how android (and i assume other OSs) work when low on memory. How is this done theoretically? Is it similar to Java's object serialization?
I understand that Haskell's filter is a high order function (meaning a function that takes another function as a parameter) that goes through a list checking which element fulfills certain boolean condition.
I don't quite understand its definition:
filter:: (a->Bool)->[a]->[a]
filter p [] = []
filter p (x:y) | p x = x:filter p y | otherwise =
filter p y
I understand that if I pass an empty list to the function, it would just return an empty list, but how do I read the last two lines?
I have a binary tree of functions and terminal values. I'd like to print this tree as a lisp statement would be represented!
For example, a tree with just a root of "+" and terminals of "2" and 4" would read (+ (2 4)).
I'd like to read about how people approach the real-world software lifecycle from start to finish. Most books seem to focus on either design or implementation. Has anyone heard of a book that describes a real-world project from design to implementation?
Can somebody point me at a good tutorial for py2exe? I've read over the official tutorial but it is rather light on details, compared to all the options one can use when building an executable out of a python script. For the record, my python script uses Python 2.5.2, wxPython/wxWidgets 2.8 and MySQLdb 1.2.2; so if you have specific tips for py2exe with those packages that would be much appreciated (and yes, I've seen the Py2EXE and wxPython page).
I am trying to unit test a lot of my MVC controllers, but unfortunately it keeps failing because it needs a lot of settings from the web.config..
Which I copied over but does not read it, what I'm needing is the membership and rolemanager but I can't just add it to the app.config either, which I've been able to get the connection strings and application settings to work with..
Any idea how to get the web.config to work with MSTest?
So I need Some open source project with API
capable of reading live video stream (stream codec can be any API can read - I can provide with practically any live streamable one)
giving me last image data for some processing (like brightness\contrast or more exotic filtering)
Being able to recieve data I've changed and starting to stream that data on to some http://localhost:port/ in some format
I need it to be easily acsessible from C# (better written on it)
If I were to build a newsletter emailing system, I will need to be able to generate reports on how many emails bounced, flagged as spam, unsubscribed, read vs. unread, click through rates etc....
So how do you keep track of user activity after the email has been sent? Am I right in assuming that you CAN NOT embed javascript code into emails to monitor user activity? How else do I gather data for my reports?
Is it possible to configure CruiseControl.NET to send an email to the user(s) that did modifications to a broken build by mapping their SVN username to the corresponding Active-Directory alias (hence retrieving the correct, updated email address).
Our SVN server is set-up to allow users of a certain Active-Directory group to read and commit changes: I don't want to have to maintain the CruiseControl.NET config every time a user gets added to our Programmers group in Active-Directory.
Thanks a lot!
Hi,
in words, can someone post directions towards finding the 'maximal' independent set in a simple graph?
I read up something from ETH site which said one can find such in O(n) by simply picking a random vertex v and than scanning the rest and attempting to find if there's an edge from v to the rest.
Thanks
Hi,
How I can create test for testing multi users sessions in the same time?
(PHPUnit+ZendFramework)
basic tests examples that I thinking to do (I am not QA - I soory if i wrong):
users logins in the same time
users buy process - only 1 user can write and the rest only read.
How much session the server can handle in the same time.
etc..
Thanks
I need to write a string (URL) to the file system in the install override method in my Setup project custom action, and be able to read it at Uninstall. How can achieve this?
Thanks.
call.addParameter("String_1", QNAME_TYPE_STRING,ParameterMode.IN);
I want to invoke web service and I'm lost in the request/response thing.
I have WSDL and I wonder how I can put the requested arguments and read the response.
What does "String_1" means? its name of what?
Please help me,
Thank you in advance
what is the difference between loadwith and associatewith. From the articles i read it seems that loadwith is used to load addition data (eg all orders for the customers). While AssociateWith is used to filter data.
Is that a correct understanding? Also it will be nice if someone can explain this with an example based explanation.
I have an application that has lessons on British accent. This is for people who already know how to read and speak English. Is there a need to internationalize this app?
I am working to make a basic file database, but I couldn't find the true codes.
Can anyone help me to save an exe file to sql database after read, download and use when I need it? With Delphi
What do I have to do to disable all system pop-ups in WinCE 6 R2?
I read Mike Hall's post about Kiosk mode [1] but that's not going to work for us because we still want the standard graphical Explorer shell. We plan on hiding the taskbar and start menu and clearing icons off the desktop but need an easy way to make sure that no pop-ups of any type will ever show up on top of our app.
Thanks,
Ben
http://blogs.msdn.com/mikehall/archive/2007/06/01/kiosk-mode-for-ce-6-0.aspx
Supposing that I have millions of user profiles, with hundreds of fields (name, gender, preferred pet and so on...).
With database would You choose?
Suppose that You have a Facebook like load.
Speed is a must.
Open Source preferred.
I've read a lot about Cassandra, HBase, Mongo, Mysql... I just can't decide.....
Hi,
I've read several posts in the internet about that Silverlight only supports GET and POST, and that the most of the web browsers too. Is this true? has it changed lately? I'm developing a RESTful web service for a Silverlight application, still in early stage, and I'd like to know if I should use just POST and GET, or otherwise I could use PUT and delete.
Cheers
I need to write an user menu for an embedded device (mips linux). The menu has to be accessible from network (web page - AJAX?) and it has to be able to read/write hardware settings. What would be the easiest way to implement such an app/server? Where do I start?
PS: c/c++ preferred.
PS 2: I have limited resources