Hello,
I have a Win7 PC in use as part of an experiment control system. The experiment in question uses 4 windows simultaneously, and I would like to find away to open, position and size these 4 windows with a script.
The script would run at start up, so that the newly booted PC presents the user with the four windows as default.
Obviously I can use a batch file in the startup folder to open windows and run applications, but is there a way to specify the layout of these windows?
Many thanks
Si
I can examine the optimization using profiler, size of the executable file and time to take for the execution.
I can get the result of the optimization.
But I have these questions,
How to get the optimized C code.
Which algorithm or method used by C to optimize a code.
Thanks in advance.
How would you use Matlab to do the following? I've got fuzzy square images about the same size and then inside the fuzzy square there's smaller fuzzy squares, and I want to clean up the larger squares - not the smaller ones - so that they are no longer blurred. It looks like I'd have to make some type of morphological mask, but I'm not sure how in this case.
Hi guys,
Just wondering if you could help wanting to produce an activity stream in Java, the idea was to have a JLabel and text area followed by a divider be displayed on a screen and then repeated X amount of times according to what data was in a database.
What I was wondering is how could I possibly repeat the placing the jlabel, text area, and diveder on the screen above the last rendered objects on the fly and all displayed correctly no matter the size of the text area of each set of object sort of like the image below.
Hope I made it clear as I could thanks
How would I print the multiples of a list of given numbers in a merged, sorted list?
I.e.
take 10 (multiples [4,5])
gives
4,5,8,10,12,15,16,20,24,25
I've got it working for lists of size 2 or 1 but I need a more general solution :)
Hi,
I am storing images in mysql Db directly. what is the best way to display the image in good quality (thumbnail and original size images) using php.
Hi, I have an application that just only use for show information and search data. and my datatype is text and has larg size. would you please tell me what's the best storage for it. also I don't want to use SQL database.
thaks
Hi, I'm relatively new to C++ and OOP in general and currently trying to make such a class that allows to dereference and delete a dead or invalid pointer without any care of having undefined behavior or program fault in result, and I want to ask you is it a good idea and is there something similar which is already implemented by someone else? or maybe I'm doing something completely wrong?
I've just started making it and here is the code I currently have:
template<class T> class SafeDeref
{
public:
T& operator *()
{
hash_set<T*>::iterator it = theStore.find(reinterpret_cast<T*>(ptr));
if (it != theStore.end())
return *this;
return theDefaultObject;
}
T* operator ->()
{
hash_set<T*>::iterator it = theStore.find(reinterpret_cast<T*>(ptr));
if (it != theStore.end())
return this;
return &theDefaultObject;
}
void* operator new(size_t size)
{
void* ptr = malloc(size * sizeof(T));
if (ptr != 0)
theStore.insert(reinterpret_cast<T*>(ptr));
return ptr;
}
void operator delete(void* ptr)
{
hash_set<T*>::iterator it = theStore.find(reinterpret_cast<T*>(ptr));
if (it != theStore.end()) {
theStore.erase(it);
free(ptr);
}
}
protected:
static bool isInStore(T* ptr)
{
return theStore.find(ptr) != theStore.end();
}
private:
static T theDefaultObject;
static hash_set<T*> theStore;
};
The idea is that each class with the safe dereference should be inherited from it like this:
class Foo
: public SafeDeref<Foo>
{
void doSomething();
};
So... Any advices?
Thanks in advance.
P.S. If you're wondering why I need this... well, I'm creating a set of native functions for some scripting environment, and all of them use pointers to internally allocated objects as handles to them and they're able to delete them as well (input data can be wrong), so this is kinda protection from damaging host application's memory
And I really sorry for my bad English
Is it possible to add a horizontal scrollbar to a text box that works in all browsers?
Currently if the text value is bigger than the size of the text box you have to highlight the text and move cursor to the right to see the rest of the text. I'd like user to have a scrollbar to use instead.
I'm developing an NSIS installer, to update a program that runs in background. Obviously, I'd like to send the program termination signals, because otherwise I repeatedly get a "can't write" error. How can I do this, with a limited overhead on installer size?
I am trying to include huge string in my c++ programs, Its size is 20598617 characters , I am using #define to achieve it. I have a header file which contains this statement
#define "<huge string containing 20598617 characterd>"
When I try to compile the program I get error as fatal error C1060: compiler is out of heap space
I tried following command line options with no success
/Zm200
/Zm1000
/Zm2000
How can I make successful compilation of this program?
Platform: Windows 7
Hello All,
How to Store Large size Images into iPhone Application?
Images are taken from UIImagePickerController but saving into Database and retrieving from
Database crash the application.
Hello,
I want to load an image, resize it to a given size and after draw it in a specific position in a panel.
All this using wxpython.
How can I do it?
Thanks in advance!
In C++ the size of an array is not stored in the array itself, but how does delete[] determine how many bytes to free? Is every array terminated by \0 or something similar?
Is there a way to access an element on a vector starting from the back? I want to access the second last element.currently I'm using the following to achieve that:
myVector[myVector.size() - 2]
but this seems slow and clunky, is there a better way?
So i want to open a URL and regex all the image urls from the page.
then i want to curl all of them and check what size they have. in the end i want to get the biggest one
Hi,
Using CodeIgniter, how do I access and display text entered into an input field on a view file (see code below) from my controller file?
// input_view.php
$input_data = array('name' => 'search_field', 'size' => '70');
echo form_input($input_data);
Hello.
What's best, a repeating background of 100px wide so that the actual file doesn't need to be redrawn 1000X times in width, or a 1px file that probably has smaller file size, but the browser will need to redraw it a lot more.
Thanks.
Hi friends,
I need to store image and resume of user in the data base.
I am using mysql data base and php5. I need to know which data types I should use.
And also how do I set a limit (maximum size) for uploaded data.
Here is a quick sketch.
I would like to achieve that images in the gallery div will be 100% of the height of the gallery div and keep the aspect ratio
AND
that images would resize as you would change the size of browser.
Is this possible?
Any help would be much appreciated.
Here is what I made so far: www.nulaena.si/photob/.
To set your own colors for anchor, I know we can do this in UserContent.css:
a { color:green!important; background-color: white!important; font-size: 1.2em!important; }
But how to set a specific color for the anchor tag that references the same page (the "#" is in the url). Or if "javascript:" is in the ural of the anchor tag?
Im having a mysql query like this
SELECT group_name FROM t_groups WHERE group_name LIKE '%PCB%';
The results are
group_name
------------
PCB
Full size PCB
Another query,
SELECT group_name FROM t_groups WHERE group_name LIKE '%PCB-123%';
group_name
-----------
PCB-123
How can i use a query that will show all the three results ?,I mean i need to get all the results that starts or contains PCB