I've always wondered this, and still haven't found the answer. Whenever we use "cout" or "printf" how exactly is that printed on the screen?. How does the text come out as it does...(probably quite a vague question here, ill work with whatever you give me.). So basically how are those functions made?..is it assembly?, if so where does that begin?. This brings on more questions like how on earth have they made openGl/directx functions..
break it down people break it down.:)
I have the following code to create a UIPickerView:
pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0f, 416.0f - height, 320.0f, height)];
pickerView.delegate = self;
pickerView.showsSelectionIndicator = YES;
[pickerView setSoundsEnabled:YES];
I would like to change the component widths and change the text size in each component. Is it possible to do this?
Thanks!
(this is related to another question about implementation on iPhone)
I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions:
what is the tile strategy?
Requirements:
whole image (though cropped) can be scrolled up/down/left/right by swipes
zoom in (up to pixel-to-pixel) out (down to screen-fit-by-height) by the 2-finger operation
memory efficiency by lazy loading tiles
Thanks!
I have all my splash screens for iPad and the old iPhone, but the new iPhone will run at 960 x 640 resolution.
I can't seem to find the docs on how a launch image should be sized for this. Does anyone know where Apple documents this, what size the splash screen should be, and what it should be named in the bundle?
I'm writing a download manager, and I've noticed that all the web pages I've encountered don't seem to set the ContentLength header, whereas other media types (images) do. However, when I load a page (in Firefox), I get a progress as it loads. What's that based off if not file size?
I am trying to sign a token object using SHA1.
I am using bouncycastle as the security provider.
Whenever the program tries to sign something it gives me this error.
java.security.SignatureException: java.lang.IllegalArgumentException: input data too large.
What is the maximum size for signing something?
Do you have any suggestions about how I can sign this object?
I'd like to change the font size of the "Groups & Files" panel of the Xcode IDE. I know how to change the "Fonts & Colors" in the preferences, but those (seem to) only affect the code window, not the rest of the IDE. Any ideas? Thanks!
Hi guys,
I am trying to create a shell script/command that find error_log files created by PHP, check their file sizes and remove them if over a certain size.
I have only gotten as far as printing the files and file sizes with the code below
for i in `locate -r 'error_log$'`;do echo "$i|" `stat -c %s $i`;done
Can anyone help?
Thanks 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!
Is there any way in Java to enforce a minimum window size?
The last article I can find is from 1999, and has some complicated code to mimic the behaviour...
http://www.javaworld.com/javaworld/javaqa/1999-10/03-qa-window.html
Surely there is a simple method that can be used?
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 tasked with creating a multi-touch application but I don't have a multitouch screen or device and ours don't arrive for a month (Grr!)
Is there some kind of emulation or cheap USB device that we can get that will work with WPF in .NET 4 for the interim?
How do I use gl.gluUnproject in my OpenGL ES 1.1 android app to determine what is selected when the user touches the screen?
My understanding is that the touch event results in a line and I have to find the first "thing" it intersects with.
Are there any tutorials on how to do this?
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'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?
How to put more than one JToolBar on one screen and allow them floating. Usually we put JToolBar on a container with BorderLayout. if we put all JToolBars on a panel then put the panel to the container, we will have problem to allow them floating. any ideas?
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.
I'm trying to create a WPF window that will encompass the entire Desktop working area. In WinForms I'd do this by getting the Union of all the bounds in System.Windows.Forms.Screen.AllScreens.
Is there an equivalent type or other mechanism to get the bounds of the entire desktop in WPF or do I need to use the WinForms type?
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!
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