text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
are passing multiple values in the flashVars then you could iterate through them and encode all chars in a single pass:
```
var flashVars = {
myVar: '{"url":"http://google.com/", "id":"9999"}',
anotherVar: 42
};
// Escape all values contained in the flashVars object.
for (key in flashVars) {
if (flashVars.h... | [
0.11040029674768448,
0.18806339800357819,
0.23009729385375977,
-0.25487783551216125,
-0.022626060992479324,
0.052565980702638626,
0.6174715161323547,
-0.42108094692230225,
-0.27401310205459595,
-0.6407223343849182,
-0.3267381191253662,
0.3534419536590576,
-0.34623977541923523,
-0.006061726... | |
native JSON object, so you will need to include [Crockford's JS Library](http://www.json.org/js.html) in your HTML page.
```
// Making use of a JSON library.
var flashVars = {
myVar: encodeURIComponent(JSON.stringify({ url: "http://google.com/", id: "9999"})),
};
```
Also, it's worth bearing in mind that flashVar... | [
-0.23968708515167236,
0.17480555176734924,
0.1488986611366272,
-0.26789048314094543,
-0.3312167525291443,
0.0008464964921586215,
0.5451158881187439,
-0.07385953515768051,
-0.20368468761444092,
-0.583531379699707,
-0.36462435126304626,
0.48340392112731934,
-0.3526269197463989,
-0.0677843019... | |
could anyone assist in authenticating to photobucket and uploading an image from and iPhone app? I am currently configured with many networks but I can't really find good documentation for the photobucket process. I guess the process is only authenticate and upload using customer key then username and password of the u... | [
0.6716378331184387,
0.2774604558944702,
0.051934994757175446,
0.14707329869270325,
-0.16854031383991241,
-0.10651575773954391,
0.15709345042705536,
-0.030795423313975334,
-0.4086541533470154,
-0.44816553592681885,
-0.034399788826704025,
0.20951324701309204,
-0.09211520105600357,
-0.2348250... | |
set up for LinkedIN by Lee WHitney on Github courtesy of Kirsten Jones. Register an app with PB, get your keys and plug in the keys & correct PB URLs and you will be working. The URLS you need are:-
```
requestTokenURLString = @"http://api.photobucket.com/login/request";
accessTokenURLString = @"http://api.photob... | [
0.48925530910491943,
-0.10120902955532074,
0.43960249423980713,
0.10394211858510971,
0.22252163290977478,
0.12028297036886215,
-0.018531687557697296,
-0.28364595770835876,
-0.2864293158054352,
-0.7161295413970947,
-0.05265670642256737,
0.26240992546081543,
-0.26127889752388,
-0.26009190082... | |
[Bitbucket Photobucket code for objective-c](https://bitbucket.org/photobucket/api-objc/overview)
The issue I have is to do with their usage of sub domains and trying to get OAUTH to work with that.
UPDATE: Solved: I have at last worked out how to get a part of the provided API working in my own Xcode project. Basica... | [
0.5344938635826111,
0.32993271946907043,
0.04768955335021019,
0.025540191680192947,
-0.06792384386062622,
-0.33986085653305054,
0.04622940346598625,
-0.05164041370153427,
-0.37971341609954834,
-0.23716440796852112,
-0.2049066573381424,
0.485264390707016,
-0.3600122630596161,
-0.01452919468... | |
I've looked at many collision detection technique for a 2D game but I can't find exactly what I'm looking for. My game is a brickbreaker kind of game.
I've looked at pixel to pixel collisions style but it looks complicated for what i'm trying to do.
Is there an easier way?
I'm using XNA.
Thanks in advance.
Jim, the Ph... | [
0.5631455779075623,
0.26155030727386475,
-0.2891247868537903,
0.05612810328602791,
-0.23499684035778046,
0.025993961840867996,
0.08829022943973541,
-0.053462155163288116,
-0.2791789472103119,
-0.7075690031051636,
0.0041498239152133465,
0.15670590102672577,
-0.500275194644928,
-0.1322825551... | |
Github courtesy of Kirsten Jones. Register an app with PB, get your keys and plug in the keys & correct PB URLs and you will be working. The URLS you need are:-
```
requestTokenURLString = @"http://api.photobucket.com/login/request";
accessTokenURLString = @"http://api.photobucket.com/login/access";
userLogin... | [
0.42982688546180725,
0.3321923613548279,
0.26810935139656067,
0.1049240380525589,
-0.17576751112937927,
0.011033518239855766,
-0.025530053302645683,
-0.31158336997032166,
-0.18918342888355255,
-0.7307884097099304,
-0.17604848742485046,
0.4070295989513397,
0.05003393441438675,
-0.1011230051... | |
is to do with their usage of sub domains and trying to get OAUTH to work with that.
UPDATE: Solved: I have at last worked out how to get a part of the provided API working in my own Xcode project. Basically I added the special Oauth files which enable the requests to be set up correctly to get round the subdomain stuf... | [
0.3925084173679352,
0.23789606988430023,
0.16354641318321228,
0.2333921641111374,
0.04815058782696724,
-0.4213205873966217,
0.0980311930179596,
0.10442700237035751,
-0.3957371115684509,
-0.34671878814697266,
-0.38440605998039246,
0.31736549735069275,
-0.10421349853277206,
-0.17568205296993... | |
My boss sent me a process, in to which I need to:
* make a function that creates a temp table
* grab data from a table
* use a function to refine the data
* create a hash code for 2 of the columns
* insert all the data from the temp to the original data
* drop the table
I've been trying to look what the make\_hash() ... | [
0.4650028645992279,
0.13459795713424683,
0.23934057354927063,
0.031386032700538635,
0.3753620684146881,
0.14298106729984283,
0.13090193271636963,
-0.027322793379426003,
-0.11379498243331909,
-0.6697933077812195,
0.04125611484050751,
0.13207702338695526,
-0.3485511541366577,
0.1527023762464... | |
If so, is there a way for me to find which schema the function is located?
I've been trying to research in the books and online but I couldn't find anything, even in the PostgreSQL website.
```
--------------------------------------------
ERROR: function make_hash(character varying) does not exist
LINE 1: UPDATE te... | [
0.15060831606388092,
-0.03722546994686127,
0.3285926282405853,
-0.19030115008354187,
0.4104148745536804,
-0.13380123674869537,
0.1678747981786728,
0.04971325024962425,
-0.04526600241661072,
-0.24461139738559723,
-0.07691378891468048,
0.607101321220398,
-0.3420816957950592,
0.30852824449539... | |
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: UPDATE temp_match_queue_04022012 SET title_hash = make_hash(as_title) WHERE as_title IS NOT NULL
CONTEXT: PL/pgSQL function "metadata_matching_temp" line 30 at SQL statement
********** Error **********
... | [
-0.28517845273017883,
0.2722644805908203,
0.4301191568374634,
-0.2828124165534973,
-0.24702602624893188,
0.09410344809293747,
0.41788744926452637,
0.003097072709351778,
0.008723411709070206,
-0.37975013256073,
-0.07644353061914444,
0.15192967653274536,
-0.4868163764476776,
0.19501391053199... | |
that you can authenticate on PB by simply converting a sample over to PB. e.g.: There's an OAuth starter kit set up for LinkedIN by Lee WHitney on Github courtesy of Kirsten Jones. Register an app with PB, get your keys and plug in the keys & correct PB URLs and you will be working. The URLS you need are:-
```
reques... | [
0.5550113916397095,
0.21115358173847198,
0.20494318008422852,
0.09546411037445068,
0.13302186131477356,
0.2890837788581848,
0.155461847782135,
-0.363017201423645,
-0.252216100692749,
-0.3416113555431366,
-0.2349943071603775,
0.11634000390768051,
-0.09318529814481735,
-0.23618000745773315,
... | |
library including a modified OAUTH but it's missing docs so you need to work it out by studying the code. [Bitbucket Photobucket code for objective-c](https://bitbucket.org/photobucket/api-objc/overview)
The issue I have is to do with their usage of sub domains and trying to get OAUTH to work with that.
UPDATE: Solve... | [
0.6399042010307312,
0.325284481048584,
-0.04042796790599823,
0.14639104902744293,
-0.0381341390311718,
-0.44062352180480957,
0.02052587829530239,
-0.10340085625648499,
-0.30649298429489136,
-0.4245178997516632,
-0.16380208730697632,
0.38437625765800476,
-0.3170357346534729,
-0.000801043410... | |
I would like to show the loading spinner while a function is running in jquerymobile.
The function is non ajax its just going to calculate some values and save to a sqlite db.
I have searched and i keep finding the same examples saying use $.mobile.showPageLoadingMsg(); etc.
example
```
function loading()
{
$.mob... | [
0.36848050355911255,
0.13794302940368652,
0.371947705745697,
-0.06156936660408974,
-0.18628767132759094,
-0.2711206376552582,
0.24144524335861206,
-0.023523909971117973,
-0.27942362427711487,
-0.6763602495193481,
0.11417808383703232,
0.35587170720100403,
-0.4389418959617615,
0.102157920598... | |
OAuth starter kit set up for LinkedIN by Lee WHitney on Github courtesy of Kirsten Jones. Register an app with PB, get your keys and plug in the keys & correct PB URLs and you will be working. The URLS you need are:-
```
requestTokenURLString = @"http://api.photobucket.com/login/request";
accessTokenURLString = @... | [
0.17107300460338593,
0.21389378607273102,
0.22643645107746124,
0.14258542656898499,
0.29790839552879333,
0.2977118492126465,
0.09228319674730301,
-0.23878243565559387,
-0.28376907110214233,
-0.6637057065963745,
-0.2850850820541382,
0.2944210171699524,
-0.16978520154953003,
-0.4239244759082... | |
studying the code. [Bitbucket Photobucket code for objective-c](https://bitbucket.org/photobucket/api-objc/overview)
The issue I have is to do with their usage of sub domains and trying to get OAUTH to work with that.
UPDATE: Solved: I have at last worked out how to get a part of the provided API working in my own Xc... | [
0.6068057417869568,
0.33628523349761963,
0.055272310972213745,
0.06196783110499382,
-0.10339392721652985,
-0.37492668628692627,
0.14621426165103912,
-0.028698746114969254,
-0.30804330110549927,
-0.3643054962158203,
-0.10870666056871414,
0.38721221685409546,
-0.2932036221027374,
-0.10705020... | |
I'm working in winforms, and I'm attempting to link in some events any time a form\component\usercontrol is shown in the designer, i'm trying to link in some static events that load preferences from the app.config file.
Is it possible for me to define code in my project that says "any time a control is loaded, execute... | [
0.35513031482696533,
-0.2532927691936493,
0.14198805391788483,
0.08186832070350647,
0.0586906261742115,
-0.04548905789852142,
-0.026849189773201942,
0.07545106112957001,
-0.10940434783697128,
-0.48442885279655457,
0.07785654813051224,
0.4698992073535919,
-0.5092507004737854,
0.113993428647... | |
iEditorComponents (dont remember the exact name), that allows the user to select ColorLocation from a huge list of items specified in the app.config settings file for the current project.
The problem is, the editing component is in Dll "A", which is the base, and it doesn't have access to the app.config in "B".
I nee... | [
0.1289021372795105,
-0.2132798433303833,
0.38785263895988464,
0.20278024673461914,
0.05022216960787773,
-0.2374049425125122,
0.2849085330963135,
0.009382914751768112,
0.026473892852663994,
-0.885405421257019,
0.03500049561262131,
0.47832751274108887,
-0.5235493779182434,
0.0171170793473720... | |
because sounds strange.
Use the following code in your `Form's` or `Control's` constructor:
```
public void Form1()
{
InitializeComponent();
if (IsInWinFormsDesignMode())
{
// your code stuff here
}
}
public static bool IsInWinFormsDesignMode()
{
bo... | [
0.44679445028305054,
-0.20186178386211395,
0.3913780450820923,
-0.19267205893993378,
0.33295056223869324,
-0.4965555965900421,
0.4220249354839325,
-0.26862990856170654,
-0.005500165279954672,
-0.6296572685241699,
-0.47042226791381836,
0.31926843523979187,
-0.246699720621109,
0.453558951616... | |
DEBUG
if ( System.ComponentModel.LicenseManager.UsageMode ==
System.ComponentModel.LicenseUsageMode.Designtime )
{
returnValue = true;
}
#endif
return returnValue;
}
```
Hope it helps. | [
0.2018863707780838,
-0.21999907493591309,
0.05211126431822777,
-0.06105133518576622,
0.24287834763526917,
-0.0999886766076088,
0.8355882167816162,
-0.3555036187171936,
0.2952747642993927,
-0.4198700785636902,
-0.38465195894241333,
0.8068773150444031,
-0.41190284490585327,
0.163034141063690... | |
I used homebrew (linux port) to install freeTDS and am trying to deploy /bundle install my app with gem tinytds. I get this error output when doing bundle install
```
Installing tiny_tds (0.5.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/dep... | [
0.2340945452451706,
0.32663246989250183,
0.15446580946445465,
-0.35140249133110046,
-0.0987105593085289,
0.12465745210647583,
0.42962461709976196,
-0.6213926672935486,
-0.004137858282774687,
-0.6621803641319275,
-0.16556906700134277,
0.8238406777381897,
-0.26645874977111816,
0.233857661485... | |
error dump:
Installing tiny_tds (0.5.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/deployer/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... yes
checking for sybfront.h... yes
checking for sybdb.h... ye... | [
-0.0705261081457138,
0.14017288386821747,
0.28352224826812744,
-0.19289998710155487,
0.07163776457309723,
0.162641242146492,
0.668976366519928,
-0.5768787264823914,
-0.2829229235649109,
-0.3832337558269501,
-0.4408752918243408,
0.9360966086387634,
-0.30812129378318787,
0.042542390525341034... | |
-I. -I/home/deployer/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/home/deployer/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/deployer/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_ICONV_OPEN -DHAVE_SYBFRONT_H -DHAVE_SYBDB_H -I/opt/homebrew/include -I/usr/local/include ... | [
-0.3938206732273102,
0.40080323815345764,
0.43562519550323486,
-0.49730539321899414,
0.11115502566099167,
0.2876502573490143,
0.41557902097702026,
-0.5098350644111633,
-0.3559296429157257,
-0.5456604957580566,
-0.682018518447876,
0.5882766842842102,
-0.35201573371887207,
0.2260117977857589... | |
against `.rodata' can not be used when making a shared object; recompile with -fPIC
/opt/homebrew/lib/libsybdb.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [tiny_tds.so] Error 1
Gem files will remain installed in /home/deployer/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/t... | [
0.40516555309295654,
-0.08471102267503738,
0.41019681096076965,
-0.10687639564275742,
0.022681670263409615,
-0.004931971896439791,
0.4866162836551666,
-0.757914662361145,
-0.05902859941124916,
-0.40628761053085327,
-0.0931360200047493,
0.8988471031188965,
-0.2590081989765167,
0.00886431895... | |
I am writing a daemon in PHP. I did not take a OS class in college. So, I'm wondering, what are the server/other statistics that I need to be looking at to make sure my Daemon is not consuming too much system resources and will be able to scale when there are more mysql records. Basically, my daemon is processing a bun... | [
0.1307530552148819,
0.20526309311389923,
0.2779701054096222,
0.13969935476779938,
-0.3538588583469391,
-0.0017493254272267222,
0.24434980750083923,
0.28033727407455444,
-0.3621300160884857,
-1.0022244453430176,
0.5327041149139404,
-0.10322129726409912,
-0.2953512966632843,
0.21615040302276... | |
if it is leaking memory? Also, what other system parameters should I be judging the daemon by?
> But, how do I determine if it is leaking memory?
The stuff you're asking about here has little to do with the operating system. You're right to be concerned about memory usage. A proper answer to this question goes way bey... | [
0.6134992837905884,
0.22861818969249725,
0.14786747097969055,
0.3229878842830658,
-0.150840163230896,
-0.08322500437498093,
0.32956257462501526,
0.13815300166606903,
-0.3285025954246521,
-0.45781227946281433,
0.4353969395160675,
0.5070847868919373,
0.04322454333305359,
0.16058456897735596,... | |
the mysql client blocks PHP while it is running and ignores PHP's memory limits - so if you fetch too large a result set, you won't know about it until mysql\_query returns and your code falls over: always use LIMIT in queries (or PK selection) and for preference run the daemon under a watchdog. Test using varying memo... | [
0.10126698017120361,
-0.012071894481778145,
0.3734608590602875,
0.2590201497077942,
-0.3112115263938904,
-0.334258109331131,
0.5379249453544617,
0.00606684572994709,
-0.5115886926651001,
-0.4087546169757843,
0.0990268811583519,
0.42535722255706787,
-0.2152884304523468,
-0.02501978352665901... | |
Hi I'm having some issues understanding how MVC 3 and razor work. Basically, I have a view that's rendered with Html.Render partial. basically, I'm trying to render the contents or a partial view inside of div like so.
```
<div id="mydiv.id">
@{Html.RenderPartial("_BankAccountGrid", Model.CheckAccounts);}
</div>
@if ... | [
0.006469691172242165,
-0.2678486406803131,
0.9037393927574158,
-0.2800186574459076,
-0.23191794753074646,
0.17717374861240387,
0.25458842515945435,
-0.41436970233917236,
-0.037714771926403046,
-0.6500841975212097,
0.1421145796775818,
0.47304683923721313,
-0.23420092463493347,
0.06096791103... | |
"Edit",
"EditBankAccountDetails",
"UserManagement",
new { Id = a.Id }, new { id = "modalEdit" }));
c.For(a => a.AccountName); | [
0.10552944988012314,
-0.2014976292848587,
0.44307252764701843,
-0.24579112231731415,
0.434465229511261,
-0.004102208651602268,
0.294062077999115,
-0.23738151788711548,
-0.11349324136972427,
-0.46045565605163574,
-0.4275144636631012,
0.649702250957489,
-0.4090757369995117,
0.166750743985176... | |
c.For(a => a.AccountNumber);
c.For(a => a.RoutingNumber);
c.For(a => a.BankName);
c.For(a => a.CheckAccountType);
c.For(a => a.AccountType_Id).Visible(false);
c.For(a => | [
0.2073340266942978,
0.13804122805595398,
0.19340473413467407,
-0.36992353200912476,
0.13993096351623535,
0.15626922249794006,
0.43985065817832947,
-0.18259823322296143,
-0.08395148068666458,
-0.24824589490890503,
-0.2991623282432556,
0.5325373411178589,
-0.3873309791088104,
-0.074927166104... | |
a.version).Visible(false);
c.For(a => a.IsDefault).Visible(false);
c.For(a => a.User_Id).Visible(false);
c.For(a => a.Id).Visible(false);
}).Render();
}
}
```
However when I look at the DOM in firebug the Table is ALWAYS rendered outside of the... | [
-0.056096192449331284,
-0.05380076542496681,
0.594815731048584,
-0.5871763825416565,
-0.03816995024681091,
0.06220652163028717,
0.6646265983581543,
-0.3325943350791931,
-0.23826874792575836,
-0.5219418406486511,
-0.36096784472465515,
0.806036651134491,
-0.40876829624176025,
0.2928665876388... | |
a table element. I've tried this as well.
```
@{Html.RenderPartial("_BankAccountGrid", Model.CheckAccounts);}
@if (Model.Any())
{
<div id="accounts.grid.div">
@{Html.Grid(Model).Columns(c =>
{
c.For(a => Html.ActionLink(
"Edit",
"Edit... | [
-0.09280116856098175,
-0.12034911662340164,
0.5603528022766113,
-0.16006147861480713,
0.20014573633670807,
0.2343858927488327,
0.042007967829704285,
-0.3243647515773773,
-0.43613529205322266,
-0.6884230375289917,
0.04049349203705788,
0.565282940864563,
-0.26697275042533875,
-0.136269509792... | |
"UserManagement",
new { Id = a.Id }, new { id = "modalEdit" }));
c.For(a => a.AccountName);
c.For(a => a.AccountNumber); | [
0.010757334530353546,
-0.15319110453128815,
0.4387187659740448,
-0.35849469900131226,
0.27949973940849304,
0.051177021116018295,
0.46572789549827576,
-0.39976516366004944,
-0.1955731064081192,
-0.3609701097011566,
-0.5001758933067322,
0.8279414772987366,
-0.31847065687179565,
0.08209032565... | |
c.For(a => a.RoutingNumber);
c.For(a => a.BankName);
c.For(a => a.CheckAccountType);
c.For(a => a.AccountType_Id).Visible(false);
c.For(a => a.version).Visible(false);
c.For(a => a.IsDefault).Visible(false); | [
0.1710251122713089,
0.03363223746418953,
0.18054620921611786,
-0.43213334679603577,
0.16761189699172974,
0.1321936994791031,
0.4718191623687744,
-0.10459684580564499,
-0.232926607131958,
-0.37408044934272766,
-0.4362477958202362,
0.4880284070968628,
-0.5408638715744019,
0.09491489827632904... | |
c.For(a => a.User_Id).Visible(false);
c.For(a => a.Id).Visible(false);
}).Render();
}
</div>
}
```
.. but to no avail. Is there something I'm missing?
If I'm not clear enough or you just need more info please just ask instead of voting down.
You seem to be using MvcContrib.Gr... | [
0.2784196138381958,
-0.10437147319316864,
0.39366379380226135,
-0.0913671925663948,
0.08615008741617203,
-0.19760413467884064,
0.20272095501422882,
0.018145281821489334,
-0.4420699179172516,
-0.5574290156364441,
-0.20760893821716309,
0.8365321159362793,
-0.5009236931800842,
0.3314055800437... | |
the latest version (the one made for ASP.NET MVC 3, because the older version for ASP.NET MVC 2 doesn't work well with Razor).
Then try like this:
```
@if (Model.Any())
{
@(Html
.Grid(Model)
.Columns(c =>
{
c.Custom(
@<text> | [
0.17478196322917938,
-0.3935779333114624,
0.773665726184845,
-0.03461392596364021,
-0.20528364181518555,
-0.1458532065153122,
0.005736620631068945,
-0.3687649667263031,
-0.4447576403617859,
-0.7317023873329163,
0.20698648691177368,
0.6691416501998901,
-0.18199963867664337,
0.09648405015468... | |
@Html.ActionLink(
"Edit",
"EditBankAccountDetails",
"UserManagement", | [
0.4050017297267914,
-0.2934131920337677,
0.4253341853618622,
0.18565760552883148,
0.07219462096691132,
0.020507555454969406,
0.14318493008613586,
-0.19511666893959045,
-0.3625889718532562,
-0.6155998110771179,
0.005761810578405857,
0.37182366847991943,
-0.32580143213272095,
-0.158504262566... | |
new { Id = item.Id },
new { id = "modalEdit" }
)
</text>
).Named(""); | [
0.13672186434268951,
-0.458494633436203,
0.3839617371559143,
0.016394786536693573,
0.16719867289066315,
0.00353518920019269,
0.29081493616104126,
-0.6384788751602173,
-0.32070839405059814,
-0.561522901058197,
-0.5038723945617676,
0.4441089928150177,
-0.2724883258342743,
0.4835425317287445,... | |
c.For(a => a.AccountName);
c.For(a => a.AccountNumber);
c.For(a => a.RoutingNumber);
c.For(a => a.BankName);
c.For(a => a.CheckAccountType);
c.For(a => a.AccountType_Id).Visible(false);
c.For(a => a.version).Visible(false); | [
0.24731247127056122,
0.09404774010181427,
0.2429400235414505,
-0.4984647333621979,
0.129908487200737,
0.1573212891817093,
0.4575296640396118,
-0.07844352722167969,
-0.21281933784484863,
-0.29021355509757996,
-0.40939611196517944,
0.6014375686645508,
-0.4518687427043915,
0.05402512475848198... | |
c.For(a => a.IsDefault).Visible(false);
c.For(a => a.User_Id).Visible(false);
c.For(a => a.Id).Visible(false);
})
)
}
```
Notice that I am using a `Custom` column for the `ActionLink` and that I am no longer calling the `.Render` method on the grid. | [
0.0564088337123394,
-0.07445219904184341,
0.3836252689361572,
-0.613369882106781,
0.11018233001232147,
0.22029291093349457,
0.385445773601532,
-0.08834570646286011,
-0.18775057792663574,
-0.6149880886077881,
-0.38743120431900024,
0.6565539836883545,
-0.3562104105949402,
0.12557703256607056... | |
I have this piece of code
```
<?php
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tables", $con);
$sql="INSERT INTO customer (Name, Telephone, Email, Address, PostCode, Specialisation )
VALUES
($_POST['firstname'], $_POST['telephone']... | [
0.4283803105354309,
0.34347131848335266,
0.5349125266075134,
-0.2334306240081787,
0.19754481315612793,
0.1477721631526947,
0.2530800700187683,
-0.33509746193885803,
0.13880962133407593,
-0.495061457157135,
0.07783662527799606,
0.018956460058689117,
-0.24470405280590057,
0.43828287720680237... | |
something {$_POST['variable']}...";` to help the PHP parser figure them out.
Third, this code (once working) is massively vulnerable to hacking via SQL injection. Consider using PDO and prepared statements (as the `mysql_*` functions are being deprecated), or at the very least run user input through `mysql_real_escape... | [
0.03586042299866676,
0.09042725712060928,
0.36971017718315125,
-0.011024069972336292,
0.2368517965078354,
0.0017940133111551404,
0.6658071279525757,
-0.12867869436740875,
-0.09743799269199371,
-0.5975478291511536,
-0.3980572521686554,
0.5761651396751404,
-0.2850011885166168,
0.337358146905... | |
I am implementing a protocol library. Here a simplified description.
The main thread within the main function will always check, whether some data is available on the the networkstream (within a tcpclient). Let us say response is the received message and thread is a running thread.
```
thread = new Thread(new ThreadS... | [
0.2620587944984436,
-0.21346980333328247,
0.700487494468689,
-0.28693050146102905,
-0.10226575285196304,
-0.30347514152526855,
0.40396955609321594,
-0.3762202262878418,
-0.36826467514038086,
-0.4544728696346283,
-0.07292460650205612,
0.4672568738460541,
-0.39159321784973145,
0.471943765878... | |
thread.Abort().
thread2 = new Thread(new ThreadStart(function2));
thread2.IsBackground = true;
thread2.Start();
}
}
```
So far so good, there are actually more messages to come within the while loop and there is also a statemachine for handling different sort of incoming messages, but... | [
0.2102007269859314,
-0.10983682423830032,
0.5048595666885376,
-0.21507932245731354,
0.260202020406723,
-0.062089208513498306,
0.5626939535140991,
-0.04458602890372276,
-0.3916964530944824,
-0.5670574307441711,
0.04920781031250954,
0.500659167766571,
-0.3385232388973236,
0.3291366696357727,... | |
programmer and meant to be a library. This means the protocol will start some programmer-defined functions as a thread depending on at what state in the protocol the program is.
So if then a special response is received (e.g. a callAnotherFunction message), I want to terminate
a thread (here named "thread") abruptly... | [
0.48085689544677734,
-0.2143886536359787,
0.4176037311553955,
0.04761037975549698,
-0.016645435243844986,
-0.3048364818096161,
0.42685195803642273,
-0.13672955334186554,
-0.11545613408088684,
-0.22708211839199066,
-0.10853703320026398,
0.5961043238639832,
-0.3734978139400482,
0.26636648178... | |
catch the ThreadAbortException.)
Or do I need a different programme architecture?
(Btw I have decided to put the loop within receiveMessage for polling the network stream into the main function, since anytime a message can appear).
Starting a thread without having a reliable way to terminate it is a bad practice. Susp... | [
0.6936280131340027,
-0.19432488083839417,
0.20541901886463165,
-0.050458040088415146,
0.08309438079595566,
-0.2854841947555542,
0.46207115054130554,
0.03277669847011566,
-0.4672735631465912,
-0.16215479373931885,
-0.019030824303627014,
0.5262789130210876,
-0.4108814597129822,
0.34294307231... | |
you a method to run in a thread, then the user should also give you a method to stop the code from running. Think of it as a contract: you promise the user that you will call the stop method and they promise that the stop method will actually stop the thread. If your user violates that contract then they will be respon... | [
0.3829168677330017,
-0.21824459731578827,
0.29498767852783203,
0.03551977500319481,
0.11971826106309891,
-0.452126145362854,
0.3213902413845062,
-0.050063617527484894,
-0.23284108936786652,
-0.16995437443256378,
-0.14678490161895752,
0.6391490697860718,
-0.5983074307441711,
0.1398093849420... | |
practice, the programmer doesn't need to catch the `ThreadAbortException`, however they should catch the `ThreadInterruptedException` as part of their "contract."
Remember that there are two situations you need to worry about:
1. The thread is executing some code.
2. The thread is in a blocking state.
In the case t... | [
0.49596354365348816,
-0.21701456606388092,
0.20824214816093445,
0.14791172742843628,
0.2849358022212982,
-0.6295174360275269,
0.4150465428829193,
0.3006744086742401,
-0.4024548828601837,
-0.33929136395454407,
-0.09513721615076065,
0.3619976341724396,
-0.43230926990509033,
0.126198440790176... | |
to terminate their thread in a timely fashion.
In the case where the thread is in a blocking state and it's not blocking on a notification construct (i.e. semaphore, manual reset event, etc) then you should call `Thread.Interrupt()` to get it out of the blocking state- the user must handle the `ThreadInterruptedExcept... | [
0.23556259274482727,
-0.27121230959892273,
0.17051902413368225,
0.055400293320417404,
0.2934451997280121,
-0.40089720487594604,
0.5214003920555115,
0.46213844418525696,
-0.29129573702812195,
-0.2991371154785156,
-0.5137943029403687,
0.29491645097732544,
-0.2819520831108093,
0.4673006832599... | |
I'm fairly new with OCaml Module and I haven't managed to use my own module without combining both an "include" and an "open".
I've tried to put the signature in a separate .mli file, without success.
Below I'm indicated a minimum (not) working example, that I'm trying to compile with
```
ocamlc -o main Robot.ml main... | [
0.12373893707990646,
-0.023455975577235222,
0.660993754863739,
-0.15210914611816406,
0.07370872050523758,
-0.3277333676815033,
0.19906382262706757,
-0.4153233468532562,
-0.18800409138202667,
-0.6186257004737854,
-0.2839828133583069,
0.5179703235626221,
-0.1732180267572403,
-0.0121070165187... | |
begin
Printf.printf "top\n"
end
(* Should not be visible from the 'main' *)
let dummy () =
begin
Printf.printf "dummy\n"
end
end
```
File "main.ml" (not working) :
```
open Robot;;
top();
```
File "main.ml" (working) :
```
include Robot;;
open Robot;;
top();
```
You'v... | [
-0.12257863581180573,
-0.20382879674434662,
0.6943376064300537,
-0.2114654779434204,
0.13634063303470612,
0.10424961894750595,
0.3147423565387726,
-0.501564621925354,
-0.3428390324115753,
-0.6938667297363281,
-0.47132444381713867,
0.8109195828437805,
-0.34228911995887756,
-0.16586501896381... | |
implicitly inside of a Robot module.
You could get rid of the extra 'module Robot' declaration in robot.ml.
robot.ml would become:
```
module type RobotSignature =
sig
val top: unit -> unit
end
let top () =
begin
Printf.printf "top\n"
end
```
Then it should work as you have it in your main.ml.
... | [
0.014504080638289452,
-0.25886818766593933,
0.5111448168754578,
-0.27544814348220825,
-0.056512098759412766,
0.11505649983882904,
0.39259785413742065,
-0.0870811864733696,
0.00744348531588912,
-0.776104211807251,
-0.11314600706100464,
0.6343632340431213,
-0.28887948393821716,
-0.0560251548... | |
called **helper** in robot.ml:
```
let top () =
begin
Printf.printf "top\n"
end
let helper () =
Printf.printf "helper\n"
```
...and then you define your robot.mli as follows:
```
val top: unit -> unit
```
Then let's say you try to call helper from main.ml:
```
open Robot;;
top();
(* helper will not ... | [
-0.5483996272087097,
-0.015278331935405731,
0.9335154294967651,
-0.2552591860294342,
0.04636833816766739,
0.5510346293449402,
0.34827542304992676,
-0.3378022611141205,
-0.010925906710326672,
-0.6389817595481873,
-0.3787330389022827,
0.6741896271705627,
-0.4607768952846527,
0.11788700520992... | |
In the Plist, one of the setting is
> Application does not run in background -------> YES
Does **YES** means **application does run in background**.
And what happens to the application after that...
Setting the value for this option to `YES` means that your application will exit when suspended by the OS. See [this ... | [
-0.23047290742397308,
-0.120687335729599,
0.6872960925102234,
-0.0318751335144043,
0.47775402665138245,
0.039166729897260666,
0.007608004845678806,
0.12828482687473297,
-0.49608683586120605,
-0.2124054878950119,
-0.5098490118980408,
0.10695955902338028,
-0.3896389603614807,
-0.058971446007... | |
How can I display a new window in JavaFX 2.0? For example after button click action.
I want both windows (the main window and the new window) to communicate each other.
Thx for help.
```
new Stage(new Scene(new Group(new Text(10,10, "my second window")))).show();
```
Communicating between two windows is similar as ... | [
0.06594052910804749,
-0.09182663261890411,
0.6996812224388123,
-0.24772143363952637,
-0.11456192284822464,
-0.06367498636245728,
0.38705092668533325,
-0.28016018867492676,
-0.1173865795135498,
-1.1192092895507812,
-0.061928942799568176,
0.41291821002960205,
-0.407711923122406,
-0.031209951... | |
I've looked everywhere and i can't find a real precise answer or a tutorial on how, if it is possible, to do this.
is it possible to pull in any way a database of an Android device without having to root it? i just need to extract that data in any way in order to gather it on my pc, so how can i perform this? do i hav... | [
0.47400927543640137,
0.049489475786685944,
0.2306208610534668,
0.34561553597450256,
0.0799989327788353,
-0.05236595869064331,
0.2582833766937256,
0.04827849194407463,
-0.12089214473962784,
-0.37671664357185364,
0.09173250943422318,
0.5587596893310547,
-0.36852094531059265,
-0.0172484740614... | |
way I prefer in most cases is to copy the database by code to SD card:
```
try {
File sd = Environment.getExternalStorageDirectory();
if (sd.canWrite()) {
String currentDBPath = "/data/data/" + getPackageName() + "/databases/yourdatabasename";
String backupDBPath = "backupname.db";
Fil... | [
0.34099671244621277,
-0.059136953204870224,
0.665765106678009,
-0.08296284079551697,
0.2670460045337677,
-0.1645338237285614,
0.28052642941474915,
-0.3097338080406189,
-0.009769941680133343,
-0.7310625910758972,
-0.14154164493083954,
0.567793071269989,
-0.1325427144765854,
0.46659231185913... | |
FileChannel src = new FileInputStream(currentDB).getChannel();
FileChannel dst = new FileOutputStream(backupDB).getChannel();
dst.transferFrom(src, 0, src.size());
src.close();
dst.close();
}
}
} catch (Exception e) {
}
```
Don't forget to set the permissio... | [
0.14710582792758942,
-0.2934322953224182,
1.0699323415756226,
-0.2329392433166504,
0.06214234605431557,
0.06650234013795853,
0.19722145795822144,
-0.3319815993309021,
-0.14659465849399567,
-0.8719629645347595,
-0.24044324457645416,
0.6351954936981201,
-0.19958186149597168,
0.23157216608524... | |
While using this code, i can't get any results...
```
Ext.define('Teste.view.Main', {
extend: 'Ext.Container',
initialize: function(){
Ext.define('User', {
extend: 'Ext.data.Model',
config: {
fields: ['description', 'discountCode' , 'prodCode'],
proxy: {
... | [
0.01766190119087696,
-0.3067397475242615,
0.36648842692375183,
-0.13875238597393036,
0.5017319321632385,
0.1369212418794632,
0.10661809891462326,
-0.26705202460289,
0.012576498091220856,
-0.6688122749328613,
-0.09059321880340576,
0.4581727683544159,
-0.1787709891796112,
0.24595779180526733... | |
format:'json',
url : 'http://localhost:8080/stcws/resources/com.database.productcode/'
}
}
});
var store = new Ext.create('Ext.data.Store', {
model: 'User'
});
store.load();
console.log(store.getCount());
}});
```
But | [
-0.19794729351997375,
-0.2682766616344452,
0.5812352895736694,
-0.21773061156272888,
0.4949992597103119,
0.15792037546634674,
0.2962239980697632,
-0.16928885877132416,
-0.116530641913414,
-0.5171951651573181,
-0.6487357020378113,
0.5932939648628235,
-0.3078998625278473,
0.32915785908699036... | |
if i take out
```
format:'json',
```
I get a XML response, what i'm doing wrong?
To use the 'Rest' proxy and get a Json response we just need to add to the Proxy:
```
headers: {
'Accept' : 'application/json'
},
```
And take out...
```
format:'json',
``` | [
0.09751813858747482,
0.04906487837433815,
0.21922864019870758,
-0.06447682529687881,
-0.018665339797735214,
-0.12504857778549194,
0.310931921005249,
-0.15418018400669098,
0.18675057590007782,
-0.4989045560359955,
-0.48522982001304626,
0.551846444606781,
-0.2761145532131195,
0.0309432353824... | |
So basically I have a helper -
```
function records()
{
$ci = get_instance();
$ci->db->order_by("date", "desc");
$ci->db->limit(20);
$query = $ci->db->get('records');
$data =array();
foreach($query->result_array() as $orders)
{
$data[] = $orders;
}
return... | [
0.056253571063280106,
-0.1151745468378067,
0.7807703614234924,
-0.09247909486293793,
-0.049144018441438675,
0.06445644050836563,
0.026701632887125015,
-0.2034832239151001,
-0.2534519135951996,
-0.7039235234260559,
-0.15698276460170746,
0.23941591382026672,
-0.3013380467891693,
0.4144265651... | |
from table records. In additional, after I get $data[] from records, I need to check the current record id, and then pass in the same $data[] all user details from another table which is users instead. How can I do it? So basically I muts first get all data from records, check from what user the record is, and then sea... | [
0.2647012174129486,
0.31332695484161377,
0.46403494477272034,
-0.01287634763866663,
0.32357022166252136,
-0.040076665580272675,
-0.007654876448214054,
-0.2527342140674591,
-0.4130769968032837,
-0.853413999080658,
-0.008729210123419762,
0.5629901885986328,
-0.3275222182273865,
0.35046327114... | |
$ci->db->order_by("date", "desc");
$ci->db->limit(20);
$query = $ci->db->from('records')->join('users', 'records.user_id=users.id')->get();
```
<http://codeigniter.com/user_guide/database/active_record.html>
Make sure you modify the query to use the correct field name in the records table that references the use... | [
0.24030983448028564,
0.017251214012503624,
0.5228747725486755,
-0.013512815348803997,
0.09676558524370193,
-0.2574511170387268,
-0.02407534420490265,
-0.20856131613254547,
-0.11796689033508301,
-0.81270831823349,
-0.23230710625648499,
0.3646981716156006,
-0.3092136085033417,
0.440907925367... | |
I need to restrict user access to filebrowser using permissions. For example, only users with permission "can\_upload\_files" should be able to see Filebrowser in my custom dashboard.
Is this possible?
Thanks!
If the thing you want to accomplish is to simply hide the "Media Management" group from your dashboard, you ... | [
0.3608616590499878,
0.2760879695415497,
0.6243423819541931,
0.06061895936727524,
0.24186716973781586,
0.01819915510714054,
0.1965036392211914,
-0.21383003890514374,
-0.38973626494407654,
-0.6766412258148193,
-0.06356504559516907,
0.7217154502868652,
0.06778004765510559,
0.12384007126092911... | |
'title': _('FileBrowser'),
'url': '/admin/filebrowser/browse/',
'external': False,
},
]
))
```
Note that this will not actually limit access to the FileBrowser, simply hide the link. | [
0.17098842561244965,
0.3919115364551544,
0.45022252202033997,
-0.021803569048643112,
0.3437032103538513,
-0.7461172342300415,
0.25087934732437134,
0.16015097498893738,
-0.09838305413722992,
-0.34435203671455383,
-0.6152236461639404,
0.584875762462616,
-0.03998352214694023,
0.66057634353637... | |
I was given a task of rewriting some Crystal Reports. I found the original reports circa 1999, opened them up in VS 2008 made the changes and saved them.
Now, they reference a database that is no longer around. So, I deleted this data source and added a .NET OBJECT datasource. I changed everything around so that the f... | [
0.3485647737979889,
0.2155178189277649,
0.48266157507896423,
0.08847806602716446,
-0.3343205153942108,
-0.17387287318706512,
-0.029086783528327942,
-0.012637700885534286,
-0.4317720830440521,
-0.39762601256370544,
0.14258228242397308,
0.08979447931051254,
-0.4105333387851715,
0.36493787169... | |
when I try to change pages or print, I get an error:
> Logon failed. Details: crdb\_adoplus : Object reference not set to an instance of an object. Error in File C:...\MR01 {8E5164A9-4B01-4019-81E6-87AED65A02DF}.rpt: Unable to connect: incorrect log on parameters
Here is my code:
```
<CR:CrystalReportViewer ID="the... | [
0.05703217163681984,
0.015540746971964836,
0.9878644943237305,
-0.09008165448904037,
-0.07696397602558136,
0.0019011171534657478,
0.4911227226257324,
-0.2816861569881439,
-0.3386934697628021,
-0.48901236057281494,
-0.13286973536014557,
0.6474170088768005,
-0.3789902627468109,
0.33402615785... | |
oReport.Load(sRptPath)
oReport.SetDataSource(theDataTable)
'oReport.SetDatabaseLogon("####", "####", "####", "#####")
Dim c As ConnectionInfo = New ConnectionInfo()
c.ServerName = "####"
c.DatabaseName = "####"
c.Password = "####"
c.UserID = "####"
c.Type... | [
0.22318831086158752,
-0.15961091220378876,
0.8857485055923462,
0.05963302403688431,
0.15386347472667694,
-0.11712416261434555,
0.28162887692451477,
-0.1936228722333908,
-0.5347724556922913,
-0.5750799775123596,
-0.11008691787719727,
0.6314696073532104,
-0.5854882001876831,
0.27733910083770... | |
For i As Integer = 0 To theCrystalReportViewer.LogOnInfo.Count - 1
theCrystalReportViewer.LogOnInfo(i).ConnectionInfo = c
Next
'theCrystalReportViewer.EnableDatabaseLogonPrompt = False
'theCrystalReportViewer.DisplayGroupTree = False
theCrystalReportViewer.ReportSource = oRe... | [
0.027866104617714882,
0.028888067230582237,
0.6064875721931458,
0.015366465784609318,
0.13063211739063263,
-0.09406301379203796,
0.440346360206604,
-0.3470068573951721,
-0.3541725277900696,
-0.701108455657959,
-0.2406233698129654,
0.5429442524909973,
-0.42802542448043823,
0.224724456667900... | |
with a backslash:
```
preg_replace('/\//' ...);
```
Or use other characters as delimiters:
```
preg_replace('|/|' ...);
``` | [
-0.22089479863643646,
0.07920172065496445,
0.31325986981391907,
-0.32781070470809937,
0.02676413580775261,
0.42019879817962646,
0.44816601276397705,
0.0621829591691494,
-0.07346013933420181,
-0.2866852879524231,
-0.8025248050689697,
0.5383672118186951,
-0.41463181376457214,
-0.192665964365... | |
My app uses Core Data, I used the CoreData template when created my project in Xcode, so I already got `NSManagedObjectContext` object in my AppDelegate file, but Is it good practice to use this context throughout the all app (move it from one viewController to another)?
or maybe it's better to allocate more for dif... | [
0.06822945922613144,
0.27328160405158997,
0.4460242986679077,
0.0782068595290184,
-0.025257904082536697,
0.1313961297273636,
0.35744884610176086,
0.04329703003168106,
-0.20980656147003174,
-0.8901055455207825,
-0.2552989423274994,
0.453681617975235,
-0.402614027261734,
0.08171357214450836,... | |
the controller simply won't work without some CoreData magic I put it in the designated init method.
If I am selecting a row in a table and presenting a new viewController I will just pass along the managedObject that was selected and then if I need the managedObjectContext I can just use `[managedObject managedObjec... | [
0.05581389367580414,
-0.36192455887794495,
0.21698379516601562,
0.43001434206962585,
0.01969655230641365,
-0.1420295536518097,
-0.10085470974445343,
0.16391035914421082,
0.1107863113284111,
-0.8217746019363403,
-0.04290596768260002,
0.6752952337265015,
-0.08622777462005615,
0.4922766983509... | |
Can a jQuery UI Slider be made to look like this? If so how?

**Edit:** It is possible when using [range slider](http://jqueryui.com/demos/slider/#colorpicker)
[**DEMO**](http://jsfiddle.net/skram/DXxa2/1/)
```
#slider {
margin: 10px;
height: 3px;
}
#slider a... | [
-0.07097916305065155,
-0.35240086913108826,
0.897628664970398,
0.04954717680811882,
-0.23767903447151184,
-0.0029346728697419167,
-0.12492524087429047,
-0.17223075032234192,
-0.3850102424621582,
-0.6494543552398682,
-0.09264976531267166,
0.3477610647678375,
-0.04074099659919739,
0.05810394... | |
simple slider.
```
#slider {
margin: 10px;
height: 3px;
}
#slider a {
background-image: url("<!-- Your image for sider-->") !important;
}
```
[**DEMO**](http://jsfiddle.net/skram/DXxa2/) | [
-0.26597803831100464,
-0.042122408747673035,
0.9077578186988831,
-0.1035211905837059,
-0.2718062400817871,
-0.06118398159742355,
0.026784704998135567,
-0.3839408755302429,
-0.3839375078678131,
-0.3755289316177368,
-0.33552128076553345,
0.4236976206302643,
-0.32393473386764526,
-0.214310720... | |
I'm trying to figure out how to get text to print sideways in a spreadsheet cell in OpenXML. I'm thinking it can be done somehow with the ExtendedProperties of the Cell class. here's what I've got.
```
Cell cell = GetCell(worksheetPart.Worksheet, columnName, rowIndex);
cell.DataType = CellValues.InlineString;
ce... | [
-0.047577470541000366,
0.10278666764497757,
0.7221145629882812,
-0.08143653720617294,
-0.06096889078617096,
0.04456549882888794,
0.1701691746711731,
-0.2976851463317871,
-0.23919875919818878,
-0.7969796061515808,
-0.01776549406349659,
0.48545724153518677,
-0.35555100440979004,
0.0457608029... | |
set to an integer:
```
<x:c r="A1" s="1" t="s" xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<x:v>0</x:v>
</x:c>
```
That attribute stands for the `StyleIndex` which is the `CellFormat` index in the `CellFormats` list that corresponds to the formatting for this cell. Here is the XML of the `... | [
0.04579127952456474,
-0.1781209260225296,
0.7762916088104248,
-0.025117158889770508,
-0.06890273094177246,
0.10002608597278595,
-0.19724173843860626,
-0.4723539650440216,
-0.11538201570510864,
-0.35563087463378906,
-0.24558936059474945,
0.3177835941314697,
-0.3176509141921997,
0.1428608149... | |
second element) under the `CellFormats` element, which means we want this `CellFormat`:
```
<x:xf numFmtId="0" fontId="0" fillId="1" borderId="1" xfId="0" />
```
Now in order to have a cell's text be rotated you will need to control that via a `CellFormat`. Here is the code you will need to use in order to create a ... | [
-0.21328146755695343,
-0.2128944844007492,
0.9987522959709167,
-0.4024979770183563,
0.09558260440826416,
0.00613816175609827,
0.1724550873041153,
-0.5546272993087769,
-0.060234177857637405,
-0.5969133377075195,
-0.2192356139421463,
0.6019536852836609,
-0.3782176375389099,
0.061180546879768... | |
return cellFormat1;
}
```
If you want the text to rotate at a different angle then just replace the 90U with whatever angle you want from -90 to 90.
Now you will need to insert that `CellFormat` into the `CellFormats` and then set that new index on the `StyleIndex` of the cell you want to have rotated:
```
Cell cel... | [
0.01730506308376789,
0.04626218602061272,
0.9144898653030396,
-0.29309654235839844,
0.36387959122657776,
0.03325171768665314,
-0.015548139810562134,
-0.5270125269889832,
0.08891665190458298,
-0.6797760128974915,
-0.33377304673194885,
0.5580121278762817,
-0.3096126317977905,
-0.144243165850... | |
I'm trying to commit a \*.csproj file using Tortoise SVN, but get:
**Commit Failed!
...Aborting commit.... .csproj remains in conflict.**
OK, so how do I determine what the conflict is so that I can hopefully resolve it?
You could use TortoiseSVN to `TortoiseSVN->Check for modifications`
Any conflicts will be highli... | [
-0.30915942788124084,
0.1282956898212433,
0.7625641226768494,
-0.0987933799624443,
0.19636164605617523,
0.18506662547588348,
0.362915962934494,
-0.23092924058437347,
-0.7719544768333435,
-0.721136748790741,
-0.42255428433418274,
0.7685497999191284,
0.019890693947672844,
0.1384928673505783,... | |
So, after consulting with [this thread](https://stackoverflow.com/questions/801144/android-schema-validation) that the javax.xml.validation library does not work on Android I had to find another solution. I have tried using the Xerces API and although it seems that it is working fine for a lot of people, I can't get it... | [
0.16362912952899933,
0.24343319237232208,
0.596986711025238,
-0.2923954129219055,
0.13620245456695557,
-0.008023166097700596,
0.47908684611320496,
-0.6944949626922607,
0.013821111060678959,
-0.6023478507995605,
-0.2055334597826004,
0.53913414478302,
-0.5404795408248901,
-0.0348336957395076... | |
parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
pa... | [
0.175167977809906,
-0.12304053455591202,
0.5631787180900574,
0.08030522614717484,
-0.4119952321052551,
0.029296692460775375,
0.0544150285422802,
-0.8029229044914246,
-0.10294239223003387,
-0.4642610549926758,
-0.8570240139961243,
0.31969374418258667,
-0.48238709568977356,
-0.03011225722730... | |
parser.parse(XmlDocumentUrl);
if (handler.validationError == true){
System.out.println("XML Document has Error:"
+ handler.validationError + ""
+ handler.saxParseException.getMessage());
return false;
} | [
-0.14911115169525146,
0.05742334946990013,
0.2686602473258972,
-0.1428321897983551,
0.19556094706058502,
-0.0687936469912529,
0.4206831157207489,
-0.47743430733680725,
0.012134654447436333,
-0.04977753385901451,
-0.43172550201416016,
0.4188731908798218,
-0.5281935930252075,
0.0872024595737... | |
else{
System.out.println("XML Document is valid");
return true;
}
} catch (java.io.IOException ioe) {
System.out.println("IOException" + ioe.getMessage());
} catch (SAXException e) {
System.out.println("SAXException" + e.getMessage());
}
return false;
}
priva... | [
-0.009482413530349731,
-0.006615854799747467,
0.4032631516456604,
-0.14180177450180054,
0.21888898313045502,
0.1267496645450592,
0.49072492122650146,
-0.6746691465377808,
-0.011752699501812458,
-0.03368949517607689,
-0.38412949442863464,
0.6430017352104187,
-0.26822906732559204,
0.04728293... | |
= null;
public void error(SAXParseException exception) throws SAXException {
validationError = true;
saxParseException = exception;
}
public void fatalError(SAXParseException exception) throws SAXException {
validationError = true;
saxParseException = exception;
}
... | [
0.0342298299074173,
0.4020376205444336,
-0.03804239258170128,
-0.34245526790618896,
0.0009240384097211063,
0.1789998710155487,
0.6807669401168823,
-0.3764548897743225,
-0.09507929533720016,
0.09943674504756927,
0.11522632092237473,
0.5303483009338379,
-0.36170706152915955,
0.31911972165107... | |
file:///mnt/sdcard/gpxSchema1.0.xsd");`
I am thinking that for some reason the .xsd file is not found but I am not sure about it.
I would be happy if anyone could explain we what I am doing wrong, or if there is something unrelated with this property and is still not right.
The error I get is as follows:
```
04-03 1... | [
-0.39835748076438904,
0.3666442632675171,
0.43285220861434937,
0.002654758747667074,
-0.004763152450323105,
0.08499234914779663,
0.8413729667663574,
-0.46606796979904175,
-0.3523499071598053,
-0.49040138721466064,
-0.31234660744667053,
0.6628576517105103,
-0.45914560556411743,
0.1588182151... | |
Source)
04-03 18:12:05.125: E/AndroidRuntime(20457): at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
04-03 18:12:05.125: E/AndroidRuntime(20457): at com.pe60t0.Meche.inputhandling.util.XMLSchemaValidator2.validate(XMLSchemaValidator2.java:29)
04-03 18:12:05.125: E/AndroidRuntime(20457): at... | [
-0.2717164158821106,
0.2788182199001312,
0.7003912925720215,
-0.060476772487163544,
0.038232069462537766,
0.5125415325164795,
0.4852006137371063,
-0.7208106517791748,
-0.1037011370062828,
-0.7428990602493286,
-0.23190633952617645,
0.710839033126831,
-0.010068018920719624,
-0.05082124099135... | |
be edited with `TortoiseSVN->Edit Conflicts`. You could use TortoiseMerge (comes with TortoiseSVN) to resolve your conflicts.
Finally, you can use the command `TortoiseSVN->Resolved` to remove the temporary riles (e.g. \*.mine) that were created by the conflict.
Now you are safe to `TortoiseSVN->Commit` your changes. | [
-0.47918620705604553,
-0.1600436121225357,
0.6544337272644043,
0.1999022662639618,
0.11942487210035324,
0.137499138712883,
0.1477336436510086,
-0.06094300374388695,
-0.8056212067604065,
-0.44909048080444336,
-0.5498809814453125,
0.8688697814941406,
0.005161885637789965,
-0.0412057712674140... | |
**Table1:**
```
ResourceID
Name0 (STRING)
NumberOfLongons0 (INT)
LastLogon0 (DateTIME)
```
**Table2:**
```
ResourceID
NetbiosName0
```
I am trying to retrieve the following data:
`NetbiosName0`, `Name0`, `NumberOfLogons0`, `LastLogon0` where it shows me `NetbiosName0`, regardless if the other data is present AND... | [
-0.3005002439022064,
0.02469848468899727,
0.37868618965148926,
-0.03899716958403587,
0.12790566682815552,
0.013394162990152836,
0.12926599383354187,
-0.31369850039482117,
-0.30588483810424805,
-0.8822504281997681,
-0.09080678969621658,
0.6177738904953003,
0.11764425039291382,
0.18349751830... | |
Server 2008 or later, you can do this:
```
select
R.ResourceID,
R.NetbiosName0,
L.Name0,
L.LastLogon0
from Table2 as R
outer apply (
select top (1)
-- add WITH TIES
-- if the largest NumberOfLogons0 value can occur multiple times
Name0,
LastLogon0
from Table1 as L
where L.ResourceID = R.Reso... | [
-0.7077181339263916,
-0.38203224539756775,
0.4094225764274597,
-0.1395864337682724,
-0.21900394558906555,
-0.08343659341335297,
0.13004763424396515,
-0.08443911373615265,
-0.24157220125198364,
-0.6454677581787109,
0.07105015963315964,
0.5499776005744934,
-0.23570790886878967,
0.02500418946... | |
I'm receiving this fatal error message: `Using $this when not in object context.`
This class is setted up as a library in the CodeIgniter.
This is my class:
```
class My_class {
function __construct()
{
$this->app = base_url('application') . '/cache/';
if ($this->expire_after == '')
... | [
0.07282935082912445,
0.3560631275177002,
0.715868353843689,
-0.38830363750457764,
0.19957885146141052,
-0.0214158333837986,
0.6180030703544617,
-0.06342960894107819,
0.07118087261915207,
-0.7607908248901367,
-0.3030821979045868,
0.5804831385612488,
-0.4721113443374634,
0.4002423584461212,
... | |
}
}
static function store($key, $value)
{
$key = sha1($key);
$value = serialize($value);
file_put_contents( $this->app . $key.'.cache', $value);
}
}
```
I'm initializing it via `autoload.php`.
The line it is throwing the error at:
`file_put_contents( $this->app . $key.'.cach... | [
-0.3697238564491272,
0.16884185373783112,
0.31658735871315,
-0.21306152641773224,
0.2526760995388031,
0.06606414169073105,
0.5088902711868286,
-0.07576070725917816,
-0.09783715754747391,
-0.495904803276062,
-0.27080321311950684,
0.7703717350959778,
-0.7164027094841003,
0.17477402091026306,... | |
$value)
{
$app = base_url('application') . '/cache/';
$key = sha1($key);
$value = serialize($value);
file_put_contents( $app . $key.'.cache', $value);
}
```
I'm not quite sure what you're trying to do in the grand context of your application, but you may not even need a `static` method in the first pl... | [
0.06523175537586212,
0.2888675332069397,
0.5272098183631897,
-0.2637689709663391,
0.2793191969394684,
-0.17440369725227356,
0.5491480827331543,
-0.37825462222099304,
-0.1886245757341385,
-0.49787265062332153,
-0.5628595352172852,
0.4204922318458557,
-0.5375136137008667,
0.3478464186191559,... | |
I have created a new silverlight business application. I have added mysql.data, mysql.web, mysql.data.entity dll's of version 6.5.4 mysql/net connector. I built the solution. Then I got the blue icon, where i can configure connector to mysql db for role providers and connection string. but thats not happening. When I c... | [
0.18083330988883972,
0.11103517562150955,
0.5679563283920288,
0.2205643653869629,
-0.1787996143102646,
0.13019447028636932,
0.29329442977905273,
-0.20894452929496765,
-0.18823303282260895,
-0.8381679654121399,
0.13578341901302338,
0.49026399850845337,
-0.5073864459991455,
0.286611378192901... | |
application, but not to silverlight application directly.
All the connector dll's are added to the host application to consume in web services.
`$this` will not be available in a static function. You'll probably want to re-create `$app` within the static function:
```
static function store($key, $value)
{
$app = b... | [
0.3411080539226532,
0.22821788489818573,
0.5767937898635864,
-0.16227605938911438,
-0.023358818143606186,
-0.012354965321719646,
0.23836465179920197,
-0.24786552786827087,
-0.09336782991886139,
-0.6955657601356506,
-0.2604674696922302,
0.38212934136390686,
-0.6912685036659241,
0.2867508828... | |
I am using jQuery 1.7.1 (but that's probably irrelevant).
I have several JavaScript arrays that are populated in several ways. The arrays, basically, look like this:
```
var TreeArray = [0,1,2];
var FruitArray = [4,5,6,7];
```
I have some links that have an item type and an item id:
```
<a href='?' class='Link' da... | [
-0.1222650557756424,
0.021265879273414612,
0.5369642376899719,
-0.2009735107421875,
0.15397600829601288,
0.2302151769399643,
0.22012954950332642,
-0.3231419026851654,
-0.21863651275634766,
-0.7526278495788574,
-0.3687976002693176,
0.3506980836391449,
-0.27825281023979187,
-0.00155156070832... | |
the problem is. If the ItemType is "Tree", I want to put the ItemID in the TreeArray. If the ItemType is "Fruit", I want to put the ItemID in the FruitArray. Here's my function (that doesn't work):
```
var addToArray = function addToArray(ItemType, ItemID) {
var WhichArray = ItemType + "Array";
WhichArray.push... | [
-0.24383445084095,
-0.13309712707996368,
0.2776394486427307,
-0.16662436723709106,
0.01786465011537075,
0.24479152262210846,
0.22926408052444458,
-0.14770075678825378,
-0.38040482997894287,
-0.5850268602371216,
0.00805101078003645,
0.6959280967712402,
-0.4525793194770813,
0.120873242616653... | |
arrays = {
Tree: [0,1,2],
Fruit: [4,5,6,7]
};
var addToArray = function addToArray(ItemType, ItemID) {
arrays[ItemType].push(ItemID);
}
```
---
As an alternative, if `TreeArray` and `FruitArray` were global variables, you could also access them off the `window` object like this without changing the arra... | [
-0.26897957921028137,
-0.20828069746494293,
0.514516294002533,
-0.3806057870388031,
-0.39879027009010315,
0.254292368888855,
0.2281225621700287,
-0.3374421000480652,
-0.3735896348953247,
-0.5167054533958435,
-0.15729781985282898,
0.49792879819869995,
-0.3479752242565155,
0.0063704219646751... | |
I'm trying to make a login page using html, ajax & ASP.NET.The data is truly passed to the ajax function, but when I debug the asp page the username and password are sent with NULL.
The code is supposed to take username & password then returns the userid
Html page:
```
<div id="usernameid">Username:</div><input ... | [
0.18862691521644592,
-0.01095411367714405,
0.6290039420127869,
-0.27846166491508484,
0.008469831198453903,
0.13948655128479004,
0.4328715205192566,
-0.1798674762248993,
0.0005333840381354094,
-1.0126434564590454,
-0.40000253915786743,
0.4650568664073944,
-0.20556451380252838,
-0.1147449761... | |
data: postData,
contentType: "application/json; charset=utf-8",
dataType: "jsonp",
jsonp: 'jsoncallback',
success: callbackfunction,
error: function (msg) { alert(msg); }
});
}
function callbackfunction(datacoming) {
localStorage["UserID"] = datacoming;
alert(datacoming);
```
... | [
-0.5277719497680664,
-0.4561232626438141,
0.4877491891384125,
-0.25676533579826355,
0.03825954347848892,
0.19639472663402557,
0.2930944859981537,
-0.016323275864124298,
-0.3316085934638977,
-0.6335227489471436,
-0.6130297183990479,
0.5575090646743774,
-0.3071215748786926,
0.111063629388809... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.