What are common or recommended ways to organize an application written in a functional language?
Along what lines would you decide to create separate files, modules, directories, etc.?
Hello !
I made some searches on Google, and I read some posts, articles and benchmarks about Ruby on Rails being slow and I am planning to build one website that will have a good amount of users inserting data and there will be some applications to process this data (maybe in Ruby, you can help me choosing the language).
What is the real performance of Ruby on Rails with large traffic ?
Thank you !
I'd want to know how to change to text of the UIAlertView appearing when I record a video with a UIImagePickerController and I reach the videoMaximumDuration.
If it is not possible to change the text of that UIAlertView, is it at least possible to display it in another language ?
Edit : the default text is "The maximum length for this video has been reached" with title "Video Recording Stopped".
Thank you,
aimak
i have made a firewall project in c language on linux operating system ,now i want to know how to make setup of this project so that i can run this application on other system by installing it ?please give an example...........
i have made a firewall project in c language on linux operating system ,now i want to know how to make setup of this project so that i can run this application on other system by installing it ?please give an example...........
Thanks in advance
Hi Experts,
I am looking for examples of share calendar and share event using google calendar API in any programming language java, .net, java script.
Thanks,
Aqeel
I don't like debugging in a debugger, because I think it is often below the abstraction layer of the programming language and it is often not reproducible. I favor usign unit tests when possible and I think they are a good way, but it is not always that easy to implement them. Do you know about any other alternative approaches to avoid the use of debugger?
I work a lot with Wordpress and I'm trying to customize some of my themes, all of which are written in PHP. I've been trying to learn this language for a little while, but I'm not an experienced coder (My knowledge only includes HTML with some CSS). Can you recommend a guide/book/tutorial/etc that would work for a beginner?
I've seen some discussion on why c# does not implement multiple inheritance but very little as to why it isn't supported in vb. I understand that both c# and vb are compiled down to intermediary language and so they both need to share similar restrictions.
The lack of multiple inheritance in VB seems to have been given as one reason for the lack of the feature in dot net. Does anyone know why VB doesn't support multiple inheritance? I'm hoping for a bit of history lesson and discussion on why this was never considered for VB.
Hello,
I would like to iterate through a table and break it into relvant parts based on the number of visits. I have tried several things but cannot seem to get it to work.
I have included the code.
for(i in 1:6){
paste("testing.visit",i,"\n",sep="") <- subset(testing,visit_no==2)
}
But I get the following error.
Error in paste("testing.visit", i, "\n", sep = "") <- subset(testing, :
target of assignment expands to non-language object
Thank you,
Brandon
Let's say we have a memory-intensive class like an Image, with chainable methods like Resize() and ConvertTo().
If this class is immutable, won't it take a huge amount of memory when I start doing things like i.Resize(500, 800).Rotate(90).ConvertTo(Gif), compared to a mutable one which modifies itself? How to handle a situation like this in a functional language?
How can I measure programmatically (not query the OS, but measure) the size and order of associativity of L1 and L2 caches (data caches)?
Assumptions about system:
It has L1 and L2 cache (may be L3 too, may be cache sharing),
It may have a hardware prefetch unit (just like P4+),
It has a stable clocksource (tickcounter or good HPET for gettimeofday).
There are no assumptions about OS (it can be Linux, Windows, or something non-standard), and we can't use POSIX queries.
Language is C. And compiler optimizations may be disabled.
I've been checking out the Nitrogen Project which is supposed to be the most mature web development framework for Erlang.
Erlang, as a language, is extremely impressive. However, with regards to Nitrogen, what I am not too keen about is using Erlang's rather uncommon syntax (unless you're native in PROLOG) to build UIs.
What is your experience with it as opposed to other mainstream web frameworks such as Django or Rails?
Hello all ,
i am using ResourceBundle and i want to give the user an option
to select a language for the GUI.
i want to get a list of all resource files that are under a specific package.
i don't know what resource i will have since this application based on plug-ins
is there an option to ask from java to search all available resources under a package ?
(if no i guess the plug-in should give all available local for it)
thank you all
I would like to write myself a pretty printer for java using bison and flex. I have written a pretty printer for a script language, but I was only writing visitors, which made the printing. How can I turn a program using my formal grammar into a tree of nodes (made using C++ classes), that afterwards I could visit using my visitor? Maybe you could give me some link with an example of this? What i need to put into flex/bison files?
Hi, I am trying get float value with UITextField.
On the simulator V3.1.3 in English, I have to use '.' to separate my float values.
But on my Iphone 3GS V3.1.3 in French, I have to use ',' to separate them.
If I use '.' on my Iphone 3GS, my float is troncated : 3.22222 = 3.0000000
Is there a solution to detect the language version and use the good separator automaticaly?
Hi
I have written a pgsql function along the lines of what's shown below. How can I get rid of the $1, $2, etc. and replace them with the real argument names to make the function code more readable?
Regards
Peter
CREATE OR REPLACE FUNCTION InsertUser (
UserID UUID,
FirstName CHAR(10),
Surname VARCHAR(75),
Email VARCHAR(75)
)
RETURNS void
AS
$$
INSERT INTO "User" (userid,firstname,surname,email)
VALUES ($1,$2,$3,$4)
$$
LANGUAGE SQL;
Hey guys,
I've got a pretty much vanilla install of SOLR 1.4 apart from a few small config and schema changes.
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<!-- default values for query parameters -->
<lst name="defaults">
<str name="defType">dismax</str>
<str name="echoParams">explicit</str>
<str name="qf">
text
</str>
<str name="spellcheck.dictionary">default</str>
<str name="spellcheck.onlyMorePopular">false</str>
<str name="spellcheck.extendedResults">false</str>
<str name="spellcheck.count">1</str>
</lst>
</requestHandler>
The main field type I'm using for Indexing is this:
<fieldType name="textNoHTML" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<charFilter class="solr.HTMLStripCharFilterFactory" />
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
</analyzer>
</fieldType>
now, when I perform a search using
"q=search+term&hl=on"
I get highlighting, and nice accurate scores.
BUT, for wildcard, I'm assuming you need to use "q.alt"? Is that true? If so my query looks like this:
"q.alt=search*&hl=on"
When I use the above query, highlighting doesn't work, and all the scores are "1.0".
What am I doing wrong? is what I want possible without bypassing some of the really cool SOLR optimizations.
cheers!
Been hit with some nasty javascript malware on my site. I know that each offending code block starts with the following:
<script language=javascript><!--
(function()
and ends with
</script>
I'd like to remove the nasty bits via regex on windows, using some sort of freeware regex replacement tool. Any suggestions here? Thank You much.
I am in a need of programatically convert an Word-XML file into a RTF file. It has become a requirement, because of some third party libraries. Any API/Library that can do that?
Actually the language is not a problem because I just need to work done. But Java, .NET languages or Python are preferred.
I have an application that takes voltages and temperatures as analog inputs and does some processing using an algorithm which involves signal processing such as low-pass filtering,
exponential smoothing, and other steps which might typically be done in a high-level programming language such as C or C++.
I'm curious how I could perform these same steps using a PLC, and in particular, the Allen-Bradley Control-Logix system? It seems to me that the instruction set with ladder logic is too limited for this. Could I perform this using structured text?
The question might look subjective but considering Microsoft:
Owns the Xbox 360 platform
Owns the Windows platform
Have their own game studio (MGS)
Own other 3rd party developers
Is a major publisher
makes me wonder why Microsoft doesn't push their flagship language to prove that not only you can cut down significant development time, and therefore money, but also show that you can release a next gen title where the real time interactivity doesn't suffer.
If Microsoft were to do this once, I am sure many AAA developers would jump on that wagon too.
I was wondering what language to use when talking about a function that takes in a specific object, acts on it and returns something else. Clearly they're functions, but I was wondering if there's a more specific term.
A couple examples of Python built-in functions that fit this spec are: 'len', 'dir', 'vars'
I thought it was 'predicate', but apparently that's specific to functions that return a boolean value.
Hello, is there a way to hack bugs related to adding an AWT component (in my case a PApplet, so a processing language sketch) inside a JInternalFrame?
It works but not as intended, since it flickers and dragging the frame causes repaint issues.. reading around it seems that, althrough it's possible to mix heavyweight (AWT) and lightweight (Swing) components some problems seem to be unavoidable.. is it true?
Thanks!
First time I saw a class Kase, I was scratching my head.
My guess it's something to do with a conflict of the keyboard case. BTW, since when, for which language(S), it becomes a norm?