text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
all values are matched?
You could try something like:
```
select t.*
from tableName t
join (select 'someValue1' value1, 'someValue2' value2 union all
select 'someOtherValue1', 'someOtherValue2') v
on t.value1 = v.value1 and t.value2 = v.value2
where 2=
(select count(distinct concat(v1.value1, v1.value2))
fro... | [
0.04698953405022621,
-0.12334159761667252,
0.6533473134040833,
0.023822421208024025,
-0.08238744735717773,
0.04090188816189766,
0.11043170094490051,
-0.4660007953643799,
0.004917776677757502,
-0.3878532648086548,
0.054595932364463806,
0.7033171057701111,
-0.14010630548000336,
-0.0253306068... | |
table in the above query, instead of two separate hard-coded virtual tables. | [
-0.44328397512435913,
-0.03024928644299507,
0.3562317192554474,
0.2959176003932953,
0.05957428365945816,
0.12029746174812317,
-0.11867619305849075,
0.17739064991474152,
-0.35206323862075806,
-0.6977940797805786,
-0.2870051860809326,
-0.10447289049625397,
-0.32999685406684875,
0.29695910215... | |
Ah yes "friend" the most dreaded of keywords, not quite object oriented, not quite procedural. Well here it is making trouble again, I have every possible warning I could think of on, and all the GCC can tell me is that read poly() is not declared in this scope (main.cpp). Can anyone help me figure out what I'm doing w... | [
0.03758077323436737,
0.27347835898399353,
0.4301747977733612,
-0.3203386962413788,
-0.2493210881948471,
-0.19174103438854218,
0.38798269629478455,
0.11527039855718613,
-0.22845247387886047,
-0.339400053024292,
0.0036262483336031437,
0.6943525075912476,
-0.0877336710691452,
0.31585574150085... | |
test = readPoly();
}
//Polynomial.h
class Polynomial
{
public :
/** creates the zero Polynomial and sets the default output character*/
Polynomial();
/** creates the constant Polynomial c */
Polynomial( int c );
/** creates a Polynomial with one term c*x^d */
Polynomial(int c, int d);
... | [
0.0552864708006382,
-0.05630364641547203,
0.267922043800354,
-0.023803694173693657,
0.23355473577976227,
0.07315763086080551,
0.1510309875011444,
-0.4507019817829132,
0.25956255197525024,
-0.3743630647659302,
-0.20133326947689056,
0.604423999786377,
-0.35148510336875916,
0.1417076587677002... | |
0;
cin >> termQty;
int coefficient,degree;
Polynomial newPoly;
for (int n = 0; n <= termQty; n++)
{
cin >> coefficient >> degree;
newPoly.insert(new Term(coefficient,degree));
newPoly.degreeCached = max(degree, newPoly.degreeCached);
}
return newPoly;
}
```
A fri... | [
-0.04069245979189873,
-0.19774867594242096,
0.6318579316139221,
-0.3222251236438751,
0.29361769556999207,
-0.20625826716423035,
0.29744696617126465,
-0.34240832924842834,
0.13117541372776031,
-0.49107494950294495,
-0.44553396105766296,
0.6038864850997925,
-0.37321561574935913,
0.4505282938... | |
since the function doesn't have
any arguments which use `Polynomial`, ADL won't find it. Just add a
declaration of the function in the surrounding namespace scope. Or make
it a static member, rather than a `friend`—in this case, it seems
more appropriate (to me, at least). In that case, you would call it
with `Polynomi... | [
0.02508026547729969,
0.05809275060892105,
0.364315927028656,
-0.020031234249472618,
-0.1279865801334381,
-0.3048730790615082,
0.10518743842840195,
0.008769852109253407,
-0.11024880409240723,
-0.29422661662101746,
-0.3182554841041565,
0.4637714922428131,
-0.4216606616973877,
0.3374000787734... | |
Here are my codes for sending mail:
```
$fullname = $_POST['fullname'];
$email = $_POST['email'];
$telephone = $_POST['telephone'];
$email = $_POST['email'];
$date = $_POST['date'];
$time = $_POST['time'];
$adult = $_POST['adult'];
$children = $_POST['children'];
$company_name = $_P... | [
0.047497302293777466,
0.3617740571498871,
0.6031970977783203,
-0.10555779933929443,
0.2503671944141388,
0.42116644978523254,
0.2673860192298889,
-0.1283465325832367,
-0.006556101143360138,
-0.6355187296867371,
-0.12469999492168427,
0.1682329624891281,
-0.1337009221315384,
0.102622680366039... | |
Sir,
</td>
</tr>
<tr>
<td><b>Booking request from '.$fullname .'</b><br /><br />
<u>The details provided are:</u><br />
<p>Name : '.$fullname.'<br />
E-mail Address: '.$email.'<br />
Telephone: '.$telephone.'<br />
Date: '.$date.'<br /> | [
-0.6070674061775208,
-0.13003045320510864,
0.6587985157966614,
-0.09494174271821976,
0.15632669627666473,
0.3490890860557556,
0.25105786323547363,
-0.15842603147029877,
-0.3609398901462555,
-0.27599450945854187,
-0.3977851867675781,
0.10136796534061432,
-0.418497771024704,
0.13243694603443... | |
Time: '.$time.'<br />
Adult: '.$adult.'<br />
Children: '.$children.'<br />
Company Name: '.$company_name.'<br />
Confirm by: '.$confirm .'<br />
Additional Requirements: '.$addition.'<br />
</p>
</td> | [
0.48638826608657837,
0.1578594595193863,
0.3825768530368805,
-0.08074001967906952,
0.6297641396522522,
0.004986057057976723,
-0.2247762829065323,
-0.27789485454559326,
-0.01747714914381504,
-0.5345462560653687,
-0.40897998213768005,
0.2489442676305771,
0.17785358428955078,
0.07662067562341... | |
</tr>
<tr>
<td>
<p>Thank you,<br />
Kaavya Cuisine
</p></td>
</tr>
</table>
';
$to = 'sujal@longtail.info';
$subject = 'Booking Request';
$sitename='Website Name';
$mail = new PHPMailer();
$mail->AddReplyTo($to,$sitename); | [
0.03802178427577019,
-0.16976039111614227,
0.849967360496521,
-0.13656821846961975,
-0.19941750168800354,
0.14466026425361633,
0.47912508249282837,
0.000006425640094676055,
-0.04243556037545204,
-0.3517652750015259,
-0.3996135890483856,
0.26482558250427246,
-0.28312361240386963,
0.28642016... | |
$mail->SetFrom($email,$fullname);
$mail->AddAddress($to, $sitename);
$mail->Subject = $subject;
$mail->MsgHTML($body);
$mail->Send();
```
Every time I send the mail, it goes in to spam. Does anyone know why this is happening?
Based on you code i notice that you are sending an email directly from ... | [
0.5965509414672852,
0.18860332667827606,
0.5976165533065796,
-0.08556391298770905,
-0.2889452576637268,
0.020201899111270905,
0.48919761180877686,
-0.022874310612678528,
-0.1911148726940155,
-0.5826518535614014,
-0.2715790867805481,
0.3771820068359375,
-0.5217841863632202,
0.20168814063072... | |
your domain which of course is not **hotmail.com**.
So I receive a mail from an address `@hotmail.com` but the IP sender isn't related at all with domain **hotmail.com**: that's SPAM!
<http://en.wikipedia.org/wiki/Reverse_DNS_lookup>
I think a possible solution is: in you PHP code use authenticate with SMTP and fro... | [
0.20949786901474,
-0.083280548453331,
0.4506071209907532,
0.19981089234352112,
-0.36858004331588745,
-0.30922386050224304,
0.54255610704422,
0.270418643951416,
-0.36531713604927063,
-0.47432342171669006,
0.006454537622630596,
0.05211738124489784,
-0.42541590332984924,
0.3481449782848358,
... | |
grep returns
```
Binary file test.log matches
```
For example
```
echo "line1 re \x00\r\nline2\r\nline3 re\r\n" > test.log # in zsh
echo -e "line1 re \x00\r\nline2\r\nline3 re\r\n" > test.log # in bash
grep re test.log
```
I wish the result will show line1 and line3 (total two lines).
Is it possible to us... | [
-0.12473171949386597,
-0.006644386798143387,
0.472728967666626,
0.1197240874171257,
-0.2281942069530487,
0.4402703642845154,
0.26170703768730164,
-0.4969923794269562,
-0.4550892114639282,
-0.49423110485076904,
-0.3155409097671509,
0.17238225042819977,
-0.3843291997909546,
-0.14453427493572... | |
task.
`-v` simply tells `cat` to display non-printing characters. | [
-0.07542451471090317,
0.08233270794153214,
0.41952696442604065,
0.001074845320545137,
-0.17762883007526398,
0.19920240342617035,
-0.01899152249097824,
-0.10198385268449783,
-0.2159651219844818,
-0.44420284032821655,
-0.43206366896629333,
0.451607346534729,
-0.1825946569442749,
-0.181083574... | |
I created the Layout design using java code only not from the XML Layout Designs. The code I used is following
```
public View getView(int position, View convertView, ViewGroup parent) {
TextView tv = new TextView(mContext);
tv.setText(hotelList.get(position).name);
return tv;
}
```
How to use layoutInflato... | [
0.5808338522911072,
-0.046608276665210724,
1.0247069597244263,
-0.3387095630168915,
-0.22046008706092834,
0.08492401987314224,
0.23592182993888855,
-0.6011223196983337,
-0.16004438698291779,
-1.0080360174179077,
0.06397505849599838,
0.7904417514801025,
-0.28530895709991455,
0.2136638760566... | |
View convertView, ViewGroup parent) {
View rowView = convertView;
if ( rowView == null) {
LayoutInflater inflator = this._activity.getLayoutInflater();
rowView = inflator.inflate(R.layout.todolistlisting, null);
TodoListViewHolder viewHolder = new TodoListViewHolder... | [
0.05980038642883301,
-0.3099198639392853,
1.0012277364730835,
-0.4723741412162781,
-0.03196477144956589,
0.2804888188838959,
0.5419979691505432,
-0.4954678416252136,
-0.03920852392911911,
-0.635807991027832,
-0.27806636691093445,
0.7955336570739746,
-0.3359040915966034,
0.45506560802459717... | |
viewHolder._completed = (TextView) rowView.findViewById(R.id.tVTLCCount);
viewHolder._remaining = (TextView) rowView.findViewById(R.id.tVTLRCount);
rowView.setTag(viewHolder);
}
TodoListViewHolder holder = (TodoListViewHolder) rowView.getTag();
VO_TodoList votodolis... | [
0.11829680949449539,
-0.3571549952030182,
1.3023191690444946,
-0.0919162929058075,
0.27519240975379944,
0.16798686981201172,
0.18768757581710815,
-0.6217342615127563,
-0.3245684802532196,
-0.5054592490196228,
-0.4878558814525604,
0.5573684573173523,
0.012927297502756119,
0.3761743903160095... | |
holder._name.setText(votodolist._title);
holder._completed.setText(votodolist._completed);
holder._remaining.setText(votodolist._remaining);
return rowView;
}
```
`TodoListViewHolder` is my view component holder here. like your `TextView`. | [
0.16151225566864014,
-0.17373977601528168,
1.2275378704071045,
-0.23404616117477417,
0.08627776801586151,
-0.11340340971946716,
0.22095882892608643,
-0.15560705959796906,
0.11125876009464264,
-0.6662530303001404,
-0.2441282570362091,
0.8787233233451843,
-0.034804631024599075,
0.38464528322... | |
I wrote a windows service to call my class library every 10 mins interval,it works fine when start or restart .once the job done it suppose to re run again every 10 min's that's not happening at all.Am not sure what am missing,some one please identify the correct way.
Here is my code
```
public partial class Service... | [
0.17290528118610382,
-0.27762869000434875,
0.4397609233856201,
-0.4050661027431488,
0.2971864640712738,
0.09798024594783783,
0.5870673656463623,
0.17805567383766174,
-0.13862772285938263,
-0.768706738948822,
-0.30110669136047363,
0.5231698155403137,
-0.04951053857803345,
0.1886376738548278... | |
args)
{
log4net.Config.XmlConfigurator.Configure();
_timer = new Timer(10 * 60 * 1000); // every 10 minutes
_timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
Shell Distribute= new Shell();
Distribute.Distribute();
}
protected override void OnSt... | [
0.23655280470848083,
-0.1893618255853653,
0.6695683002471924,
-0.33892181515693665,
0.5040255188941956,
-0.021736888214945793,
0.3494977056980133,
-0.6972854733467102,
-0.4947517216205597,
-0.41156208515167236,
-0.10547232627868652,
0.5744858384132385,
-0.5179646015167236,
0.30524548888206... | |
private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
//if (_lastRun.Date < DateTime.Now.Date)
//{
_timer.Stop();
_lastRun = DateTime.Now;
_timer.Start();
//}
}
}
}
```
Okie Finally i got the answer,why its not working ... | [
0.1685803085565567,
0.01612974889576435,
0.486910343170166,
-0.017892854288220406,
0.37899017333984375,
0.034928254783153534,
0.35549396276474,
-0.17520838975906372,
-0.3099982738494873,
-0.14098331332206726,
-0.22289183735847473,
0.8742682933807373,
-0.26200681924819946,
0.343418508768081... | |
from other forum point out my mistake)
This the code works well based on timer interval.
```
public partial class Service1 : ServiceBase
{
private Timer _timer;
private DateTime _lastRun = DateTime.Now;
public Service1()
{
InitializeComponent();
}
protected override void OnStart... | [
0.17570656538009644,
-0.27068811655044556,
0.6188811659812927,
-0.4583509564399719,
0.2912496328353882,
0.09787683188915253,
0.5177305936813354,
-0.019531531259417534,
-0.31923237442970276,
-0.794303297996521,
-0.37886208295822144,
0.5502198338508606,
-0.09692306071519852,
0.18897770345211... | |
_timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
Shell Distribute= new Shell();
Distribute.Distribute();
_timer.start();//this line was missed in my original code
}
protected override void OnStop()
{
this.ExitCode = 0;
base.OnStop();
}
private... | [
0.2301967740058899,
-0.17293108999729156,
0.709077775478363,
-0.3150460720062256,
0.45737069845199585,
0.05660600960254669,
0.18843424320220947,
-0.5635155439376831,
-0.3525479733943939,
-0.22733917832374573,
-0.07154756039381027,
0.6479385495185852,
-0.30429279804229736,
0.560473203659057... | |
//{
try
{
_timer.Stop();
Shell Distribute= new Shell();
Distribute.Distribute();
}
catch(exception ex)
{}
finally
{
_timer.Start();
}
//}
}
}
}
``` | [
0.47043099999427795,
-0.17616575956344604,
0.332823246717453,
-0.3274456560611725,
0.28184279799461365,
-0.3187231421470642,
0.12349521368741989,
-0.48282188177108765,
-0.3059490919113159,
-0.5520447492599487,
-0.13597321510314941,
0.6553447842597961,
-0.4070434868335724,
0.399301767349243... | |
I was trying out some exercises of db-class.org videos.There was one problem of finding
> 'minimum gpa of all students who applied to colleges and have selected
> CS as major'
Using aggregation this is;
```
select min(gpa) from student,apply where student.sid=apply.sid and major='CS';
```
result will be
```
min ... | [
-0.07240166515111923,
0.3702155351638794,
0.4783978760242462,
-0.064943328499794,
-0.1876862645149231,
0.07973093539476395,
0.36545854806900024,
-0.23703435063362122,
-0.1710924655199051,
-0.711324155330658,
-0.24300120770931244,
0.30127331614494324,
0.012262153439223766,
0.298837304115295... | |
2.9
2.9
2.9
2.9
2.9
2.9
2.9
2.9
(14 rows)
```
Why does this happen?can someone please help me?
Trying to reuse your query, I think you're missing a join on student and apply on the outer query. Also I think you should use `<=` instead of `<`. Also note that knowing your DBMS would help.
```
select gpa from st... | [
0.028647011145949364,
0.3711640238761902,
0.44866055250167847,
0.14233046770095825,
-0.15181533992290497,
0.020347589626908302,
0.28448644280433655,
-0.12095176428556442,
-0.09611101448535919,
-0.7426050305366516,
-0.13908518850803375,
0.14400063455104828,
-0.34168004989624023,
0.187598019... | |
I want to implement visitors tracking on a php site, to estimate the conversion rates.
What every site tells me is that we should divide the the number of completed transactions to the number of visitos. But to what should we count as 'visitors' I haven't yet found a definite answer.
I may guess, there could be differ... | [
0.1047375276684761,
0.2156132608652115,
0.5261089205741882,
0.3392082452774048,
-0.009274824522435665,
-0.2710713744163513,
0.23560884594917297,
0.12175986170768738,
-0.4564748704433441,
-0.2306545376777649,
0.22853824496269226,
0.321088969707489,
-0.0976891815662384,
0.21499888598918915,
... | |
lost, what should we track?
The only really useful metric is "Unique Visitors", specifically unique IPs that don't appear to be bots. The first part is easy but knowing what is and isn't a bot is a complex art. You should really leave this sort of tracking to a dedicated stats package like AWStats or Google Analytics (... | [
0.6339136362075806,
-0.09006299078464508,
0.17846956849098206,
0.7292996048927307,
0.039797283709049225,
-0.06738100200891495,
0.17565546929836273,
0.10988243669271469,
-0.30437514185905457,
-0.445692241191864,
0.1786249428987503,
0.7021626830101013,
-0.013052994385361671,
0.01010622456669... | |
known browser User Agent strings.
On many sites bots and crawlers can account for over 50% of actual "hits" or "pages" so if you can't identify bots accurately then your stats are basically worthless for most purposes. | [
0.1873483955860138,
0.1888454556465149,
0.20588472485542297,
0.31419897079467773,
-0.34802672266960144,
-0.16109992563724518,
0.6072492599487305,
0.41830888390541077,
-0.2925677001476288,
-0.731060266494751,
-0.06954292953014374,
0.06451867520809174,
-0.20706334710121155,
0.195684313774108... | |
I have a structure similar to this:
```
class OuterClass{
AnimatorListener sth;
public OuterClass(){
sth = new InnerClass();
}
public class InnerClass implements AnimatorListener{
public InnerClass(){}
public void doSomething(){} | [
0.3337889015674591,
-0.2336689680814743,
0.38269227743148804,
-0.28377005457878113,
-0.03874874860048294,
0.4123617708683014,
0.19099067151546478,
-0.2750793695449829,
-0.10432734340429306,
-0.6156331300735474,
0.09829484671354294,
0.8007659912109375,
-0.5228456854820251,
0.179517164826393... | |
//assuming animator listener methods implemented
}
public void tryingToDoSomething(){
sth.doSomething(); //I cannot use this, simply it is not seen by eclipse.
}
}
```
Why cant I call `doSomething()` method of `sth` object while I am `tryingToDoSomething()` ?
The only really... | [
0.15499058365821838,
-0.2164309024810791,
0.24739699065685272,
0.1505991369485855,
-0.06402203440666199,
-0.18490418791770935,
0.3115713596343994,
-0.20942674577236176,
-0.08110587298870087,
-0.737607479095459,
-0.004040715750306845,
0.6437515020370483,
-0.2708035707473755,
0.0704109445214... | |
knowing what is and isn't a bot is a complex art. You should really leave this sort of tracking to a dedicated stats package like AWStats or Google Analytics (the later which has tools to track various sorts of goals and conversions).
If you really must have a DIY solution you should definitely start by looking at the... | [
0.7070035934448242,
0.06204616278409958,
0.18649080395698547,
0.478556364774704,
-0.327258437871933,
-0.10766547173261642,
0.6355749368667603,
0.24584490060806274,
-0.2648316025733948,
-0.6317141652107239,
0.12411556392908096,
0.6280133128166199,
-0.10587635636329651,
0.02555735968053341,
... | |
then your stats are basically worthless for most purposes. | [
0.6561625003814697,
0.15729142725467682,
-0.05699056014418602,
0.2620485723018646,
-0.13596400618553162,
-0.06983212381601334,
-0.032810650765895844,
0.2637133300304413,
-0.1471748799085617,
-0.41161882877349854,
0.3059680461883545,
0.42660143971443176,
0.3180510103702545,
0.02820479124784... | |
Given a parent URL (say "<http://dir.yahoo.com/News_and_Media/>"), I want to scrape all URLs which are on this page and till depth X.
I don't want to move to another domain even if depth criteria forces it to do that. Ex. While going for "<http://dir.yahoo.com/News_and_Media/>" i don't want to go to the depth 2 which... | [
0.32126787304878235,
-0.06248126178979874,
0.4217054545879364,
0.07246605306863785,
-0.20608215034008026,
-0.27892306447029114,
-0.13397006690502167,
0.18497788906097412,
0.10949163883924484,
-0.6598119139671326,
-0.14559490978717804,
0.45353958010673523,
0.04437611252069473,
0.48203611373... | |
I am using c# membership provider and I get the username from a query string. Now I need to check if the username exist if it does I need to automatically authenticate the user.
How do I check if the user exists in the membership database?
If you are looking for an SSO solution, you can find more information here
<ht... | [
0.1772361695766449,
0.0958777442574501,
0.3549253046512604,
-0.19204768538475037,
-0.3020014464855194,
-0.3782796263694763,
0.5625595450401306,
-0.08843054622411728,
-0.5338020324707031,
-0.3848450481891632,
-0.04150184616446495,
0.14915010333061218,
0.10783665627241135,
0.1516028493642807... | |
This would be an Array of data:
```
$array = array("sad","bow","blabla");
```
IF
`$input = "I love Stackoverflow! :bow: so much";`
Output should be:
```
I love Stackoverflow <img src="smiley/bow.gif" alt=""/> so much
```
**What would be the best and fastest way to accomplish this ?**
```
$array = array(':('=>"sa... | [
-0.18081186711788177,
0.08404232561588287,
0.5699402093887329,
-0.2889619767665863,
-0.03625963255763054,
0.09101784229278564,
0.31516775488853455,
-0.2745150029659271,
-0.06390655040740967,
-0.5442967414855957,
-0.06719023734331131,
0.4353877604007721,
-0.19228607416152954,
0.098478801548... | |
I`m making an little php server that has 2 clients, on connects to the php (device a) and controls the other (device b).
device a makes a get request to the php. now i want to push that command to device b. is there any way to echo to device b? or to make an request to the device b?
(i only need to send one characte... | [
0.15244047343730927,
-0.04987235367298126,
0.5995500683784485,
-0.13091418147087097,
-0.31338757276535034,
0.12474852055311203,
-0.04315878078341484,
-0.317058265209198,
-0.23016071319580078,
-0.5066296458244324,
0.14522990584373474,
0.37783193588256836,
-0.24986198544502258,
0.11691645532... | |
simple implementation of longpolling on server-side:
```
$ts = time();
while(true) {
// if there's something new, send the response to the server
// if not, continue with the loop
if($response = getSuperAwesomeResponse()) {
print $response;
break;
}
// timeout after 60 seconds
... | [
0.2988740801811218,
-0.6861733794212341,
0.4132092297077179,
-0.11364549398422241,
0.23385781049728394,
-0.1512535959482193,
0.2799025774002075,
-0.2981739640235901,
-0.38216254115104675,
-0.30188921093940735,
-0.40721139311790466,
0.6356557011604309,
-0.265968382358551,
0.0734365209937095... | |
to send some sort of ajax calls | [
0.3587338328361511,
0.039235781878232956,
-0.14236228168010712,
0.4458478093147278,
-0.27602019906044006,
0.07600238919258118,
-0.05908314883708954,
0.25879746675491333,
-0.21339336037635803,
0.0162665955722332,
0.06844806671142578,
0.1913776695728302,
-0.25766703486442566,
-0.104338176548... | |
I have a scenario where emp table has id,name,description.
i need to copy only id and name columns to emptem.
when a newrecord is added in emp the same should be inserted into emptem without any duplicates.
i have done this using lookup by specifying emptem table in lookup and matched the destination to empte... | [
0.08601677417755127,
0.12436326593160629,
0.5767533779144287,
0.10331825911998749,
0.15074403584003448,
-0.01303607877343893,
0.22890692949295044,
-0.2479194700717926,
-0.4648793041706085,
-0.911493718624115,
0.03565136343240738,
0.5706193447113037,
-0.41034066677093506,
0.2882387638092041... | |
i have given the update stmt
```
update emptem set empno = ? where empname=?
```
i am getting the error as follows
> Error: 0xC0202009 at Data Flow Task 5, OLE DB Command [177]: SSIS Error Code DTS\_E\_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
> An OLE DB record is available. Source: "Mic... | [
-0.12972111999988556,
0.3501378893852234,
0.4946497678756714,
-0.27765539288520813,
-0.17695152759552002,
0.29693466424942017,
0.4281449019908905,
-0.2510601580142975,
0.06327545642852783,
-0.6948270201683044,
0.046477943658828735,
0.680933952331543,
-0.2932025194168091,
0.1659298986196518... | |
returned was: "The value could not be converted because of a potential loss of data.".
>
>
> Error: 0xC0209029 at Data Flow Task 5, OLE DB Command [177]: SSIS Error Code DTS\_E\_INDUCEDTRANSFORMFAILUREONERROR. The "input "OLE DB Command Input" (182)" failed because error code 0xC0209069 occurred, and the error row di... | [
-0.2791484594345093,
0.08837485313415527,
0.6135290265083313,
-0.32648271322250366,
0.020465338602662086,
0.6571919918060303,
0.5576781034469604,
-0.48162299394607544,
-0.03456944599747658,
-0.5633141994476318,
-0.22196298837661743,
0.6557764410972595,
-0.14401288330554962,
0.1581288427114... | |
The ProcessInput method on component "OLE DB Command" (177) failed with error code 0xC0209029 while processing input "OLE DB Command Input" (182). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to ... | [
-0.1729334592819214,
0.07021496444940567,
0.5673128962516785,
-0.10452195256948471,
0.02266128920018673,
0.3468851149082184,
0.2880040407180786,
-0.18051674962043762,
-0.004816537722945213,
-0.4960816502571106,
-0.08413700014352798,
0.5039643049240112,
-0.02067769691348076,
0.3843290209770... | |
Hi,
I have created an app that uses ViewPager and all pages contain WebViews.
Every Webview contains server images, videos, mp3 ...
The WebView settings are
```
public Object instantiateItem(View collection, int position) {
.
.
.
final RelativeLayout imageLayou... | [
0.021997828036546707,
-0.1459476202726364,
1.1037770509719849,
-0.019962968304753304,
-0.16628244519233704,
0.1522963047027588,
0.1394270658493042,
-0.15855754911899567,
0.030017882585525513,
-0.5574864149093628,
0.12969960272312164,
0.6371735334396362,
-0.06494275480508804,
0.261222988367... | |
inflater.inflate(R.layout.omb_webview_layout, null);
WebView webview = (WebView) imageLayout.findViewById(R.id.video_view);
ProgressBar pbImage = (ProgressBar) imageLayout.findViewById(R.id.progressBar1);
webview.requestFocus(View.FOCUS_DOWN);
webview.getSettings().setBu... | [
0.1698874682188034,
-0.36386120319366455,
0.984563946723938,
-0.23309984803199768,
-0.1237269788980484,
0.3904484808444977,
0.40877649188041687,
-0.4993186891078949,
-0.35598304867744446,
-0.589931070804596,
-0.3680126667022705,
0.5479862093925476,
-0.33138307929039,
0.03909405320882797,
... | |
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setLoadWithOverviewMode(true);
webview.getSettings().setUseWideViewPort(true);
webview.setWebViewClient(new mWebViewClient());
webview.getSettings().setPluginsEnabled(true);
webview.clearC... | [
0.2905533015727997,
-0.24281851947307587,
0.8765318393707275,
-0.0015592410927638412,
-0.014105715788900852,
-0.0900738388299942,
0.5451930165290833,
-0.30634915828704834,
-0.2593346834182739,
-0.47980690002441406,
-0.3769412934780121,
0.5663262009620667,
-0.25915324687957764,
0.1630060523... | |
webview.setWebChromeClient(new WebChromeClient() {
public void onProgressChanged(WebView view, int progress) {
Log.i(TAG, "webview loading progress : "+ progress);
if(progress == 100) { | [
0.4216909110546112,
-0.26029348373413086,
0.7214256525039673,
-0.08570452034473419,
0.09201106429100037,
0.17211757600307465,
0.22674883902072906,
-0.15956714749336243,
-0.3129798173904419,
-0.663689136505127,
-0.3124527335166931,
0.3429799973964691,
-0.4178801476955414,
0.106588214635849,... | |
try {
Pbar.setVisibility(ProgressBar.GONE);
} catch (Exception e) {
Log.e(TAG, "timer progress GONE : "+ progress,e); | [
0.00821708608418703,
-0.46453502774238586,
0.252338171005249,
-0.1156013235449791,
0.45607125759124756,
0.01944713108241558,
0.3386598825454712,
-0.13706792891025543,
-0.3440062701702118,
-0.18926994502544403,
-0.40469661355018616,
0.4726441204547882,
-0.29644206166267395,
0.00932794343680... | |
}
}
});
}
```
The problem is when pages are swiped then also this line
```
Log.i(TAG, "webview loading progress : "+ progress);
```
is executing which means that webviews are loading in background.
If I swipe 4 or | [
0.20635506510734558,
-0.022222604602575302,
0.9668029546737671,
-0.1499508172273636,
0.11790421605110168,
-0.08306119590997696,
0.3593667447566986,
-0.13169914484024048,
-0.5214784145355225,
-0.6872259974479675,
-0.3529271185398102,
0.5752450227737427,
-0.3225882053375244,
0.07498113811016... | |
more pages all webviews are loading.
```
destroyItem(View collection, int position, Object o) {
Log.d("DESTROY", "destroying view at position sheetal " + position);
RelativeLayout view = (RelativeLayout)o;
WebView tmp = webviewDictionary.get(position);;
tmp.getSe... | [
0.21169334650039673,
-0.2334827482700348,
0.9184207320213318,
-0.019900230690836906,
-0.12321864068508148,
-0.015285286121070385,
0.6314222812652588,
-0.24582287669181824,
-0.3418272137641907,
-0.646265983581543,
-0.36084315180778503,
0.6944071054458618,
-0.27352672815322876,
0.24163791537... | |
tmp.stopLoading();
if(tmp != null){
Log.i(TAG, "sheetal webview is destroyed " +position );
try { | [
0.10154099017381668,
-0.4538385272026062,
0.5654084086418152,
-0.03567720949649811,
0.0817287266254425,
0.22301386296749115,
0.5098250508308411,
-0.08692803978919983,
-0.4829808473587036,
-0.3384148180484772,
-0.32081422209739685,
0.29091671109199524,
-0.6589542627334595,
0.178122997283935... | |
tmp.onPause();
tmp.loadDataWithBaseURL("about:blank", "<html></html>","text/html", "UTF-8", null);
tmp=null;
// tmp.destroy(); | [
0.6417569518089294,
-0.018408557400107384,
0.1694594770669937,
-0.17984510958194733,
0.040925078094005585,
-0.09536925703287125,
0.7188462018966675,
-0.26149308681488037,
-0.05502502992749214,
-0.482822984457016,
-0.4805799424648285,
0.39056017994880676,
-0.8775975108146667,
0.210770428180... | |
}
catch (Exception e) {
Log.i(TAG, "webview destroyed Exception 0" ,e);
} | [
0.30934444069862366,
-0.42466801404953003,
-0.01804981753230095,
-0.0011393988970667124,
0.3301941454410553,
-0.30129846930503845,
0.22420892119407654,
-0.0004723632300738245,
-0.29778164625167847,
-0.2904402017593384,
-0.2815663516521454,
0.5179656744003296,
-0.3956551253795624,
0.0750549... | |
}
```
How to stop background loading if the pages are not visible? setOffscreenPageLimit(1)(means 3 page prev,cur,next),
In Viewpager, 2 page (means 1 position page) is not loading properly. It shows a blank white page, how do I solve it?
Thanks in advance
this solved my problem.
i have created a dictionary, it c... | [
-0.04282708466053009,
-0.02629474177956581,
0.6044081449508667,
-0.043333835899829865,
-0.04577699676156044,
0.02408108115196228,
0.4121624827384949,
-0.07242123037576675,
-0.19988828897476196,
-0.7471462488174438,
-0.21895861625671387,
0.5302656292915344,
-0.39230674505233765,
-0.07302016... | |
webView);
.
.
.
}
```
cleaning webviews is from dictionary
```
public void cleanAllWebViews() {
try {
if(webviewDictionary != null){
Iterator<Integer> webViewIterator = webviewDictionary.keySet().iterator();
while(webViewIterator.hasNext()) {
Integ... | [
0.3497430086135864,
-0.009586824104189873,
0.8480806350708008,
-0.3610367476940155,
-0.21631653606891632,
0.18955408036708832,
0.7780167460441589,
-0.6113187670707703,
-0.1728723794221878,
-0.6328461170196533,
-0.29219919443130493,
0.6318498849868774,
-0.1537800282239914,
0.175873667001724... | |
webView.stopLoading();
// webView.pauseTimers();
webView.setWebChromeClient(null);
webView.setWebViewClient(null);
webView.loadDataWithBaseURL("about:blank", "<html></html>","text/html", "UTF-8", | [
0.4366517663002014,
-0.1718599647283554,
0.4894699454307556,
-0.06861622631549835,
-0.07543493807315826,
-0.007278925739228725,
0.2720961272716522,
-0.043818432837724686,
-0.2657484710216522,
-0.5036901235580444,
-0.4831053912639618,
0.2825567424297333,
-0.5591713786125183,
0.1784274131059... | |
null);
webViewIterator.remove();
}
}
webviewDictionary = null;
}catch (Exception e) {
Log.e(TAG, "ombook last call onPauseAllWebviews Exception",e );
}
}
and
@Override
public void onBackPressed() {
cleanAllWebViews();
System.gc();
... | [
0.23681452870368958,
-0.06778309494256973,
0.6172502636909485,
-0.32796746492385864,
0.20030978322029114,
-0.029366495087742805,
0.6143697500228882,
-0.258564829826355,
-0.2597634494304657,
-0.46115705370903015,
-0.36734384298324585,
0.6097576022148132,
-0.38964974880218506,
0.297948747873... | |
```
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp" | [
0.08859872072935104,
0.11270388960838318,
0.8085271120071411,
-0.17551521956920624,
-0.02220761589705944,
0.06820926070213318,
0.028757883235812187,
-0.20982196927070618,
-0.08548866212368011,
-0.6626915335655212,
-0.24376502633094788,
0.6586021184921265,
0.10474120825529099,
-0.0461121052... | |
android:text="Income:"
android:textColor="@android:color/black"
android:textStyle="bold" />
<TextView
android:id="@+id/UIAllReportIncome"
android:layout_width="wrap_content" | [
0.03312385827302933,
-0.16056519746780396,
0.4465312957763672,
-0.3167128264904022,
0.011957176961004734,
0.29499369859695435,
0.14447419345378876,
-0.33966195583343506,
-0.11723262816667557,
-0.7363156080245972,
-0.3540269136428833,
0.7256655097007751,
-0.23073410987854004,
-0.21494871377... | |
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:maxWidth="120dp"
android:text="656565465465555555555555555555555555555555555555555555555555555555555555555"
android:layout_marginLeft="130dp"
android:inputTyp... | [
-0.285908579826355,
-0.12538740038871765,
0.8941681981086731,
-0.24957451224327087,
0.1538323163986206,
0.39501529932022095,
-0.0008356965845450759,
-0.4126124680042267,
-0.3172253370285034,
-0.6860078573226929,
0.0721670463681221,
0.7399842739105225,
0.21272209286689758,
-0.16732850670814... | |
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:textStyle="bold"
android:text=">" | [
-0.2941528558731079,
-0.005595810245722532,
0.6521477699279785,
-0.3529386818408966,
-0.005155898164957762,
0.09322421997785568,
0.20353545248508453,
-0.2166096270084381,
0.013962415046989918,
-0.607017993927002,
-0.2939507067203522,
0.7262760996818542,
-0.041249409317970276,
-0.1990148276... | |
android:textColor="@android:color/black" />
</RelativeLayout>
```
It sets the value of `textView` upto few digits only. How can i make it "wrap content" So that height of text view changes.
E.g
IT should show now
```
65564546546543
555555555555
555555555555
```
etc
However it currently shows only `65545... | [
0.021212903782725334,
-0.0076060243882238865,
0.7236648797988892,
-0.10858304053544998,
0.17429886758327484,
0.10925458371639252,
0.2906087636947632,
-0.023983590304851532,
-0.3072299659252167,
-0.5989729762077332,
0.036137670278549194,
0.837662398815155,
-0.4806491732597351,
-0.0457901395... | |
I seperated the data into to page, one for menu and another for contents of each other.
I have using jquery to append data that I got from database to in my web page.
The menu page is using ItemModels and for the content page is using BrandModels.
This is the content page :
```
<div id="brand-item">
<% if (bl... | [
0.027356257662177086,
0.07928168028593063,
0.5901163816452026,
0.01839398220181465,
-0.34474167227745056,
0.268633633852005,
-0.15990786254405975,
-0.3943088948726654,
-0.015618421137332916,
-0.6311241984367371,
-0.06186890974640846,
0.5088874101638794,
-0.08231338113546371,
0.398617833852... | |
</a>
<% } else { %>
<% } %>
</div>
```
This is what I tried in Menu page :
```
if ($("#brand_id").length > 0) {
document.getElementById("brand_id").innerHTML = '<img
src="<%:Model.Item[i].Brand.Image%>" width = "85px"/>';
} else {... | [
0.041022948920726776,
0.11476072669029236,
0.5483335256576538,
-0.3173186182975769,
-0.1141340434551239,
0.31483200192451477,
0.32491570711135864,
-0.5532901287078857,
-0.10079099237918854,
-0.5894559025764465,
-0.2484779804944992,
0.4108259677886963,
-0.3060583770275116,
0.344932258129119... | |
this line of html and asp.net code in menu page to the content page.
Could any one tell me how to solve this?
Thanks so much and welcome to all your answers.
You can use any JavaScript framework you like within a Metro-style JavaScript application. See this related question about jQuery:
[jQuery and Windows 8 JavaSc... | [
0.3149402439594269,
-0.2980356514453888,
0.5268871784210205,
0.37193068861961365,
-0.26505494117736816,
-0.13680531084537506,
0.09711635857820511,
-0.05714290961623192,
-0.1268068552017212,
-0.8613408207893372,
-0.060794584453105927,
0.6211679577827454,
-0.16142688691616058,
-0.10329218208... | |
The WinJS UI has been designed to follow the Metro Design Language. If you replace it with your own UI layer (using jQuery UI for example) your application will just not look right.
Personally I would use WinJS for the UI layer and to integrate with the runtime (state persistance, app switching etc...), but use a more... | [
0.13538914918899536,
-0.24164186418056488,
0.3122859001159668,
-0.05083173140883446,
-0.41733378171920776,
-0.14073780179023743,
0.23511165380477905,
0.17627806961536407,
0.04449783265590668,
-1.0455795526504517,
-0.12345252186059952,
0.433352530002594,
-0.4902665913105011,
-0.032226089388... | |
i'm new to gooogle map developing.i want to make a map as follows.
<http://edition.cnn.com/SPECIALS/world/arab-unrest/index.html>
But i have no idea how to start this development.Could someone please tell me the way to do this? If you have any worked through examples, that would be a real help!
First of all - do you w... | [
0.5371646881103516,
0.1948065459728241,
0.31116652488708496,
0.040144067257642746,
-0.1527237892150879,
0.12286049127578735,
-0.08090844005346298,
0.1421685367822647,
-0.23537741601467133,
-0.8261086344718933,
0.29411038756370544,
0.45508211851119995,
-0.11796201765537262,
0.17877748608589... | |
my iPhone app has been approved and I am ready to add push notifications to it. I've been following a tutorial that is going step by step in doing the certificates etc etc
I've hit a road block though. I need to make a new app ID but it won't let me use the bundle ID I have used before. My understanding is that the bu... | [
0.5968587398529053,
0.18444465100765228,
0.5749393105506897,
-0.19836580753326416,
0.1369546800851822,
0.03056841902434826,
0.32547450065612793,
-0.14150600135326385,
-0.2571161091327667,
-0.746285617351532,
0.20664557814598083,
0.3346754014492035,
-0.1500675529241562,
0.03085392527282238,... | |
have read somewhere about using a wildcard ID... not quite sure what this means.
Any feedback or help would be much appreciated.
Thanks
You don't need to create a new app ID. You only need to configure your existing one and enable Push Notifications. Go to the provisioning portal, and under "App IDs" press the Config... | [
0.5867763757705688,
-0.12982018291950226,
0.653411328792572,
0.19176463782787323,
0.1199374869465828,
-0.1783284991979599,
0.1392177790403366,
-0.2959694266319275,
-0.5761862397193909,
-0.6550878882408142,
-0.3604455590248108,
0.5089612603187561,
-0.09612208604812622,
0.030303901061415672,... | |
i like to substitute new string 'MEMORY247' in place of 0.0MB,2GB,0Gb...strings for this i tried below RE but it give wrong results please tell me right Regular expression for this using python
b = re.sub("\d.(\s\w+b)",'MEMORY247','0.0Mb is not enough 2GB is much 0gb more space 3.4gb')
Thanks'
Mukthar
Use the Maven ... | [
-0.2001798003911972,
0.26402562856674194,
0.5308387279510498,
0.17652170360088348,
0.06774960458278656,
-0.11877370625734329,
0.6503579616546631,
0.24956530332565308,
-0.27454033493995667,
-0.9721893668174744,
-0.40742602944374084,
0.6517484784126282,
-0.13988269865512848,
0.31946885585784... | |
see that the settings.xml is loaded from `/home/myhome/.m2/settings.xml`. | [
0.272279292345047,
0.09880442917346954,
0.3995688557624817,
-0.12349271774291992,
0.5396007299423218,
0.0011200269218534231,
0.0033078736159950495,
-0.07841704040765762,
-0.10667116194963455,
-0.6804372668266296,
-0.17037519812583923,
0.5216906666755676,
-0.11073262244462967,
-0.0872709974... | |
Since UNIX has all those wonderful filter-like programs (such as `grep`, `sed`, `tr` and so forth), what's the easiest way to write one of those in standard C?
By filter, I mean a program which reads standard input, performs some manipulation of the data, and then writes it to standard output. This is useful in constr... | [
0.02999456413090229,
-0.1822289675474167,
0.2194886952638626,
-0.02798047475516796,
-0.03719690069556236,
-0.14125414192676544,
-0.2455999106168747,
0.19179119169712067,
-0.05767170339822769,
-0.6152586936950684,
-0.21996724605560303,
0.748064398765564,
-0.37389037013053894,
-0.20027001202... | |
pipeline metaphor).
Let's say I needed one that converted all uppercase characters to lowercase. And, yes, I realise this *particular* problem can be solved with the UNIX:
```
tr '[A-Z]' '[a-z]'
```
but that's just an *example.*
What I'm actually after is the simplest standard C source code to do such a filter.
Yo... | [
0.6411908864974976,
-0.34082385897636414,
0.3022861182689667,
-0.04479729384183884,
-0.016596684232354164,
0.08492469042539597,
0.17552350461483002,
0.0640706866979599,
0.13401275873184204,
-0.5675075650215149,
0.04945749789476395,
1.111825704574585,
-0.5452708601951599,
0.1116113513708114... | |
How to remove special characters from a string in apex.
Code:
selectedStatus = ApexPages.currentPage().getParameters().get('ideaStatus');
value: ideastatus = "We like's it"
I want to remove the ' from the value of ideastatus.
I am trying selectedStatus.replace("'","");
But its not working.
Can anybody suggest how... | [
0.03550856560468674,
-0.11639850586652756,
0.5901128053665161,
0.2687402367591858,
0.15043970942497253,
0.28496962785720825,
0.2638426125049591,
0.2465420812368393,
-0.03999697044491768,
-0.44911694526672363,
-0.47404956817626953,
0.1709308624267578,
-0.20096610486507416,
-0.04567633196711... | |
Consider simple multiple select box
```
<select name="waste" id="waste" multiple>
<option value="5">garbage</option>
<option value="6">food</option>
<option value="8">Tin</option>
<option value="9">Can</option>
</select>
```
All it does is fire change event
```
$('#waste').change(function(){
//Inside here how will... | [
0.27079111337661743,
-0.29151618480682373,
0.16010436415672302,
-0.4196593761444092,
-0.07931534945964813,
0.2172379344701767,
0.26386430859565735,
-0.7200137376785278,
-0.07477083802223206,
-0.5893737077713013,
0.043326228857040405,
0.659234344959259,
-0.2140611708164215,
0.08791786432266... | |
console.log('you\'ve not changed selected value/s');
}
else {
if (l > i) {
console.log('you inserted value/s');
}
else { | [
-0.29706069827079773,
-0.2837922275066376,
0.3544076085090637,
-0.009038599207997322,
0.48139411211013794,
0.07025793939828873,
-0.17787891626358032,
-0.11548034846782684,
0.14536134898662567,
-0.6111491918563843,
-0.3909521698951721,
0.5764255523681641,
-0.22653143107891083,
0.05262819677... | |
console.log('you removed value/s');
}
}
i = l;
});
}());
```
I've enclosed your function in an immediate self execute function in which I declared a variable containing the number of selected items. Every time you add o remove an item I save the current length of the v... | [
-0.1835603415966034,
-0.14892305433750153,
0.7083593010902405,
-0.2584607005119324,
0.4381422996520996,
0.1491774469614029,
0.1521265059709549,
-0.21911361813545227,
-0.08477695286273956,
-0.5548799633979797,
-0.10229077190160751,
0.5273115038871765,
-0.35939034819602966,
0.390474051237106... | |
0), so you know if you added, removed or changed selection. | [
0.07449746876955032,
-0.44924741983413696,
0.0871768519282341,
0.08009646832942963,
-0.05901436507701874,
0.12750652432441711,
-0.08791080862283707,
-0.3039778769016266,
-0.08275237679481506,
-0.4913254380226135,
0.0016291288193315268,
0.23002544045448303,
-0.3558419346809387,
0.4587998688... | |
Which browsers are able to understand and implement asterisk ( \* ) in CSS properly? (By *'properly'* I actually meant -- *'as they are supposed to'*.)
Consider this CSS code for example:
```
pre .comment * {
color: #800;
}
```
**EDIT:** I see now that it's called the '\* selector' or 'universal selector'. Thanks... | [
0.18806307017803192,
0.05722372978925705,
0.3187873363494873,
-0.11245106905698776,
-0.06511489301919937,
-0.13887999951839447,
-0.03651946038007736,
0.15115655958652496,
-0.484716534614563,
-0.9457705616950989,
-0.22359763085842133,
0.4838666617870331,
-0.30475059151649475,
-0.08521692454... | |
We are running a test automation suite and would like to prevent this message from appearing when using the iOS Simulator. Can anyone come up with a hack to automatically enable this when deploying a new app to the simulator?
do not put the
```
if([CLLocationMannager isLocationServicesEnabled])
```
check before u ... | [
0.03993690013885498,
-0.014042573980987072,
0.4985041618347168,
0.14610865712165833,
0.4821041524410248,
-0.2593557834625244,
0.28771349787712097,
-0.039772823452949524,
-0.05920729786157608,
-0.5661509037017822,
-0.30120420455932617,
0.742951512336731,
-0.31594690680503845,
-0.10131087154... | |
```
public void openReport() {
try {
HashMap params = new HashMap();
params.put("aapor", 19);
JasperReport jasperReport1 = JasperCompileManager.compileReport("C:/Users/emidemi.emidemi-PC/Documents/NetBeansProjects/FleetManager/src/FleetManager/newReport5.jasper");
JasperPrint jaspe... | [
0.16204199194908142,
-0.06326387822628021,
0.5153399109840393,
0.06671623140573502,
0.21248161792755127,
0.07249679416418076,
0.3962239623069763,
-0.35014042258262634,
-0.30739516019821167,
-0.4227549433708191,
-0.2420264482498169,
0.5721852779388428,
-0.5924866795539856,
-0.03491501882672... | |
SUCCESSFUL (total time: 7 seconds)
```
Does anyone know why this is occurring and how to fix it?
It's a problem with the character codification. Have you tried changing the encoding line at the beginning of the report?
i.e. for central european alphabet, change:
```
<?xml version="1.0" encoding="UTF-8"?>
```
by
... | [
0.08002650737762451,
0.2072247862815857,
0.6356303095817566,
0.01636636257171631,
0.37544819712638855,
0.18502993881702423,
0.9512684345245361,
-0.6051871180534363,
-0.4445924758911133,
-0.4706393778324127,
-0.38132238388061523,
0.38679614663124084,
0.18234330415725708,
-0.4065091609954834... | |
> **Possible Duplicate:**
>
> [Natural Sort Order in C#](https://stackoverflow.com/questions/248603/natural-sort-order-in-c-sharp)
I have a list with a lot of numbers in it.
But they are saved as strings because of some additional letters.
My list looks something like this:
```
1
10
11
11a
11b
12
2
20
21a
21c
A1
... | [
0.09909762442111969,
0.1057131364941597,
0.2344486117362976,
0.1485362946987152,
-0.017238574102520943,
0.3468795418739319,
0.24088789522647858,
-0.1753602921962738,
-0.6641871333122253,
-0.5570166110992432,
0.05007481947541237,
0.37154343724250793,
-0.31204134225845337,
0.0654389038681984... | |
IComparer<string>
{
public int Compare(string x, string y)
{
var regex = new Regex("^(d+)");
// run the regex on both strings
var xRegexResult = regex.Match(x);
var yRegexResult = regex.Match(y);
// check if they are both numbers
if (xRegexResult.Success && yReg... | [
-0.008230753242969513,
-0.1128527820110321,
0.37224146723747253,
0.3297543525695801,
-0.01985022984445095,
0.23700058460235596,
0.07056589424610138,
-0.4944067597389221,
-0.05282652750611305,
-0.40429553389549255,
0.04320165514945984,
0.6305910348892212,
-0.19727392494678497,
0.35597109794... | |
return int.Parse(xRegexResult.Groups[1].Value).CompareTo(int.Parse(yRegexResult.Groups[1].Value));
}
// otherwise return as string comparison
return x.CompareTo(y);
}
}
```
With this `IComparer<T>`, you'll be able to sort your list of `string` by doing
```
var myComparer = new CustomComp... | [
-0.2824258506298065,
0.15650296211242676,
0.5090250372886658,
-0.20962941646575928,
0.0692102462053299,
0.6935440301895142,
0.2209172397851944,
-0.5545598268508911,
-0.21840456128120422,
-0.3810936510562897,
0.09870962798595428,
0.5214014649391174,
-0.29986652731895447,
0.3981033265590668,... | |
In my current application I have a `main form: frmMain` with a `statusstrip` and a `label: lblStatus` inside that.
I would like to update that label from inside my user controls, which I add to my main form when I click the concerning button:
```
ucBeheer ucBeheer = new ucBeheer();
splitContainer1.Panel2.Controls.Add(... | [
0.1008346900343895,
-0.24711614847183228,
0.8609864115715027,
-0.14356864988803864,
0.2755616307258606,
-0.08049941807985306,
0.1010994091629982,
-0.031011098995804787,
-0.243453249335289,
-0.6168573498725891,
-0.4434794783592224,
1.036458969116211,
-0.44549402594566345,
-0.154286667704582... | |
set { lblStatus.Text = value; }
}
```
And then accessing the method like this in my user control:
```
frmMain mainForm = new frmMain();
mainForm.updateStatus = "This is a test";
```
But that doesn't work, I know that this is because I am making a new object of my `frmMain`, but I don't know how... | [
0.3481599986553192,
-0.15469858050346375,
0.6623757481575012,
-0.005775134544819593,
0.2834245264530182,
-0.38999947905540466,
0.3075377941131592,
-0.35941630601882935,
-0.1411021649837494,
-0.6271105408668518,
-0.1958015263080597,
0.5673012733459473,
-0.4147416353225708,
-0.01717397943139... | |
add it there with clicking on the button, so I don't have a reference to it.
So I'm kinda out of ideas, I hope somebody can help me.
Thanks,
Thomas
Edit: So I managed to do it the following way:
```
frmMain owningForm = (frmMain)this.Parent.Parent.Parent.Parent;
owningForm.updateStatus = "This is a t... | [
0.47085291147232056,
-0.08934379369020462,
0.07296233624219894,
0.24932143092155457,
0.2555548846721649,
-0.030193427577614784,
0.2557987868785858,
-0.18117257952690125,
0.22130849957466125,
-0.6405632495880127,
0.0978538766503334,
0.29925236105918884,
0.13478972017765045,
0.19380606710910... | |
in.
```
public frmMain MainForm
{
get
{
var parent = Parent;
while (parent != null && (parent as frmMain) == null)
{
parent = parent.Parent;
}
return parent as frmMain;
}
}
```
**UPDATE:**
If you just want the top most parent you could use something li... | [
-0.4083239436149597,
-0.40951377153396606,
0.21625564992427826,
0.19397783279418945,
0.21345727145671844,
-0.37078359723091125,
0.22874324023723602,
0.043564844876527786,
-0.23795072734355927,
-0.2187940776348114,
-0.5080466866493225,
0.2961586117744446,
-0.12624098360538483,
0.07808733731... | |
get
{
var parent = Parent;
while (parent.Parent != null)
{
parent = parent.Parent;
}
return parent;
}
}
```
Or even make an extension method of that:
```
public static Control TopMostParent(this Control control)
{
var parent = control.Parent;
while... | [
-0.34864532947540283,
-0.34251418709754944,
0.3510371744632721,
0.09875673055648804,
0.3089177906513214,
-0.007892829366028309,
0.33549177646636963,
-0.06432914733886719,
-0.1323833018541336,
-0.21422040462493896,
-0.6034278273582458,
0.32814791798591614,
-0.2789205312728882,
0.18648339807... | |
{
parent = parent.Parent;
}
return parent;
}
``` | [
-0.15302400290966034,
0.25455760955810547,
-0.11796217411756516,
-0.19504912197589874,
0.12454050034284592,
0.0796983614563942,
0.561398983001709,
0.18704290688037872,
0.09767782688140869,
-0.3796829879283905,
-0.46895289421081543,
0.24871599674224854,
-0.25323596596717834,
0.6760352849960... | |
I am developing an application. In it I want to find out the number of folders in the document directory and find the XML file in each folder. Please tell me how to find out the folders' information in the the document directory.
I have revoked the both certificates it solved my problem. | [
0.39116573333740234,
0.4542185366153717,
0.4956215023994446,
0.21581542491912842,
0.1860039234161377,
-0.3803529441356659,
0.02272898517549038,
-0.1627560555934906,
-0.227958083152771,
-0.5331587195396423,
0.13931937515735626,
0.2303861379623413,
0.04024311155080795,
0.3052106499671936,
... | |
I'm needing an excel formula to output the mineral name from the example list below:
1. Andorite IV (Y: 1954) 02.JB.40a [352] [353] [354]
2. Beta-fergusonite-(Nd) 04.DG.10 [374] [375] [376]
3. Chabazite-Ca (Y: 1792) 09.GD.10 [364] [365] [366]
4. Duttonite [358] [359] [360]
5. Fleischerite [343] [344] [345]
6. Gottardi... | [
0.15493778884410858,
0.5962218046188354,
-0.22550366818904877,
-0.11996493488550186,
-0.4697134792804718,
0.3295745849609375,
0.18751350045204163,
0.34952518343925476,
0.07137744128704071,
0.12496533244848251,
-0.06261198222637177,
0.32256075739860535,
-0.3675456643104553,
0.54477250576019... | |
to any replies / advice!! :).
Thanks,
Jason
In your data some of the "spaces" seem to be CHAR(160) (not actual spaces) - I don't know if that's really in your data or something that arises through copying from here, either way this formula should work whichever type they are....
`=TRIM(MID(SUBSTITUTE(SUBSTITUTE(A1,CH... | [
0.14886106550693512,
0.2829741835594177,
0.41805991530418396,
0.27619895339012146,
0.37870535254478455,
0.47577929496765137,
0.24741549789905548,
-0.0812862366437912,
-0.1704581379890442,
-0.4275874197483063,
-0.19401805102825165,
0.7716756463050842,
0.2400238960981369,
-0.3536201715469360... | |
My HTML code:
```
<p>NEWS</p>
<p>
<form action="news.php" method="post"> <center><input name="NEW" type="submit"
id="new" value="NEW"/>
<input name="Modify" type="submit" id="Modify2" value="Modify" />
</form>
</p>
```
**news.php**
```
<?php //Main function
$event=$_POST;
if($event=='NE... | [
0.14177118241786957,
0.06604679673910141,
1.0102921724319458,
-0.22871039807796478,
-0.1188245639204979,
0.09186065196990967,
-0.05426553264260292,
-0.19727835059165955,
-0.17774416506290436,
-0.7375412583351135,
-0.1811780035495758,
0.24243907630443573,
0.0004787966900039464,
-0.035835828... | |
but I don't know where I am wrong because its not working. Please help, thanks in advance.. :)
$event (and $\_POST) is an array. Use it like this:
```
<?php //Main function
$event=$_POST;
if(isset($event['NEW']))
post_new(); //already defined
else if(isset($event['Modify']))
modify();... | [
0.01596863567829132,
0.026499494910240173,
0.20708401501178741,
-0.2905538082122803,
0.05779498070478439,
-0.002150242915377021,
0.11447364836931229,
-0.19507242739200592,
-0.19624477624893188,
-0.46545010805130005,
-0.1953447312116623,
0.48901134729385376,
-0.4063566327095032,
0.137970432... | |
I am rewriting my problem .
Below I am giving all the details of what i am trying to do, and what is the result I am getting. I hope to be very clear this time. I have a samples page here www.broadcast2world.com/samples.php.
All the links and data which we see on the page is coming from a database. Now suppose we clic... | [
0.7459614276885986,
0.005384527146816254,
0.6430578231811523,
-0.08728361129760742,
-0.2996610105037689,
-0.2927171289920807,
0.1847836971282959,
-0.3323560059070587,
-0.5506314039230347,
-0.3093548119068146,
-0.02838108129799366,
0.5404856204986572,
-0.35606473684310913,
0.216582268476486... | |
into a variable using
```
if(!isset($_GET['pid'])){
$pageid='66';
}
else{
$pageid=$_GET['pid'];
}
```
Using the $pageid variable, I run a query which ultimately prepare the page for that particular video.
What my SEO guy need is a url in the format www.broadcast2world.com/video/name-of-the-video.
Now the... | [
0.6596866846084595,
0.029482761397957802,
0.8184550404548645,
-0.14905841648578644,
-0.2977379262447357,
-0.48757803440093994,
0.3155781626701355,
-0.2066032439470291,
-0.22769899666309357,
-0.44082388281822205,
-0.15902625024318695,
0.7769349217414856,
-0.2424379587173462,
0.2179598361253... | |
again for your wonderful support
Instead of id, you have to search the database based on title then.
Here are what you are going to need.
**.htaccess**
```
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos/(.*)$ video.php?title=$1
```
**Link generation**
... | [
0.3255099654197693,
0.11935816705226898,
0.9063686728477478,
0.26090678572654724,
0.06601265072822571,
-0.35125818848609924,
0.3095495104789734,
-0.2889132797718048,
-0.32424089312553406,
-0.5987868309020996,
-0.12537869811058044,
0.9632424116134644,
-0.062393076717853546,
0.47736096382141... | |
I had images, when i keep my cursor on the image a tool tip need to appear,How can i apprach that with simple code rather than complex
<http://jsfiddle.net/Navya/RwBXB/2/>
Instead of id, you have to search the database based on title then.
Here are what you are going to need.
**.htaccess**
```
RewriteEngine on
Rew... | [
0.409549742937088,
0.13635189831256866,
0.809706449508667,
0.02209644578397274,
-0.052744485437870026,
-0.10176105052232742,
0.20719827711582184,
-0.5669552683830261,
-0.3527524769306183,
-0.46933087706565857,
0.07806088775396347,
0.7831835746765137,
-0.05920862779021263,
0.239777907729148... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.