i have a user model which gives me latest users as output. how can i limit the record to just output me 200 records instead of all the users in database??
Hi,
I've tried to use the YoutTube API within a Flex project. But i got this error:
*** Security Sandbox Violation ***
SecurityDomain 'http://www.youtube.com/apiplayer?version=3' tried to access incompatible context 'file:///Users/YouTubePlayer/bin-debug/YouTubePlayer.html'
Here are the two files:
<?xml version="1.0" encoding="utf-8"?>…
I have a tab-delimited file that has over 200 million lines. What's the fastest way in linux to convert this to a csv file? This file does have multiple lines of header information which I'll need to strip out down the road, but the number of lines of header is known. I have seen suggestions for sed and gawk, but I wonder if there is a…
What should the percentile ranks be for each of these records and is there a MySQL query I can run to calculate the percentile?
id score cumulative_score percentile
1 100 100 ?
2 50 150 ?
3 25 175 ?
4 25 200 ?
5 10 210…
Hi everybody,
I've been fighting with this issue for a day and I can't find answer for it.
I am trying to read data from GPS device trough COM port in Compact Framework C#. I am using SerialPort class (actually my own ComPort class boxing SerialPort, but it adds only two fields I need, nothing special).
Anyway.. I am running while loop in…
I've got the following code and I'm not sure how to add the QGraphicsScene to my layout..
class MainForm(QDialog):
def __init__(self, parent=None):
super(MainForm, self).__init__(parent)
self.scene = QGraphicsScene(self)
self.scene.setSceneRect(0, 0, 500, 500)
self.view = QGraphicsView()
…
I used to use SVN 1.4 on OS X Leopard and everything was fine. A couple of weeks ago I installed a fresh copy of OS X 10.6. The version of SVN that comes with Snow Leopard is 1.6.5. I went ahead and built my own copy with 1.6.6. I'm using the built in apache server and just hosting repositories locally.
Everything appeared to work…
When I use fputcsv to write out a line to an open file handle, PHP will add an enclosing character to any column that it believes needs it, but will leave other columns without the enclosures.
For example, you might end up with a line like this
11,"Bob ",Jenkins,"200 main st. USA ",etc
Short of appending a bogus space to the…
i have removed left portion of a form using graphics path and region command. when i am trying to show group box on removed portion, group box not appeared. how do i show the groupbox on removed region area ?. or how do i reset the region
GraphicsPath shape = new GraphicsPath();
shape.AddRectangle(new Rectangle(200, 0,…
Let's say I implement this m-file:
Fq=tf(0.5^2,[1 2*0.7*0.5 0.5^2]);
G=tf(0.006*[200 1],[80 1 0]);
Q=Fq/G;
open Inner_Loop.mdl
Inside Inner_loop.mdl, if I want to implement/model a transfer function block using G, how can it be achieved easily? Thanks in advance.
Hi
I need to move a sprite from one CGPoint to another using Cocos2d for the Iphone. The problem is that the animation should be along a bezier.
Basically I would use this :
id move = [CCMoveTo actionWithDuration:.5f position:ccp(100,200)];
[sprite runAction:move];
Now how can I do this in a non linear path ?
Thx
Hi all,
Our professor is making us do some basic programming with java, he gaves a website and everything to register and submit our questions, for today I need to do this one example I feel like I'm on the right track but I just can't figure out the rest .. here is the actualy question :
**Sample Input:**
10 12
10 14…
I am developing a my application on rails.It has 400 or more models.
And some model contains more than 200 rows just for relationships.
so it's too hard handle it.
Is there any ways i can handle my application more proper and easy ways.
I'm looking at creating map tiles based on a 3D model made in blender,
The map is 16 x 16 in blender.
I've got 4 different zoom levels and each tile is 100 x 100 pixels. The entire map at the most zoomed out level is 4 x 4 tiles constructing an image of 400 x 400.
The most zoomed in level is 256 x 256 obviously…
I'm trying to connect to a mysql server at dreamhost from a php scrip located in a server at slicehost (two different hosting companies).
I need to do this so I can transfer new data at slicehost to dreamhost. Using a dump is not an option because the table structures are different and i only need to transfer a…
I'm using networkx to work with graphs. I have pretty large graph (it's near 200 nodes in it) and I try to find all possible paths between two nodes. But, as I understand, networkx can find only shortest path. How can I get not just shortest path, but all possible paths?
I am trying to connect to NX server from windows client but it reports following exception
NX 203 NXSSH running with pid: 5404
NX 285 Enabling check on switch command
NX 285 Enabling skip of SSH config files
NX 285 Setting the preferred NX options
NX 200 Connected to address: 10.43.51.77 on port: 22
NX 202…
Not sure what could be wrong.
I had an app that worked all along with this
<context:property-placeholder location="classpath:my.properties"/>
No problems finding the properties file and hooking things up.
Now, I needed to encrypt some fields in the properties file. So I ended up writing the…
hi everyone,
I need to minimize Apache HTTP response headers, by now i reduced them as following
HTTP/1.1 200 OK
Date: Thu, 25 Mar 2010 21:57:41 GMT
Server: Apache
Content-Type: text/html
I'd like to know if there is a way to disable Date and Server header, only for a certain virtual host.
Thank…
I expirience strange behavior when doing HTTP requests through sockets, here the request:
POST https://test.com:443/service/XMLSelect HTTP/1.1
Content-Length: 10926
Host: test.com
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
Authorization:…
Can I draw a rectangle with mouseClick?My code is not working so far.Can you help me?
private void panel1_MouseClick(object sender, MouseEventArgs e)
{
Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Black, 2);
g.DrawRectangle(pen,…
Is there a way to make jQuery use objects in a conditional statement as an object in a hierarchy. For Example, I want to validate that something exist then tell it to do something just using the this selector.
Like this
if ($(".tnImg").length) {
//i have to declare what object I am…
Hi,
I've defined a model which contains a link an image. Is there a way to display the image in the model items list. (e.g. if I defined an article this way:
class Article(models.Model):
url = models.CharField(max_length = 200, unique = True, help_text="/lessons/")
title =…
Hi,
I built the asp.net website in release mode, set the debug flag to false in web.config, but still some of the webresource.axd and scriptresource.axd and javascript files are not getting cached. fiddler shows the status code "200" for these items instead of "304". what else I…