Hi,
I am working on a web app that allows users to create dynamic PDF files based on what they enter into a form (it is not very structured data).
The idea is that User 1 enters several words (arbitrary # of words, practically capped of course), for example:
A B C D E
There is no such string in the database, so I was thinking:
Store this…
Hello,
I'm trying to understand role based security and I have the following method:
[PrincipalPermission(SecurityAction.Demand, Role = "Administrators")]
static void Test()
{
//administratos only can call this code
}
What I wanna do is that only users that are members of the Windows Administrators group can call…
Given the following simple BST definition:
data Tree x = Empty | Leaf x | Node x (Tree x) (Tree x)
deriving (Show, Eq)
inOrder :: Tree x -> [x]
inOrder Empty = []
inOrder (Leaf x) = [x]
inOrder (Node root left right) = inOrder left ++ [root] ++ inOrder right
I'd like to write an in-order…
I am having trouble displaying the jQuery datepicker as shown here:
http://jqueryui.com/demos/datepicker/
I believe I downloaded all of the proper files, but to be certain, I started from scratch and ripped the demo site. Not all of it, but what I believed to be the important parts. The result is no datepicker to be shown and no…
Givens:
One SQL Server is named: DevServerA
Another is named: DevServerB\2K5
Problem:
From DevServerA, how can I write a query that references DevServerB\2K5?
I tried a sample, dummy query (running it from DevServerA):
SELECT TOP 1 *
FROM DevServerB\2K5.master.sys.tables
And I get the error:
Msg 102, Level 15, State…
So I thought I had finally got everything setup on Windows ... then ran into this issue.
Current setup
URL: ssh://user@host:port/myapp.git
Already run Putty - and can connect using valid .ppk keys through the ~/.ssh/authorized_keys direct. In Git and TortoiseGIT - I set both to use "plink.exe".
Putty works fine - no…
I'm trying to process a delicious rss feed via python. Here's a sample:
...
<item rdf:about="http://weblist.me/">
<title>WebList - The Place To Find The Best List On The Web</title>
<dc:date>2009-12-24T17:46:14Z</dc:date>
<link>http://weblist.me/</link>
...
…
I'm trying to pass a quoted string through BUILD_COMMAND in ExternalProject_Add() and every way I try it's getting mangled. The code is this:
set (mylibs "-lmylib -lmylib2")
ExternalProject_Add(Foo
URL http://foo
BUILD_COMMAND make SOME_LIB=${mylibs}
BUILD_IN_SOURCE 1
...)
I've tried…
I'd like to determine if my web app is read-heavy, write-heavy, or somewhere in between. I could take a guess, but I want proof.
Is there a query I could run in Sql Server 2005 that would tell me the overall read/write ratio? Are there any caveats I should be aware of?
Perhaps it can be found in a DMV query, or…
I have the following query:
select column_name, count(column_name)
from table
group by column_name
having count(column_name) > 1;
What would be the difference if I replaced all calls to count(column_name) to count(*)?
This question was inspired by a previous one.
Edit:
To clarify the accepted answer (and…
The canonical implementation of length :: [a] -> Int is:
length [] = 0
length (x:xs) = 1 + length xs
which is very beautiful but suffers from stack overflow as it uses linear space.
The tail-recursive version:
length xs = length' xs 0
where length' [] n = n
length' (x:xs) n = length xs (n + 1)
…
What parts of a Grails application need to be stored in source-control? Some obvious parts that are needed:
grails-app directory
test directory
web-app directory
Now we reach questions like:
If we use a Grails plug-in (like gldapo), do we need to check in that plugin?
Do Grails plugins install in the…
I'm going through the Beginning iPhone Development book & stuck in chapter 9. I've spent a few hours trying to debug this error w/o avail:
2010-05-01 19:27:51.361 Nav2[4113:20b] *** Assertion failure in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:],…
I have a method that's about 10 lines of code. I want to create more methods that do the exact same thing except for a calculation that's going to change one line of code. This is a perfect application for passing in a function pointer to replace that one line, but…
How do access a secure website within a sharepoint webpart? The following code works fine as a console application but if you run it in a webpart, you will get a access violation
WebRequest request = WebRequest.Create("https://somesecuresite.com");
WebResponse…
Hi thank you in advance for any help, I'm trying to build a simple program to learn GUI's but when I run the code below my JTextFields all show as a slit thats not large enough for even one character.
cant post an image but it would look similar to: Label [| …
Hello guys,
I am sending a SOAP request to my server and getting the response back. sample of the response string is shown below:
<?xml version = '1.0' ?>
<env:Envelope xmlns:env=http:////www.w3.org/2003/05/soap-envelop
.
..
..
<env:Body>
…
How can I query the read/write ratio in Sql Server 2005? Are there any caveats I should be aware of?
Perhaps it can be found in a DMV query, a standard report, a custom report (i.e the Performance Dashboard), or examining a Sql Profiler trace. I'm not sure…
Does anyone know of a complete Haskore example that will take a small example and output a MIDI file? I'm looking for a starting point to start using Haskore and Google isn't turning up much.
Thanks!
I'm having real difficulty with a query involving 3 tables. I need to get the 3 newest users per department grouped by department names. The groups should be sorted by the users.dateadded so the department with the newest activity is first. The users can…
I am trying to develop an application that uses a number of images that are stored in a seperate remote file location. The file-paths to the UI elements are stored within the Application Settings. Although I understand how to access and use the file-path…
So let me preface this by saying that I'm not an SQL wizard by any means. What I want to do is simple as a concept, but has presented me with a small challenge when trying to minimize the amount of database queries I'm performing.
Let's say I have a…