I put the RichTextBox in my Silverlight App. Do I have to create my own set of buttons to use it? I want to have a standard set of editing buttons for the text box.
I previously asked how to do this in Groovy. However, now I'm rewriting my app in Perl because of all the CPAN libraries.
If the page contained these links:
<a href="http://www.google.com">Google</a>
<a href="http://www.apple.com">Apple</a>
The output would be:
Google, http://www.google.com
Apple,…
Say I have:
class Vector3 {
float x, y, z;
... bunch of cuntions ..
static operator+(const Vector3&, const Vector3);
};
Now, suppose I want to have classes:
Position, Velocity,
that are exactly like Vector3 (basically, I want
typedef Vector3 Position;
typedef Vector3 Velocity;
Except, given:
Position…
Suppose I want to write my own preprocessor.
So I want something like this:
all *.cpp and *.hpp (even the included ones), before they go to g++, they go:
file --> my preprocessor -> g++
Is there a easy way to do this in the LLVM framework? i.e. to add in a stage that says: "after you load up the source file,…
Is it possible to define macros
write_foo(A);
and
read_foo();
so that:
WRITE_FOO(hello);
code_block_1;
READ_FOO();
code_block_2;
READ_FOO();
WRITE_FOO(world);
code_block_3;
READ_FOO();
code_block_4;
READ_FOO();
expands into:
code_block_1;
hello;
code_block_2;
hello;
code_boock_3;
world;
code_block_4;…
I want to have C++ objects that I can read/write in both C++ & Lua.
I have looked at: http://www.lua.org/pil/28.html
However, I do not like that solution, since my objects have constructors & destructors (and they are important as I use RAII and these take care of reference counts).
What I don't like in the…
For writable buffers, is there a way to tell vim to autoindent a file on entering & exiting the buffer?
What I want is the equiv of:
1G=G
to go first line
indent ..
until last line
Thanks!
I have several pages or views in my application which are essentially the same for both authenticated users and anonymous users. I'd like to limit the insert/update/delete actions in formviews and gridviews to authenticated users only, and allow read access for both authed and anon users.
I'm using the asp.net…
I'm relatively new to OpenGL and I'm clueless how to implement explosion. So could anyone give me some ideas how to start? Suppose the explosion occurs at location $(x, y, z)$, then I'm thinking of randomly generate a collection of vectors with $(x, y, z)$ as origin, then draw some particle (glutSolidCube) which…
I'm relatively new to OpenGL and I'm clueless how to implement explosion. So could anyone give me some ideas how to start? Suppose the explosion occurs at location $(x, y, z)$, then I'm thinking of randomly generate a collection of vectors with $(x, y, z)$ as origin, then draw some particle (glutSolidCube) which…
I've a strange problem with my ubuntu 10.04 installation. Whenever i boot into ubuntu the entire system freezes / hangs soon after (~ 2 mins in). This problem exists on my windows 7 installation too. However if i start World of Warcraft or Warcraft on windows it doesnt hang for the duration i'm playing the…
EDIT: I noticed that this is more appropriate for superuser.com, I apologize. I don't know how to delete this question.
I'm using kubuntu jaunty (i386 32bit), kernel 2.6.28-13-generic. I've 4Gb of RAM, of which only 3317Mb are seen by the system (I guess because of the 32bit system).
I'm seeing that the…
I've a strange problem with my ubuntu 10.04 installation. Whenever i boot into ubuntu the entire system freezes / hangs soon after (~ 2 mins in). This problem exists on my windows 7 installation too. However if i start World of Warcraft or Warcraft on windows it doesnt hang for the duration i'm playing…
I'm running my new computer which has 8GB of RAM installed, which is visable from BIOS page, does not show in /proc/meminfo
uname -a
Linux localhost 3.0.6-gentoo #2 SMP PREEMPT Sat Nov 19 10:45:22 GMT-- x86_64 AMD
Phenom(tm) II X4 955 Processor AuthenticAMD GNU/Linux
The result of /proc/meminfo…
I've got a strange problem. I can not allow apache to connect to database at my CentOC 6.4 box:
[root@centos6 ~]# setsebool -P httpd_can_network_connect on
Killed
[root@centos6 ~]# sestatus -b | grep httpd_can_network_connect
httpd_can_network_connect off…
I've tried to open several MIB files in tkmib without success. For example:
$ sudo apt-get install tkmib
$ wget http://www.mibsearch.com/vendors/Compaq/download/CPQHLTH-MIB
$ tkmib CPQHLTH-MIB
Click "walk", then you should get an error message like this:
setting opts…
Other than some obvious concerns, my main concern is support in the open source community. "anon" from the CoffeeScript team sent this to me after I requested input from the team to concerns I raised and wanted to get others' take on it:"Thanks for confirming that only…
I'm trying to diagnose a slow filesystem issue on a server I look after. It's been ongoing for quite some time, and I've run out of ideas as to what I can try. Here's the thick of it.
The server itself is a Dell Poweredge T310. It has 4 SAS hard drives in it,…
I have the following function in a C++ DLL
extern "C" __declspec(dllexport) bool Exist(const char* name)
{
//if (g_Queues.find(name) != g_Queues.end())
// return true;
//else
// return false;
return false;
}
Inside my C# class I have the following:
…
I had a problem with
<iframe id="iframe1" src='http://stockcharts.com/h-sc/ui?s=MT&p=D&yr=2&mn=0&dy=0&id=p43321191731' width="300px" height="300px"></iframe>
in Lift web framework (Scala) version
Message:…
Hello Stack Anon,
I have X number of image objects that I need to loop through in a view and want to create a new div every 6 objects or so (for a gallery).
I have looked at cycle but it seems to change every other record. Does anyone know…
Ok: I edited my question: I heared somewhere, that php language is written by C.
So i have question: what happens for example when you run a function in php such as date("Ymd"); or file_get_contents("file.txt");?
Does it translate that…
I have a toy Linux box with 256mb RAM running Ubuntu 10.04.1 LTS. Here is the output of free -m:
total used free shared buffers cached
Mem: 245 122 122 0 19 …