Git newbie here, quick question. I mistakenly added files using the command "git add file". I have not yet run "git commit". Is there a way to remove these files from the commit?
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?p=$1&l=$2
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/$ index.php?p=$1&l=$2
this works fine if I do site.com/param_one/param_two/, but returns a 404 when I omit param_two. I'm a newbie to routing requests with htaccess, is there a simple quick fix?
Is there any quick way to make a form for embeds_many-embedded_in relation?
I have the following:
class Team
include Mongoid::Document
field :name, :type => String
embeds_many :players
end
class Player
include Mongoid::Document
embedded_in :team, :inverse_of => :players
field :name, :type => String
end
I want to create a form for team with embedded editing for players. Seen https://github.com/bowsersenior/formtastic_with_mongoid_tutorial but "TODO" there.
How to do the startActivityResult() for the Quick Search Box? that is if i click a button in my activity. it should wake up the QSB and search. i click the suggestion button. it will return the string which is shown as a suggestion. how to do it? which intent action i have to use and how ? Any Idea?
in my objects table i have
id | type | parent | order | created
and then in my data table i have
object_id | key | value
i want to get object of type 'x' where key 'y' === 'z' in the most optimal way possible.
ie. get user where slug === 'jonny'
i'm currently doing it with joins, because i'm doing this in mysql as a quick test. but i'll be moving to redis or a similar key/value storage system so obviously that won't work.
I have a quick, newbie question...
I just started looking through authrozation services and Apple's BetterAuthorizationSample...
for some reason, I just can't get the hang of it. For example...
I deleted the HelperTool and InstallTool and SampleTool.c and all references, but why does the program seem to continue work like nothing happened at all even after a clean build?
Even commenting out all the code in SampleTOol.c doesn't seem to affect the way the program runs?
Thanks
I'm trying to animate a GIF and I hit a roadblock. I have an example of what I'm trying to do that uses the individual frames of the GIF and setting the animationImages property of a UIView. However in my project, the thing I want to animate is drawn using Layers. I'm looking for a quick and easy way to animate the frames without introducing too much complexity. Is there any animationImages equivalent with Layers? Does anybody have any ideas?
We have a scenario where we would like to allow our users to upload images to the site. We are running on ASP.Net.
A quick search did not result in anything good. It would be great if the control is free/open source but we do not mind paying a little bit.
Hi,
Just a quick question.
I've written some code that returns a custom class Command, and the code I've written seems to work fine. I was wondering if there are any reasons that I shouldn't be doing it this way. It's something like this:
Command Behavior::getCommand ()
{
char input = 'x';
return Command (input, -1, -1);
}
Anyway, I read that constructors aren't meant to have a return value, but this works in g++.
Thanks for any advice,
Rhys
Hi i want to do the next
instead of
MyClass object;
function_x (object);
i want to
function_x ( new object );
so what will be the structure of the MyClass to be able to do that ..
if i just compiled it , it gives me a compile time error
answer function_x (MyClass() )
New Edit thanks for the quick answers.. i did ask the wrong Question i should have asked how
temporary variables created in C++ and the answer
Hello!
I want to write video filter for Adobe Premiere, and I need to print/draw/render some text into the output video frame.
Looking into adobe premiere cs4 sdk I couldn't find a quick answer - is it possible?
Please provide some samples!
Thanks!
I'm looking for a quick way to log some data - I seem to remember a way to write to the access log, similar to System.Out.Println() but I can't seem to remember how to do it.
I can't attach a debugger, nor can I add additional information to the web app via Response.Write().
Is there a simple way - a single statement with no configuration changes would be ideal - to write to either the error or access logs?
HI,
I need to create an array of images,in which, every time i tap, a new image gets placed at "view".
and at some particular duration of time, i need to clear that array of images, so that all the images gets cleared from the view.
like on button click, i want to clear all the images which are on the view, through taps,
should be clear at once.
Hope i m clear with my question.
looking for an quick reply.
regards
shishir
I need a quick jump start for using Spring and Hibernate together and I was looking for some sample code to modify and extend. Bonus points for Struts2 and Spring Security integration.
Hi folks,
is there a similar library to simplejson, which would enable quick serialization of data to and from XML.
e.g. json.loads('{vol:'III', title:'Magical Unicorn'}')
e.g. json.dumps([1,2,3,4,5])
Any ideas?
Hi,
I have a raster file (basically 2D array) with close to a million points. I am trying to extract a circle from the raster (and all the points that lie within the circle. Using ArcGIS is exceedingly slow for this. Can anyone suggest any image processing library that is both easy to learn and powerful and quick enough for something like this?
Thanks!
Guys, having quick look in Winnt.h I have discovered that there is a lots of typedefs and one of them is for example CHAR for a char. Why? What was the purpose of these typdefs? Why not use what's already there (char, int etc.)?
Thank you.
hi all, had a quick hadoop streaming question.. If I'm using python streaming and I have python packages my mappers/reducers require that aren't installed by default do I need to install those on all the hadoop machines as well or is there some sort of serialization that sends them to the remote machines?
thanks!
Hi,
I'm faced with a big old stack of method calls in some legacy code, one or some of which is creating a bottleneck and really slowing things down. Is there any quick way I can get a report on which method calls are taking the time, short of running in debug, stepping through and seeing where the cursor pauses?
I want to know , What is the advantage of Lucene searching and indexing ?
Is searching with Lucene as fast as other searching algorithm like Quick Search?
What about indexing ?
I want to know more about advantage of Lucene rather that others .
thanks .
Quick question of does Windows CE support hash tables? I have a program that I'm modifying and adding to a device that uses Windows CE and I was wondering if CE supported hash tables since it is used in the original software.