text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
first result firefox, safari and chrome. However in IE border appears outside the button and pushes the other elements in the page. I tried to use `max-height` `max-width` however result is the same.
I searched but could not find similar topic. Thanks for any help.
Edit: Added HTML
```
<table id="ust3tab" class=... | [
0.05514645576477051,
-0.41894134879112244,
0.8135743737220764,
-0.07905939221382141,
-0.2408977895975113,
0.015803640708327293,
0.018549703061580658,
-0.5791153907775879,
-0.30643779039382935,
-0.837098240852356,
0.14667940139770508,
0.3882092237472534,
-0.423397958278656,
-0.2634356021881... | |
<td class="td1"><button id="alt3" class="altbutton">TAB3</button></td>
<td class="td1"><button id="alt4" class="altbutton">TAB4</button></td>
<td class="td1"><button id="alt5" class="altbutton">TAB5</button></td>
</tr>
</tbody>
</table>
```
OK so I solved it the following way:
1. rem... | [
-0.09671102464199066,
-0.2807285487651825,
0.4691242575645447,
-0.3201257288455963,
-0.538327157497406,
0.3398604393005371,
0.45792442560195923,
-0.8988617658615112,
0.08639155328273773,
-0.5291849970817566,
0.25790953636169434,
0.7027912735939026,
-0.46036240458488464,
-0.2151067405939102... | |
max min max max
This worked in my case excellent. Hope that it will be helpful to someone else too. | [
0.5244929790496826,
-0.02206997387111187,
0.6078879237174988,
0.23076915740966797,
-0.06905695796012878,
0.2130374163389206,
0.18495583534240723,
0.6221351027488708,
0.02394893579185009,
-0.4626980721950531,
0.24663113057613373,
0.4692596197128296,
0.4857809543609619,
-0.2825373411178589,
... | |
I am trying to compare two strings I get from a password form in HTML.
They are being stored in variables from `$_POST`. I print them out and they look the same, but the code below will never evaluate to true, only false. Why does that happen?
```
//Verify the passwords match
if( ($passwd != $pass_confirm) && ($new_... | [
0.45358598232269287,
0.359065979719162,
0.18563731014728546,
-0.2420191913843155,
-0.05396153777837753,
-0.019270429387688637,
0.7473366260528564,
-0.3053837716579437,
0.050726596266031265,
-0.6122640371322632,
0.15827681124210358,
0.3630055785179138,
-0.345221608877182,
0.1490949839353561... | |
shown when just one of them is wrong. | [
0.37512311339378357,
-0.015439990907907486,
-0.2089642584323883,
0.3156060576438904,
-0.014623159542679787,
0.04659609869122505,
0.3521748185157776,
-0.12154866009950638,
-0.22789470851421356,
-0.5054751634597778,
-0.06471005827188492,
0.5172719359397888,
-0.20801761746406555,
0.0050561442... | |
I am connecting C to mysql and then creating a database .
My code is:
```
#include <mysql.h>
#include <my_global.h>
int main(int argc, char **argv)
{MYSQL *conn;
conn = mysql_init(NULL);
if (conn == NULL) {
printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));
exit(1);}
if (mysql_real_connect(conn... | [
0.055700141936540604,
0.17532408237457275,
0.621894896030426,
-0.08099903166294098,
0.24983634054660797,
0.07721734046936035,
0.34300780296325684,
-0.01101200096309185,
-0.07611167430877686,
-0.7782182097434998,
-0.1289166361093521,
0.6944546103477478,
-0.41155382990837097,
0.3256563544273... | |
at least add the include/libs to your compiler?
<http://www.mysql.com/downloads/> | [
0.5475562214851379,
0.16832241415977478,
-0.1004348173737526,
0.028973206877708435,
-0.08402647078037262,
-0.14950652420520782,
0.3218616545200348,
0.011663825251162052,
-0.1012931615114212,
-0.5830212235450745,
-0.26808011531829834,
0.3692406117916107,
-0.5019482374191284,
-0.313002228736... | |
I have basic hello word example of Prime Faces.
I have created dynamic web project on eclipse.
I have downloaded primefaces-3.2.jar and put it to class path(WEBINF/Lib). Then I imported the namespace of Prime Faces to my page. However, It does not work.
```
<html xmlns="http://www.w3c.org/1999/xhtml"
xmlns:h="http:... | [
0.24264810979366302,
0.346647709608078,
0.6572282910346985,
-0.16904690861701965,
-0.45795610547065735,
0.059203941375017166,
-0.05234614759683609,
-0.14175660908222198,
0.008963817730545998,
-0.9796434640884399,
0.10793054103851318,
0.6091231107711792,
-0.38807037472724915,
0.028589889407... | |
My sql query is as follows
```
IF @StatusId = 10
BEGIN
SELECT
*
FROM
Risk AS R
INNER JOIN Statuses AS St ON R.Status_Id=St.Status_Id
WHERE
R.MitigationOwner = COALESCE(@MitigationOwner,R.MitigationOwner)
AND R.RiskFactor = COALESCE(@RiskFactor,R... | [
-0.2893323004245758,
0.28246480226516724,
0.642091691493988,
-0.3532376289367676,
-0.04036502167582512,
0.1827770620584488,
0.07471027225255966,
-0.2935573160648346,
0.11196526885032654,
-0.5645949244499207,
-0.054029036313295364,
0.43749308586120605,
-0.04862368106842041,
0.20503912866115... | |
AND R.RiskArea = COALESCE(@RiskArea,R.RiskArea)
AND R.AddedWhen BETWEEN
COALESCE(CONVERT(DATETIME, @StartDate+'00:00:00',120),R.AddedWhen) AND
COALESCE(CONVERT(DATETIME,@EndDate+'23:59:59',120),R.AddedWhen)
END
```
When I pass only status Id and all other variables are null, then record... | [
0.22873005270957947,
0.052391789853572845,
0.36993831396102905,
-0.26643070578575134,
0.046256717294454575,
0.17995677888393402,
0.2657145857810974,
-0.6040539145469666,
0.24405361711978912,
-0.4635223150253296,
0.06390996277332306,
0.6466432213783264,
-0.1805935651063919,
0.14357022941112... | |
Risk AS R
INNER JOIN Statuses AS St ON R.Status_Id=St.Status_Id
WHERE
(R.MitigationOwner = COALESCE(@MitigationOwner,R.MitigationOwner) OR R.MitigationOwner IS NULL)
AND R.RiskFactor = COALESCE(@RiskFactor,R.RiskFactor)
AND R.RiskArea = COALESCE(@RiskArea,R.RiskArea)
AND ... | [
0.12899461388587952,
-0.07234223932027817,
0.6931444406509399,
-0.3398289978504181,
0.12922073900699615,
0.5441932082176208,
0.27379310131073,
-0.5652744174003601,
0.06493854522705078,
-0.5092195272445679,
-0.3001042306423187,
0.7235264182090759,
-0.053941093385219574,
0.1875971108675003,
... | |
Is it possible to send mail in core php via gmail smtp without using any external class?
I don't think it is possible because you need to perform an authentification. Also, you need to connect via an SSL socket, I don't know if the stock `mail()` function support this.
If you are willing to use the [Pear Mail](http://... | [
0.34134358167648315,
0.1609945148229599,
0.26823899149894714,
0.03585054725408554,
-0.36520904302597046,
-0.0640646442770958,
0.34590721130371094,
-0.0027820097748190165,
-0.2236798256635666,
-0.4442310631275177,
0.020162368193268776,
0.49066805839538574,
-0.20819784700870514,
0.0820021778... | |
i have a table t\_points in mySql like example in below.
```
Name Surname Point
Joe Arnold 120
Michale Black 250
Masha Petrova 300
Natalie Jackson | [
-0.10653149336576462,
0.30504804849624634,
0.049372341483831406,
0.058718763291835785,
-0.05423285812139511,
0.47974681854248047,
0.4664289653301239,
-0.41130876541137695,
-0.19586330652236938,
-0.04455474391579628,
0.14080727100372314,
0.4245598614215851,
-0.16650645434856415,
-0.14241310... | |
120
John Turo 200
Bona Meseda 250
Zeyda Nura 150
Zanura Bohara 60
Shaheen | [
-0.17214736342430115,
0.15412405133247375,
-0.5929331183433533,
-0.4750472605228424,
-0.5922435522079468,
0.4697844088077545,
0.306134432554245,
-0.7179664969444275,
0.10409422963857651,
-0.06705935299396515,
-0.04794196039438248,
0.5474076271057129,
-0.5164924263954163,
0.1127654984593391... | |
Boz 360
Abbas Murat 160
Keira Black 230
Tom Robinson 480
Fred Balka 490
Semia | [
-0.11866747587919235,
-0.08626550436019897,
0.07724370062351227,
0.08243858069181442,
-0.32260364294052124,
0.44149285554885864,
0.3179551064968109,
-0.28707894682884216,
-0.2593003213405609,
0.11873167753219604,
-0.1964682638645172,
0.1930273324251175,
-0.1949017494916916,
-0.031320154666... | |
Hudovi 90
Sona Bahari 60
```
i want to write a query which will display the count of point ranges. Point ranges are like this: point between 0 and 100, 101 and 200, 201 and 300, 301 and 400.
Result must be like below
```
0_100 101_200 201_300 | [
-0.09766796976327896,
0.23582608997821808,
0.2409340888261795,
-0.23785319924354553,
-0.5439817905426025,
0.19989176094532013,
0.05454259738326073,
-0.48709145188331604,
0.08439984172582626,
-0.0089504299685359,
-0.04847031459212303,
-0.05234275758266449,
-0.3370247185230255,
0.16981087625... | |
301_400
3 5 4 3
```
i think u understand what i want to say. So which query i have to use for this result?
Thanks.
```
select
count(CASE WHEN point BETWEEN 0 AND 100 THEN 1 END) as count0_100,
count(CASE | [
0.18965989351272583,
0.30591753125190735,
0.5675694346427917,
-0.25114870071411133,
-0.05861065536737442,
0.21174825727939606,
0.2930457592010498,
-0.15300291776657104,
0.027815354987978935,
-0.4870366156101227,
0.14674323797225952,
0.32151803374290466,
-0.2438509464263916,
-0.152345657348... | |
WHEN point BETWEEN 101 AND 200 THEN 1 END) as count101_200,
count(CASE WHEN point BETWEEN 201 AND 300 THEN 1 END) as count201_300,
...
from
t_poits
``` | [
0.09886569529771805,
-0.15934444963932037,
0.5416712164878845,
-0.5053586959838867,
0.11552107334136963,
0.4074987471103668,
0.057746414095163345,
-0.3033806383609772,
-0.3669888973236084,
-0.5090330243110657,
-0.22987975180149078,
0.06668134778738022,
-0.24922792613506317,
0.2496573179960... | |
I am customizing the ribbon toolbar and adding a button to it. Whenever I click on that button, it will open a aspx page allows authors to select some data, which gets appended to the existing RTF field content.
But when popup is opened it is having the below error in the browser (Internet Explorer).
```
Webpage erro... | [
0.14789822697639465,
-0.132033109664917,
0.9399518966674805,
0.007925421930849552,
-0.21076945960521698,
0.05389219895005226,
0.791042685508728,
-0.3764471113681793,
-0.40175625681877136,
-0.5182482004165649,
-0.06943518668413162,
0.4173640310764313,
-0.2052077054977417,
0.2752510309219360... | |
in the specified location. Please suggest me a way to solve the problem.
ButtonReference.js file:
Type.registerNamespace("RTFExtensions.Commands");
```
RTFExtensions.Commands.ButtonReference = function Commands$ButtonReference(name) {
Type.enableInterface(this, "RTFExtensions.Commands.ButtonReference");
t... | [
-0.09297048300504684,
-0.14306487143039703,
0.8141071200370789,
-0.06244711950421333,
0.3642687499523163,
0.37772420048713684,
0.50858473777771,
-0.5819287300109863,
-0.04711224511265755,
-0.5476992130279541,
-0.23829923570156097,
0.5865293741226196,
-0.28386929631233215,
-0.00937219709157... | |
target.editor.getDisposed()) {
return false;
}
return true;
};
RTFExtensions.Commands.ButtonReference.prototype._execute = function ButtonReference$_execute(target) {
if (target.item.isActivePopupOpened()) {
return;
}
function ButtonReference$execute$onPopupCanceled(event)... | [
0.0252531785517931,
-0.5189929008483887,
0.956591010093689,
-0.1088775098323822,
0.05115165561437607,
0.3316575288772583,
0.39450591802597046,
-0.3893856108188629,
-0.2250293791294098,
-0.4089108407497406,
-0.1847318559885025,
0.7376383543014526,
-0.4219056963920593,
0.019236303865909576,
... | |
$display.getView().getItem().getTitle();
//alert($display.getView().getItem().getId());
alert($display.getView().getItem().getTitle());
var url = "Editors/RTFExtensions/Popups/PopupReference.aspx?schemaId=" + schemaId + "&componentName=" + componentName;
//var url = "Editors/RTFExtensions/Popups/PopupRe... | [
0.000930239912122488,
-0.2505969703197479,
0.9970691800117493,
-0.15149766206741333,
-0.09129820764064789,
0.29029038548469543,
0.3248644769191742,
-0.4871689975261688,
-0.3915784955024719,
-0.5123057961463928,
-0.615238606929779,
0.7019528150558472,
-0.5529705882072449,
-0.033229965716600... | |
if (value) {
alert("In Button Reference value:" + value);
target.editor.applyHTML(value);
}
// Release
target.item.closeActivePopup();
}
); | [
-0.1477929651737213,
-0.41456112265586853,
0.8406742215156555,
-0.4252399504184723,
0.28232529759407043,
-0.03669888898730278,
0.11697444319725037,
-0.11120911687612534,
0.07285106182098389,
-0.47871828079223633,
-0.6916453242301941,
0.5947256684303284,
-0.6845874786376953,
-0.089272141456... | |
$evt.addEventHandler(popup, "unload", ButtonReference$execute$onPopupCanceled);
target.item.setActivePopup(popup);
popup.open();
};
```
PopupReference.js File:
```
Type.registerNamespace("RTFExtensions.Popups");
RTFExtensions.Popups.PopupReference = function (element) {
Type.enableInterface(this, "RTF... | [
0.01632673107087612,
-0.1337289959192276,
0.8848288655281067,
-0.062317024916410446,
0.1423279345035553,
0.41692957282066345,
0.4707969129085541,
-0.6052654385566711,
-0.13956493139266968,
-0.641985297203064,
-0.5169421434402466,
0.6734542846679688,
-0.5646434426307678,
-0.1908025592565536... | |
"in initialize");
$evt.addEventHandler(c.SubmitButon, "click", this.getDelegate(this._execute));
// $evt.addEventHandler(c.InsertButton, "OnSelectedIndexChanged", this.getDelegate(this._execute));
};
RTFExtensions.Popups.PopupReference.prototype._execute = function () {
alert("executing");
... | [
-0.025359388440847397,
-0.24645709991455078,
0.6592928171157837,
0.12907922267913818,
0.15810060501098633,
0.1756906360387802,
0.49503466486930847,
-0.6959101557731628,
-0.2908322215080261,
-0.719702422618866,
-0.6926854848861694,
0.5286043286323547,
-0.36780720949172974,
-0.00950348749756... | |
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://www.sdltridion.com/web/ui/core/controls">
<head id="Head1" runat="server">
<title>Reference Button Popup</title>
<cc:tridionmanager runat="... | [
-0.054509952664375305,
0.011350004002451897,
0.7483845353126526,
0.1888474076986313,
-0.531650722026825,
0.25908663868904114,
-0.18297947943210602,
-0.6477920413017273,
-0.19395199418067932,
-0.21569187939167023,
-0.16863436996936798,
0.31674161553382874,
-0.2732314169406891,
-0.0723334327... | |
<h1>
Reference Button Popup
</h1>
<table>
<tr><td><asp:DropDownList ID="lookupvaluesDropdown" runat="server"></asp:DropDownList></td></tr>
<tr><td><asp:Button ID="Submit" runat="server" Text="Submit" /></td></tr>
</table>
</div>
</form>
</body>
</html... | [
0.11616037040948868,
-0.06715388596057892,
0.6740617156028748,
0.17990058660507202,
-0.5666750073432922,
0.17382895946502686,
0.030947761610150337,
-0.9372991919517517,
-0.16626666486263275,
-0.4165123999118805,
-0.07582749426364899,
0.4551995098590851,
-0.41826331615448,
-0.18099988996982... | |
```
UserControl on your popup page? | [
0.4727805256843567,
0.5585196614265442,
0.13625392317771912,
-0.017639292404055595,
0.18323954939842224,
-0.4051620066165924,
0.06086316332221031,
0.38839003443717957,
-0.25413838028907776,
-0.35059094429016113,
-0.21271996200084686,
0.24450089037418365,
-0.3064597547054291,
0.125388085842... | |
I need to draw a PNG transparently onto a MetaFileCanvas. This works fine when I draw to a bitmap (which I use when displaying on screen), but for printing I need a MetaFile. How can I achieve this?
Here's some code that demonstrates the problem. Put the attached PNG somewhere and update the paths in the code.
```
pr... | [
0.5002079606056213,
-0.13405358791351318,
0.46458151936531067,
-0.014259097166359425,
-0.08606065809726715,
0.04816335439682007,
0.2937636077404022,
-0.3305971920490265,
0.003870375221595168,
-0.7993940114974976,
0.011526932008564472,
0.6168709397315979,
-0.4535890519618988,
-0.07363273948... | |
demonstrate transparency
vBMP := TBitmap.Create;
try
vBMP.SetSize(vPNG.Width + 20,vPNG.Height + 20);
vBMP.Canvas.Pen.Color := clLime;
vBMP.Canvas.Pen.Width := 5;
vBMP.Canvas.MoveTo(0,0);
vBMP.Canvas.LineTo(vBMP.Width,vBMP.Height);
vBMP.Canvas.MoveTo(vBMP.Width,0);
vBMP.... | [
0.5023676753044128,
-0.22974397242069244,
0.4676875174045563,
0.030539393424987793,
-0.20488831400871277,
0.1903430074453354,
0.5544440746307373,
-0.44137337803840637,
0.014297553338110447,
-0.4605698883533478,
0.04769741743803024,
0.2099456489086151,
-0.07639972865581512,
0.02031815610826... | |
//2. Draw to metafile
vMeta := TMetaFile.Create;
try
LDC := GetDC(0);
vMetaCanvas := TMetafileCanvas.Create(vMeta,LDC);
try
vMetaCanvas.Pen.Color := clLime;
vMetaCanvas.Pen.Width := 5;
vMetaCanvas.MoveTo(0,0);
vMetaCanvas.LineTo(vPNG.Width+20,vPNG.Height+20);
... | [
0.04775308445096016,
-0.4586745500564575,
0.6080946326255798,
-0.04171662777662277,
0.17548075318336487,
0.4077015817165375,
-0.0026192720979452133,
-0.675263524055481,
-0.08041536808013916,
-0.7640300989151001,
-0.21253107488155365,
0.5085468292236328,
-0.4311318099498749,
-0.064061589539... | |
Can't see the green line
finally
vMetaCanvas.Free;
end;
//Demonstrate that resizing works fine:
Canvas.Draw(10,130,vMeta);
vMeta.MMWidth := vMeta.MMWidth * 2;
Canvas.Draw(150,130,vMeta);
vMeta.MMHeight := vMeta.MMHeight * 2;
Canvas.Draw(400,130,vMeta);
finall... | [
0.2397322952747345,
-0.39621108770370483,
0.7398940324783325,
-0.0005687953089363873,
0.11404713243246078,
0.10307259112596512,
0.4079621732234955,
-0.251932829618454,
-0.24916964769363403,
-0.6299435496330261,
-0.5606303215026855,
0.5707369446754456,
-0.42447537183761597,
-0.0404005721211... | |
end;
end;
```

You should just define a new dict as the argument to your constructor and then copy it in the constructor like this.
```
class Data:
def __init__(self, firstName, lastName, address):
self.firstName = firstName
... | [
-0.2438793182373047,
-0.3006191849708557,
0.5324617028236389,
0.130987748503685,
-0.19022102653980255,
0.13857218623161316,
0.043238330632448196,
0.08854231983423233,
0.04910939931869507,
-0.8144332766532898,
-0.6092738509178162,
0.2923967242240906,
-0.46170082688331604,
0.1284408271312713... | |
I am trying to put a JavaFX button in a specific place (specific coordinates) on a UI, but nothing is working. I'm guessing that there is a method that is used for this, but I can't find it.
you can use pane. setLayoutX() and setLayoutY().
```
import javafx.application.Application;
import javafx.event.ActionEvent;
imp... | [
0.30545154213905334,
-0.06365648657083511,
0.3984079360961914,
-0.35797756910324097,
0.2514495253562927,
0.2918630540370941,
0.49386337399482727,
-0.3467645049095154,
-0.07075316458940506,
-0.7266795039176941,
-0.4005468189716339,
0.27587956190109253,
-0.5149166584014893,
0.155889496207237... | |
public void handle(ActionEvent event) {
System.out.println("Hello World!");
}
});
Pane root = new Pane();
btn.setLayoutX(250);
btn.setLayoutY(220);
root.getChildren().add(btn);
primaryStage.setScene(new Scene(root, 300, 250));
primaryStage.show();
}
}
``` | [
0.09012287110090256,
-0.2074320912361145,
0.44880586862564087,
-0.27889519929885864,
0.18029272556304932,
0.47821906208992004,
0.47061413526535034,
-0.17234106361865997,
-0.4893435835838318,
-0.5794382691383362,
-0.6019328236579895,
0.274701863527298,
-0.5143543481826782,
0.434076219797134... | |
I was recently asked in an exam if `public static void main(String arg[])` format of `main` method was fixed?
Can we change it?
Can we use `main` without any of `public`, `static` or `void`?
If not, why is it not hard coded that `main(String arg[])` would stand for `public static void main(String arg[])` always?
The si... | [
0.08183486759662628,
0.03458038344979286,
0.3947378396987915,
-0.22246865928173065,
0.08390720188617706,
-0.13602061569690704,
0.1316302865743637,
-0.022692156955599785,
-0.31533849239349365,
-0.012944233603775501,
-0.1657576709985733,
0.34455356001853943,
-0.4843074083328247,
0.2623050808... | |
would not be possible to call it
* it must be `static` since you have no way to instantiate an object before calling it
* the list of `String` arguments is there to allow to pass parameters when executing a Java program from the command line. It would have been possible to define it without arguments but is more practi... | [
-0.02532493695616722,
-0.2989877760410309,
0.16566072404384613,
-0.13409006595611572,
0.04482847824692726,
-0.1401125192642212,
0.2628158628940582,
-0.0020154656376689672,
-0.1707880049943924,
-0.08612766116857529,
-0.2653068006038666,
0.13568013906478882,
-0.389188677072525,
0.36194473505... | |
therefore be:
```
public static void main( String[] args )
public static void main( String... args )
```
note that the *varargs* version (`...`) is only valid from Java 5
As the Java language allows the brackets `[]` to be positioned after the type or the variable (the first is generally preferred),
```
public sta... | [
0.06781341880559921,
0.14092934131622314,
0.4091964364051819,
-0.6190415024757385,
0.03107544407248497,
-0.11230355501174927,
0.22104908525943756,
-0.03556182608008385,
-0.23231355845928192,
-0.0056507703848183155,
-0.30930647253990173,
0.5573517680168152,
-0.49069496989250183,
0.140441328... | |
Hello all I am working in javascript and html5.I want to ask that how can we add an array as a data member of a class in javascript
I have written a code
```
var bm = new Bitmap(img); //It is a built in class of some library
/*Here what I want is to associate an array with object of bitmap*/
/* what i did is */
va... | [
0.15488575398921967,
0.28517812490463257,
0.5240899920463562,
-0.2944376766681671,
-0.3365229666233063,
0.009151087142527103,
0.23731446266174316,
-0.3538474142551422,
-0.2892545163631439,
-0.5278202295303345,
-0.1745222508907318,
0.6937365531921387,
-0.5155008435249329,
-0.052168846130371... | |
doing it.Also my array will be update at run time
Thanks
You only have to change one line:
```
var bm = new Bitmap(img);
bm.lpr = new Array(); //this is the line you need to change
bm.lpr[0]= "xyz" ;
bm.lpr[1]= "pqr" ;
alert(bm.lpr[0]);
``` | [
0.32334256172180176,
-0.08393210917711258,
0.8424960970878601,
-0.21954979002475739,
0.10494396835565567,
-0.07977692037820816,
0.3960943818092346,
-0.16337460279464722,
-0.5448826551437378,
-0.33504965901374817,
-0.2848624587059021,
0.6133294701576233,
-0.6112456917762756,
-0.226154685020... | |
is it possible to use Cobertura plugin on module that uses CXF 2.5.x. The problem is that when I run Sonar I receive following error:
```
ERROR: Cannot override read-only parameter: classesDirectory in goal: cxf-codegen:wsdl2java
```
The problem is known but has not been fixed:
* <https://issues.apache.org/jira/bro... | [
-0.17632438242435455,
-0.23566670715808868,
0.2839125692844391,
-0.14171269536018372,
0.10773713886737823,
-0.1759442389011383,
0.37778592109680176,
-0.1096593588590622,
-0.12533552944660187,
-0.458963006734848,
0.11700480431318283,
0.6633434891700745,
-0.31837159395217896,
0.0845548808574... | |
I have a view that I am showing. The view appears on the same screen with UITableView. I want to dismiss the view when anywhere on the screen is touched, but I don't want to prevent that touch from getting to its target. For instance, if the user goes to scroll the table view or select a cell or anything - I want to kn... | [
0.2965080738067627,
0.05370253324508667,
0.5851671099662781,
-0.046515531837940216,
-0.18631382286548615,
-0.07471603155136108,
0.25615909695625305,
-0.1779637336730957,
0.01783733069896698,
-0.8471885323524475,
0.10809218138456345,
0.46166926622390747,
-0.13629385828971863,
0.325490087270... | |
the touch. If your view's frame does not contain it - dismiss the view. | [
0.07939914613962173,
0.09925198554992676,
0.32704517245292664,
0.034391503781080246,
-0.2808639109134674,
-0.028154874220490456,
0.1290733814239502,
-0.09505568444728851,
0.2692973017692566,
-0.6468029022216797,
0.04756411537528038,
0.679780125617981,
-0.3528614342212677,
0.338937163352966... | |
I moved my website on a server in order to go live, but I am getting an issue with an Ajax call to a PHP file designed to return a text value. I am trying to find what the bug is. The code works on my local PC.
The error I get from the Ajax call is:
```
Error: error Internal Server Error
```
I am using the followin... | [
0.048680178821086884,
0.10586554557085037,
0.4821847975254059,
-0.24518339335918427,
0.1192915216088295,
-0.15340012311935425,
0.793603777885437,
0.05242519825696945,
-0.09559022635221481,
-0.5073858499526978,
-0.08236939460039139,
0.8924378156661987,
-0.39894458651542664,
-0.1354547291994... | |
setResult(result);
})
.error(function(jqXHR, textStatus, errorThrown) {
setResult("Error: " + textStatus + " " + errorThrown);
alert("Failure");
});
}
```
How can I obtain more information about what could cause this issue? I am not an expert at PHP. Is there some equi... | [
0.21632196009159088,
-0.11019625514745712,
0.23724031448364258,
-0.17637622356414795,
-0.2015613615512848,
-0.18804846704006195,
0.5196879506111145,
-0.22380737960338593,
0.013130102306604385,
-0.2343776673078537,
-0.10475467145442963,
0.5052534937858582,
-0.40538692474365234,
-0.063185609... | |
the proper way to catch exceptional errors on the server side? Should I wrap my PHP code with a catch? How to retrieve information about internal errors?
you can play around with the sprite used on that icon set:
[White Icon Set (ui-icons\_ffffff\_256x240.png)](http://strd6.com/stuff/jqui/theme/images/ui-icons_ffffff_... | [
-0.0496068000793457,
0.06652633845806122,
0.4197358191013336,
0.09205400943756104,
-0.27848178148269653,
0.13085593283176422,
0.5036104917526245,
-0.20000554621219635,
-0.24418635666370392,
-0.45842403173446655,
0.22227025032043457,
0.5286303758621216,
-0.2616211473941803,
-0.2187910526990... | |
I have an android application that has 3 activites. For the 1st and 2nd activity I want the back button to exit all existing activities.
At the moment the back button is exiting the activity it is initiated on but if its pressed on the 2nd activity, the 1st activity will be displayed, rather than exiting the applicati... | [
0.12403979897499084,
-0.05397213250398636,
0.6247238516807556,
0.06417400389909744,
-0.06946616619825363,
-0.019355004653334618,
0.6299031972885132,
-0.3137737512588501,
-0.3157629370689392,
-0.49470773339271545,
-0.0438663549721241,
0.39212483167648315,
-0.1690971702337265,
-0.18522520363... | |
reset the timers to fully exit the application using the BACK button.
Here is my code for the back button which in present in both the 1st and 2nd activities.
```
@Override
public void onBackPressed() { // method for exit confirmation
AlertDialog.Builder builder = new AlertDialog.Builder(BreakActivity.this);
bui... | [
0.3571041524410248,
-0.010541366413235664,
0.84291672706604,
-0.19347955286502838,
0.6131762266159058,
-0.12863674759864807,
0.6613219380378723,
-0.4546545147895813,
-0.09176575392484665,
-0.3631313443183899,
-0.2076590657234192,
0.6513616442680359,
-0.42453035712242126,
-0.151722267270088... | |
BreakActivity.this.finish();
}
})
.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
} | [
0.2528672218322754,
-0.23515215516090393,
0.3831896185874939,
-0.2055681347846985,
0.5770007967948914,
-0.07040883600711823,
0.28459709882736206,
-0.44449976086616516,
-0.15377458930015564,
-0.20575891435146332,
-0.3122285306453705,
0.3746473789215088,
-0.6384691596031189,
-0.1841658204793... | |
});
AlertDialog alert = builder.create();
alert.show();
}
};
```
I have researched the possibility of using the following code:
```
intent = new Intent(this, FinActivity.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent)
finish();
```
However, I'm not sure where this s... | [
0.4729771614074707,
-0.07237926870584488,
0.7510031461715698,
-0.18740741908550262,
0.312644362449646,
-0.5204085111618042,
0.8219126462936401,
-0.15462422370910645,
-0.25987157225608826,
-0.5902099013328552,
-0.16613999009132385,
0.8459300398826599,
-0.3989415764808655,
-0.178822889924049... | |
2 and 2 to 3 with intent
use **finish** function
like
```
i=new Intent(Main_Menu.this, ABC.class);
finish();
startActivity(i);
```
It will kill the activity from which you will go to next activity
and then when you press the backbutton it will take you outside the application ,
because ther... | [
0.3728681206703186,
-0.2261635959148407,
0.9193920493125916,
-0.49882933497428894,
0.23520709574222565,
-0.1908898502588272,
0.5393603444099426,
-0.48160654306411743,
-0.18661075830459595,
-0.6070815324783325,
-0.28640756011009216,
0.6591342091560364,
-0.2285126894712448,
-0.12941585481166... | |
I have one master report with sub report.
in master report display single value for each field but in sub report value fetched dynamically and multiple values.
in sub report i need to display num of images in loop.
how to apply this in ireport/jasper report ?
like

```
The generated html is: `<img>`, and I can add attributes on this element. However, is there a parameter or something I could pass to createElement to make it self-closing? Or is there a dom function I could call to generate the `</a>` closing tag?
It doesn't mat... | [
0.09691756963729858,
0.15435802936553955,
0.7238821387290955,
-0.2854700982570648,
-0.1221792921423912,
-0.2017895132303238,
0.04846848174929619,
-0.1532922387123108,
-0.17493906617164612,
-0.7072964906692505,
-0.2635546326637268,
0.4349638819694519,
-0.24082458019256592,
0.186618551611900... | |
it into a tree of nodes. Using DOM functions affects the tree, and getting `innerHTML` just turns it into one of many possible text formats that produce the same tree. | [
-0.13710708916187286,
-0.16830994188785553,
0.5591142177581787,
0.00458197807893157,
0.12724396586418152,
-0.18450380861759186,
0.19534318149089813,
0.1632217913866043,
-0.05999647453427315,
-0.47035327553749084,
-0.3630800247192383,
0.6198359131813049,
-0.4134981632232666,
0.0679508596658... | |
I am trying to load an entity by key using the id it was assigned by the datastore but I don't see any api method to do this (using NDB). I thought I would be able to make a Key from an integer id and use key.get() to load the entity, but I don't see a way to make a key from just an id. I suspect I am missing something... | [
0.3881645202636719,
0.17474260926246643,
0.3506624102592468,
0.1755426675081253,
-0.005233047530055046,
-0.16604001820087433,
0.10092795640230179,
-0.08555163443088531,
-0.4511833190917969,
-0.5390703678131104,
0.14783677458763123,
0.5593960881233215,
-0.24176137149333954,
0.43097820878028... | |
can't get an entity by id without knowing the kind because instances of different Model classes can have the same id/key\_name | [
0.2738081216812134,
0.09540072083473206,
-0.15300270915031433,
0.3714964687824249,
0.06160632520914078,
-0.2732551693916321,
0.23474057018756866,
0.1343928873538971,
-0.2499433010816574,
-0.38143208622932434,
0.021400408819317818,
0.2158452719449997,
-0.18789078295230865,
0.478823870420455... | |
My code is as follows:
```
#Const debuggingEnabled = False
Sub debugMessage(str As String)
#If debuggingEnabled Then
Debug.Print str
#End If
End Sub
Sub doThings()
debugMessage "test" 'Does this get optimised away, or must it be explicitly
'wrapped with `#If .. #End If... | [
0.3232116103172302,
0.0851292610168457,
0.21582071483135223,
-0.23303143680095673,
0.052150625735521317,
-0.037390414625406265,
0.7140202522277832,
-0.3278259336948395,
0.1227397695183754,
-0.2798691391944885,
-0.1482921987771988,
0.44395214319229126,
-0.2520156502723694,
0.068390764296054... | |
'if one is to avoid the jump and stack push/pop ops?
End Sub
```
Does Microsoft's VBA compiler optimise away calls to procedures that do nothing? How can I find out?
WebSockets is definitely the future now.
Long polling is a dirty workaround to prevent creating connections for each request like AJAX does - but long ... | [
0.013940460979938507,
-0.20250986516475677,
0.29170939326286316,
0.40656980872154236,
-0.19183091819286346,
-0.28958505392074585,
0.1392887830734253,
-0.009198518469929695,
-0.035851750522851944,
-0.6462988257408142,
0.034384578466415405,
0.467815637588501,
-0.18525566160678864,
-0.0164413... | |
the server, sends request headers with optional data, gets a response from the server, and closes the connection.
*Supported in all major browsers.*
* **Long poll** - `request` → `wait` → `response`. Creates a connection to the server like AJAX does, but maintains a keep-alive connection open for some time (not long th... | [
-0.17979800701141357,
-0.2764219045639038,
0.6246426701545715,
0.18835102021694183,
-0.45879483222961426,
-0.12505704164505005,
0.14538542926311493,
0.31352394819259644,
-0.3434213101863861,
-0.933701753616333,
-0.46067357063293457,
0.2759578824043274,
-0.15040536224842072,
0.2696923911571... | |
now or some time in the future, defined by the application logic.
*[support chart (full)](http://caniuse.com/#search=ajax)* | *[wikipedia](https://en.wikipedia.org/wiki/Push_technology#Long_polling)*
* **WebSockets** - `client` ↔ `server`. Create a TCP connection to the server, and keep it open as long as needed. The s... | [
0.12946352362632751,
-0.41056787967681885,
0.8211879730224609,
0.08472167700529099,
0.22091300785541534,
-0.2797141671180725,
0.21318167448043823,
0.1373530924320221,
-0.18727612495422363,
-0.7616621851921082,
-0.35102853178977966,
0.17277364432811737,
-0.05724715068936348,
-0.015092347748... | |
so data is simply encrypted.
[*support chart (very good)*](http://caniuse.com/#feat=websockets) | *[wikipedia](https://en.wikipedia.org/wiki/WebSocket#Browser_implementation)*
* **WebRTC** - `peer` ↔ `peer`. Transport to establish communication between clients and is transport-agnostic, so it can use UDP, TCP or even m... | [
0.1386779546737671,
-0.3231332004070282,
0.3990384638309479,
0.2811850607395172,
-0.00951305404305458,
-0.19346970319747925,
-0.22093987464904785,
-0.00424501858651638,
-0.6363107562065125,
-0.6871424317359924,
-0.3489190638065338,
0.32947394251823425,
-0.30186885595321655,
0.0656820088624... | |
way of exchanging endPoints data, where in most cases developers still use centralised servers to "link" peers. This is required only to exchange essential data for establishing a connection, after which a centralised server is not required.
[*support chart (medium)*](http://caniuse.com/#feat=rtcpeerconnection) | *[wik... | [
-0.15529891848564148,
-0.2125706970691681,
0.7821301221847534,
-0.023516720160841942,
0.17065830528736115,
-0.2717493176460266,
0.10529071092605591,
-0.07041694968938828,
-0.31781908869743347,
-0.815207839012146,
-0.2226661890745163,
0.23331254720687866,
-0.03372328355908394,
0.14920146763... | |
a preferable protocol to be used instead of Long Polling. [*support chart (good, except IE)*](http://caniuse.com/#feat=eventsource) | *[wikipedia](https://en.wikipedia.org/wiki/Server-sent_events)*
Advantages:
-----------
The main advantage of **WebSockets** server-side, is that it is not an HTTP request (after hands... | [
-0.28701984882354736,
-0.38675031065940857,
0.38465067744255066,
0.34694087505340576,
-0.24816539883613586,
-0.3267838954925537,
-0.0678517147898674,
0.008522787131369114,
-0.24196654558181763,
-0.8871678113937378,
-0.14273910224437714,
0.36445099115371704,
-0.0016003980999812484,
-0.12598... | |
RAM, or even republish between sockets straight away.
Security considerations
-----------------------
People are often concerned about the security of WebSockets. The reality is that it makes little difference or even puts WebSockets as better option. First of all, with AJAX, there is a higher chance of [MITM](http:/... | [
0.10268549621105194,
0.40041038393974304,
0.13639841973781586,
0.19476552307605743,
-0.016658496111631393,
-0.22141112387180328,
0.2982565760612488,
-0.07590243220329285,
-0.551366925239563,
-0.8318080306053162,
-0.4623351991176605,
0.41606611013412476,
-0.04255577176809311,
0.291471630334... | |
support both: HTTP and HTTPS (encrypted).**
P.S.
----
**Remember that WebSockets generally have a very different approach of logic for networking**, more like real-time games had all this time, and not like http. | [
0.200466588139534,
0.08658614754676819,
0.19342419505119324,
0.41776490211486816,
-0.131497323513031,
-0.32422617077827454,
0.28675377368927,
0.33274710178375244,
-0.25220993161201477,
-0.5111956000328064,
-0.3407302796840668,
0.7079931497573853,
-0.11468861997127533,
-0.30575406551361084,... | |
I'm working on a fairly large project in Python that requires one of the compute-intensive background tasks to be offloaded to another core, so that the main service isn't slowed down. I've come across some apparently strange behaviour when using `multiprocessing.Queue` to communicate results from the worker process. U... | [
0.19408977031707764,
0.2838730812072754,
-0.02549048513174057,
-0.3349938690662384,
-0.13728901743888855,
0.09732487052679062,
0.23159654438495636,
0.03234986588358879,
-0.5427305698394775,
-0.6291846036911011,
0.06164597347378731,
0.4213465452194214,
-0.37501731514930725,
0.23461028933525... | |
self.queue = queue
self.size = size
def run(self):
self.queue.put(range(size))
class WorkerProcess(multiprocessing.Process):
def __init__(self, queue, size):
multiprocessing.Process.__init__(self)
self.queue = queue
self.size = size
def run(self):
self.queu... | [
-0.32141488790512085,
-0.13038308918476105,
0.0030586482025682926,
-0.41411468386650085,
-0.01634618081152439,
0.6670682430267334,
0.23771290481090546,
-0.06402777135372162,
-0.7000436186790466,
-0.7174333333969116,
0.07550295442342758,
0.2725216746330261,
-0.43917208909988403,
0.356022775... | |
worker_t = WorkerThread(queue, size)
worker_p = WorkerProcess(queue, size)
worker_t.start()
worker_t.join()
print 'thread results length:', len(queue.get())
worker_p.start()
worker_p.join()
print 'process results length:', len(queue.get())
```
I've seen that this works fine for `size = 1... | [
0.11651834100484848,
-0.05567372590303421,
0.39293286204338074,
-0.38029345870018005,
0.04475760832428932,
0.3905092179775238,
0.28702300786972046,
0.030691716820001602,
-0.5412523746490479,
-0.7389523386955261,
0.0828724279999733,
0.41905543208122253,
-0.4719242453575134,
0.21799670159816... | |
feeder thread blocks on the write to the pipe (actually when trying to acquire the lock protecting the pipe from concurrent access).
Check this issue <http://bugs.python.org/issue8237> | [
0.4709816873073578,
-0.2411835938692093,
-0.07832472771406174,
0.1437007039785385,
0.025745784863829613,
-0.01678244210779667,
0.23202137649059296,
0.02274252288043499,
-0.4152528941631317,
-0.1616028994321823,
0.18259459733963013,
0.34518417716026306,
-0.8060899972915649,
0.25303691625595... | |
I am trying to obtain a calculation for salesman bonus as per their level of experience(1-4) as an integer, and what they have sold (1-10000) as decimal. Why am I getting this error now? Here is the code...
```
Public Class Form1
Dim intLvlsTextBox1Numbers As String = Nothing And intLvlsTextBox1Numbers = txtBoxLv... | [
0.24801689386367798,
0.1433696448802948,
0.552212119102478,
-0.17850638926029205,
-0.0737338736653328,
0.21802709996700287,
0.42755115032196045,
-0.21713711321353912,
-0.0642886683344841,
-0.29997962713241577,
-0.08675450831651688,
0.4649509787559509,
-0.16074712574481964,
0.37254455685615... | |
use the
'exception for detecting letters within the textboxes being understood in logic as of
'a wrong type, thus enabling its detection as letter or caracter.
Try
intLvlsTextBox1Numbers = Convert.ToInt32(txtBoxLvl.Text)
decSaleWkTextBox1Numbers = Convert.ToInt32(txtBoxW... | [
-0.20243363082408905,
-0.1135331317782402,
0.2472066730260849,
-0.13309241831302643,
-0.18447338044643402,
0.0973028615117073,
0.5139479637145996,
-0.3726840913295746,
0.023500360548496246,
-0.36045387387275696,
-0.30846717953681946,
0.2117822766304016,
-0.39871200919151306,
0.069284528493... | |
numbers
'that are out of rang, and will display the warning error message. It goes from
'anything not convertable to Integer 32, i.e. letter, signs.
MessageBox.Show("Please, input a numerical value")
'Reset the cursor position when a non-valid data is inputed.
... | [
-0.263561874628067,
0.03884056210517883,
0.5847263932228088,
-0.20214644074440002,
0.04665127024054527,
0.4502328038215637,
0.2741718590259552,
-0.02133806049823761,
-0.3546409606933594,
-0.18841613829135895,
-0.15034818649291992,
0.3651476800441742,
-0.5888721942901611,
0.0297428723424673... | |
'Catches the EX variable execption,"InvalidCastExceptionUnhandeled".
Catch ex As FormatException
End Try
'procedure call to the ChoiceMenus
ChoiceMenus()
End Sub
Private Sub ChoiceMenus()
Select Case intLvlsTextBox1Numbers
Case 1 To 4
End Select | [
-0.07458529621362686,
-0.398246705532074,
0.6077219247817993,
-0.17290106415748596,
-0.008742967620491982,
0.2568412721157074,
0.22265684604644775,
-0.23721514642238617,
0.21219880878925323,
-0.21961288154125214,
-0.5576807856559753,
0.3171268701553345,
-0.5544565320014954,
0.0726822018623... | |
Select Case decSaleWkTextBox1Numbers
Case 1 To 100000
End Select
End Sub
Private Sub isValidCalculation()
lblTotWkSale.Text = 250 * (intLvlsTextBox1Numbers + 1) + ((intLvlsTextBox1Numbers + 1) / 100) * (decSaleWkTextBox1Numbers)
decSaleWkTextBox1Numbers = Convert.ToString(lbl... | [
-0.5306600332260132,
0.051573120057582855,
0.675391674041748,
-0.03319702669978142,
0.18772274255752563,
0.358791708946228,
0.274120956659317,
-0.6102131009101868,
0.08949829638004303,
-0.5882831811904907,
-0.3470550775527954,
0.68043053150177,
-0.11747653782367706,
0.2827630341053009,
0... | |
e As System.EventArgs) Handles btnClr.Click
clearForm() 'procedure call
End Sub
Private Sub clearForm()
txtBoxWklySale.Text = ""
txtBoxLvl.Text = ""
lblTotWkSale.Text = ""
lblErrorMsg.Text = ""
txtBoxLvl.Select()
'tbxHome = True
'tbx1 = True | [
0.0502544641494751,
-0.3982390761375427,
0.5696357488632202,
-0.23256422579288483,
0.1852879375219345,
0.025912359356880188,
0.48766764998435974,
-0.2262740135192871,
-0.2402641475200653,
-0.5244601368904114,
-0.5576540231704712,
0.6022881865501404,
-0.3644776940345764,
0.15165001153945923... | |
'tbx2 = True
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
Me.Close() 'closes the application
End Sub
End Class
```
Thank you!
What Lukas described is standard practice. I would start there. But the literal answer to your ques... | [
-0.18528757989406586,
0.0414767861366272,
0.3955618441104889,
0.04355389624834061,
0.1490866094827652,
0.37647131085395813,
0.6532800197601318,
-0.12148148566484451,
-0.1627691686153412,
-0.451943039894104,
-0.5120732188224792,
0.4392816722393036,
-0.2521415948867798,
0.2978493571281433,
... | |
I´m sure it´s on stackoverflow, I´ve been searching but I can´t find it. Which method is called when nothing in the optionsmenu is selected, but when it closes?
```
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.splashme... | [
-0.18524378538131714,
0.025690166279673576,
0.5928290486335754,
-0.3169761598110199,
0.2398655265569687,
0.3863060772418976,
0.029010822996497154,
-0.3498249053955078,
-0.29824739694595337,
-0.5937912464141846,
-0.2793634235858917,
0.6822680234909058,
-0.1445465385913849,
-0.02714252285659... | |
menu) {
super.onOptionsMenuClosed(menu);
//do your business
}
``` | [
0.10370287299156189,
-0.03617410361766815,
0.5522280931472778,
-0.21526585519313812,
0.4706442356109619,
-0.013347758911550045,
0.27905723452568054,
0.18744085729122162,
-0.32925719022750854,
-0.5423765182495117,
-0.4957829713821411,
0.9886457920074463,
-0.3399345278739929,
0.1706679463386... | |
PROBLEM: Safari is not playing ball and is rendering my SVG images with a scroll bar.
Improved version of Question: "How do I get an to fill a set width and have the height calculated based on the aspect ratio in Safari?" (thanks Phrogz)
Relevant code:
**SVG File**
```
viewBox="0 0 800 800"
```
(no height or wid... | [
-0.23886483907699585,
0.03908665478229523,
0.5986214876174927,
-0.09092126041650772,
-0.3692760765552521,
0.13921138644218445,
0.35144874453544617,
-0.31821516156196594,
-0.4407353401184082,
-0.5106483697891235,
-0.014174499548971653,
0.7525633573532104,
-0.27782750129699707,
-0.1354465186... | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
<meta http-equiv="expires" content="0" />
</head>
<body>
<div class="objectwrapper">
<div class="objectdiv">
<object type="image/svg+xml" data="question0optimize1.svg" width="100%" height="100%">
</object... | [
-0.010203967802226543,
-0.02583572268486023,
0.8700962066650391,
0.018328767269849777,
-0.39047619700431824,
0.09566540271043777,
0.37834593653678894,
-0.5804542899131775,
-0.1317587047815323,
-0.7068186402320862,
-0.052728887647390366,
0.6336262226104736,
-0.04643234238028526,
-0.15072122... | |
defaults to `display:inline` you get an additional baseline (4px-6px) below the object. 100% + anything is taller than the window, and thus a scrollbar shows.
If you can be clear about what you want the final presentation to be—specifically, what should the height be for your `<object>`—I can help you make it work cro... | [
0.14921392500400543,
0.002218707697466016,
0.7842310070991516,
-0.11125292629003525,
-0.2019720822572708,
0.04643958806991577,
0.4376976191997528,
-0.21121381223201752,
0.0058610523119568825,
-0.6827957630157471,
0.0065191518515348434,
0.6202565431594849,
0.0569457970559597,
-0.24380750954... | |
and the fixed version at
<http://phrogz.net/svg/svg_via_object.xhtml>
(The use of HTML4 versus XHTML is unrelated to the problem or fix.) | [
-0.0349489264190197,
-0.38352689146995544,
0.898288905620575,
0.07538928836584091,
-0.3482392132282257,
-0.11585132032632828,
0.14174124598503113,
0.39075496792793274,
-0.5222480297088623,
-0.42617931962013245,
-0.693584144115448,
0.2763550281524658,
-0.3943178355693817,
0.0798806846141815... | |
I've to develop an application that allows user to browse picture and write some information
about him, all these information will stored in a class with Person name,
After he presses NextButton the activiy should moves him to another activity with these information in the second activity he'll type another informati... | [
0.22187009453773499,
-0.3542158901691437,
0.5137280821800232,
0.25445556640625,
0.15320567786693573,
0.05093420296907425,
0.019983306527137756,
-0.1113896444439888,
-0.41628149151802063,
-0.7356675863265991,
0.07969092577695847,
0.2523720860481262,
0.021306747570633888,
0.08351490646600723... | |
move picture, but I couldn't combine them with each other!
2- How can I insert the information that will be typed in the second activity to the same object of Person Class ??
---
Hope my Questions and my scenario is clear!!
thanks alot
Shomokh =)
-----------------------Updating-----------------------------------... | [
-0.07464974373579025,
-0.35292938351631165,
0.8021669983863831,
0.11288990080356598,
0.02896292880177498,
0.16662649810314178,
0.1929863542318344,
-0.490599662065506,
-0.23665586113929749,
-0.7143455743789673,
-0.08886869251728058,
0.5948787927627563,
-0.25467318296432495,
-0.4884960055351... | |
I have the following problem, the session does not keep the info.
So probably I'm making much mistakes, but I don't have a clue why,
and if you see anything else what's useless/missing, could you please say it.
This is for an login-script.
I thought it was good, till I saw in my other page (home.php), that it couldn't... | [
0.27203992009162903,
0.32254335284233093,
0.10706375539302826,
-0.11445044726133347,
-0.10164579004049301,
-0.30829572677612305,
0.5787158012390137,
0.2174539864063263,
-0.2561284601688385,
-0.7474427819252014,
-0.021914402022957802,
0.5357003211975098,
-0.3823213577270508,
0.0035981647670... | |
('db_connect.php');
include("error.php");
if($_SERVER['REQUEST_METHOD'] == "POST")
{
//formulier verstuurd
$username = $_POST['username'];
$password = $_POST['password'];
//protect MySQL Injection
$username = mysql_real_escape_string($username);
$password = ... | [
-0.28371313214302063,
-0.10869904607534409,
0.3143981397151947,
-0.41325613856315613,
0.00932635273784399,
0.39698275923728943,
0.7575908899307251,
-0.7570372819900513,
0.05529479309916496,
-0.4352865219116211,
-0.17151835560798645,
0.7376555800437927,
-0.5670868754386902,
0.06693203002214... | |
$rows = mysql_num_rows($query);
if($rows == 1) {
$_SESSION['userername'] = $username;
header("location:home.php");
}
else
{
$wronguser = "<div id='wronguser'>*Verkeerd gebruikersnaam of wachtwoord</div>"; | [
-0.22908136248588562,
0.20861780643463135,
0.3149665594100952,
-0.562312126159668,
0.39551714062690735,
0.05542819947004318,
0.5368847250938416,
-0.2726113498210907,
-0.227717325091362,
-0.4524514079093933,
-0.12269877642393112,
0.34867268800735474,
-0.3224886655807495,
0.3772122859954834,... | |
}
}
?>
```
//dbconnect.php
```
<?php
$connect = mysql_connect( 'localhost', 'root', 'root' );
mysql_select_db('applicatie', $connect);
?>
```
//error.php
```
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
?>
```
---
Update.
I can't login... | [
0.05522642657160759,
0.2060118317604065,
0.27366960048675537,
-0.1420300453901291,
-0.007732700556516647,
-0.10427843034267426,
0.7037802338600159,
-0.25754186511039734,
-0.14135587215423584,
-0.6666481494903564,
-0.3756996989250183,
0.6709008812904358,
-0.5419551134109497,
0.1853636801242... | |
*/
if (isset ( $_POST ['username'] ) && isset ( $_POST ['password'] )) {
$username = $_POST ['username'];
$password = $_POST ['password'];
// protect MySQL Injection
$username = mysql_real_escape_string ( $username );
$password = mysql_real_escape_string ( $password );
$query = mysql_query ( ... | [
-0.5364932417869568,
-0.20924709737300873,
0.2628065049648285,
-0.3366161286830902,
0.3096628785133362,
0.61207115650177,
0.5490924119949341,
-0.6786344647407532,
0.08448045700788498,
-0.46269071102142334,
-0.28764525055885315,
0.904532790184021,
-0.3938670754432678,
-0.11191035807132721,
... | |
$_SESSION ['userername'] = $username;
$_SESSION ['auth'] = true;
header ( "location:home.php" );
}
else
{
$_SESSION ['userername'] = false;
$_SESSION ['auth'] = false;
}
}
/**
* Logout
*/
if (@$_GET ['cmd'] == "logout") {
$_SESSION = array ();
}
/**
* Error Outp... | [
-0.0668487548828125,
0.2508746385574341,
0.5328527688980103,
-0.3925783932209015,
0.3711780309677124,
0.02556012012064457,
0.5799511075019836,
-0.19771206378936768,
-0.14719009399414062,
-0.6000909805297852,
-0.2683124840259552,
0.6528638005256653,
-0.15165312588214874,
0.3393644094467163,... | |
id='wronguser'>*Verkeerd gebruikersnaam of wachtwoord</div>";
die ( $wronguser );
}
```
I hope this helps
Thanks | [
0.002185614313930273,
0.5237804651260376,
0.07733514904975891,
-0.2771930992603302,
0.36681437492370605,
-0.11618031561374664,
0.672621488571167,
-0.07278835028409958,
-0.0797029435634613,
-0.28917890787124634,
-0.0022372701205313206,
0.3492083251476288,
-0.12037888914346695,
0.16988095641... | |
Sorry for asking a rather n00b question, I am rather new to ASP.NET MVC.
My problem is as follows:
I want my site to handle a URL in the following way:
```
www.mysite.com/homepage/name
```
I want the above link to go to that user's profile. For simplicity the controller will be the Homepage controller with the Test... | [
0.044811055064201355,
-0.002172591397538781,
0.32347357273101807,
0.036149755120277405,
-0.32706889510154724,
-0.21924756467342377,
0.17637528479099274,
0.18955081701278687,
-0.38242441415786743,
-0.8009433746337891,
-0.0787416473031044,
0.13758210837841034,
-0.3392617404460907,
0.21755370... | |
"Test" }
);
```
Up until now the code works great (I have tested it and it routes ok).
But now my other functionality which I want is to enable:
```
www.mysite.com/homepage/action/id
```
To work as well.
The routing for this will be:
```
routes.MapRoute(
"Default",
"homepage... | [
0.1229977235198021,
-0.1698070466518402,
0.5904766321182251,
0.16691170632839203,
0.14385920763015747,
-0.1799306869506836,
0.3364836573600769,
-0.14653243124485016,
-0.29518750309944153,
-1.0673577785491943,
-0.02442840114235878,
0.33335137367248535,
-0.20267890393733978,
0.00000951735819... | |
);
```
The problem is what happens when a user wants to omit the {id} for an action, the routing table detects that the action name is actually the {name} parameter.
Is there any way to first CHECK if an action exists. And only if it doesn't, then use it as a parameter for a different route.
Makes sense? if not I'l... | [
0.027700284495949745,
-0.08573157340288162,
0.31173020601272583,
0.0688486099243164,
0.19253632426261902,
0.015599965117871761,
0.17214226722717285,
-0.1991949826478958,
-0.6164130568504333,
-0.856349527835846,
-0.036076441407203674,
0.3894253075122833,
-0.6974936723709106,
-0.135306596755... | |
"homepage/{action}/{id}",
new { controller = "Homepage", action = "Index", id = UrlParameter.Optional },
new { action = "(action1|action2|action3)" }
);
```
And then the next rule:
```
routes.MapRoute(
"feed",
"homepage/{id}",
new { controller = "H... | [
-0.1343006193637848,
-0.4363822340965271,
0.6222794055938721,
0.09622089564800262,
0.07487022131681442,
-0.003794628195464611,
0.012268704362213612,
-0.16516095399856567,
-0.4844400882720947,
-1.0006695985794067,
-0.26298654079437256,
0.132604718208313,
-0.5861229300498962,
-0.032016661018... | |
"Test"}
);
```
I works ok, only it's hard to scale upon this. You need to remember to place every new action on the controller inside the string here. It's a huge opening for debug nightmares.
Thank you !
You need to put the `Default` route first, and also restrict its allowed values
```
routes.MapRoute... | [
-0.01894034817814827,
-0.3164041340351105,
0.4827352464199066,
0.25280213356018066,
0.16077326238155365,
-0.2012372612953186,
0.49347326159477234,
-0.19613483548164368,
-0.22391289472579956,
-0.8951679468154907,
-0.19006337225437164,
0.42840975522994995,
-0.15759150683879852,
-0.0371247529... | |
action = "Index", id = UrlParameter.Optional },
new {action = @"Index|Delete|Add"}
);
routes.MapRoute(
"test",
"homepage/{name}",
new { controller = "Homepage", action = "Test" }
);
```
This way the first route will only be used if the action value ... | [
-0.08994659781455994,
-0.6151532530784607,
0.4869532287120819,
0.15049462020397186,
0.05202455073595047,
0.1040334701538086,
0.25612199306488037,
-0.21633756160736084,
-0.4937670826911926,
-0.8017598986625671,
-0.27682337164878845,
0.11692594736814499,
-0.44744792580604553,
-0.055594727396... | |
provided in the constraint, otherwise it will move to the next rule.
You will also have to make sure when you create user profiles, that no name should match one of your supported actions for the `default` route. | [
0.47187039256095886,
-0.13685721158981323,
0.24783435463905334,
0.015481308102607727,
0.3663325011730194,
-0.45259585976600647,
0.46565964818000793,
-0.03747304156422615,
-0.34903424978256226,
-0.6006806492805481,
-0.18548190593719482,
0.39019590616226196,
-0.28225281834602356,
-0.13585820... | |
I am trying to create a regular expression to do the following (within a preg\_replace)
```
$str = 'http://www.site.com&ID=1620';
$str = 'http://www.site.com';
```
How would I write a preg\_replace to simply remove the &ID=1620 from the string (taking into account the ID could be variable string length
thanks in a... | [
-0.11196783930063248,
-0.03403390198945999,
0.5624195337295532,
-0.03280770406126976,
-0.023778432980179787,
0.1957515925168991,
0.15234892070293427,
-0.07031811028718948,
-0.3794066309928894,
-0.9763939380645752,
-0.10342620313167572,
0.16354204714298248,
-0.39891108870506287,
-0.08597773... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.