All Questions
0
votes
0answers
3 views
What is a good way to encode diffs in absence of the source text?
The situation is this like: there's some text
hello world!
It is processed by my tool and is converted to some symbolic form, e.g.
[hello@0, world@6]
(notice how the ! is discarded).
Now my ...
0
votes
0answers
3 views
Calling delete upon a conditional call to new
Suppose I have the following class:
foo{
~foo();
private:
char *bar;
};
Under certain conditions bar will create a new char array so what would be the correct way to handle the ...
0
votes
0answers
2 views
Performance mongodb query with starts-with
For a proof of concept I have loaded ~54 million records into mongodb. The goal is to investigate the query speed of mongodb.
I use the following class to store the data:
[BsonDiscriminator("Part", ...
0
votes
0answers
2 views
Sitecore: Exclude items during lucene search
How can I use ADC during lucene search to exclude out unwanted items? (Given that I have few millions of items)
Given the unwanted items are different from time to time, thus, it is impossible for me ...
0
votes
0answers
4 views
Slider (sequence.js) not working in IE9
a new client wants me to look into a slider issue on his homepage - its not working in IE9. I removed some duplicates scripts from the code (jQuery, sequence.js etc) and its actually working for me ...
0
votes
0answers
4 views
how to start second background thread by first thread onpost()
i created two background thread. but second thread is not starting. first thread is working fine. when first process bar show and then dismiss. but after dismiss my second thread is not starting . i ...
0
votes
0answers
5 views
Linux Descriptor Type
How do I get the descriptor type? I am using epoll to monitor lots of descriptors like sockets, timers, and signals. I saw it is possible using fstat, but the mode only says something about sockets ...
0
votes
0answers
4 views
Transfer speed over wifi and 3G within the same room
If two or more mobile devices are in the same room and using wifi and to transfer data between each other and they both get their wifi from the same source, is the speed usually higher than if it were ...
0
votes
0answers
2 views
how can I use ember routeTo event?
from ember.js documentation, for RC4:
LINKTO NOW GENERATES ROUTETO EVENTS
Previously, the {{linkTo}} helper caused the router to transition
without any hooks to affect that behavior. Thanks ...
0
votes
0answers
3 views
Groovy - How can I compare part of a list to a string
I have a list which contains two types of text. One type is used for authorization while other type is used for all other purposes.
The type used for authorization always uses the same text + some ...
0
votes
0answers
3 views
padding with PKCS7 [C]
I want to do padding with PKCS7 :
char *test1 = "azertyuiopqsdfgh";
char *test2 = malloc(32*sizeof(char));
memcpy(test2, test1, strlen(test1));
char pad = (char)(32-strlen(test1));
printf("pad = ...
0
votes
0answers
10 views
Gcc 4.8.0 failed installation, Linux ubuntu 12.4.2…?
I followed this instruction and after complete this i still get gcc version 4.6.3 on my linux ubuntu 12.4.2, compiler was installed in /app/gcc/4.8.0 and there is a bin directory with new gcc and g++, ...
0
votes
0answers
4 views
Add columns and rows to wpf listview dynamically
i want to add new columns and rows to a C# WPF ListView (GridView) at runtime. As far as i know you can only add rows to a gridview by using anonymous objects or classes with a static set of members ...
0
votes
0answers
8 views
Using Substring, within ISNULL in TSQL returns unexpected number of characters for the field
My field in my SKU table
(BI.dbo.SKU.phl5) is varchar(15)
However below code returns just 3 characters 'Unc' for the null fields in my table while it should return 'Uncategorized'. How to solve ...
0
votes
0answers
13 views
Refresh dropdownlist populated from datasource c#
Hi I'm developing a smart WM 6.1 app using CF 3.5 and visual studio 2008.
So i have a dropdown list populated via datasource (a table of my sqlite database).
My question is how can i refresh (and ...