Hello everybody,
I was wondering how does delete[] operator know the size of an array, in this case (for instance) :
int* foo = new int[42];
delete[] foo;
Thanks in advance
I just deployed my servlet on the app engine but when i print the max heap size i only get 104857600 which is less than is available by default on my local machine (512 megs).
Is there a way to get google to change this?
I looked at billing but there is no mention of memory usage.
I'm writing a form in XAML that has multiple buttons with content of different sizes (ie "OK" and "Save As...") Ideally, I'd like them all to be the smallest size possible to hold the largest content. In the example above, both buttons would be the width necessary to hold "Save As..." plus the margins and padding.
If they were Grid cells, I could use a SizeGroup. Is there a similar declaration for Buttons?
I believe conversion exactly to BigInteger[] would be optimal in my case. Anyone had done or found this written in Java and willing to share?
So imagine I have arbitrary size byte[] = {0xff,0x3e,0x12,0x45,0x1d,0x11,0x2a,0x80,0x81,0x45,0x1d,0x11,0x2a,0x80,0x81}
How do I convert it to array of BigInteger's and then be able to recover it back the original byte array safely?
ty in advance.
After uploading a file for SFTP, if i want to obtain the file size of the file. Is that possible? This is being done using the SharpSSH library in C#.
Thanks!
I have a user control with the following code in it.
[System.ComponentModel.Category("Appearance")]
public override string Text { ... }
private int myVar;
[System.ComponentModel.Category("Appearance")]
public int MyProperty { ... }
MyProperty shows up in the property grid when the control is inserted in a form, but Text does not. How can I get it visible?
I want to know the physical video ram size in my application. I can get the same information of Nvidia card by using "nvidia-settings -q -t VideoRam".
I can use amdcccle to find this information, but it's an GUI app, so can't be used in my application. I wonder if there is a way to get this by command, function, or config file?
I'm using RHEL 5.4.
I have a Rails app (blog) that I am creating. Very basic stuff. In my content area I have a text area for the content of the post. I am needing to include some html in the text area (links, formating, etc).
<%= f.text_area :content %>
Is there another tag that I can use instead of text_area, that will allow me to do this?
I have 3 spans inside a div.
text-align:center isn't working (tried on the parent too)
text-align: -moz-center neither (on ff2)
i have to use spans
no floats
-moz-inline-box or -moz-inline-stack ?
with -moz-inline-block it's working but the 2nd and 3rd spans clear left…
Anyone got an idea? (fixing #6 is an alternative)
Hi
Anybody know how to programmatically generate audio podcast files with bookmarks that can be used in iTunes / iPod / iPhone / iPod touch? Specifically text bookmarks (bookmarks with titles) that the listener can skip to a specific point in time in the audio file. Also how to add the text transcription of the podcast's content.
Even better if you have an example Cocoa code or library to write the audio file.
Thanks.
hi,
I'm using jQuery Media module in Drupal to use my own flv player. It works great, however I would like to assign different width and height size according to the videos sizes.
How can I do it ? Should i pass back values from Flash app with an External Call ?
thanks
Is this list-initialization of an array of unknown size valid in C++0x?
int main() { int x[]{0, 1,2,3,4}; return x[0]; }
I believe it is valid, but would appreciate some confirmation.
If anyone could quote from the C++0x-FCD to support their case, it would be greatly appreciated.
Thanks!
I've used emacs for decades and always wondered, but kept on coding, if there was a way to type in something, them move the cursor and insert the same text, like the VI . command.
Instead what I do is to type the text, set the mark, backup, copy the region, go to the next spot (often just C-n, down one line) and then pre-arg yank, C-u C-y.
It's the overhead of set mark, backup and copy region that makes me just go ahead and retype the thing.
How do I convert all varchar(max) columns to text type? I know varchar(max) is recommended but I still want to use type text because CakePHP doesn't automagically convert varchar(max) to textarea (HTML form). How do I do it? Thanks in advance
What is the default maximum heap size for Sun's JVM from J2SE 6 (i.e. equivalent to setting -Xmx)?
Looks like for J2SE 5 with a server-class machine, it's
Smaller of 1/4th of the physical memory or 1GB.
Bonus question: Looks like for IBM's JVM you can ask it
java -verbose:sizes -version
Can you similarly ask Sun's JVM?
I have a lot of text data and want to translate it to different languages.
Possible ways I know:
Google Translate API
Bing Translate API
The problem is that all these services have limitations on text length, number of calls etc. which makes them inconveniente in use.
What services / ways you could advice to use in this case?
My understanding is that mime types are set by the web server. Why do we add the type="text/javascript or type="text/css" attribute? Isn't this a useless and ignored attribute?
Hi I am having no problem writing to or appending to a file, the only problem is that as soon as I quit the program and then run it again, it creates a new file overwriting my original file. This is a problem, as I am using the text file to keep a running tally.
Is there a way to get an already created text file as an object and then append to it?
Thanks in advance.
What column type should I use for storing html content from a website with an unknown size?
(I'm scanning certain html pages, and create an database entry if there are changes between the last stored entry and the current html code.)
Simple Question:
[1] How do you change the font and font size in the themed button widget (ttk::button)?
ttk::button .x.buttonTEST -text "TEST" -font??(option not valid with ttk::button)
please advise.
Hi,
In my app, I have a ScrollView that shows a map(just a jpeg).
On top of the ScrollView, I added some pins(UIImageView)
So far so good.
But when I zoom in, the pins also get larger.
I would like the pins to stay at a fixed size, just like the pins on the google map application on the iPhone.
How do I solve this?
Thanks!
The MFC program I am debugging is printing this message in the "Output" window in Visual Studio 9.0:
HEAP[AppName.exe]: Invalid allocation size - 99999998 (exceeded 7ffdefff)
I'm pretty sure this is due to a bad "new", uninitialized variable or similar error.
The question is: how do I get the debugger to stop on this message so that I can view the stack trace and solve the problem?