How would I create a truly random number using C++? I've heard that one should use the time as a seed, but I'm not sure how to do that with the correct syntax. How would I do this?
I realise it is possible to create a crosstab within sqlite, but is it possible to dynamically determine the relevant categories/columns at runtime rather than hardcoding them?
Given the following example, it can get rather tedious ...
SELECT
shop_id,
sum(CASE WHEN product = 'Fiesta' THEN units END) as Fiesta,
sum(CASE WHEN product = 'Focus' THEN units END) as Focus,
sum(CASE WHEN product = 'Puma' THEN units END) as Puma,
sum(units) AS total
FROM sales
GROUP BY shop_id
I managed to do this in SQLServer in a stored proceedure before and wondered if there was anything equivalent.
I need a very special component written in ActionScript 3. It is a rectangle filled with a bitmap. The bitmap is loaded from an external URL based on some programmed rules. The textured rectangle is then animated using Flash CS. Animation is performed using rotate/translate/scale/skew tools.
How to create such a component and add it to Flash CS library?
We are looking for a .NET PDF creator. It needs to be .NET, so we can just copy the file(s) onto the server, not having to install anything.
We only need to create a PDF with some text and images and a heading, that's all.
Anyone know a good one? We are happy to buy if there is a good one that is easy to use.
Thanks in advance.
Hi,
I have a folder with numerous files that I need to copy to multiple PC's on a network. I thought if the folder didn't exist it would automatically create it. Here's what I have...
copy "C:\Documents and Settings\follag\Desktop\Music" "\PC NAME\c$\Documents and Settings\All Users\Desktop\Music"
When I look at the destinatin PC, it is not creating the folder and copying the files. I'm new to this whole batch files and would appreciate any help.
Thanks,
Greg
If I insert a hyperlink using the insert function of Buzz, the link I posted will be parsed automatically, and that's not what I want.
Can I create Hyperlink text manually? using something like ?
thanks a lot for your help.
Hi,
I am building a windows application that upload documents to sharepoint document library and modify its column.
My problem is that i'm uploading a file to document libary that has a people editor column.
To solve my problem I want to pop up a windows form containing a people editor so users can pick the users or groups to fill in the column.
How can i create a people editor like the one in sharepoint?
How to create custom javadoc tags such as @pre / @post... I found some links that explain it but i haven had luck with them, i dont know if that am already tired but i can figure where to put it. these are some of the links
http://www.developer.com/java/other/article.php/3085991/Javadoc-Programming.html
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html
I'm sorry to ask to be spoon fed but am at the stage where i only see black dots on the screen :\
Thanks a bunch
I came across the following http://ckeditor.com/demo , and was wondering if anyone had a basic tutorial how to implement this (or perhaps what key search terms I should use)?
Is this just a heavily modified TextField, or have they somehow managed to create a completely new TextField from scratch?
I tried googling this many times, and I always get pages relating to customizing the built-in TextField with CSS etc.
How to create simple web site with python?
I mean really simple, f.ex, you see text "Hello World", and there are button "submit", which (onClick) will show ajax box "submit successful".
I want to start develop some stuff with Python, and I don't know where to start :)
I want to create a action filter that will check the url, and if its not using Ssl, redirect to the same page but with SSL.
What is the best way of doing this?
Should I just check the RawUrl, and scan the string for https, and if its not there then do:
context.Response.Redirect(context.Request.RawUrl.Replace("http:", "https:"));
Hi,
I was trying to install CMS for my ASP.NET (Open source Umbraco). After the installation process, when I try to run the website, I get this error: Could not create type 'umbraco.webservices.documents.documentService'. E:\Users\Sarin\Documents\Visual Studio 2010\WebSites\WebSite20\umbraco\webservices\api\DocumentService.asmx
Here's the line from default.aspx which is showing this error.
<%@ WebService Language="C#" CodeBehind="DocumentService.asmx.cs" Class=umbraco.webservices.documents.documentService %
Any suggestions?
I have created a rrdcgi script to display information about the system performance with graphs. Now I would like to add an option for the users to create PDF on the fly with the details on current page (images and information) and header and footer. Is this possible to do with rrdcgi or any perl code would be really appreciated.
I want to create a TreeMap in Java with a custom sort order. The sorted keys which are string need to be sorted according to the second character. The values are also string.
Sample Hash:
Za,FOO
Ab,Bar
I'm calling CreateReport method on ReportingService web service to create a report on the server. I was wondering if there is a way to give this newly created report a Guid I want for the ItemID in the Catalog table?
I want to define the block as a string, then create the lambda.
The following example does not work.
Is something like this possible?
code_string = "|x|x*2"
l = lambda {eval(code_string)}
l.call(3) => 6
I am on the photo sharing site , and i want to give functionality to download all the images available in the gallery ,, I have taken gallery in a relation where i can get all the iamges by @gallery.uploads ,
Now what i want is to download this all files , or if its possible to create any zipfile so that we can download that one file containing uploads inside the gallery ,
thanks
I have a list of data indicating attendance to conferences like this:
Event Participant
ConferenceA John
ConferenceA Joe
ConferenceA Mary
ConferenceB John
ConferenceB Ted
ConferenceC Jessica
I would like to create a binary indicator attendance matrix of the following format:
Event John Joe Mary Ted Jessica
ConferenceA 1 1 1 0 0
ConferenceB 1 0 0 1 0
ConferenceC 0 0 0 0 1
Is there a way to do this in R? Sorry for the poor formatting.
Hey Guys,
This seems like a basic problem with an easy answer but I simply cannot figure it out no matter how much I try.
I am trying to create a line graph based on two lists. For my x-axis, I want my list to be a set of strings.
x_axis_list = ["Jan-06","Jul-06","Jan-07","Jul-07","Jan-08"]
y_axis_list = [5,7,6,8,9]
Any suggestions on how to best graph these items?
i want to create sub menu for a BB application
when i click on menu item it shows
Option 1
Option 2
Option 3
When i click on option 3 it should display
1
2
3
as sub menu items..
using j2me + eclipse
Hi,
I want to create a right to left UITableView.
right now I have the left to right table view.
I would like to know if there is an easy way to transfrom the left to right table into right to left using the latest iphone SDK?
I've tried the textAlignment on my custom table view cell but with no success.
Thanks
Hi:
I am trying to create a Database alias for many of the DBs. I wonder if there is a T-sql that can let me do it. I have not found anything about this.
Thx.
I have a link on a website that says "add object". When I do this, an AJAX call is made and I want to do the following things:
1) if the container in the session does not exist, create one, else use existing
2) add the object to the container
I'm new to RESTful design and am wondering how to best accomplish this in Rails. Step #1 in particular