text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I want to make the items of my RadGrid be editable on page load. I've tried both methods here <http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html>
but neither have any effect.
The 2nd method for example, shown below where the Edit property is set on the ItemCreated event, causes t... | [
0.22734586894512177,
0.11841230094432831,
0.5384013056755066,
-0.14974811673164368,
-0.16788098216056824,
-0.09174524247646332,
0.6740763783454895,
-0.3377554714679718,
-0.15609563887119293,
-0.8443678617477417,
0.02900366112589836,
0.6144768595695496,
-0.34422069787979126,
0.3643040060997... | |
works:
```
for (int i = 0; i < RadGrid1.PageSize; i++)
{
RadGrid1.EditIndexes.Add(i);
RadGrid1.Rebind();
}
``` | [
0.1300017386674881,
0.274152934551239,
0.5990568399429321,
-0.2526043951511383,
-0.06869501620531082,
0.28816983103752136,
0.5048418641090393,
-0.7053087949752808,
-0.23520009219646454,
-0.7935711145401001,
-0.5269699692726135,
0.4882916510105133,
-0.5018390417098999,
-0.03290419653058052,... | |
I'm displaying a series of tiled images in a UIWebView and would like to programmatically set the UIWebview's initial zoom and view location.
How does one go about doing so?
NOTE: this answer is from 2009. Please see one of the better solutions for a more civilized age.
---
Programmatic scrolling of UIScrollView is... | [
0.3953811228275299,
-0.12048240751028061,
0.7664135098457336,
0.03157522529363632,
-0.2768031656742096,
-0.16885744035243988,
0.24133610725402832,
-0.120348259806633,
-0.2792362868785858,
-0.6456687450408936,
0.16003136336803436,
0.48603206872940063,
-0.03102588839828968,
0.067114330828189... | |
I'm writing a script to access all dynamic textfields in the library of a flash (fla) file and embed certain character sets.
I iterate through all objects looking for textfields, but It seems there are some issues when trying to access members of a group object. It does have children in the flash file, but I can see n... | [
0.06213836744427681,
0.30652040243148804,
0.317587673664093,
-0.14197370409965515,
-0.12160822004079819,
0.11373081803321838,
0.39803075790405273,
-0.3917199969291687,
-0.16560915112495422,
-0.4362568259239197,
-0.1659267246723175,
0.056089695543050766,
-0.1541852056980133,
-0.058979719877... | |
object.
So my questions is, how do it access the children of a Group object in Flash C3 jsfl script API?
Just unGroup() the shapes first. Then you can run your normal "text" conversion afterwards. It shouldn't hurt the document because grouping has no real technical implications.
```
var doc = fl.getDocumentDOM();
va... | [
0.052244048565626144,
-0.06611432880163193,
0.6575899124145508,
-0.05519934371113777,
0.07395941019058228,
0.175993412733078,
0.13999353349208832,
-0.5350275039672852,
0.027997178956866264,
-0.8295751214027405,
-0.28584998846054077,
0.5560630559921265,
-0.22680120170116425,
-0.087562166154... | |
i have a process that makes calls to a webservice and handles the responses, some of the responses require some user input so they can be handled. When user input is required i want to trigger an event, in the event handler i want to display a form to the page then wait until the user input is posted back then have the... | [
0.3120909333229065,
-0.01926635392010212,
0.33292579650878906,
0.132207453250885,
-0.14119930565357208,
-0.21898320317268372,
0.1610211730003357,
-0.19060929119586945,
-0.03811655193567276,
-0.4029774069786072,
0.01892712712287903,
0.44985485076904297,
-0.1548418551683426,
0.03267866000533... | |
to litb:
```
if (!getline(std::cin, str)) {
std::cin.clear();
std::cout << std::endl;
}
``` | [
0.11174613237380981,
-0.14322932064533234,
0.7527401447296143,
-0.39326661825180054,
0.17068541049957275,
-0.20898820459842682,
0.057947106659412384,
-0.08684124052524567,
0.13756413757801056,
-0.5656171441078186,
-0.7977895736694336,
0.6380622386932373,
-0.2860781252384186,
0.017993172630... | |
Does anyone know if there is a tool to get all assembly information given an assembly. Prefereably in XML format.
Information needed:
* Full namespaced assembly name
* Title
* Culture
* Configuration
* Version
* Informational version
* Description
* Company
* Product
* Copyright
* Trademark
```
public static clas... | [
0.4069634974002838,
-0.004071297124028206,
0.37147045135498047,
-0.13908952474594116,
0.40591397881507874,
-0.19400374591350555,
0.33969753980636597,
0.20437785983085632,
-0.07004702091217041,
-0.28209325671195984,
-0.5260240435600281,
0.5224530100822449,
-0.1910136342048645,
0.33288356661... | |
string description = String.Empty;
string company = String.Empty;
string culture = String.Empty;
string configuration = String.Empty;
string version = String.Empty;
string informationalVersion = String.Empty;
string | [
0.2025017887353897,
-0.18277913331985474,
0.2557923495769501,
-0.3131278455257416,
0.33128878474235535,
0.005739097949117422,
0.36845436692237854,
0.38547930121421814,
-0.13355325162410736,
-0.3476214110851288,
-0.4499213397502899,
0.5287933349609375,
-0.6834572553634644,
0.468109756708145... | |
product = String.Empty;
string trademark = String.Empty;
string copyright = String.Empty;
foreach (var attrib in assembly.GetCustomAttributes(false))
{
if (attrib is AssemblyTitleAttribute)
{ | [
0.5305305123329163,
0.0034782886505126953,
0.3922514021396637,
-0.45010411739349365,
0.3931160867214203,
0.10486199706792831,
0.4055522680282593,
-0.14994481205940247,
0.03909293934702873,
0.029131047427654266,
-0.4792294204235077,
0.22462575137615204,
-0.23979337513446808,
0.6273030638694... | |
title = ((AssemblyTitleAttribute)attrib).Title;
}
if (attrib is AssemblyDescriptionAttribute)
{
description = ((AssemblyDescriptionAttribute)attrib).Description; | [
-0.004365216009318829,
-0.05432900786399841,
-0.047677066177129745,
-0.05663938820362091,
0.33076101541519165,
-0.17502036690711975,
0.5345799326896667,
-0.19697235524654388,
0.17444655299186707,
-0.5366544723510742,
-0.8078251481056213,
0.5341333150863647,
-0.3126101791858673,
0.462901294... | |
}
if (attrib is AssemblyCompanyAttribute)
{
company = ((AssemblyCompanyAttribute)attrib).Company;
}
if (attrib is AssemblyCultureAttribute) | [
-0.041895490139722824,
-0.2992023825645447,
0.05830046907067299,
-0.40377920866012573,
0.3708893656730652,
0.36872684955596924,
0.28405678272247314,
-0.18359245359897614,
0.17032700777053833,
-0.28229084610939026,
-0.34870368242263794,
0.4300420880317688,
-0.532840371131897,
0.041490405797... | |
{
culture = ((AssemblyCultureAttribute)attrib).Culture;
}
if (attrib is AssemblyConfigurationAttribute)
{ | [
0.24032551050186157,
-0.23605948686599731,
0.23141361773014069,
-0.4378141760826111,
0.5272966027259827,
0.39205828309059143,
0.5259667038917542,
-0.245374396443367,
0.18306294083595276,
-0.5573344826698303,
-0.3326927125453949,
0.19559308886528015,
-0.5084879398345947,
0.1866125762462616,... | |
configuration = ((AssemblyConfigurationAttribute)attrib).Configuration;
}
if (attrib is AssemblyVersionAttribute)
{
version = ((AssemblyVersionAttribute)attrib).Version;
} | [
-0.12372726202011108,
-0.4963971674442291,
0.1721421778202057,
-0.2849162817001343,
0.15669019520282745,
0.19971804320812225,
0.49416568875312805,
-0.11833351850509644,
-0.2310221791267395,
-0.808329701423645,
-0.34449416399002075,
0.6208639740943909,
-0.5728707909584045,
0.205113962292671... | |
if (attrib is AssemblyInformationalVersionAttribute)
{
informationalVersion = ((AssemblyInformationalVersionAttribute)attrib).InformationalVersion;
}
if (attrib is AssemblyProductAttribute) | [
-0.34746572375297546,
-0.262473464012146,
0.15429171919822693,
-0.38538506627082825,
0.2557898759841919,
0.12678579986095428,
0.3496042490005493,
-0.2487986534833908,
0.1261748969554901,
-0.4153517782688141,
-0.39160192012786865,
0.6089553236961365,
-0.7156665325164795,
-0.0777015909552574... | |
{
product = ((AssemblyProductAttribute)attrib).Product;
}
if (attrib is AssemblyTrademarkAttribute)
{
trademark | [
0.6328084468841553,
0.17546626925468445,
0.24087300896644592,
-0.4049612581729889,
0.20768964290618896,
0.21085411310195923,
0.1738094538450241,
-0.10572843998670578,
0.009537686593830585,
-0.15353481471538544,
-0.4451347589492798,
0.33754217624664307,
-0.23259370028972626,
0.6376404166221... | |
= ((AssemblyTrademarkAttribute)attrib).Trademark;
}
if (attrib is AssemblyCopyrightAttribute)
{
copyright = ((AssemblyCopyrightAttribute)attrib).Copyright;
} | [
0.2657274603843689,
0.1344752162694931,
0.15727761387825012,
-0.01176545675843954,
0.2912813425064087,
-0.015666533261537552,
0.22207821905612946,
-0.10825712978839874,
-0.08993655443191528,
-0.04935247823596001,
-0.564919650554657,
0.3056023120880127,
-0.18992045521736145,
0.6231597661972... | |
}
StringBuilder builder = new StringBuilder();
StringWriter stringWriter = new StringWriter(builder);
XmlTextWriter xmlWriter = new XmlTextWriter(stringWriter);
xmlWriter.WriteStartDocument();
xmlWriter.WriteStartElement("AssemblyInformation");
x... | [
0.051362477242946625,
0.06370609998703003,
0.7161958813667297,
-0.261898010969162,
0.16594769060611725,
0.053035441786050797,
0.3112654983997345,
-0.656495988368988,
0.15720628201961517,
-0.5120803117752075,
-0.29033932089805603,
0.5305132865905762,
-0.16536816954612732,
0.288838267326355,... | |
title);
xmlWriter.WriteElementString("Description", description);
xmlWriter.WriteElementString("Company", company);
xmlWriter.WriteElementString("Culture", culture);
xmlWriter.WriteElementString("Configuration", configuration);
xmlWriter.WriteElementString("Ve... | [
0.3916345536708832,
0.13546450436115265,
0.7334703207015991,
0.04186916723847389,
-0.01679193042218685,
-0.15807196497917175,
-0.21010732650756836,
-0.13134203851222992,
0.023738911375403404,
-0.3511803448200226,
-0.5695703625679016,
0.13793139159679413,
-0.06402993202209473,
0.33670315146... | |
xmlWriter.WriteElementString("Trademark", trademark);
xmlWriter.WriteElementString("Copyright", copyright);
xmlWriter.WriteEndElement();
return builder.ToString();
}
}
```
This should get you started. You can add error handling and stuff but this should work. | [
0.4403337240219116,
0.22437451779842377,
0.45956405997276306,
-0.11898963898420334,
0.047527797520160675,
-0.5834205150604248,
0.17651104927062988,
-0.4343551993370056,
0.2639714777469635,
-0.620532751083374,
-0.07561038434505463,
0.5798147916793823,
-0.29562920331954956,
0.146655127406120... | |
What is the simplest way to get the directory that a file is in? I'm using this to set a working directory.
```
string filename = @"C:\MyDirectory\MyFile.bat";
```
In this example, I should get "C:\MyDirectory".
If you've definitely got an absolute path, use [`Path.GetDirectoryName(path)`](http://msdn.microsoft.com/... | [
-0.16473963856697083,
-0.2189669907093048,
0.4774487018585205,
0.07187093049287796,
0.352966845035553,
-0.057329706847667694,
0.021784638985991478,
0.001380154280923307,
-0.1882457584142685,
-1.0060011148452759,
-0.16056834161281586,
0.5496158599853516,
-0.11182334274053574,
0.127626463770... | |
In a global style sheet used across all of our pages sits the following line:
```
ul { margin: 0; }
li { list-style-type: none; padding-bottom: 3px; }
```
Therefore, any ul's inside my pages render with no discs next to li's.
However, in special cases, I need to display the disc next to a li.
I have a div with the... | [
-0.20115454494953156,
0.15886333584785461,
0.889286458492279,
0.0907738134264946,
-0.43229344487190247,
-0.052429284900426865,
-0.023798596113920212,
0.03589119017124176,
-0.01722954586148262,
-0.7880773544311523,
-0.1741732805967331,
0.5041213035583496,
-0.26821374893188477,
0.06275217235... | |
nested in the ul's. Thoughts on how I can get them there? My CSS-fu is weak....
!important is not necessary because class-specific styles override global styles already. The problem is because in the global style you set the margin to zero. The style type is being rendered correctly, but you just can't see it. This sho... | [
-0.1231895163655281,
-0.004232303239405155,
0.7645496726036072,
0.1699715256690979,
-0.2040134072303772,
-0.03915012627840042,
0.060487937182188034,
0.1721663475036621,
0.04349694401025772,
-0.7482614517211914,
0.10884622484445572,
0.6910195350646973,
-0.22589652240276337,
0.05368265509605... | |
I want to parse a random website, modify the content so that every word is a link (for a dictionary tooltip) and then display the website in an iframe.
I'm not looking for a complete solution, but for a hint or a possible strategy. The linking is my problem, parsing the website and displaying it in an iframe is quite ... | [
0.4732166826725006,
0.2717379629611969,
-0.08547640591859818,
-0.03585367649793625,
-0.3336595296859741,
-0.10938651859760284,
0.16690276563167572,
0.29667598009109497,
-0.20322130620479584,
-0.7181527614593506,
0.12779270112514496,
0.33116641640663147,
-0.4807488024234772,
0.1450184136629... | |
the href tag depends on the word.
Clarification:
I tried a regexp and it already kind of works:
```
@site.gsub!(/[A-Za-z]+(?:['-][A-Za-z]+)?|\\d+(?:[,.]\\d+)?/) {|word| '<a href="">' + word + '</a>'}
```
But the problem is to only replace words in the text and leave the HTML as it is. So I guess it is a regex prob... | [
-0.004638034850358963,
0.23506948351860046,
0.8058110475540161,
-0.09952756017446518,
-0.32807791233062744,
0.08949805051088333,
0.4368445873260498,
-0.4211241602897644,
0.1526886224746704,
-0.6834133863449097,
-0.4238623082637787,
0.6696131229400635,
-0.2568427622318268,
-0.10157343000173... | |
How can I delay loading of an anchor link until after a $.get request has gone out? I have
```
$("a.track").click(function() {
$.get("track.php", { id: "page1.html" });
});
```
... but clicking on the link loads the new page before the above request goes through (my response on the PHP page is not recorded). If ... | [
0.4090486168861389,
-0.09271865338087082,
0.47097083926200867,
-0.1501109004020691,
0.05113707855343819,
-0.07897599786520004,
0.3667050898075104,
-0.20048289000988007,
-0.5017265677452087,
-0.26027530431747437,
-0.009599275887012482,
0.7631716728210449,
-0.47579270601272583,
0.11044576019... | |
so it doesn't work as expected.
How can I make the loading of this link only happen once the GET request has been sent? I don't really care about getting a result back from the request, I just want it sent before the new page loads.
You can pass the click handler a callback, which would redirect the page upon success... | [
0.14764757454395294,
-0.11286050081253052,
0.6023929715156555,
0.03304392471909523,
-0.1038445308804512,
-0.028326021507382393,
0.45687076449394226,
-0.25309982895851135,
-0.3292534351348877,
-0.2751964330673218,
-0.16174639761447906,
0.7107197642326355,
-0.46235010027885437,
0.06966040283... | |
When I include `\overline{x}` or other special characters in the caption text of a table, the whole caption text won't appear at all. When I put simple text without special characters, the caption works fine. How can I include special characters in the caption?
Are you putting $ around the maths? I.e.:
```
\caption{Th... | [
-0.06581564992666245,
0.3515944480895996,
0.17846593260765076,
0.26977649331092834,
-0.05697106570005417,
0.08293730020523071,
0.12187309563159943,
0.1122809648513794,
-0.5104806423187256,
-0.5779966711997986,
-0.39130720496177673,
0.38965752720832825,
-0.2893308103084564,
-0.4184443652629... | |
I'm looking through a generic list to find items based on a certain parameter.
In General, what would be the best and fastest implementation?
1. Looping through each item in the list and saving each match to a new list and returning that
```
foreach(string s in list)
{
if(s == "match")
{
newList.Ad... | [
0.30101364850997925,
-0.10490851104259491,
0.04551872983574867,
0.049309633672237396,
0.02444935217499733,
-0.11468230187892914,
0.30633190274238586,
-0.4321221709251404,
-0.22628997266292572,
-0.7181805968284607,
0.0061129312962293625,
0.26493725180625916,
-0.4807630479335785,
0.121404856... | |
should definitely use the `FindAll` method, or the equivalent LINQ method. Also, consider using the more concise lambda instead of your delegate if you can (requires C# 3.0):
```
var list = new List<string>();
var newList = list.FindAll(s => s.Equals("match"));
``` | [
0.24264757335186005,
-0.12515287101268768,
0.28796103596687317,
0.1302756667137146,
-0.04349157586693764,
-0.48184698820114136,
0.16084811091423035,
-0.2741648554801941,
-0.0746387392282486,
-0.5823420882225037,
-0.129776731133461,
0.7741729617118835,
-0.41644206643104553,
-0.1562118977308... | |
When I compile my .NET 1.1 ASP.NET app, I'm getting RESX reference problems. How can I easily force VS2003 to dump all these references (I'm not using them) and force a rebuild of them?
You can use a text editor that allows you to use regular expressions and do a find and replace on this regex
^.\*\n.*resx\"\n.*\n.*Em... | [
0.18704745173454285,
-0.03202056884765625,
0.4445815086364746,
0.08707481622695923,
-0.09636154025793076,
-0.038251280784606934,
0.5377224087715149,
-0.1913960874080658,
-0.32168763875961304,
-0.8164861798286438,
-0.038257841020822525,
0.8782124519348145,
-0.31545570492744446,
0.0525579228... | |
I need to generate an event handler based on an EventInfo object in runtime and call a method within that event handler. Something like the following:
```
public void RegisterAction(ActionData actionData, EventInfo eventInfo,
Control control)
{
MethodInfo methodInfo = eventInfo.EventHandlerType.GetMethod("Inv... | [
-0.047951411455869675,
-0.4074908196926117,
0.33673056960105896,
0.0866837128996849,
0.17142529785633087,
0.05999770388007164,
0.19313199818134308,
-0.5757539868354797,
-0.20732860267162323,
-0.7039536237716675,
-0.11750324070453644,
0.4505273997783661,
-0.48197656869888306,
-0.20295658707... | |
typeof (void),
ps.ToArray(), | [
0.04628605395555496,
-0.015750227496027946,
0.11737598478794098,
-0.0920591875910759,
0.17742198705673218,
0.05048109218478203,
0.2870592772960663,
-0.11449699848890305,
-0.09063934534788132,
-0.3172357976436615,
-0.327827513217926,
0.43325018882751465,
-0.6567085385322571,
0.0578793026506... | |
GetType(),
true);
ILGenerator generator = method.GetILGenerator();
// Here I need to generate a method to do the following:
// | [
0.20904658734798431,
-0.1919904500246048,
0.31991252303123474,
-0.27240967750549316,
0.01564912125468254,
-0.06351025402545929,
0.360592782497406,
-0.7687080502510071,
0.32469096779823303,
-0.2689932882785797,
0.13289318978786469,
0.8334087133407593,
-0.5015658736228943,
-0.094653047621250... | |
ExecuteAction(actionData);
// Then I can use this runtime method as an event handler and
// bind it to the control
Delegate proxy = method.CreateDelegate(eventInfo.EventHandlerType, this);
eventInfo.AddEventHandler(control, proxy);
}
```
I need help in generating the IL code for the commented pa... | [
0.343654066324234,
-0.3750625252723694,
0.35651254653930664,
-0.02935398556292057,
-0.013181108050048351,
0.058999788016080856,
0.3213799297809601,
-0.4060550630092621,
-0.17884561419487,
-0.4626568853855133,
-0.11949492990970612,
0.6215031743049622,
-0.46841880679130554,
-0.09337347000837... | |
If I have a document with a frameset and some javascript defined in a head tag, i.e something like this:
```
<html>
<head>
<script>
function foo() {}
</script>
</head>
<frameset>
<frame src="A.html">
</frameset>
</html>
```
I am already assuming that the frame (A.html) fires its onLoad event... | [
0.3379417657852173,
0.1571550816297531,
0.28893670439720154,
-0.12319104373455048,
-0.1648339182138443,
-0.2721508741378784,
0.25648266077041626,
-0.4517028331756592,
-0.061078041791915894,
-0.6794826984405518,
-0.10864029079675674,
0.44925233721733093,
-0.13003692030906677,
-0.06933617591... | |
window?
What assumptions can I make?
Sounds perfectly reasonable to me. By making it an inner class, you're making it easy to find and an obvious candidate for review when the searchable class changes.
Tight coupling is only bad when you couple things that don't really belong together just because one of them happen... | [
0.12407007068395615,
-0.3675481081008911,
-0.10827025026082993,
0.42221513390541077,
-0.06923767924308777,
-0.09561992436647415,
0.1501082479953766,
0.3041558265686035,
0.04614526033401489,
-0.7134370803833008,
0.012803344056010246,
0.3562447428703308,
-0.07024127244949341,
0.2728689610958... | |
From firsthand experience, it appears that ClickOnce only installs for the current user, and there is no option to install for all users. This is a problem because some users within the company need to use ClickOnce applications but do not have permissions to install applications (for security reasons).
So far, the on... | [
0.5191900134086609,
0.12989121675491333,
0.44294077157974243,
0.24563753604888916,
0.4415385127067566,
-0.6434593200683594,
0.2007974088191986,
0.24663962423801422,
-0.37414225935935974,
-0.5840358734130859,
-0.07391901314258575,
0.5645267367362976,
-0.2770395874977112,
0.24998106062412262... | |
anyway. That's the point of ClickOnce: it allows restricted users to install your app. Otherwise you could just distribute an msi using group policy. | [
0.5144581198692322,
-0.13336096704006195,
0.23604780435562134,
0.20244184136390686,
0.1729280650615692,
-0.43226358294487,
-0.005113085266202688,
0.24290986359119415,
-0.35603582859039307,
-0.37315165996551514,
0.11273285746574402,
0.3134631812572479,
-0.24208711087703705,
0.09256202727556... | |
I've always been curious... Which is better when salting a password for hashing: prefix, or postfix? Why? Or does it matter, so long as you salt?
To explain: We all (hopefully) know by now that we should [salt](http://en.wikipedia.org/wiki/Salt_(cryptography)) a password before we hash it for storage in the database [... | [
0.47837093472480774,
0.31066349148750305,
0.09282045066356659,
-0.05011768266558647,
0.13967104256153107,
-0.3133467435836792,
0.2509680390357971,
-0.09274361282587051,
-0.019761687144637108,
-0.48176997900009155,
0.128545343875885,
0.31284964084625244,
0.10196045786142349,
-0.083144500851... | |
even seen some that try to put the salt in the middle.
So which is the better method, and why? Is there a method that decreases the chance of a hash collision? My Googling hasn't turned up a decent analysis on the subject.
**Edit:** Great answers folks! I'm sorry I could only pick one answer. :)
Prefix or suffix is... | [
0.2217131406068802,
0.12461057305335999,
0.15263885259628296,
0.22214213013648987,
-0.18937373161315918,
-0.2970919907093048,
0.41413024067878723,
-0.10727827250957489,
0.04746255278587341,
-0.6019843220710754,
0.08079922199249268,
0.38273540139198303,
0.00867461133748293,
-0.0720783993601... | |
Choose a long enough salt. Think about the birthday problem.
There's an excellent [answer by Dave Sherohman](https://stackoverflow.com/questions/536584/non-random-salt-for-password-hashes/536756#536756) to another question why you should use randomly generated salts instead of a user's name (or other personal data). I... | [
0.07340961694717407,
0.13452677428722382,
-0.046226609498262405,
0.10051411390304565,
0.1240738108754158,
0.05095621570944786,
0.055421438068151474,
0.10629534721374512,
0.12329664081335068,
-0.3505250811576843,
-0.006022462155669928,
0.024620486423373222,
0.18293587863445282,
0.1232647523... | |
The XMLDoc tool for API documentation is explained here:
<http://edn.embarcadero.com/article/32770>
Are there any free or commercial tools which can be used to create documentation based on Delphi's XML doc format?
Is there a newer version of the 'getting started' documentation? This page refers to Delphi 2005 and t... | [
-0.013057166710495949,
-0.10791119933128357,
0.42644238471984863,
0.25306811928749084,
-0.21641480922698975,
-0.24969515204429626,
0.12358515709638596,
-0.32690441608428955,
-0.006971967872232199,
-0.2023467868566513,
-0.03725969418883324,
0.7296401262283325,
-0.0013210978358983994,
-0.429... | |
help files, and quite possibly also use XMLDoc as their input (both are Delphi-compatible or even written in Delphi).
Marc | [
-0.021800082176923752,
-0.12400951236486435,
0.25147169828414917,
0.1455622762441635,
-0.09280867874622345,
-0.16320259869098663,
0.0020396781619638205,
0.4011993110179901,
0.0819501206278801,
-0.7414078712463379,
-0.5545334219932556,
0.4760523736476898,
-0.0610019713640213,
-0.33836844563... | |
I am attempting to return the number of customers located in a specific state that have rented a specific movie, where the rents table contains two columns, one for customer ID and one for the movie ID. The function takes in a movie ID and the state and returns an integer with the amount of customers.
Right now I have... | [
0.675652801990509,
0.15397344529628754,
0.6406547427177429,
0.046044688671827316,
0.32183894515037537,
0.4164559245109558,
-0.31042179465293884,
-0.4959549009799957,
0.021273503080010414,
-0.35194751620292664,
0.05306035280227661,
0.7758272886276245,
0.29173722863197327,
0.6191880106925964... | |
of rows. I would like to just be able to check numCustomers for the correct data. Thanks!
Firstly, you are lacking a clause to link your RENTS table and your CUSTOMER table on CustomerId?
Secondly, you should use the INNER JOIN functionality in the FROM clause to add your two tables.
Thirdly, you should NOT build you... | [
0.8282106518745422,
0.1081349328160286,
0.7738916873931885,
-0.09670042991638184,
0.2000768780708313,
0.07654073089361191,
-0.3580957353115082,
-0.48376208543777466,
-0.11310096085071564,
-0.39409339427948,
0.17226746678352356,
0.7359903454780579,
-0.11368697136640549,
0.4107155501842499,
... | |
CUSTOMER C
INNER JOIN
RENTS R
ON
C.CustomerID = R.CustomerId
WHERE
C.ST = @state
AND
R.mid = @movieId
``` | [
0.10270604491233826,
0.03056580014526844,
0.7849671244621277,
-0.2843987047672272,
0.15294413268566132,
0.21134008467197418,
-0.11149699240922928,
-0.05922761932015419,
0.4138861894607544,
-0.4107160270214081,
-0.33222049474716187,
0.7213940620422363,
0.06408978998661041,
0.439423888921737... | |
If I am in the middle of the function, I would like go to the very end of it in vim. I run into this problem as we sometimes have function of 500+ lines long (don't ask why).
I use vim, gvim.
You can use the "]}" command. You may have to repeat it depending on how nested you are. | [
0.3047949969768524,
-0.1305154263973236,
0.489793598651886,
-0.21845263242721558,
-0.2178252637386322,
-0.11488088220357895,
0.35261064767837524,
0.15807601809501648,
-0.1987195909023285,
-0.6651994585990906,
0.1567622721195221,
0.6550298929214478,
-0.3849634826183319,
0.16758187115192413,... | |
I am new to C++ style casts and I am **worried that using C++ style casts will ruin the performance of my application** because I have a [real-time-critical deadline](http://en.wikipedia.org/wiki/Real-time_computing) in my interrupt-service-routine.
I heard that some casts will even throw exceptions!
I would like to ... | [
0.5952240228652954,
0.3303323984146118,
0.0952012911438942,
-0.1131916418671608,
-0.2798970639705658,
-0.2647947072982788,
0.32744789123535156,
-0.19537262618541718,
-0.029047774150967598,
-0.6524660587310791,
0.13647057116031647,
0.5780983567237854,
-0.1508992314338684,
-0.017875475808978... | |
style casts?
What were your results?
What conclusions did you draw?
If the C++ style cast can be conceptualy replaced by a C-style cast there will be no overhead. If it can't, as in the case of `dynamic_cast`, for which there is no C equivalent, you have to pay the cost one way or another.
As an example, the follow... | [
0.739811897277832,
-0.15137627720832825,
0.19814792275428772,
-0.007417732384055853,
-0.1652364283800125,
0.05489453300833702,
0.07896377891302109,
-0.5403034090995789,
-0.03915570303797722,
-0.39699289202690125,
0.19075258076190948,
0.722935140132904,
-0.47301939129829407,
-0.142483726143... | |
__ftol (0040110c)
00401049 mov dword ptr [ebp-4],eax
```
The only C++ cast that can throw is `dynamic_cast` when casting to a reference. To avoid this, cast to a pointer, which will return 0 if the cast fails. | [
0.00233424617908895,
0.09107763320207596,
0.012387016788125038,
-0.2604489326477051,
0.0017033071490004659,
-0.12002614140510559,
0.4445953667163849,
-0.15781424939632416,
0.0032457190100103617,
-0.05349114164710045,
-0.18607041239738464,
0.5900729894638062,
-0.5044447183609009,
0.10386183... | |
When using DrScheme with R5RS, there is no error function. I plan to write my own, but can't figure out how to halt the program execution. I tried commands such as:
* (halt)
* (exit)
* (error)
and none worked. How do you halt program execution?
[SLIB](http://people.csail.mit.edu/jaffer/SLIB.html) (the portable Scheme... | [
-0.11860410869121552,
0.043368540704250336,
0.2919522523880005,
-0.1428563892841339,
-0.13476508855819702,
-0.19407351315021515,
0.4268210232257843,
-0.14300639927387238,
-0.5118364095687866,
-0.4592609405517578,
-0.06676311045885086,
0.5094397664070129,
-0.41086846590042114,
0.10651411116... | |
(display reason)
(for-each (lambda (arg)
(display " ")
(write arg))
args)
(newline)
(scheme-report-environment -1)) ;; we hope that this will signal an error
```
While this does raise a second (unrelated) error, it will surely halt program execution. | [
0.1418668031692505,
0.1994571089744568,
0.44466912746429443,
-0.35899031162261963,
0.37344709038734436,
-0.18906883895397186,
0.4127829372882843,
-0.1070188507437706,
-0.08978346735239029,
-0.4373069703578949,
-0.4246567189693451,
0.527682363986969,
-0.2577171325683594,
0.01085802819579839... | |
I am dissecting some code and came across this,
```
$sql = 'SELECT page.*, author.name AS author, updator.name AS updator '
. 'FROM '.TABLE_PREFIX.'page AS page '
. 'LEFT JOIN '.TABLE_PREFIX.'user AS author ON author.id = page.created_by_id '
. 'LEFT JOIN '.TABLE_PREFIX.'user AS updator ON updator.id =... | [
0.26867592334747314,
0.3683796226978302,
0.3574901223182678,
0.0057192351669073105,
0.18135303258895874,
0.32931315898895264,
-0.2908667325973511,
-0.1862677037715912,
-0.1890382021665573,
-0.5839685201644897,
-0.014505209401249886,
0.1535675823688507,
-0.08009209483861923,
0.6199883818626... | |
in MySQL to allow for binding params to the statement. Highly regarded as more secure against SQL injections if used properly. This also allows for quicker SQL queries as the request only has to be compiled once and can be reused. | [
0.1120247095823288,
0.023687347769737244,
0.41063666343688965,
0.03692883253097534,
-0.38111504912376404,
-0.0840066447854042,
0.40145355463027954,
-0.25371649861335754,
-0.1436232030391693,
-0.33888116478919983,
-0.35425660014152527,
0.20111669600009918,
-0.3070679306983948,
-0.1471620202... | |
The Title pretty much says it all. I have an XML document that I am processing with XSLT .... but I don't know how many columns (fields) that are in the XML document (therefore, obviously, I don't know their names). **How can I determine the number of "unknown" fields there are? Also, how can I read the attributes, if ... | [
0.06179177761077881,
0.11531966924667358,
0.1534072756767273,
0.1607791632413864,
-0.026177922263741493,
-0.24314062297344208,
-0.3697068989276886,
0.10912579298019409,
-0.2533596456050873,
-0.20129267871379852,
-0.15840891003608704,
0.35815930366516113,
-0.03717625141143799,
0.06557302922... | |
the number of
> "unknown" fields there are?
**This XPath expression**:
```
count(/*/*/*)
```
evalutes to the count of the elements, that a re children of the elements that are children of the top node of the XML document -- exactly what is wanted in this case.
If the `"Row"` element can have children whose name d... | [
-0.1295614391565323,
0.16948094964027405,
0.283058226108551,
0.10332620143890381,
0.32581549882888794,
0.27255478501319885,
-0.0618424117565155,
-0.4651278555393219,
-0.12059694528579712,
-0.480165034532547,
-0.5402925610542297,
0.36324071884155273,
-0.2747965157032013,
0.0102731017395854,... | |
is:
```
count(/*/Row/*[starts-with(name(), "UnknownCol")])
```
> Also, how can I read the attributes,
> if any, for the unknown fields?
By knowing XPath :)
```
/*/Row/*[starts-with(name(), "UnknownCol")]/@*
```
selects all the attributes of all "UnknownCol"{String} elements
This XPath expression gives us the n... | [
-0.2587122917175293,
0.3100709617137909,
0.37357380986213684,
0.14845889806747437,
0.2040904313325882,
0.1648668646812439,
-0.16791775822639465,
-0.26124948263168335,
0.08252816647291183,
-0.4168521463871002,
-0.039541248232126236,
0.6809249520301819,
-0.30198878049850464,
-0.1400470286607... | |
(/*/Row/*/@*)[$ind] )
string( (/*/Row/*/@*)[$ind] )
``` | [
0.015033659525215626,
0.22518406808376312,
0.12572382390499115,
-0.36693015694618225,
0.14314404129981995,
-0.07376731187105179,
0.23017960786819458,
-0.19410832226276398,
0.009483281522989273,
-0.26036888360977173,
-0.37468037009239197,
0.4507940411567688,
-0.5466219186782837,
0.315220028... | |
What is the closest Java alternative to [Twisted](http://twistedmatrix.com/trac/wiki/TwistedProject)?
Like Stephane, I would suggest you take a look at [Mina](http://mina.apache.org/). Its a framework for asynchronous network IO. It is built on top of NIO, which was mentioned earlier, and IMO hides away some of the com... | [
0.3129074275493622,
-0.3489048182964325,
0.015921592712402344,
0.14095193147659302,
-0.3746033012866974,
-0.0925002321600914,
0.2463732212781906,
-0.06338600814342499,
-0.15971609950065613,
-0.7077089548110962,
0.4865032434463501,
0.03572951257228851,
-0.41210344433784485,
0.19988372921943... | |
Thinking about this for an About dialog but I'm sure it's applicable in other places (say a find box)
Sorry if this is a dupe, but I couldn't find this or how to articulate the last part about it only being on top of the parent. How do you make a form that is always on top of the parent form, but is non-modal, but do... | [
0.3619174361228943,
0.031542591750621796,
0.6968487501144409,
0.13322369754314423,
0.1536192148923874,
-0.2864474952220917,
-0.047445300966501236,
0.05973212420940399,
0.020158661529421806,
-0.6379355192184448,
-0.0929829552769661,
0.467182457447052,
-0.4077411890029907,
-0.089277096092700... | |
I have a MySQL database table with this structure:
```
table
id INT NOT NULL PRIMARY KEY
data ..
next_id INT NULL
```
I need to fetch the data in order of the linked list. For example, given this data:
```
id | next_id
----+---------
1 | 2
2 | 4
3 | 9
4 | 3
9 | NULL... | [
-0.48048636317253113,
0.16140154004096985,
0.5340496301651001,
-0.03897058591246605,
0.10727155208587646,
0.05241448059678078,
-0.009193130768835545,
-0.28638917207717896,
-0.06726375222206116,
-0.6453680396080017,
-0.15032659471035004,
0.32230308651924133,
-0.25021621584892273,
0.14911395... | |
for id=1, 2, 4, 3, 9, in that order. How can I do this with a database query? (I can do it on the client end. I am curious if this can be done on the database side. Thus, saying it's impossible is okay (given enough proof)).
It would be nice to have a termination point as well (e.g. stop after 10 fetches, or when some... | [
0.3463279604911804,
0.17392605543136597,
0.301885724067688,
0.1482430100440979,
0.10801158100366592,
-0.2679254710674286,
0.10298614203929901,
-0.2813914716243744,
-0.17239612340927124,
-0.4292985200881958,
0.2770730257034302,
0.48464563488960266,
-0.2360207438468933,
0.4582905173301697,
... | |
SQL Server) support extra SQL syntax to run "recursive queries" but MySQL does not support any such solution.
The problem you are describing is the same as representing a tree structure in a SQL database. You just have a long, skinny tree.
There are several solutions for storing and fetching this kind of data structu... | [
-0.07269454747438431,
-0.0054728370159864426,
0.3710207939147949,
0.16403374075889587,
-0.2145882397890091,
-0.04287952557206154,
0.10870347172021866,
-0.21382416784763336,
-0.36841443181037903,
-0.3400050103664398,
-0.05019894987344742,
0.5063339471817017,
-0.4036288857460022,
-0.07546924... | |
can achieve this while querying the list this way:
```
SELECT * FROM mytable t1
LEFT JOIN mytable t2 ON (t1.next_id = t2.id)
LEFT JOIN mytable t3 ON (t2.next_id = t3.id)
LEFT JOIN mytable t4 ON (t3.next_id = t4.id)
LEFT JOIN mytable t5 ON (t4.next_id = t5.id)
LEFT JOIN mytable t6 ON (t5.next_id = t6.id)
LEFT JOI... | [
-0.17416056990623474,
0.04994998127222061,
0.5149819254875183,
-0.23280903697013855,
0.03301461413502693,
0.21472135186195374,
0.3104374408721924,
-0.3499580919742584,
-0.35619431734085083,
-0.6432889699935913,
-0.14575950801372528,
0.3962862491607666,
0.037920303642749786,
0.2361070960760... | |
list), but you'll get the result. | [
0.2733607888221741,
-0.21014495193958282,
0.6653549671173096,
0.29651835560798645,
0.0174652561545372,
0.05217393487691879,
0.1521347612142563,
-0.19042803347110748,
-0.42310136556625366,
0.008880287408828735,
-0.10231412947177887,
0.5808489918708801,
-0.1395992785692215,
0.237470507621765... | |
I'm currently working on databinding some of my existing Windows Forms, and I've ran into an issue figuring out the proper way of databinding a group of radiobutton controls within a group box.
My business object has an integer property which I want to databind against 4 radiobuttons (where each of them represents the... | [
0.19657273590564728,
0.22920933365821838,
0.637014627456665,
-0.2715986669063568,
-0.17366114258766174,
-0.14843754470348358,
0.3463961184024811,
-0.6025546789169312,
-0.06692114472389221,
-0.4712716341018677,
0.13114862143993378,
0.5692399740219116,
-0.4447026252746582,
0.3014284372329712... | |
but not including that here):
```
Private int _propValue;
Public bool PropIsValue0
{
get { return _propValue == 0; }
set
{
if (value)
_propValue = 0;
}
}
Public bool PropIsValue1 { // As above, but with value == 1 }
Public bool PropIsValue2 { // As above, but with value == 2 }
Public bool PropIs... | [
0.38169723749160767,
-0.31239426136016846,
0.6970303058624268,
-0.22260518372058868,
0.052195679396390915,
-0.18957124650478363,
0.48204562067985535,
-0.7838327288627625,
0.16900110244750977,
-0.3657313883304596,
-0.5100981593132019,
1.2250471115112305,
-0.4872536063194275,
0.1358257085084... | |
is a generic RadioGroupBox implementation in the spirit of ArielBH's suggestion (some code borrowed from Jay Andrew Allen's [RadioPanel](http://www.codeproject.com/KB/combobox/RadioPanel.aspx)). Just add RadioButtons to it, set their tags to different integers and bind to the 'Selected' property.
```
public class Radi... | [
0.4526125490665436,
-0.5944865345954895,
0.1784483790397644,
-0.0666973888874054,
0.012359469197690487,
-0.5499934554100037,
0.04275617375969887,
-0.776425302028656,
0.061203956604003906,
-0.20875468850135803,
-0.15281718969345093,
0.33407798409461975,
-0.5811964273452759,
-0.0076898490078... | |
}
set
{
int val = 0;
var radioButton = this.Controls.OfType<RadioButton>()
.FirstOrDefault(radio =>
radio.Tag != null | [
0.34280505776405334,
-0.49978119134902954,
0.440737247467041,
-0.17830486595630646,
0.220563143491745,
-0.3380812704563141,
0.484965980052948,
-0.8693555593490601,
0.2054731845855713,
-0.5088388323783875,
-0.23071758449077606,
0.9165704846382141,
-0.6649504899978638,
0.10910036414861679,
... | |
&& int.TryParse(radio.Tag.ToString(), out val) && val == value);
if (radioButton != null)
{
radioButton.Checked = true;
_selected = val;
}
} | [
0.3052046597003937,
-0.24515730142593384,
0.4498554766178131,
-0.2800084352493286,
0.44643479585647583,
-0.17344902455806732,
0.6562155485153198,
-0.844433605670929,
0.22873790562152863,
-0.14505748450756073,
-0.3326476514339447,
0.9610644578933716,
-0.5539582967758179,
0.25125306844711304... | |
}
protected override void OnControlAdded(ControlEventArgs e)
{
base.OnControlAdded(e);
var radioButton = e.Control as RadioButton;
if (radioButton != null)
radioButton.CheckedChanged += radioButton_CheckedChanged;
}
void radioButton_CheckedChanged(object sender, Ev... | [
0.06818480044603348,
-0.4054257571697235,
0.44233238697052,
-0.18563023209571838,
0.4936387240886688,
-0.1977248191833496,
0.5912103652954102,
-0.60847407579422,
0.23176535964012146,
-0.18855050206184387,
-0.556816816329956,
0.9724173545837402,
-0.5878206491470337,
0.3776925802230835,
-0... | |
if (radio.Checked && radio.Tag != null
&& int.TryParse(radio.Tag.ToString(), out val))
{
_selected = val;
SelectedChanged(this, new EventArgs());
}
}
}
```
Note that you can't bind to the 'Selected' property via the designer due to initialization order problem... | [
0.060369525104761124,
-0.35013604164123535,
0.3643530607223511,
-0.2172916829586029,
0.22810253500938416,
-0.5190950036048889,
0.39139512181282043,
-0.7657904624938965,
0.08521921187639236,
-0.39543038606643677,
-0.34870603680610657,
0.6966650485992432,
-0.427071213722229,
0.39215257763862... | |
radio buttons are initialized, so their tag is null in the first assignment). So just bind yourself like so:
```
public Form1()
{
InitializeComponent();
//Assuming selected1 and selected2 are defined as integer application settings
radioGroup1.DataBindings.Add("Selected", Properties.Set... | [
0.021637648344039917,
-0.20923838019371033,
0.5708504915237427,
-0.24761737883090973,
0.11621121317148209,
-0.41590821743011475,
0.12403921037912369,
-0.7373049855232239,
0.015042722225189209,
-0.5297116041183472,
-0.28557828068733215,
0.7403433918952942,
-0.6606759428977966,
0.04356597363... | |
I'm trying to write a test application for serial [I/O](http://en.wikipedia.org/wiki/Input/output) ([RS-232](http://en.wikipedia.org/wiki/RS-232)) with multiple units in C# and I'm running into an issue with my lack of threading experience so I'm soliciting feedback for a best known method.
I've got a pool of COM port... | [
0.49652597308158875,
0.2207956165075302,
0.2081221044063568,
0.11581974476575851,
-0.012481891550123692,
0.2114621251821518,
0.05051357299089432,
-0.07146646827459335,
-0.47368359565734863,
-0.6410763263702393,
0.19169647991657257,
0.4107266068458557,
-0.2566749155521393,
0.418546527624130... | |
COM-port and do flow logic (i.e., statemachine) for each COM-port individually.
Much of the difficulty surrounding the serial port is centered around an assumption. The assumption is that the serial port receives data in chunks that are convenient, and what is expected.
Here is an example. I know my GPS receiver sends... | [
0.04285991191864014,
0.06524859368801117,
0.5344406366348267,
-0.05427734553813934,
0.0021899938583374023,
0.22650647163391113,
0.3603743314743042,
-0.1804799884557724,
-0.08688486367464066,
-0.5793271660804749,
0.12313433736562729,
0.7621845602989197,
-0.2774311304092407,
0.13300739228725... | |
the event fires, and queue it up. When I need the data I call some other routines that put the data back together in chunk sizes **I want**. So using my example the first and second time I call read line(my readline) I get back an empty answer.
The third time I get the entire NMEA sentence back.
The bad news is that I... | [
0.3135988414287567,
0.11362797766923904,
0.6300073266029358,
-0.1813909262418747,
-0.07496228069067001,
0.13334353268146515,
0.2922380268573761,
-0.10875722020864487,
-0.27653610706329346,
-0.5040645003318787,
0.11414866894483566,
0.5727793574333191,
-0.10434775799512863,
0.085157886147499... | |
delegates was a better choice.
Here are some tips from those in the know
[Kim Hamilton](http://blogs.msdn.com/bclteam/archive/2006/10/10/Top-5-SerialPort-Tips-_5B00_Kim-Hamilton_5D00_.aspx) | [
-0.08531421422958374,
-0.24158118665218353,
0.06402760744094849,
0.3898197412490845,
-0.032569363713264465,
-0.09327038377523422,
0.2802656590938568,
-0.6336290240287781,
-0.9028639197349548,
-0.03963089734315872,
0.34396833181381226,
0.3205900192260742,
0.23523534834384918,
-0.17569297552... | |
I have a listbox that contains a bunch of file downloads, i want to add a progress bar to the current download to let the user know the progress of the download.
I cannot figure out how to do this.
You need to use owner drawn list box
Use a normal ListBox and set DrawMode = DrawMode.OwnerDrawFixed and handle the two e... | [
0.2870958149433136,
-0.2096317708492279,
0.7906490564346313,
0.07095063477754593,
-0.22529025375843048,
-0.099280945956707,
-0.09482378512620926,
-0.37258827686309814,
-0.19968250393867493,
-0.7188951373100281,
0.32844293117523193,
0.4740150272846222,
-0.024329494684934616,
0.0185459405183... | |
Looking for best practice here. We deal with SSL connection at our load balancer level and hence all the connection from our load balancer to our web servers are http. With that we have no way of telling what kind of connection the client is making to our web server since all connection is through http. We currently ha... | [
0.06032500043511391,
0.021338991820812225,
0.6392223238945007,
0.0680617243051529,
-0.061845846474170685,
0.0994645282626152,
0.22152425348758698,
-0.04628204554319382,
-0.34978070855140686,
-0.8365733623504639,
-0.04643911495804787,
0.3529045283794403,
-0.18015538156032562,
0.353638440370... | |
load balancer to append a special header when it get https request so the web servers knows the type of connection.
Do you see cons in both solution? Is there any best practice regarding SSL being applied at the load balancer level instead of web server level?
Try with:
```
<asp:Repeater ID="Repeater1" runat="server"... | [
0.2769196033477783,
-0.3859676122665405,
0.32118526101112366,
0.050655607134103775,
-0.13899685442447662,
-0.16973812878131866,
-0.03504360467195511,
-0.3527114689350128,
-0.41178205609321594,
-0.667381763458252,
-0.0809924528002739,
0.41506874561309814,
-0.32945695519447327,
-0.1129480153... | |
I'm working on a RESTish server project that responds to HTTP requests in a variety of formats. This allows us to write user facing applications and retrieve whichever format seems most convenient at the time. For example, to see if there is a user logged in, we can send:
```
http://serverurl/Authentication?command=wh... | [
0.3642459809780121,
0.21076783537864685,
0.46953538060188293,
-0.20090048015117645,
-0.35666897892951965,
0.0027666680980473757,
0.2990906238555908,
-0.058726318180561066,
-0.2221580594778061,
-0.49088436365127563,
-0.11975829303264618,
0.30864256620407104,
-0.1481599360704422,
-0.11609985... | |
a prototype client application in Flex (which, if you can't tell from my question, would be our first foray into Flex development). I do understand that we can use one of our existing formats to communicate with a Flex app, but if we decide to add support for these additional formats "just because we can", is there som... | [
0.45201900601387024,
-0.2929055094718933,
0.20986095070838928,
0.1306133270263672,
-0.15469373762607574,
-0.1224275678396225,
-0.1430465281009674,
-0.32581278681755066,
-0.06799405813217163,
-0.6341631412506104,
-0.10836223512887955,
0.5348243713378906,
-0.45706823468208313,
-0.15520524978... | |
AMF is **not** going to be just another output format for you.
You should probably think of AMF as "Flex Remoting" and not as an output format targeted at Flex using your REST API.
To make an analogy: would you think of SOAP or XMLRPC as just another output format for a REST API? | [
0.4373650848865509,
-0.3366117775440216,
0.3187783658504486,
0.14011609554290771,
-0.3004135489463806,
-0.4360171854496002,
-0.21603378653526306,
-0.2316943258047104,
-0.3174722194671631,
-0.8126388788223267,
-0.21871411800384521,
0.7483673691749573,
-0.335254043340683,
-0.2340219020843505... | |
When i attempt to do a git add i get the error "fatal : malloc, out of memory". i imagine the system has ran out of memory obviously but is there a way to get around this.
Also i am running windows server 2003 and using msysGit.
EDIT: After more searching around i think its a problem with the packing of git, apparent... | [
-0.2404891848564148,
0.3947228491306305,
-0.022778179496526718,
-0.052296534180641174,
-0.28968605399131775,
-0.22315025329589844,
0.4460828900337219,
0.10871497541666031,
-0.5399678349494934,
-0.6438210606575012,
0.13904969394207,
0.5139984488487244,
-0.5793405771255493,
0.039001747965812... | |
compression methods that are more suitable to large amounts of small files.
If any was interested i am getting around this problem by splitting the files before add them in so it can still track the changes but it will need to be put together when getting it back. | [
0.1234295442700386,
0.05231257155537605,
0.20931845903396606,
0.03016347996890545,
0.038161151111125946,
0.013482789508998394,
-0.23399458825588226,
-0.1150519996881485,
-0.12770923972129822,
-0.9498054385185242,
-0.0012380328262224793,
0.3827231526374817,
-0.15534847974777222,
-0.10676982... | |
Is it possible to get game stats (who's playing, who wins, etc) from games that are played on XBox Live and PSN? Are there any additional constraints, such as:
1. Does the game need to support some additional API?
2. Do I need to have direct access to the games servers (consoles)?
If Microsoft or Sony or even the gam... | [
0.3257572054862976,
-0.08729702234268188,
0.3778480291366577,
0.6599878072738647,
0.0941367894411087,
-0.3029140532016754,
-0.14105124771595,
-0.050756994634866714,
-0.48349443078041077,
-0.34016016125679016,
0.42710185050964355,
0.5806547999382019,
0.11325827240943909,
-0.0860337913036346... | |
I would like to write a script which copies my current database `sitedb1` to `sitedb2` on the same mysql database instance. I know I can dump the sitedb1 to a sql script:
```
mysqldump -u root -p sitedb1 >~/db_name.sql
```
and then import it to `sitedb2`.
Is there an easier way, without dumping the first database t... | [
0.645784854888916,
0.2485872060060501,
0.19577783346176147,
0.03818078711628914,
-0.12979967892169952,
-0.16312630474567413,
-0.05748014524579048,
-0.0004737614654004574,
-0.02149997651576996,
-0.7668697834014893,
0.2616666555404663,
0.49489912390708923,
-0.17858266830444336,
0.27565881609... | |
`mysql` commands accept options for setting connection details (and much more), like:
```none
mysqldump -u <user name> --password=<pwd> <original db> | mysql -u <user name> -p <new db>
```
Also, if the new database is not existing yet, you have to create it beforehand (e.g. with `echo "create database new_db_name" |... | [
-0.1774643212556839,
0.12781588733196259,
0.20155540108680725,
-0.05923151969909668,
-0.021499700844287872,
-0.09506692737340927,
0.3374220132827759,
0.05950874462723732,
-0.1773500144481659,
-0.721419095993042,
-0.47450706362724304,
0.19536520540714264,
-0.34164977073669434,
0.34575125575... | |
I have a domain *www.siteA.com*, which uses Joomla, while the domain *www.siteB.com* is empty.
I would like to show the content of the domain *www.siteA.com* at *www.siteB.com*.
I tried to solve the problem first by making a domain redirection by **.htaccess**, but I could not show SiteA's content at SiteB.
**How ca... | [
0.6404270529747009,
0.18998990952968597,
0.4517049193382263,
0.008930143900215626,
-0.2198563665151596,
-0.4089573621749878,
0.09170971810817719,
0.07162756472826004,
-0.11144024133682251,
-0.54893958568573,
0.3577917218208313,
0.3388957381248474,
-0.08729857206344604,
0.37700170278549194,... | |
various good other answers**
Both `mysqldump` and `mysql` commands accept options for setting connection details (and much more), like:
```none
mysqldump -u <user name> --password=<pwd> <original db> | mysql -u <user name> -p <new db>
```
Also, if the new database is not existing yet, you have to create it beforeha... | [
-0.09688617289066315,
0.03698085620999336,
0.1976342499256134,
0.22950755059719086,
0.04409747198224068,
0.013428726233541965,
0.23318728804588318,
-0.17892827093601227,
-0.2713746726512909,
-0.5762563943862915,
-0.27904435992240906,
0.44863203167915344,
-0.09203744679689407,
0.10678348690... | |
We have a web page with this general structure:
```
<div id="container">
<div id="basicSearch">...</div>
<div id="advancedSearch" style="display: none">...</div>
<div>
```
With this CSS:
```
#container { MARGIN: 0px auto; WIDTH: 970px }
#basicSearch { width:100% }
#advancedSearch{ width:100%;}
```
We have a l... | [
-0.12919558584690094,
0.02628961019217968,
0.7185565233230591,
-0.18473583459854126,
0.027236929163336754,
-0.1555616408586502,
0.32637155055999756,
-0.255555659532547,
0.005482385400682688,
-0.9729009866714478,
-0.22175191342830658,
0.6018378734588623,
-0.1572192758321762,
-0.096216529607... | |
too - except - when we toggle (ie: show/hide) from one div to the other, the page "moves" in Firefox. All the text in the "container" moves about 5px to the left/right when you toggle back and forth. Anyone know why?
What I ended up doing was this: `HTML { OVERFLOW-Y:SCROLL; OVERFLOW-X:HIDDEN; }`
Here's a good related... | [
0.247572124004364,
-0.027974184602499008,
1.107566475868225,
-0.06023839861154556,
0.20285895466804504,
-0.43525195121765137,
0.08870857954025269,
-0.26141905784606934,
-0.17094425857067108,
-0.24772140383720398,
-0.22560743987560272,
0.5821737051010132,
-0.5041602253913879,
0.108144968748... | |
Here's a little experiment I ran in an Oracle database (10g). Aside from (Oracle's) implementation convenience, I can't figure out why some insertions are accepted and others rejected.
```
create table sandbox(a number(10,0), b number(10,0));
create unique index sandbox_idx on sandbox(a,b);
insert into sandbox values... | [
-0.09574200958013535,
0.41489243507385254,
-0.19809682667255402,
0.014033057726919651,
-0.00040924499626271427,
0.05863400548696518,
0.27801504731178284,
-0.6234495639801025,
0.1320929080247879,
-0.44835996627807617,
0.24878428876399994,
0.26897644996643066,
-0.45489466190338135,
0.2331591... | |
values (null,null); -- accepted
```
Assuming that it makes sense to occasionally have some rows with some column values unknown, I can think of two possible use cases involving preventing duplicates:
1. I want to reject duplicates, but accept when any constrained column's value is unknown.
2. I want to reject... | [
0.00018539711891207844,
0.30645641684532166,
0.04743562266230583,
0.10348500311374664,
0.08608266711235046,
0.08800064027309418,
0.222347229719162,
-0.11014699190855026,
-0.2523628771305084,
-0.4048166275024414,
0.2734244763851166,
0.42135295271873474,
-0.4438631534576416,
0.16229787468910... | |
case (2) -- for example, have a special value for "unknown", and make the columns non-nullable. But I can't figure out how to get to use case (1).
In other words, how can I get Oracle to act like this?
```
create table sandbox(a number(10,0), b number(10,0));
create unique index sandbox_idx on sandbox(a,b);
insert i... | [
-0.334682822227478,
0.3633557856082916,
-0.030147744342684746,
-0.037729762494564056,
0.006967493332922459,
0.08558820933103561,
0.0371541790664196,
-0.7251296639442444,
0.3228677809238434,
-0.5097123384475708,
0.05531393736600876,
0.5966358780860901,
-0.5398529767990112,
0.057621475309133... | |
(null,1); -- accepted
insert into sandbox values (null,null); -- accepted
insert into sandbox values (null,null); -- accepted
```
```
create unique index sandbox_idx on sandbox
(case when a is null or b is null then null else a end,
case when a is null or b is null then null else b end);
```
A functional index! ... | [
-0.12992462515830994,
0.27441102266311646,
0.3156522512435913,
0.07533369958400726,
-0.42280474305152893,
0.012239024043083191,
0.4729308485984802,
-0.2471579760313034,
-0.029205825179815292,
-0.4642804265022278,
-0.06885642558336258,
0.45030999183654785,
-0.5433579087257385,
0.10285464674... | |
one row can have a particular value in a column?](https://stackoverflow.com/questions/182262/how-to-constrain-a-database-table-so-only-one-row-can-have-a-particular-value-in)
So go there and give Tony Andrews points too. :) | [
-0.47917258739471436,
0.3266145884990692,
0.22721949219703674,
-0.007086230907589197,
0.03748700022697449,
0.08811310678720474,
-0.040519535541534424,
-0.31288978457450867,
-0.6293871402740479,
-0.08721813559532166,
0.045068930834531784,
0.10490356385707855,
-0.5406965017318726,
-0.2117118... | |
Is it possible to use custom colors and background images in a UITabBar? I realize that Apple would like everyone to use the same blue and gray tab bars, but is there any way to customize this?
Second, even I were to create my own TabBar-like view controller, along with custom images, would this violate **Apple's Huma... | [
0.14013978838920593,
-0.14423426985740662,
0.4553704261779785,
0.061408452689647675,
-0.11331072449684143,
0.12479902058839798,
0.30751556158065796,
-0.3937390446662903,
-0.13185296952724457,
-0.5766920447349548,
-0.2935451865196228,
0.6743327975273132,
-0.6898115277290344,
0.1795968115329... | |
CGRect frame = CGRectMake(0.0, 0, self.view.bounds.size.width, 48);
UIView *v = [[UIView alloc] initWithFrame:frame];
[v setBackgroundColor:[[UIColor alloc] initWithRed:1.0
green:0.0 | [
0.07801400125026703,
-0.17564325034618378,
0.7068058848381042,
-0.14012585580348969,
-0.14625714719295502,
0.12376443296670914,
0.25303754210472107,
-0.40706491470336914,
-0.10404745489358902,
-0.3496653437614441,
-0.10905663669109344,
0.5352749228477478,
-0.3206278085708618,
0.02114818617... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.