I'm trying to output a git log from another folder on the server without having to cd into it first.
git log /path/to/repo
returns
fatal: Not a git repository
For the life of me, I can't find the switch to tell it to operate on/in a different path than .
Thanks.
Databases are stored in the relative folder ../var/lib/couchdb/ by default:
[couchdb]
database_dir = ../var/lib/couchdb
view_index_dir = ../var/lib/couchdb
I can't find a way of moving this to an absolute path. What should I type to store databases on a different disk?
Hi folks,
in my C# 4.0 Application, I have a DataGridView to display some data. I want the Columns size accordingly to the content, so I set the AutoSizeColumnsMode to AllCellsExceptHeader. But I want to restrict the columns to grow beyond a certain value. There is a MinimumWidth Property ... but unfortunately no MaximumWidth Property.
Any ideas how to solve this?
Thanks in advance,
Frank
Do .Net int and long types have different size on 32 bit and 64 bit platform ?
Does int (=Int32 on 32 bit machine) on 64 bit machine will be still Int32 not Int64 ?
Can you quote any official .Net documentation ?
Hi, I have a PHP form (mortgage app) that is about 400 fields, traffic on the site will be low.
What is the ideal Session size for 400 fields going into a MySQL db?
In PHP.ini what do I set?
Anything I should set that I am missing?
-Jason
I have the following situation
Project A
- Uses Castle Windsor v2.2
- Uses Project B via WindsorContainer
Project B
- Uses NHibernate
- Uses Castle Windsor v2.1
In the bin folder of Project A I have the dll Castle.DynamicProxy2.dll v2.2 and NHibernate dlls. Now the problem is that NHibernate is dependent on Castle.DynamicProxy2.dll v2.1 which is not there. How do I resolve this situation.
Hi friends,
I built a website with CodeIgniter last year www.example.com, and client wanted Wordpress Blog last week. I built the blog and uploaded to www.example.com/blog
Now when I click any link on wordpress it gives error as below :/
http://www.example.com/blog/category/one-last-category/
An Error Was Encountered
Unable to
load your default controller. Please
make sure the controller specified in
your Routes.php file is valid.
How can I set Codeigniter to ignore Wordpress folder?
Appreciate helps!!!
I used myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS)); to order panels vertically (one under another one). But myPanel defined in the shown way change the included panel. In more details, it tries to set the same hight and width for the included panels. Can it be changed? Can BoxLayout adopt size of the included elements?
Is there any limit for XML size for which XSLT is applied by XslCompiledTransform in .NET (3.5)? Also, is there any limitation for a length of parameteres passed to XSLT?
Is there a way to retrieve a list of the contents of a public Dropbox folder (preferably in PHP)? This is what a URL to a public file in Dropbox looks like:
http://dl.dropbox.com/u/1234567/publikPholder/textytext.txt
One would think that jumping up one level to the directory in the URL...
http://dl.dropbox.com/u/1234567/publikPholder/
...would show all the public files. Nope. Nothing but a 404.
Given a character array:
In [21]: x = np.array(['a ','bb ','cccc '])
One can remove the whitespace using:
In [22]: np.char.strip(x)
Out[22]:
array(['a', 'bb', 'cccc'],
dtype='|S8')
but is there a way to also shrink the width of the column to the minimum required size, in the above case |S4?
I got a class. Lets say its named
Class1
Here I create another class, Class2
Class2 has an arrya[]
No my question is. When I create Class2 I cant have any size of the array with me in. How can I then know how big I want the array to be???
Out in Class1 I know how big it is.
Thanks in Advance.
If I want to use extendible hashing to store a maximum of 100 records, then what is the minimum array size that I need?
I am guessing that an array of 100 would be sufficient, but I could be wrong. I also suspect that I can use a smaller array.
Hi,
How to create a small eps file from a Matlab figure. I use LaTeX and the eps that I'm getting with Matlab (R2010a) is of the order 6 MB. How to set the plot options to give an eps figure of smaller size.
Does the render options painters or zbuffer help?
Thanks a lot...
In the stdint.h (C99), boost/cstdint.hpp, and cstdint (C++0x) headers there is, among others, the type int32_t.
Are there similar fixed-size floating point types? Something like float32_t?
Hey all!
I have a developer designing a financial application to be used on a mobile phone via the phones browser. Now each page is 150kb wich to my opinion is way to large. No images are used as it is mostlyhtml buttons and css and possibly javscript.
How can i minimise the page size?
hi all
in my iphone application images are comming from xml feed and they have variant size,how can i resize them to fix width and hight programmatically.
please help me out
thanks in advance
I'm running a process that does a lot of updates ( 100,000) to a table. I have the choice between putting all the updates in a single transaction or committing transactions every 1000 or so.
Ignore for the moment the case where a transaction fails and is aborted. I'm interested in the best size of transaction for memory and speed efficiency.
How can I get window's title, position and size if it does not support Accessibility API? Accessibility Inspector does not see it at all. Say, it's a xterm window in X11.app (X11-Applications-Terminal).
hi,
I want to save images selected from photo library to my resource folder in xcode. So that i can do some operation on newly selected image. SO any one know how to do this??
Regards viral
I wanted to know if there was a way I can get my python script located on a shared web hosting provider to read the contents of a folder on my desktop and list out the contents?
Can this be done using tempfiles?
In VS2010 they added to all projects a virtual directory called "External Dependencies":
It really bothers me especially because if there is a normal folder named "Apple" and one named "Deep" it will be in between the two, and, well, it just bothers me.
Is there any way to remove or hide it?
The information it gives is also totally useless:
greetings, today i have started to learn java using netbeans ide.
i would like my jframe to display an icon as stated in the following:
setIconImage(Toolkit.getDefaultToolkit().getImage("SartreIcon.jpg"));
the questin is under netbeans ide.. exactly in which folder do i place the graphic in question in order to load it?
thanks.