Is there a reason that the object TreeSet.apply method returns SortedSet and not TreeSet?
The following code won't compile in scala 2.7
val t:TreeSet[Int] = TreeSet(1,2,3)
After some struggling I managed to get boost smart pointers to build for Windows CE/Mobile at warning level 4.
I found the least-resistance-way to get rid of compile errors and warnings to be
#define BOOST_NO_MEMBER_TEMPLATES
What does it actually mean? Did I sell my soul to the devil? Will all hell break loose when I actually use the types?
Hey, I'm trying to compile a program with the MySQL C++ Connector but somehow I can't get the linking right.
The errors I get are:
mysql/lib/libmysqlcppconn.so: undefined reference to `std::ios_base::ios_base()@GLIBCPP_3.2'.... etc
locations:
libmysqlcppconn.so: mysql/lib/
libmysqlclient.so: /usr/lib/
I tried to follow the tutorial on mysql and some other pages but the results where the same, maybe I missed something.
I use this code to set my constants
// Constants.h
extern NSInteger const KNameIndex;
// Constants.m
NSInteger const KNameIndex = 0;
And in a switch statement within a file that imports the Constant.h file I have this:
switch (self.sectionFromParentTable) {
case KNameIndex:
self.types = self.facilityTypes;
break;
...
I get error at compile that read this: "error:case label does not reduce to an integer constant"
Any ideas what might be messed up?
This will not compile, stating "Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DateTime' and ''"
task.ActualEndDate = TextBoxActualEndDate.Text != "" ? DateTime.Parse(TextBoxActualEndDate.Text) : null;
This works just fine
if (TextBoxActualEndDate.Text != "")
task.ActualEndDate = DateTime.Parse(TextBoxActualEndDate.Text);
else
task.ActualEndDate = null;
I had posted this question on MSDN Forum
http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/thread/f00e3406-354d-4f54-acce-7b7f0ad4c90f
But I am not getting any response. Can you please help me. I am really stuck with this rather simple task.
My code seems to be correct but still I get the
A data source instance has not been supplied for the data source 'DataSet1_Order_Details'.
Sorry for the cross post...
I inherited a lib that compiled in x32 and I can't compile it to x64.
I think may be to envelop the lib with x32 process and then to run it in x64 process by calling to CreateProcess function win api.
then I will use shared memory for transfert the data between the API lib x32 interfaces to the x64 process.
Do I miss something here(its look very complicated)?
I am using asp.net pagemethods with jquery.... How to get the value of a session variable inside static method in c#...
protected void Page_Load(object sender, EventArgs e)
{
Session["UserName"] = "Pandiya";
}
[WebMethod]
public static string GetName()
{
string s = Session["UserName"].ToString();
return s;
}
when i compile this i get the error An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Session.get'
Any suggestion or any alternative...
I found a few examples suggesting Google AJAX APIs.
This link typifies the advice I have found so far: http://briancray.com/2009/05/29/find-web-visitors-location-javascript-google-api/
However, the location is often wrong with the Google APIs.
Other sites seem to know exactly which city I'm in, though, without me entering any information.
Suggestions? Is there something cross-browser (ignoring IE6) and reliable?
I'm getting a warning from GHC when I compile:
Warning: This binding for 'pats' shadows an existing binding in the definition of 'match_ignore_ancs'
Here's the function:
match_ignore_ancs (TextPat _ c) (Text t) = c t
match_ignore_ancs (TextPat _ _) (Element _ _ _) = False
match_ignore_ancs (ElemPat _ _ _) (Text t) = False
match_ignore_ancs (ElemPat _ c pats) (Element t avs xs) =
c t avs && match_pats pats xs
Any idea what this means and how I can fix it?
Cheers.
Is the performance hit with using MooseX::Declare mainly encountered while it does its initial magic (i.e. "translating" the definition into standard Perl syntax)? i.e. once the compile and initial runtime setup is complete, is there a performance difference in calling a MooseX::Declare method vs a method defined via traditional declaration?
Is it possible?
And if possible, is it possible to compile created in VS azure cloud project, having only .net35 and azure SDKs installed, also without VS?
I want to pass cookie contents from one domain to another. I don't want to get involved with actual cross-domain cookies. I was thinking of reading the cookie on the domain that sets it and then sending it as an encrypted JSON object to the domain that wants to use it.
Is there an accepted way of doing this and/or a toolkit that handles this sort of thing?
Thanks for any help or advice,
-=b
We are developing a project for a client that requires a rich text editor that supports both tables and "real" tabs for indentation. Of the editors we've looked at, both TinyMCE and FreeRichTextEditor are very close fits, but indenting with tab seems to only work in WebKit-based browsers.
Is there a (preferably free) cross-browser compatible rich text editor that supports both of these features, or a way of 'fixing' tab support in Trident and Mozilla-based browsers?
I was trying to compile a list of tools that a good Java Developer should be know of, and keep in his Developer Tool Belt
I can think of a few
Eclipse Development Environment - There are other IDEs, but you should know how Eclipse of eclipse.
JUnit - Java Unit Testing Framework. Of course there are others, but...
ANT
Maven
Soap UI - for testing SOAP endpoints
jrat - Java Profiler. I don't know of other good Java profilers
Java Decompiler - For when you just have to know what's in the jar file
Wondering how to accomplish setting the Style xaml with the code in F#. Im a C# project the buld options allow you to mark it as a resource cusomt build command of: MSBuild:Compile
I don't see it in the properties panel, so I tried to add it by hand to the project file myself...
Any ideas? The application loads - the custom control has no output (but the code executes).
Thanks
Recently I started to use Eclipse's java compiler, because it is significantly faster than standard javac. I was told that it's faster because it performs incremental compiling. But I'm still a bit unsure about this since I can't find any authoritative documentation about both - eclispse's and sun's - compilers "incremental feature". Is it true that Sun's compiler always compiles every source file and Eclipse's compiler compile only changed files and those that are affected by such a change?
I there, I have completed my project and I'm doing a university subject that involves unit testing. When I right click on my function, it only shows up an options to create a unit test when my CLR support setting is set to safe.
Problem is my project will not compile with this setting on?...it needs to be set to pure.
How can I work around this problem?
I'm trying to compile a list of Must have tools/extensions for developing MOSS 2007 to build a dev machine. The dev os is Window 2008 R2 64 bit.
MOSS 2007
Visual Studio 2008
Sharepoint Designer
WSS/Office Server SDK
Visual Studio 2008 Extensions for WSS 3.0
Is there any additional required/nice to have tools?
I'm trying divide two numbers in assembly. I'm working out of the Irvine assembly for intel computers book and I can't make division work for the life of me.
Here's my code
.code
main PROC
call division
exit
main ENDP
division PROC
mov eax, 4
mov ebx, 2
div ebx
call WriteDec
ret
divison ENDP
END main
Where WriteDec should write whatever number is in the eax register (should be set to the quotient after the division call). Instead everytime I run it visual studio crashes (the program does compile however).
Right, so if you have to decide on a server-side language for a distributed Linux-based server backend, would you choose:
PHP
Mono ASP.net
Java
As a C++ programmer, I'm thinking Java+Tomcat, but I'd love to hear experienced thoughts here, especially relating to debugging and IDE (likely Eclipse).
Also, please, it's not a flame question. I'm seeing excellent sites written in all, I'm just thinking about the compile/debug/release cycle.
Cheers,
Shane
I have a Java program source files, complete with its subdirectories. My problem is, how can I put all of this inside an IDE (ie. Netbeans, Eclipse) , so that I can easily, modify, compile and package it to become a *.jar file.
Hi,
I'm using Delphi 2010 to create a SOAP Server. The server is created as a ISAPI/NSAPI DLL. I then add an interface with some sample methods.
If I try and build this project I get this compiler error:
Building Project1.dproj (Debug configuration)
[DCC Fatal Error] Unit1.pas(6): F2063 Could not compile used unit 'msxml.pas'
Failed
Elapsed time: 00:00:01.5
Where should I start looking to resolve this issue?
Regards
AJ
I receive
TypeError: Can't convert 'float' object to str implicitly
while using
Gambler.pot += round(self.bet + self.money * 0.1)
where pot, bet, and money are all doubles (or at least are supposed to be). I'm not sure if this is yet another Eclipse thing, but how do I get the line to compile?
Code where bet and money are initialized:
money = 0
bet = 0