Hello!Need your help!
How to get displayed text in RichTextBox?
I mean if RichTextBox is scrolled to the end, I'd like to receive only those lines, which are visible for me.
P.S.It'll be enough to get fisrt displayed string
Hi,
I'm looking for Linux embedded web browser, or preferably just a rendering object (it will not be used for actual browsing, just for displaying web based gui).
The requirements are:
Written in C (small footprint)
Support Dynamic HTML
Support Java script
Minimum dependencies on the libraries (although i understand that it can not be…
Is there a way to speed up the population of a page with GWT's UI elements which are generated from data loaded from the datastore? Can I avoid making the unnecessary RPC call when the page is loaded?
More details about the problem I am experiencing: There is a page on which I generate a table with names and buttons for a list of entities…
I wrote my method: LangChange
type
MainForm = partial class(System.Windows.Forms.Form)
private
...
method LangChange();
protected
method Dispose(disposing: Boolean); override;
public
constructor;
end;
implementation
...
method LangChange();
begin
...
end;
However,I have an error
Error 1 (PE33) Implementation for…
Hi, I am using Uploadify on one of my client's web sites to allow them to upload a large amount of pictures at once to their photo gallery.
I am seeing issues lately. They seem to upload large photographs (3 MB and above). I am wondering, is it possible to compress (reduce their size) on the client side, instead of doing it on the server…
Hi. I have a Hessian service on Spring + iBatis working on Tomcat.
I'm wondering how to cache results...
I've made the following config in my sqlmap file:
<sqlMap namespace="Account">
<cacheModel id="accountCache" type="MEMORY" readOnly="true" serialize="false">
<flushInterval hours="24"/>
<flushOnExecute…
Please, would you help me in reminding me of one of the simplest parallel programming techniques.
How do I do the following in C#:
Initial state:
semaphore counter = 0
Thread 1:
// Block until semaphore is signalled
semaphore.Wait(); // wait until semaphore counter is 1
Thread 2:
// Allow thread 1 to run:
semaphore.Signal(); //…
I have two list boxes like show below, side by side.
They both have anchors on top, bottom, left and right.
When I stretch the window the left listbox grows over the right one. While I want the margin between them to stay and for both listboxes to expand evenly. Is there anyway to achieve this?
Thanks!
Hey
I have the following code. I get a directory entry for a user (strpath).
And then I get the groups where the user is listed.
How can I get the number of users in each group?
DirectoryEntry myDE = new System.DirectoryServices.DirectoryEntry(strpath);
object obGroups = myDE.Invoke("Groups");
foreach (object ob in…
I have a simple code
byte[] buffer = Encoding.UTF8.GetBytes("abracadabra");
MemoryStream ms = new MemoryStream();
DeflateStream ds = new DeflateStream(ms, CompressionMode.Compress, false);
ms.Write(buffer, 0, buffer.Length);
DeflateStream ds2 = new DeflateStream(ms, CompressionMode.Decompress, false);
byte[] …
Hi,
I found the following piece of code in apple guidelines:
- (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration
{
//Use a basic low-pass filter to only keep the gravity in the accelerometer values
accel[0] = acceleration.x * kFilteringFactor + accel[0] *…
Hello,
I am J2SE developer but I have rich web-background (php, perl/cgi and so on) and now I am starting new project. It will have web interface, spaghetti business logic, relational database as storage and connections to other services. I do it from the scratch.
My colleagues told me to use spring, spring…
class Product(models.Model):
...
image = models.ImageField(upload_to = generate_filename, blank = True)
When I use ImageField (blank=True) and do not select image into admin form, exception occures.
In django code you can see this:
class FieldFile(File):
....
def…
Hi,
By default the back button uses as a text on it a title of a viewcontroller.
Can I change text on the back button without changing a title of a view controller?
I need this because I have a view controller which title is too long to display and in this case I would like to display…
I need to implements splash screen in my honeycomb app.
I use this code in activity's onCreate to show splash:
setContentView(R.layout.splash);
getActionBar().hide();
and this code to show main UI after some time:
setContentView(R.layout.main);
getActionBar().show();
But before…
I have the following issue:
How to set per-script upload_max_filesize limit?
I want to set a larger upload max filesize limit for a particular script (action). I know I could use .htaccess, but the problem is that all actions are being dispatched via single index.php file, which…
How do I get in Internet Explorer values equivalent to: window.outerWidth and window.outerHeight in Firefox ?
I've seen some "solution": window.screenLeft and window.screenTop but it is not correct. These properties give inner dimensions.
I resize a window and I need values to…
Hello,
I'm initializing in a class a pointer to be NULL. Afterwards I check if it is NULL in the same class. But it's not always 0x0. Sometimes it's 0x8 or 0xfeffffff or 0x3f800000 or 0x80 or other strange stuff. In most case the pointer is 0x0 but sometimes it gets altered…
I have a path for example
C:\files\dir\file.css
The "files" directory exists. however, the dir directory is missing and needs to be created.
When I try to create the file using File.Create, it throws an exception saying that the directory was not found.
Is there any way…
Consistently getting a status of 0 even though if I copy and paste the url sent into my browser, I get a json object right back
<?php
$mainUrl = "https://api.xxxx.com/?";
$co = "xxxxx";
$pa = "xxxx";
$par = "xxxx";
$part= "xxxx";
$partn = "xxxx";
$us= "xxx";…
Hi,
I have a pretty long sqlite query:
const char *sql_query = "SELECT statuses.word_id FROM lang1_words, statuses WHERE statuses.word_id = lang1_words.word_id ORDER BY lang1_words.word ASC";
How can I break it in a number of lines to make it easier to read?…
I have register form on every page of my website. During registration some error may occur. After cathing error, I have to return user to previous page, showing some error tips. The problem is I dont know from which page user performs registration. That's why I…