I am writing a UTF-8 library for C++ as an exercise as this is my first real-world C++ code. So far, I've implemented concatenation, character indexing, parsing and encoding UTF-8 in a class called "ustring". It looks like it's working, but two (seemingly equivalent) ways of declaring a new ustring behave differently. The first way:
ustring a;
a =…
According to the PHP docs, one can initialize properties in classes with the following restriction:
"This declaration may include an initialization, but this initialization must be a constant value--that is, it must be able to be evaluated at compile time and must not depend on run-time information in order to be evaluated."
I'm trying to…
I'm using a couple of external libraries and I'd rather not have to include all their source and header files in my main source directory or in my project file. One option would be to compile the libraries as lib files and link them like that. However I'm not sure the defines get evaluated before or after the lib file gets created (which…
How can I create dataTemplate in code (using C#) and then add control to that DataTemplate ?
<data:DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border>
<Border Margin="10" Padding="10" BorderBrush="SteelBlue"
BorderThickness="3" CornerRadius="5">
…
I created custom membership provider for asp.net mvc applications and it all works fine except one thing:
when logged in to my application, I am also logged in to all other asp.net mvc applications that I run using Visual Studio. I suppose this data is being pulled from cache because when I logout and try to login again in…
I'm looking at the MDC page for the @font-face CSS rule, but I don't get one thing. I have separate files for bold, italic and bold + italic, how can I embed all three files in one @font-face rule? For example, if I have:
@font-face {
font-family: "DejaVu Sans";
src: url("./fonts/DejaVuSans.ttf") format("ttf");
}…
EDIT:
This question is about finding definitive reference to MySQL syntax on SELECT modifying keywords and functions.
/EDIT
AFAIK SQL defines two uses of DISTINCT keywords - SELECT DISTINCT field... and SELECT COUNT(DISTINCT field) ...
However in one of web applications that I administer I've noticed performance issues…
I would like to refer to a MergedDictionary together with locally declared resources in my Windows.Resources. However, I'm getting this error:
"All objects added to an IDictionary
must have a Key attribute or some
other type of key associated with
them."
Is it possible to mix local resources together with…
I wrote a program in c using MPI (Message Passing Inteface) that compute recursively the inverse of a lower triangular matrix. Every cpu sends 2 submatrices to other two cpus, they compute them and they give them back to the cpu caller. When the cpu caller has its submatrices it has to perform a matrix…
I'm working on a Xiling FPGA for a course project. Normally we use the lab computers, but I'm trying to install on my own computer.
So, I'm trying to include a macro file using line:
`include "Const.v"
But the following macro function doesn't work. Any ideas why?
`ifdef synthesis //…
Hello,
I have table (that generated by server) below.
I want to get input element value class="itemQuantity" of clicked row.
I write Jquery code but he missing "this" of clicked element.
<script type="text/javascript">
$(document).ready(function() {
$('.updateButton').click(function() {
…
Hello,
I have table (that generated by server) below.
I want to get input element value class="itemQuantity" of clicked row.
I write jQuery code but he missing "this" of clicked element.
<script type="text/javascript">
$(document).ready(function() {
$('.updateButton').click(function() {…
Hi! I've got a WPF application containing a WCF service.
The Xaml code is pretty simple:
Enter your text here
Send
Address:
Here is the service:
namespace WpfApplication1
{
…
Hello all,
I have two elements on the same page that are using the same stylesheet: Jquery Tabs and Jquery Slider.
I cannot redefine classes of slider since change of css will affect both elements.
Tabs using these classes:
ui-tabs ui-widget…
I'm porting android to Devkit8000 which is a BeagleBoard clone. I have a GPS module connected on /dev/ttyS0. I could successfully get NMEA output when writing "cat /dev/ttyS0" in the terminal emulator.
I want to know how to let android know that…
Hi,
I'm using the Acegi security Grails plugin in my application and sometime it's look like the session expired, the session variables not available anymore like session.user , but the user is not redirect to the login page. if you know how to…
As part of a larger regex I would like to match the following restrictions:
The string has 11 digits
All digits are numbers
Within the first 10 digits one number [0-9] (and one only!) must be listed twice
This means the following should…
Hi,
I'm querying an SQL Server database using SQLAlchemy and need to cast a column to varbinary(max). The thing I am struggling with is the "max" part. I can get the cast to work for any actual number (say varbinary(20)), but I cannot find…
I have a table view in that i am showing an text fields now my problem is i want to read the data from those text field i am able to get the value but i even want to know its from which text box i want the index of the text box