create

App view feels like it's "LAGGING"

Most of the views in my app are UITableVlews inside a UIViewController. My App feels like it's lagging when trying to scroll through the tables. I was wondering (1.) if it is better to create the cell objects in the table view, or create them at runtime and add them to the cells subview? examples: - (UITableViewCell *)tableView:(UITabl...

Create Download Link

Hi, I want to send a mail that containts special downlaod link for download a file. for examples; http://localhost:14403/atrom/ I have a file that game.rar Now I don't want to download directly using this link http://localhost:14403/atrom/game.rar I will send a mail to users that like this; Your download link is ; http://localhost:144...

How to call wordpress functions in custom php script

I have a Php script I want to use for creating a new blog in WPMU. I am having trouble calling wordpress functions like "wpmu_create_user" and "wpmu_create_blog". My hope is to get this script running as a cron job from command line and pick up new blog creation requests from an external db, create a new blog using the wordpress functi...

generate a window for ascii game

Hello all Im trying to write an ascii game for an assignment. The program must be written entirely in c, no c++. How can i get the program to open a window capable of rendering ascii art? I want to create a window of a certain size, that is capable of printing in multiple colors. A simple console window is insufficient. Also, on a rela...

SQL: Creating new table from data of other tables

Hi, I'm very new to SQL and I hope someone can help me with some SQL syntax. I have a database with these tables and fields, DATA: data_id, person_id, attribute_id, date, value PERSONS: person_id, parent_id, name ATTRIBUTES: attribute_id, attribute_type attribute_type can be "Height" or "Weight" Question 1 Give a person's "Name", ...

Can I create a VIEW that has a dynamic name in another DB with MS SQL?

I found strange rules in MS SQL CREATE VIEW syntax. It must be on the first line of query batch processing and it must be created in the current database. I should make VIEWs that have dynamic name described by string variables (type: VARCHAR or NVARCHAR). And those VIEWs should be created in other databases. Because of the rule, CREAT...

Proper way of using FormCollection in ASP.NET MVC2 Create Method?

Hello everybody! I am currently developing an application with the new ASP.NET MVC2 framework. Originally I started writing this application in the ASP.NET MVC1 and I'm basically just updating it to MVC2. My problem here is, that I don't really get the concept of the FormCollection object vs. the old Typed object. This is my current ...

Iphone checking subfolder existence, if exist delele subfolder, else and create subfolder

Hi, I'm new in Iphone programing, I need code to: check if a specific target subfolder exist in the document folder ? if target subfolder exist in document folder, I want to delete target subfolder if target subfolder does not exist in document folder, I want to create target subfolder in document folder Thank's in advance for your h...

Ways to accidentally create temporary objects in C++?

Years ago I believed that C was absolutely pure compared to C++ because the compiler couldn't generate any code that you couldn't predict. I now believe counter examples include the volatile keyword and memory barriers (in multiprocessor programming or device drivers for memory-mapped hardware devices, where plain assembly language woul...

Why can't I create my database using "rake db:create"?

I've recently started reading up on Rails and while getting my development environment ready on Windows, I kept running into problems. So I opted to just work on the server space I have with asmallorange.com. Everything went smoothly until I tried created my database. When running rake db:create I get a response saying that it coul...

postgresql help with create table syntax

I'm more a mysql person, but I have to do a db in pg and the following CREATE TABLE keeps generating syntax errors... I just get an error: ERROR: syntax error at or near "(" and error: ERROR: syntax error at or near ")" Googling around didn't give me much help... I'm sure that I'm doing something mysql-esque and that's causing problems...

How do i change order of properties in DBML file (L2S)

How do i change order of properties in DBML file (L2S) I really do not want delete and then re-drop my table from database ...

Why use GWT.create() instead of new?

What is the difference between GWT.create(SomeClass.class) and new SomeClass()? Why would you use one over the other? ...

Print document and create PDF in C#

I've got some information I would like to output to a printer, but also as a PDF. I would be great if the PDF and the printing output would look the same. As what I understand, PDF reading and creating is not supported in C#. I can create PDF's easily with external librarys like iTextSharp, but I don't know how to print them without usi...

How to refer to shapes in Visio vba

How does one create specific shapes in microsoft visio that are selectable through the normal interface? I am looking for code like ActivePage.addShape(type: person, 100,100, 50,50) The msdn and visio help documentation comes across as a bit advanced for a beginner, but is it the case that one has to add a shape manually and then give i...

PHP Post Request inside a POST Request

There is a contact form which current action is "http://www.siteA.com/ContactInfo.php", it sends fields and values. In ContactInfo.php, i just catch the values and send and email to [email protected] BUT, inside ContactInfo.php, I need to send the same data to another destination, in other domain http://wwws.SiteB.com/Reg.aspx I have tryed out to...

Creating a KeyDown Event Handler for the Label Control

Hi All I'm sure you're all aware of the fact that the Label Control has no KeyDown handler (and why would it?)... Anyway, I'm in need of a KeyDown handler for the Label Control and would appreciate any pointers/suggestions to get me started. I've searched around but haven't found any info on creating my own Event Handlers for the Label...

CREATE TABLE new_table_name LIKE old_table_name with old_table_name's AUTO_INCREMENT values

Hello! Can I create a new table with an old table's autoincriment status in mysql client? I think, that ALTER TABLE new_table_name AUTO_INCREMENT=@my_autoincr_iment helps me, but this construction must use with a constant value. I don't wanna use a difficult script. Drochite na carmu! ...

How to sort some values from an array in a controller in Rails?

I've got a links array that I'm saving to a database. The problem is that the records aren't saved in the order of the array ie links[1] is saved before links[2] and so on... This is a example from the view file: <p> <label for="links_9_label">Label</label> <input id="links_9_name" name="links[9][name]" size="30" type="text" /> <...

Can't create file in Ada 95

Hello, I'm trying to follow a standard reference for opening files but running into a constraint_error at the line when I call Ada.Text_IO.Create(). It says "range check failed". Any help appreciated, here's the code: WITH Ada.Text_IO; WITH Ada.Integer_Text_IO; USE Ada.Text_IO; USE Ada.Integer_Text_IO; PROCEDURE FileManip IS --Vari...