origin

Matplotlib coord. sys origin to top left

How can I flip the origin of a matplotlib plot to be in the upper-left corner - as opposed to the default lower-left? I'm using matplotlib.pylab.plot to produce the plot (though if there is another plotting routine that is more flexible, please let me know). I'm looking for the equivalent of the matlab command: axis ij; Also, I've sp...

iPhone > Set position of an control

Hello, I'm currenly learning Obj-C and try to find the easiest way to set a position of an control. So this works to set the object +100px: [panel setFrame:CGRectMake( panel.frame.origin.x, panel.frame.origin.y + 100, panel.bounds.size.width, panel.bounds.size.height) ]; But of course this is painful. Unfo...

How to rotate about the center of screen using quaternions in opengl?

I am trying implement arcball/trackball rotation but I have a problem with the center of rotation. I want the center to be the center of my screen no matter what. Let me explain what I have done so far. I've created a quaterion (rotation axis: vector_start x vector_end, angle: vector_start * vector_end) From that quaternion...

Reposition an NSBox in the top pane of a horizontal NSSplitView

I've worked for hours on this and I just can't get it - should be really basic stuff but it's not getting thru my thick skull. I think it has to do with the coordinate system in Cocoa but I really don't know. This is all happening in the top pane of a horizontal NSSplitView. Very simply, I'm trying to position one NSBox right below a ...

Multiple Origins - Multiple Destinations

I either have a blonde moment or am attempting something a bit out of my league, but here it goes ;) I have an optimization question. It is only somewhat traveling-salesman-ish. Lets say I have a set of destinations and another corresponding set of origins. I need to link each destination with one origin so that the variation between...

How do I check in files for building with git?

I'm using git to manage a grails project I have.I set up a git repository on a remote server and what I want to do is when I have code working locally, I want to commit it and push to the remote server. I want the updated groovy file and gsp's to be put into the right spot on the remote server so that grails will pick up the changes for ...

Same origin policy javascript

Hi, I'm writing an NPAPI plugin that injects a script with a src located at my server. After the injection, my plugin tries to call a function in the script. But this doesnt seem to work. I think the reason is the same origin policy, but im not sure how to overcome it. The call to the function works if i inject the script code complete...

Iphone View origin changes after presentModal

Hi, In my application i present a UIImagePicker. When i dismiss this modal, my rootView goes from origin.x=5 to origin.x=0. Does somebody knows why my view will automatically changes the origin when i dismiss or present my modalViewController? I tried resetting the origin in viewDidAppear and viewWillAppear, but no luck. If i change t...

iphone dev add cell text to the same position point on UIView

Hi, When i selected a cell, i want to add the text from the cell to the underlying UIView at the same position. So the text in the UIView should be at the same position as the text in the cell. I dont know how to map the cell origin to a UIView origin point. Anyone any hints? Ton. ...

UIButton Origin and Device Orientation

Hey there, I might be crazy, but for some reason this problem is stumping me. I have a view controller that is set to auto rotate to orientation. Inside I've got two subviews. One is a uibutton. All I want is for my button's origin to stay locked to the bottom-left in portrait and bottom-right in landscape (so it basically stays in ...

Is the Git remote name origin only applied to one created by git clone?

Does Git only use the remote name origin for a repository which was created by cloning? eg, say I create a repository, place it on a remote, and try to clone it again into the same directory, which one would Git name origin? ...

How do I do git pull so that it will update the files in the working

When I do git pull origin master, it does not seem to update the files in the folder of the git repository. ...

What is the origin / meaning of these variable naming conventions?

What is the general meaning and where did it start to have variables with leading or trailing underscores? ex: _varName and varName_ I have always thought a leading underscore indicated the variable was a pointer but I don't know where I got this idea. Recently I have seen these naming conventions used in Java which makes that reasonin...

github "origin" deletion

Hey all im trying to delete this "origin" thing so i can actually run the tutorial code from this website http://www.railstutorial.org/book#sec:github this is the code im trying to run $ git remote add origin [email protected]:delinquentme/first_app.git and im getting this returned: fatal: remote origin already exists problem is t...

[PHP] Find out where a function comes from?

From time to time, I'm handed bloated, undocumented, buggy PHP code to fix. I have several tools I use to fix such code as quickly as possible. One thing I'm not sure how to do that occasionally causes me grief is finding where a function is located (in which file it is defined). Note that I don't want to know where a function is called...

C# directx sprite origin

Hello, i have this problem when my Sprite rotation origin is fixed at top left corner of window (same with sprite.Draw and sprite.Draw2D) Either way if i change rotation center it's still at top left. I need sprite to rotate around its Z axis. Thank you. Edit: I have tried this: hereMatrix pm = Matrix.Translation(_playerPos.X + 8,...

Why does my git origin want to remove all my pushed changes?

After thinking that I finally figured git out, I'm now finding myself super-confused about a git behavior I'm seeing -- whenever I push changes made and committed to my local machine up to my origin git repository, those changes immediately get staged to be undone on the origin server. Huh??!? I have a machine (machine A) with a git re...

Where does git store information about the origin of a repository

I have a repository that I cloned from someplace a few months back and I'd really like to know where it came from. A 'git pull' returns successfully and tells me everything is up to date, but I'd really like to know where its checking. I've looked in the usual suspects in the .git folder, but can't see anything obvious. Anyone know wher...

Get origin of Android Market link after install

Is there any way to get the origin of a link to an app on Android Market after the app is installed? Let's say I have three different web pages that link to the same Android Market app, can I get the origin of the link after the app is installed so I can use it for statistics and such? Any solution to this is very much appreciated! ...

Blackberry XYEdges class explanation

Ok, I've read through the documentation at http://www.blackberry.com/developers/docs/4.2api/net/rim/device/api/ui/XYEdges.html for information concerning how the XYEdges class works, but I seem to be misunderstanding something. My question is where is the point of origin on this coordinate system? Is (0,0,0,0) located at the top left c...