I keep hearing how amazing Clojure is, but after trying it out for some time I am not understanding what they're raving about.
I'd love to hear what makes clojure great.
Hi,
I have a small UIView that should appear always in the center of the screen. This works great for portrait mode but does not in landscape.
To draw the UIView I use:
myView.frame = CGRectMake((visibleArea.size.width - MY_VIEW_WIDTH) / 2, (visibleArea.size.height - MY_VIEW_HEIGHT) / 2, MY_VIEW_WIDTH, MY_VIEW_HEIGHT);
myView.autoresizingMask = (
UIViewAutoresizingFlexibleTopMargin |
UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleLeftMargin |
UIViewAutoresizingFlexibleRightMargin
);
Any ideas what might be missing?
Is there a way to do an "insert ignore" in cake without using a model-query function?
$this->Model->save(array(
'id' => NULL,
'guid' => $guid,
'name' => $name,
));
Generates error:
Warning (512): SQL Error: 1062: Duplicate entry 'GUID.....' for key 'unique_guid' [CORE/cake/libs/model/datasources/dbo_source.php, line 524]
It would be great to be able to set some flag or option that says "don't care"
Ive been having great frustration for hours now trying to remember my AJAX!
Im trying to write a function which will be called that will simply POST 4 variables to a given URL, written in javascript and not jquery such as:
function postVariables(URL, var1, var2, var3, var4)
{
......
return true;
}
Can anyone help?
I've tried using the following commands to download the ctrl alt del comics.
$ for filename in $(seq 20021023 20100503); do wget http://www.ctrlaltdel-online.com/comics/"$filename".jpg; done
I get the following error code, "bash: syntax error near unexpected token 'do'"
I've also tried using cURL, using this command,
curl http://ctrlaltdel-online.com/comics[20021023..20100503].jpg
I get the following error code, "curl: (3) [globbing] error: bad range specification after pos 37"
Any help would be great.
Hello,
Is it possible to use the Open XML sdk to manipulate parts of document which is currently open in the ofice app (word/ppt). I know the easiest thing is to use VSTO, but its slow and would involve clipboard use to insert elements, the OXML sdk is direct and simpler.
If somebody could post some code sample that would be great.
Thanks in advance
Rakesh
Hi,
I've been reading about SharePoint 2010's Claims based authentication support. At this point, my shop has several clients who may not upgrade for a while, however. In making our other services claims compatible, we're wondering if claims based authentication is realistic without a great deal of reworking of existing code in our 2007 installations?
I know the window ID, and I'm trying stuff like:
mplayer -ontop -slave -quiet -wid 471165040 /t.mov
mplayer -ontop -slave -quiet --window=471165040 /t.mov
but nothing is working. (I know the window ID is correct)
Otherwise, mplayer CLI is working great in its own window, just can't get it to play embedded.
Can anyone point me to a syntax example of embedding mplayer in an app in OS X?
thanks!
I have FckEditor working great on a asp.net 3.5 website, but on another one it throws me "Image source URL is missing" after I upload an image to the server(in the Upload tab) and then I click the OK button.
Could anybody help me with this?
Hi,
some short and probably stupid questions about PBS:
1- I submit jobs using
qsub job_file
is it possible to submit a (sub)job inside a job file?
2- I have the following script:
qsub job_a
qsub job_b
For launching job_b, it would be great to have before the results of job_a finished. Is it possible to put some kind of barrier or some otehr workaround so job_b is not launched until job_a finished?
Thanks
I have a NetBeans project and the Mercurial repository is in the project root. I would like it to ignore everything except the contents of the "src" and "test" folders, and .hgignore itself.
I'm not familiar with regular expressions and can't come up with one that will do that.
The ones I tried:
(?!src/.*)
(?!test/.*)
(?!^.hgignore)
(?!src/.|test/.|.hgignore)
These seem to ignore everything, I can't figure out why.
Any advice would be great.
From a data frame with timestamped rows (strptime results), what is the best method for aggregating statistics for intervals?
Intervals could be an hour, a day, etc.
I've found the aggregate function, but that doesn't help with assigning each row to an interval. I'm planning on adding a column to the data frame that denotes interval and using that with aggregate, but if there's a better solution it'd be great to hear it.
Thanks for any pointers!
Hi there,
does anyone know if its possible to restyle a window in wpf. Or even better any tutorials or samples?
Basically i would like to change the minimize and maximize buttons - oh and the close button to be slightly bigger....
I have expression blend....
Is this possible?
I saw some samples in infragistics sample apps which have some great looking forms and as far as i can tell it doesn't use any custom wpf controls...
Any ideas really appreciated
Hi, I understand emacs lisp is great for handling dates and times, but does it have a function to convert strings to internal representation of integers using formats like %Y, %m, %d, %H, %M, %S, and so on? And also, in the emacs reference manual, it says that times are lists of two or three integers, but is there a more formal specification or description? ~ Thanks ~
I know of NLTK. What else is there that complements this library? Or can do AI?
NLTK is great because I can learn it with the book that it came out.
Is there a library for AI just like this?
I always wondered why Microsoft chose such a strange, search-engine-unfriendly name for such a great platform. Couldn't they have come up with something better?
Apparently the codename was NGWS:
Microsoft started development on the
.NET Framework in the late 1990s
originally under the name of Next
Generation Windows Services (NGWS). [Wikipedia]
Does anyone know why they chose the name .NET?
I have been using XSL-FO and FOP Engine to generate PDF documents for required data. This works great, but lately I have seen some limitations in FOP especially when it comes to allowing user to enter text in a html editor which can be transformed to XSL-FO and given to FOP driver.
This brought me to point to ask this large community of well informed individuals about what are possible Open Source or even non open source libraries to generate PDF documents in Java?
I have a .NET C# winforms application which works great on my machine, but if I try to run it on another machine, it doesn't start up. No error message, no crash message, no window - nothing.
I've found that this always happens when a referenced assembly is missing. I guess this is .NET's general behavior and not specific to my app, is it?
Is there any way to configure .NET or my application such that it spits out a "referenced assembly missing" like error message in such cases?
this may be more appropriate for math overflow, but nevertheless:
Given 3d structure (for example molecule), what is a good approach/algorithm to find symmetry (rotational/reflection/inversion/etc.)?
I came up with brute force naive algorithm, but it seems there should be better approach.
I am not so much interested in genetic algorithms as I would like best symmetry rather then almost the best symmetry
link to website/paper would be great. thanks
Hi
i am looking a simple(implements only base features like add articles and publish news) cms based on asp.net mvc. It's must be a simple because i am a newbie in asp.net and mvc and i want to use that cms for studing purpose. That's why it would be great if cms has been writed in a good code style practice.
I have this table structure and would like to map it using Fluent Hibernate (subclass if possible). I cannot change the structure because the database has too many records and might cause major applications rework. It would be easier if the Id from Party table was a foreign key in person and organization table, but in the particular scenario the database has person and organization key as a foreign key in party table. Any help would be great.
Party table
Id
PersonId
OrganizationId
Person table
Id
FName
LName
Organization table
Id
OrgName
OrgDescription
I've seen a little buzz on ASP.NET Web Forms MVP project, but where can I get resources?
http://webformsmvp.com is pretty much stubbed out for now. This appears to be a compelling refresh of the Web Forms paradigm and bring into the fold things that make ASP.NET MVC great. I hear it's going to be put out there at MIX10 this week, but anyone have any useful sites/references?
I understand the basic concept of stack and heap but great if any1 can solve following confusions:
Is there a single stack for entire application process or for each thread starting in a project a new stack is created?
Is there a single Heap for entire application process or for each thread starting in a project a new stack is created?
If Stack are created for each thread, then how process manage sequential flow of threads (and hence stacks)
Hi,
Can anyone recommend a great CodeIgniter Registration/Login/Logout library for beginners to web development?
I read on stackoverflow that Redux was highly recommended at one time. What is the current recommendation?
I am getting the following error and do not know how to fix it....any help would be great...Thanks
Exception in thread "main" java.lang.NullPointerException
at Polynomial.add(Polynomial.java:115)
at PolyTest.main(PolyTest.java:18)