Hi,
Someday i've downloaded a very nice jquery editor but i lost it and i only have a screenshot of it. You just type a tag and press return or space and it's will be inside a nice box, and you can delete it by only pressing the backspace key or the close icon.
Please don't suggest me That because it's so poor and the tags are inserted outside the input box.
Thanks
Hello all,
I'm trying to use php's file_get_content('a url');
The thing is if the url has '&' in it, for example
file_get_contents('http://www.google.com/?var1=1&var2=2')
it automatically make a requests to www.google.com/?var1=1&<no space here>;var2=2
How do I prevent that from happening?
In C# you have nice alignment attributes such as this:
[StructLayout(LayoutKind.Explicit)]
public struct Message
{
[FieldOffset(0)]
public int a;
[FieldOffset(4)]
public short b;
[FieldOffset(6)]
public int c;
[FieldOffset(22)] //Leave some empty space just for the heck of it.
public DateTime dt;
}
Which gives you fine control on how you need your structure to be layed out in memory. Is there such a thing in standard C++?
Hello,
I have managed to load in an image using:
BufferedImage image = ImageIO.read(out);
and place text over it however, I want the text to appear next to the image. How can I increase the image width on the right to allow for space for the text to be drawn on. Or do I have to create a new empty image and insert the existing one?
Thanks
Dear all. I was wondering if there are examples of situations where you would purposefully pass an argument by value (deep copy) in C. For instance, passing a char to a function is usually cheaper in space than passing a char* (if there's no need to share the value), since char is 1 byte and pointers are, well, whatever they are in the architecture (4 in my 32 bit machine). ?(When) do you want to pass (big) deep copies to functions? if so, why?
Is there a way to find out how much space (on disk) a row in my database takes up?
I would love to see it for SQL Server CE, but failing that SQL Server 2008 works (I am storing about the same data in both).
The reason I ask is that I have a Image column in my SQL Server CE db (it is a varbinary[max] in the SQL 2008 db) and I need to know now many rows I can store before I max out the memory on my device.
Hi,
In order to overcome a Java heap space problem, I need to extend the Java heap size up to
256 MB. I did it using Eclipse by passing -Xmx256m as a parameter during the execution.
My problem is that I want to export my application as a JAR file. How to keep this configuration during the export?
Thank you
Hi all,
I'm developing a ASP.NET MVC application. There is little space for me to put two standard file uploading web controls in a page. So I'm seeking for some succinct alternatives. A checkbox-look button pops up a file open dialog is ideal. Is there any kind of stuff?
Thanks in advance!
Is it possible to solve a problem of O(n!) complexity within a reasonable time given infinite number of processing units and infinite space?
The typical example of O(n!) problem is brute-force search: trying all permutations (ordered combinations).
I'm using pagination on a values from a set. So what this results in is me needing to get values from x to x + 20 which can be in the middle of a set with 50,000 entries. Is it possible that I can fetch these values by grabbing by the space in the set?
Would it make more sense to do
result = []
my_dict = dict(very_big_set)
for i in range(30000, 30020)
result.append(my_dict[i])
I am using Django with MySql. I have a CharField with max length of 64 as the 2nd to last column, and a Boolean as the last column. Will reversing the order of these provide better optimization of space?
I am writing a windows forms application in C# and I create a RichTextBox (via code, not the designer). I am setting the AutoWordSelection property to false, but when I highlight stuff in the box, it still jumps to the boundaries of words, plus a space. Is this a flaw in .NET or am I doing it wrong?
Hi,
I want to do grep texts files inside a rar without extracting the rar file to disk, I tried a couple of combinations with pipes however it didnt work i tried for example
unrar e myrar.rar | grep mysearchedline
however it actually opened it to disk, I don't want to open it to disk, I don't have enough space for it to be opened (its real big with real big logs).
Thanks.
I placed some validation controls on my grid view template. The only problem is that it is taking a lot of space vertically. Is there a property to set to solve this problem?
(Community wiki from the start.)
What's the worst name you've seen for a product?
It might be a euphemism the company didn't know about, maybe something like Penetrode (from Office Space).
It might be something impossible to do a web search on, like the band named "Download".
It might be some combination of random syllables that's just awful.
But no matter what, it's bad. What's the worst you've seen?
I wrote a program to compile a simple text program to a compiled executable... Is it possible that I can load an executable to memory an some how point a pc counter to the memory space at will?
Here is what I made that I would like to store the programs to memory for execution on demand... Kind of wanting to make a little web language like php but compile it... Just for learning.
http://spiceycurry.blogspot.com/2010/05/simple-compilable-programming-language.html
Hi, i bought a web domain with some web space. They support only mySQL DB, how do i access the my SQL DB on my asp.net application? is there is way to access it through .net base classes without installing third party drivers?
Dumb question, but whenever you call new, do you always have a pointer?
SomeClass *person = new SomeClass();
And is that because you need a pointer to point to that new space of memory that was allocated for the SomeClass variable person? Thanks!
Hello
Can anybody please post some example code on how I can reread a configuration file and restart my daemon after the daemon receives a SIGHUP signal. The daemon is a user space program written in C on Linux and is not started by inetd.
If I have 2 files each with this:
Hello World (x 1000)
Does that take up more space than 1 file with this:
Hello World (x 2000)
What are the drawbacks of dividing content into multiple smaller files (assuming there's reason to divide them into more files, not like this example)?
If I have an object I need to store in viewstate, what kinds of things can I do to optimize the size it takes to store the object? Obviously storing the least amount of data will take less space, but aside from that, are there ways to architect the class, properties, attrbutes etc, that will effect how large the serialized output is?