Is there any good overview of the JFace label provider framework? The JFace snippets doesn't really explain the relationship between the different generations (pre-3.2, 3.3, 3.4, etc.)
func say(name:String, msg:String) {
println("\(name) say \(msg)")
}
say("Henry","Hi,Swift") <---- error because missing argument label 'msg' in call
I need to use
say("Henry",msg:"Hi,Swift")
Why ? If I put more than two var in func so that I need to write var name instead of first var when I call this func
It's really trouble, and I don't see any explain in iBook Swift tutorial.
Can someone give me a help ... Thanks
Why would bitmap outperform vector?
My Flash is for a large Kiosk, with rich media requirements and must function accurately as a counter. I want to keep everything vector for scalability.
When I did a simple FPS test, I noticed my Bitmap version performed perfectly, and the all vector file was noticeably slower.
PLEASE EXPLAIN
• vector performance• what graphic standards I can apply• solutions for using vector
KIOSK TEST ANIMATION
RESULTS
• only text and bitmap perform well, not vector
• background and clouds OK, but more layers slow it down
I'm new to mocks and am deciding on a mock framework. The Moq home quotes
Currently, it's the only mocking
library that goes against the
generalized and somewhat unintuitive
(especially for novices) Record/Reply
approach from all other frameworks.
Can anyone explain simply what the Record/Replay approach is and how Moq differs? What are the pros and cons of each especially from the point of deciding a framework?
Thanks.
Why there is a appname.vshost.exe file generated for the release version of my application? I might add that I'm using an external dll library and some unsafe code.
What's even more interesting, my application launched from Release folder does not work correctly (it works OK when launched from Debug folder).
It's bit hard to explain - feel free to ask if you need more info.
New to EJB3, please help/explain.
Inside a session bean I declare an EntityManager as follow
@PersistenceContext(unitName="ScheduleUnit")
private EntityManager em;
and this works. But when I do this
private EntityManager em;
private EntityManagerFactory emf;
public void myFunction() {
emf = Persistence.createEntityManagerFactory("ScheduleUnit");
em = emf.createEntityManager();
}
I get the following error:
A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property
I hear much talk about memcached, but when briefly studied on it, I couldn't understand what advantages I can take instead of using the good old Dictionary to cache my data in my applications.
Can someone explain me?
I ve made this simple drawing to explain my needs:
Plain Text in C#
I can only find rather "complex" functions, like RTF Text box etc. I couldn't figure out how to display "plain text" in a Form1.cs
(I do not talk about HTML to WinForm)
(Search did not return any useful results)
I can't for the life of me find any decent explanation of the "[file]: needs update" message that git sometimes spits out from time to time. Even the official git FAQ has explaining this marked as a TODO. If someone could explain A) what it means; and B) how to fix it, I would be extremely grateful.
Can anyone can tell me the N-tier Structure and their tiers used in Web Programming?
Primarily, in 3 tier structure one is presentation layer, another is business logic layer and last is database access layer.
But for N-tier or 4 tier structure what are the layers and what sort of functions do they hold on them? Please explain me with a brief example of each.
I have two sprites. Both should animate. But sprite1 should animate first and after completion of the animation of sprite1, sprite2 animation should start. Can I say to a sprite to run from a certain time and end at a certain time ? This is my problems. Please explain how can I do that.
Thank You.
Anybody please help me to interpret the following result generated in weka for classification using naive bayes.....Please explain clearly what is this Normal Distribution , Mean , StandardDev , WeightSum and Precision.Please help me.Am new in weka.
**
Naive Bayes Classifier
Class Normal: Prior probability = 0.5
1374195_at: Normal Distribution. Mean = 218.06 StandardDev = 6.0572 WeightSum = 3 Precision = 36.34333334
1373315_at: Normal Distribution. Mean = 1142.58 StandardDev = 21.1589 WeightSum = 3 Precision = 126.95333339999999
I see a description of what UITableViewCellSeparatorStyleSingleLineEtched looks like in Apple's Class Reference, and can see it by running the application. But I can't find any mention of when it's appropriate to use UITableViewCellSeparatorStyleSingleLineEtched instead of UITableViewCellSeparatorStyleSingleLine.
In other words, what does this etched line mean to the user? Can anyone explain?
I ask this because need to understand/explain better with examples.
clasical examples like: an Article can be published in multiple Publication objects, and a Publication has multiple Article objects. (source)
I see is usefull for web2.0 for sharing features.
Hi,
I came across PECS (short for Producer extends and Consumer super) while reading on Generics.
Can someone explain me how to use PECS to resolve confusion between extends and super?
Thanks in advance !
I'm reading about functional programming (in academic purpose) and I've noticed that Pattern Matching is mentioned in many articles as one of the core features of functional languages.
Can someone explain for a java/c++/javascript developer what does it mean?
I am trying to load an XML file from a different domain name as a string. All I want is an array of the text within the < title < /title tags of the xml file, so I am thinking since I am using php4 the easiest way would be to do a regex on it to get them. Can someone explain how to load the XML as a string? Thanks!
Hi all!
If you are on Mac OS X 10.6, and you are familiar with character encoding AND the terminal please do this:
Open a terminal and type the following commands:
echo sørensen test.txt
iconv -f UTF8 -t ISO-8859-1 test.txt
You will see the output: "sørensen". Can somebody explain what is going on?
Hi, All!
I have some Qt application with QPlainTextEdit in Tab widget. When try to make a pointer on it
QPlainTextEdit *w = (QPlainTextEdit*)ui->tabWidget->widget(0)
and call a document() method
w->document()
I get a segfault.
But if i call document directly, e.g. ui-mainEdit-document(), then everything works fine.
Can anybody explain me why it happens?
Hello.
SpeechSynthesizer allows peaking different voices by using
SelectVoiceByHints(VoiceGender, VoiceAge)function (as I understood). But no customization happens if I change the gender and voice age.
Can you explain why? And if I'm doing something wrong, what is correct way to do that?
Thank you.
Hey guys,
Can someone explain to me what is the difference between ticking "copy items into destination..." and not ticking this option ?
Thank you.
Gotye.
Hello,
Can anyone explain me how can I detect a selection in a table view Header view like in tableView:didSelectRowAtIndexPath: ? It would be very useful for me. I've defined the header as UITableCellView so I could attach a UISwitch as an accessory view, and it worked great but now I can't detect the changes made in the switch. Any suggestions?
How can I make Grizzly HTTP server allow JaaS for simple HTTP AUTH?
I can't see any code/sample out there: There's another post here in StackOverflow that directly assumes that jaaS is available in Grizzly, but doesn't explain how to add it.
Would someone be so kind as to explain what is happening with the statement below. I an a bit puzzeled by <MKAnnotation> between id and mp, it not something I have seen before.
id <MKAnnotation> mp = [annotationView annotation];
many thanks
gary