text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Is there a way to do form filling with XPS documents in C#?
Here's how you do it.
First, you create an object (POCO is fine) that contains the form fields you wish to have the user fill in for your form. Next, you create your form as a FixedDocument. It should have Bindings that work against your POCO. Then you create... | [
0.3778953552246094,
-0.009960955008864403,
0.7629271745681763,
0.3110128939151764,
0.20283065736293793,
-0.4940072000026703,
-0.5991697907447815,
-0.17987476289272308,
-0.15958692133426666,
-0.3504876494407654,
-0.13706526160240173,
0.8914071917533875,
-0.1608852595090866,
-0.3012171685695... | |
object and set it as the DataContext of the FixedDocument. Create an XpsWriter and Write your FixedDocument to your output (file, printer, etc).
I'd give you code, but since I'm actually doing this (or something relatively similar) for work I don't think I can. I can tell you that the hardest part is dealing with the ... | [
0.39810702204704285,
0.0963471531867981,
0.7688887119293213,
0.30424731969833374,
-0.21922136843204498,
-0.23496770858764648,
-0.25040796399116516,
0.12888431549072266,
-0.018268713727593422,
-0.47119373083114624,
-0.05751413851976395,
0.9203502535820007,
-0.28115054965019226,
-0.056565258... | |
I have an html page that I am converting over to an asp .net page. This page contained a form that accesses an external website that I have no control over. There is some sample code below:
```
<asp:Content ID="sample" ContentPlaceHolderID="body" Runat="Server">
<form name="Subscribe" method="post" action="http://anex... | [
0.2061777263879776,
0.03389153629541397,
0.5278159379959106,
-0.21518073976039886,
-0.16275936365127563,
0.012474842369556427,
0.3200153410434723,
-0.45066386461257935,
-0.27105551958084106,
-0.9198641777038574,
0.12385288625955582,
0.31775256991386414,
-0.26502886414527893,
0.171815767884... | |
have encountered.
**If I leave it as is:**
When you click on the submit button you have a postback to the current page and not to the external page
**If simply convert everything over to be asp form controls and change the postback url:**
The id's become some convoluted "ctl00\_body\_ctl00" which the external page is... | [
0.20891903340816498,
0.10802672058343887,
0.5890249609947205,
0.04261304810643196,
-0.29787465929985046,
-0.2852133512496948,
0.4799165427684784,
-0.00009780365508049726,
-0.14162598550319672,
-0.7804078459739685,
-0.034617263823747635,
0.3977700173854828,
-0.08148930966854095,
0.297435343... | |
all my issues by simply doing the following:
1. Remove the extra form element i was adding.
2. Leave all controls as simply html controls, except for the submit button.
3. Replace the submit button with an asp .net button, and set the postback url.
The old code is as follows:
```
<asp:Content ID="sample" ContentPlac... | [
0.005133496597409248,
-0.03792262077331543,
0.948243260383606,
0.030101727694272995,
-0.17231445014476776,
-0.07852824777364731,
0.027165409177541733,
-0.5437169671058655,
-0.12018989771604538,
-0.6084205508232117,
0.026803316548466682,
0.2247229367494583,
-0.4178508222103119,
0.1194476410... | |
<input type="submit" name="submit" value="Subscribe" />
<asp:button postbackurl="http://anexternalwebsitehere.com/subscribe.asp" text="Subscribe" runat="server" />
</asp:Content>
```
This fixes any of the issues with invalid nested forms as there are none. It also addresses the issue of asp .net renaming the ... | [
-0.020082464441657066,
-0.2601132392883301,
0.49135395884513855,
-0.013684356585144997,
-0.3329659402370453,
-0.0343308262526989,
0.29836922883987427,
-0.4354887902736664,
-0.2983632981777191,
-0.5186159014701843,
-0.2871881127357483,
-0.08610757440328598,
-0.23653648793697357,
0.274394392... | |
I have a report that I currently allow the user to choose an output option (HTML or PDF) when they are supplying the report parameters (date range, filters, etc.).
I want to change the report such that it always does HTML and puts a link on the rendered HTML page so the user can grab the PDF if they want it.
How do I... | [
0.42704322934150696,
0.11547724157571793,
0.5688148736953735,
0.16711971163749695,
-0.06110018119215965,
-0.43775901198387146,
-0.06779879331588745,
-0.02961215004324913,
-0.27576059103012085,
-0.6849798560142517,
-0.0991634652018547,
0.3190138041973114,
-0.17120322585105896,
0.25981223583... | |
PDFs so I don't have a disk space issue. This is a lightly used web application so I'm not worried about having lots of old PDF files hanging around.
In IIS 6 Manager, go to Application Pools and get the properties of the Application Pool your web site is running under (if you're not sure, it's on the web site Properti... | [
-0.0948188304901123,
0.03421312943100929,
0.7050137519836426,
0.2985736131668091,
-0.20869919657707214,
-0.3481921851634979,
0.11502254754304886,
-0.3221927285194397,
-0.06832171231508255,
-0.859046995639801,
-0.11226166039705276,
0.7581512928009033,
-0.13996008038520813,
-0.00013033485447... | |
> Add and add "write" for the account listed for the app pool. | [
0.6140092015266418,
0.36255520582199097,
0.29981285333633423,
-0.10380397737026215,
0.15562619268894196,
-0.018920671194791794,
0.39713943004608154,
0.0273185633122921,
0.1190202534198761,
-0.7613463997840881,
-0.07807808369398117,
0.43719521164894104,
-0.1364406943321228,
-0.1986344903707... | |
I've got a GridView like below:
```
<asp:GridView ID="Results" runat="server" OnRowDataBound="Results_RowDataBound">
<EmptyDataTemplate>No results found</EmptyDataTemplate>
</asp:GridView>
Protected Sub Results_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
'do a bunch of work h... | [
0.4097033739089966,
-0.008626723662018776,
0.4616662859916687,
-0.11820872128009796,
-0.059686604887247086,
-0.06398125737905502,
0.18664409220218658,
-0.14488381147384644,
-0.17215901613235474,
-0.9026708602905273,
0.08312541991472244,
0.3660371005535126,
-0.01837943308055401,
0.318328797... | |
I have a div that is receiving content from an ajax call. Right now I am just doing this in the ajax callback handler:
```
function searchCallback(html) { $("#divSearchResults").html(html); }
```
This makes the content "pop" onto the page, and it's very abrupt. Is there a way to make the div gracefully resize, like ... | [
0.3225291967391968,
-0.10629825294017792,
0.56572026014328,
-0.134441077709198,
-0.24125541746616364,
-0.46170955896377563,
0.22976428270339966,
0.1134326308965683,
-0.10137978196144104,
-0.8350859880447388,
-0.18799662590026855,
0.5675404071807861,
-0.3342066705226898,
0.1372203528881073,... | |
I have an application that builds dynamic parameterized SQL queries. The following query returns an inner exception of "syntax error at or near "="...
I am thinking it is in the way that I am assigning the parameter to the column name but, I'm not sure. Code follows.
```
SELECT TOP 50 77 AS Repository, DocID, LastFi... | [
-0.020988063886761665,
-0.21147195994853973,
0.6016938090324402,
0.17851239442825317,
-0.14479157328605652,
0.21303589642047882,
-0.11237635463476181,
-0.10832393914461136,
-0.42880719900131226,
-0.5742328763008118,
0.06123661994934082,
0.5999535918235779,
-0.026429109275341034,
0.01742591... | |
"%" there (thanks to Joel Coehoorn's comment for pointing out the "%" I'd missed).
Or (in response to your comment) maybe:
```
WHERE C_CredCardSSN LIKE ''+@sp1
``` | [
0.253985732793808,
0.23986531794071198,
0.046907152980566025,
-0.020985664799809456,
0.002850024960935116,
-0.09250596910715103,
-0.17079119384288788,
0.24597248435020447,
-0.2506622076034546,
-0.16037440299987793,
-0.03316345438361168,
0.22108066082000732,
-0.09270618110895157,
0.08154139... | |
If you specify "Engine Default" when encrypting a SQL CE database, what specific type of encryption does it use? (Let's assume version 3.5)
Engine Default is AES128 (it's not compatible with Windows Mobile 2003 or Windows CE 4.2) | [
-0.4174809455871582,
0.15346941351890564,
0.481328547000885,
-0.03502345457673073,
0.07823055982589722,
-0.3562191128730774,
0.269525408744812,
-0.05750862881541252,
0.07772782444953918,
-0.36130213737487793,
-0.17821189761161804,
0.8779564499855042,
-0.4698759615421295,
0.0154853044077754... | |
I have a list of character range restrictions that I need to check a string against, but the `char` type in .NET is UTF-16 and therefore some characters become wacky (surrogate) pairs instead. Thus when enumerating all the `char`'s in a `string`, I don't get the 32-bit Unicode code points and some comparisons with high... | [
0.16206760704517365,
0.2349938303232193,
-0.16177763044834137,
0.020243825390934944,
-0.2665039896965027,
0.009413445368409157,
0.3842594623565674,
-0.05371464788913727,
-0.051247186958789825,
-0.521308422088623,
-0.12270893901586533,
0.33951157331466675,
-0.40206772089004517,
0.0574037432... | |
@Virtlink's answer for the correct one.**
```
static int[] ExtractScalars(string s)
{
if (!s.IsNormalized())
{
s = s.Normalize();
}
List<int> chars = new List<int>((s.Length * 3) / 2);
var ee = StringInfo.GetTextElementEnumerator(s);
while (ee.MoveNext())
{
string e = ee.GetTextElement();
... | [
0.11132651567459106,
-0.4499778151512146,
0.8840956687927246,
-0.32036298513412476,
-0.03430822864174843,
0.3459794223308563,
0.43965256214141846,
-0.5386084318161011,
-0.015194866806268692,
-0.6806414723396301,
-0.20633374154567719,
0.5968835949897766,
-0.4966629445552826,
-0.006800254806... | |
When performing a query where the attributes selected make up the components of an index does that result in a faster query? I would imagine that the query planner/optimizer could see that the requested columns could be satisfied completely by the index scan.
### Trivial Example
```
CREATE TABLE "liked" (
"id" BIGI... | [
0.2426280379295349,
0.005900140386074781,
0.6699250340461731,
0.28135794401168823,
-0.23158562183380127,
-0.16752471029758453,
0.30544137954711914,
-0.23094585537910461,
-0.18923543393611908,
-0.42099305987358093,
0.023936748504638672,
0.5741677284240723,
-0.37471312284469604,
0.1140030249... | |
"story" ("id") ON DELETE CASCADE;
SELECT storyid from liked where userid = 1;
```
With the query above there isn't any data external to what is already contained in the `liked_user` index so I would imagine there would be less actions if the query optimizer could infer that the resulting tuples could be satisfied by... | [
0.16873985528945923,
-0.19783005118370056,
0.3371698260307312,
0.19019679725170135,
-0.2569434940814972,
0.11138541251420975,
0.3378579318523407,
-0.1999681293964386,
-0.1210445836186409,
-0.4837085008621216,
-0.11898119002580643,
0.6465569734573364,
-0.21685031056404114,
0.255127191543579... | |
I'm running into an issue with a web application that is exhausting all available connections in the connection pool. I seem to recall some good tools used to diagnose all active connections, but am drawing a blank. What are some good options for diagnosing this issue?
[.Net memory profiler](http://memprofiler.com/) of... | [
-0.014597084373235703,
0.145211860537529,
0.2508210241794586,
0.3211554288864136,
0.07085022330284119,
-0.41205745935440063,
0.1772569864988327,
0.1763760894536972,
-0.44563084840774536,
-0.5483894944190979,
0.06719643622636795,
0.3803632855415344,
0.10104088485240936,
0.3185218572616577,
... | |
I have a the following static div:
```
<body>
<div id="div1"></div>
....
```
I want to add a div with id "div1\_1" within div1 dynamically by using dojo. How can I do it?
You can do it using just Dojo Base — no need to include anything, if you use the trunk or Dojo 1.3:
```
dojo.create("div", {id: "div1_1"}, "div... | [
0.44420868158340454,
-0.08210403472185135,
0.18970127403736115,
-0.1940203309059143,
-0.20484361052513123,
-0.33505895733833313,
0.11757358908653259,
-0.36839333176612854,
0.1151888519525528,
-0.5364030003547668,
-0.1671917587518692,
0.3791981339454651,
-0.35933589935302734,
-0.13399285078... | |
TVirtualTreeview is pretty much awesome, but many times when I close an window referenced by a DLL in my project that has a TVirtualTreeview in it I get the NTWaitForMultipleObjects error.
The problem is somewhere deep in TVirtualTreeview and other guys in the office have tried lots of stuff to fix it, I was just won... | [
0.4309099316596985,
-0.05698072165250778,
0.5799351334571838,
0.08905419707298279,
-0.021161427721381187,
-0.6711101531982422,
0.4896848201751709,
0.33846598863601685,
-0.12776035070419312,
-0.6729412078857422,
0.12241892516613007,
0.9353060126304626,
-0.10092654079198837,
0.24327956140041... | |
need to include anything, if you use the trunk or Dojo 1.3:
```
dojo.create("div", {id: "div1_1"}, "div1");
```
This line creates a div with id "div1\_1" and appends it to the element with id "div1". Obviously you can add more attributes and styles in one go — read all about it in [the documentation for dojo.create(... | [
0.4431435167789459,
-0.09138469398021698,
-0.008045060560107231,
-0.011252997443079948,
0.025308404117822647,
-0.41118258237838745,
0.00008362896915059537,
-0.35268840193748474,
0.023853091523051262,
-0.3894641101360321,
-0.30862119793891907,
0.48652681708335876,
-0.44164371490478516,
-0.4... | |
I have the following query
```
Select field1 as 'node1/field1',
field2 as 'node1/field2',
(Select field3 as 'child1/field3',
field4 as 'child1/field4'
From table2
FOR XML PATH(''),TYPE,Elements)
From Table1 FOR XML PATH('Root'),Elements
```
This produces:
```
<Root>
<node1>
<field1>da... | [
-0.40539854764938354,
-0.11156082898378372,
0.2518608272075653,
-0.1968771517276764,
0.28793737292289734,
0.43710893392562866,
-0.3288518786430359,
-0.3628905713558197,
0.11888213455677032,
-0.6361393928527832,
0.0004891030839644372,
0.04680948331952095,
-0.04511312022805214,
-0.0372799038... | |
node below.
```
<Root>
<node1>
<field1>data1</field1>
<field2>data2</field2>
<child1>
<field3>data3</field3>
<field4>data4</field4>
</child1>
<child1>
...
</node1>
<node1>
...
</Root>
```
I've tried putting node1 in the subquery PATH
```
FOR XML PATH('node1'),TYPE,Elem... | [
-0.28543820977211,
-0.0930568277835846,
0.32403409481048584,
-0.05977466329932213,
0.18842251598834991,
0.3216283917427063,
-0.13409170508384705,
-0.09691643714904785,
-0.10063688457012177,
-0.654778003692627,
0.0854339674115181,
0.05968835949897766,
-0.11047079414129257,
-0.08799805492162... | |
jni or [jna](http://jna.dev.java.net)), or exec a platform-specific command and read the output before falling back to list().length. On \*nix, you could exec `ls -1a | wc -l` (note - that's dash-one-a for the first command, and dash-lowercase-L for the second). Not sure what would be right on windows - perhaps just a ... | [
0.6013805866241455,
-0.49622222781181335,
-0.013648945838212967,
-0.012119804508984089,
-0.38240522146224976,
-0.07729508727788925,
0.12795588374137878,
0.0633135437965393,
-0.4687328040599823,
-0.7195476293563843,
0.16542968153953552,
0.5371116399765015,
-0.045843642204999924,
-0.01463941... | |
with Varkhan's answer myself. | [
0.2381410151720047,
0.18493811786174774,
-0.07974885404109955,
0.09574925154447556,
-0.2986733615398407,
0.3190554976463318,
0.32824191451072693,
-0.4598771631717682,
-0.1265784502029419,
-0.1393543928861618,
-0.05166199803352356,
0.2269737869501114,
-0.3784252107143402,
0.2699811756610870... | |
I cannot get this simple piece of code to compile without including the TestClass.cpp file explicitly in my main.cpp file. What am I doing wrong? Thanks in advance!
Here is the code:
TestClass.h
```
#ifndef TESTCLASS_H_
#define TESTCLASS_H_
class TestClass
{
public:
static int foo();
};
#endif
```
Te... | [
0.3730255961418152,
0.46166861057281494,
0.32793760299682617,
-0.09400526434183121,
0.19656094908714294,
0.04874315485358238,
0.6969068050384521,
-0.18623991310596466,
-0.1087094396352768,
-0.48484787344932556,
-0.05706942081451416,
0.43990758061408997,
-0.36302661895751953,
0.169070482254... | |
function definition:
```
g++ main.cpp TestClass.cpp -o main.app
```
Alternatively, compile each to their own object file, then tell the compiler to link them together (it will forward them to the linker)
```
g++ -c main.cpp -o main.o
g++ -c TestClass.cpp -o TestClass.o
g++ main.o TestClass.o -o main.app
``` | [
-0.16870439052581787,
0.12168551981449127,
0.2893703877925873,
-0.04198042303323746,
0.021761873736977577,
0.46981412172317505,
0.020279383286833763,
-0.4356250464916229,
-0.07220287621021271,
-0.45619428157806396,
-0.44495245814323425,
0.38364502787590027,
-0.581148087978363,
-0.275155961... | |
I've got two different exports of our CVS repository into git. They diverge at some point, and I'm doing some investigation into why. The development line goes back several years and over tens of thousands of commits.
At the beginning of the development line, the SHA1 IDs for each commit are identical, telling me that... | [
0.3385777175426483,
-0.011318274773657322,
0.28557249903678894,
0.05097388103604317,
-0.009732824750244617,
-0.05036179721355438,
-0.06718023866415024,
0.15262825787067413,
-0.2861350178718567,
-0.7351114153862,
0.5005430579185486,
0.39808177947998047,
-0.09293181449174881,
0.3310364484786... | |
from each repository and looking to see what's missing. Are there any good tools or techniques for doing this?
Why not just cat each repo's git log to its own file and compare? The difference closest to the bottom of the file is where they started diverging... | [
0.4790118932723999,
-0.27638858556747437,
0.17149478197097778,
0.3960004448890686,
-0.07536719739437103,
0.06716223061084747,
-0.03912389278411865,
0.004886251874268055,
-0.21645396947860718,
-0.35052260756492615,
0.18001118302345276,
0.3066308796405792,
0.07108940929174423,
0.109866224229... | |
Does SQL CE support clustered indexes?
MSDN says about the NONCLUSTERED argument:
```
This is the only supported index type
``` | [
-0.13632653653621674,
0.21588020026683807,
0.3600142002105713,
-0.04419711232185364,
0.01676086336374283,
-0.44062530994415283,
-0.3045993745326996,
0.23643703758716583,
-0.07156860083341599,
-0.267009437084198,
-0.17115812003612518,
0.12798520922660828,
-0.4031030535697937,
0.149440050125... | |
I have the following worksheet #1 (simplified for the question) of person and age:
```
Person Age
Bob 40
Brett 35
Brian 38
```
I would like to setup another worksheet where I have the following:
```
Person Age
Spot #1 FORMULA
```
The user will enter a name in Spot #1 and I want a formula/co... | [
0.5267379283905029,
0.684662401676178,
0.253320574760437,
-0.09900277853012085,
0.45314496755599976,
0.22196069359779358,
0.19696083664894104,
-0.4429360330104828,
-0.23132109642028809,
-0.43635329604148865,
0.31276369094848633,
0.31907957792282104,
0.2998484671115875,
0.2514895498752594,
... | |
use to do this?
Thanks for your help!
Use the [VLOOKUP](http://office.microsoft.com/en-us/excel/HP052093351033.aspx) function. This example below assumes that your data table is in Sheet1!A1:B4. Although I would recommend that you make your data table a [Named Range](http://office.microsoft.com/en-us/excel/HP052015361... | [
0.29257118701934814,
0.3659071624279022,
0.24809467792510986,
0.2482137531042099,
0.09684902429580688,
0.1786302924156189,
0.20856253802776337,
-0.30188611149787903,
-0.32376977801322937,
-0.7115051746368408,
-0.09003499150276184,
0.39112603664398193,
-0.10421791672706604,
0.04857335612177... | |
for example I have an ArrayList with 2 elements, but Eclipse Java debugger shows me 10 elements where 3-10 are just nulls. How to disable this "feature"?
details on image
<http://img.skitch.com/20090326-8si53ytntwy6tjgsur32qwtmm2.png>
P.S.: Mac OS 10.5.6, Java6, Eclipse 3.4.2
In the "Variables" view (as seen in yo... | [
0.08234064280986786,
-0.08117349445819855,
0.1881166696548462,
-0.16546805202960968,
-0.12208767235279083,
0.14850513637065887,
0.36737045645713806,
-0.4375268220901489,
-0.15069441497325897,
-0.628987193107605,
0.2686638832092285,
0.5257511734962463,
-0.3196110129356384,
-0.22991116344928... | |
I have an event listener that calls two animation actions. Unfortunately their starts are staggered by a small amount (e.g. the first in the function starts first).
Does anyone know a way to properly sync them up?
Here's my code:
```
$("#nav ul li a").hover(
function(){
$(lastBlock).children("div").anima... | [
-0.00064118392765522,
-0.33071303367614746,
0.2292993664741516,
-0.3118174076080322,
-0.10813542455434799,
0.5494543313980103,
0.2086848020553589,
-0.12523667514324188,
-0.1621958613395691,
-0.8544796109199524,
-0.1161583736538887,
0.31028005480766296,
-0.14275357127189636,
0.1009108126163... | |
become momentarily unequal, which looks a bit funky.
There was a recent disussion about this exact topic on the jQuery dev list. They created a [few test cases](http://jqueryjs.googlecode.com/svn/trunk/plugins/sync-animations/) you might wanna look at. [Specially the Johns test.](http://jqueryjs.googlecode.com/svn/trun... | [
0.2653869688510895,
-0.29843810200691223,
0.5779284834861755,
0.1936262547969818,
-0.1243588775396347,
-0.004641441628336906,
0.15395335853099823,
0.30267253518104553,
-0.42017409205436707,
-0.5689193606376648,
-0.20296138525009155,
0.44214728474617004,
0.19479289650917053,
0.3735876381397... | |
Is there a function built into Oracle that will return the highest possible date that may be inserted into a date field?
```
SELECT TO_DATE('31.12.9999 23:59:59', 'dd.mm.yyyy hh24:mi:ss')
FROM dual
```
Note that minimal date is much more simple:
```
SELECT TO_DATE(1, 'J')
FROM dual
``` | [
-0.19176939129829407,
0.05621347948908806,
0.051810476928949356,
-0.004526599310338497,
0.15142332017421722,
0.08943697065114975,
0.1801670640707016,
0.05636370927095413,
-0.06550808995962143,
-0.5179310441017151,
-0.2108558565378189,
0.5811766386032104,
-0.1712646484375,
-0.00602262327447... | |
This is my Action model:
```
class Action < ActiveRecord::Base
end
class Fold < Action
end
class Check < Action
end
class Call < Action
end
class Bet < Action
end
```
In another model, I have this
```
class Deal < ActiveRecord::Base
def Deal.parse_action(action_string)
case action_string
when "folds":... | [
-0.10733279585838318,
-0.3901776671409607,
0.2838762700557709,
-0.6431319713592529,
-0.04980693385004997,
-0.09596633166074753,
-0.027934210374951363,
-0.6733631491661072,
-0.4674306809902191,
-0.5884743928909302,
0.01935023069381714,
0.7449286580085754,
-0.35022804141044617,
-0.3663587868... | |
my unit tests, everything appears to work. But as soon as I start the web server in development mode, I get this:
```
NameError (uninitialized constant Deal::Fold):
app/models/deal.rb:115:in `parse_action'
...
```
Why does it think Fold exists within the namespace Deal? And why does this not happen in the test ... | [
0.42100048065185547,
0.09809698164463043,
0.11361086368560791,
-0.2569315433502197,
0.10124138742685318,
-0.10213284939527512,
0.24486206471920013,
-0.3645419776439667,
-0.1781695932149887,
-0.8227828145027161,
-0.044785622507333755,
0.4922243058681488,
0.09142954647541046,
0.0668810978531... | |
putting the requisite "require" statements in production code. | [
0.5427066087722778,
0.3284328281879425,
-0.15839141607284546,
-0.008172585628926754,
0.10987868160009384,
-0.339557409286499,
-0.026071880012750626,
-0.3703290522098541,
-0.11953779309988022,
-0.18380877375602722,
-0.23546935617923737,
0.5355859398841858,
-0.02564777247607708,
-0.374208986... | |
I'm using TinyMCE to provide users the capability of simple text formatting (bold, italics, lists) on a textarea form field. Everthing is working properly except that in Internet Explorer (8 but I've read it happens on earlier versions), when users type a URL (e.g. www.google.com) it is automatically converted into an ... | [
0.280472069978714,
0.13952474296092987,
0.7957900166511536,
-0.07121522724628448,
0.08952340483665466,
-0.3923146426677704,
0.17171889543533325,
-0.02499406598508358,
0.11952470988035202,
-0.8788972496986389,
0.03782038390636444,
0.8340854048728943,
-0.4504954516887665,
0.08193811029195786... | |
don't think convert\_urls is intended to affect the behavior I'm describing: <http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/convert_urls>
I tried:
```
function myCustomURLConverter(url, node, on_save) {
return url;
}
tinyMCE.init({
mode : "textareas",
theme : "simple",
urlconverter_callba... | [
0.34972143173217773,
-0.06182190775871277,
0.3031727373600006,
-0.04552273079752922,
-0.0010760572040453553,
0.08582127839326859,
0.17083877325057983,
0.24725328385829926,
-0.4147479832172394,
-0.3161504566669464,
-0.09243058413267136,
0.47856131196022034,
-0.35560768842697144,
0.106443256... | |
The TinyMCE code-base is pretty big and difficult to trace so I was hoping someone could help me isolate the issue a bit.
Doesn't seem to be a way to disable that in IE. It seems to be a 'feature' and it occurs on FCKEditor too. A couple alternatives, remove the element out of the valid elements. <http://wiki.moxiecode... | [
0.3778240382671356,
0.052477218210697174,
0.22424383461475372,
0.098954938352108,
0.2470531165599823,
-0.37678954005241394,
0.2739449143409729,
-0.07897626608610153,
-0.1512286365032196,
-0.2940596640110016,
0.007221028208732605,
0.4343204200267792,
-0.44317683577537537,
0.0457456409931182... | |
Finding dead code in Delphi is usually real simple: just compile and then scan for routines missing their blue dots. The smart linker's very good about tracking them down, most of the time.
Problem is, this doesn't work for event handlers because they're published methods, which (theoretically) could be invoked via RT... | [
0.4625592529773712,
0.03689713031053543,
0.0044088163413107395,
0.3954225182533264,
0.03396349400281906,
-0.11234834790229797,
0.1152263954281807,
0.24128057062625885,
-0.3674963414669037,
-0.5656291842460632,
-0.022414885461330414,
0.4861227571964264,
-0.08452991396188736,
-0.087942197918... | |
by the form's DFM and delete them. Is there any easy way to do this? A plug-in IDE Expert, for example?
I dont think this is possible from an automatic point of view. event handlers are activated when a particular event occurs inside an object. That the even is not triggered in a given run doesnt mean that there isnt a... | [
0.1443820297718048,
-0.295950710773468,
0.10112615674734116,
0.14117763936519623,
-0.05808168649673462,
-0.5542290210723877,
0.4766455292701721,
-0.30379366874694824,
-0.20921917259693146,
-0.4562043249607086,
-0.24814055860042572,
0.4950862228870392,
-0.44814333319664,
-0.3444870114326477... | |
a compile if the signature was incorrect.
---
however, you can probably find all the abandoned handlers by looking for all the methods that find have a (Sender: TObject) method signature and comparing that his of methods to those in the .dfm (make sure you save it as text if you are working with an older version of d... | [
0.4252856373786926,
-0.0564199797809124,
0.27365642786026,
0.1652001589536667,
-0.19827400147914886,
-0.509102463722229,
0.3744277060031891,
-0.531583845615387,
-0.054352376610040665,
-0.5273677706718445,
-0.03426892310380936,
0.5499200224876404,
-0.3596290946006775,
-0.06850773096084595,
... | |
couple of loops and some string manipulations. my guess is about 20 minutes of work to get something you can live with . | [
0.8153576850891113,
-0.12552112340927124,
-0.18635804951190948,
0.24434010684490204,
0.22139491140842438,
0.20499931275844574,
0.580226480960846,
0.000988238025456667,
-0.1660245954990387,
-0.2117757648229599,
0.5948491096496582,
0.1522994488477707,
0.13440380990505219,
-0.2033666521310806... | |
I'm wondering if anyone knows if it's possible in XAML to have a ListBox whose DataTemplate defines the ListBoxItem as a 3d element. Something along the lines of:
```
<ListBox x:Name="lst3D" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<ListBox.ItemTemplate>
... | [
0.19274777173995972,
-0.03732284903526306,
0.5620442032814026,
-0.22517381608486176,
-0.12163417041301727,
0.05336683616042137,
-0.17356671392917633,
0.003034901572391391,
-0.22463670372962952,
-0.6760544180870056,
-0.1109628975391388,
0.22602365911006927,
-0.22268465161323547,
0.113052703... | |
<Viewport3D>
<Viewport2DVisual3D>
<Viewport2DVisual3D.Transform> | [
-0.027340508997440338,
-0.5756747722625732,
0.4723852574825287,
-0.14548808336257935,
-0.2612666189670563,
0.07102066278457642,
0.37451642751693726,
-0.40948036313056946,
0.02418382465839386,
-1.009158968925476,
-0.29339009523391724,
0.6027928590774536,
-0.3170357942581177,
-0.100057661533... | |
<RotateTransform3D>
<RotateTransform3D.Rotation>
<AxisAngleRotation3D Angle="40" Axis="0, 1, 0" /> | [
-0.23845219612121582,
-0.28864866495132446,
0.7873835563659668,
-0.038643620908260345,
-0.18909624218940735,
0.336486279964447,
-0.10848771035671234,
0.12129264324903488,
-0.13617032766342163,
-0.4690632224082947,
0.12721960246562958,
0.3317955732345581,
-0.18813630938529968,
0.12765574455... | |
</RotateTransform3D.Rotation>
</RotateTransform3D>
</Viewport2DVisual3D.Transform> | [
-0.1175622045993805,
-0.44482770562171936,
0.7374796271324158,
-0.16058996319770813,
-0.24127240478992462,
0.11292392760515213,
-0.005698241759091616,
-0.14965398609638214,
-0.05349043011665344,
-0.762351393699646,
-0.1681986004114151,
0.6068200469017029,
-0.1578262746334076,
0.11649857461... | |
<Viewport2DVisual3D.Geometry>
<MeshGeometry3D Positions="-1,1,0 -1,-1,0 1,-1,0 1,1,0"
TextureCoordinates="0,0 0,1 1,1 1,0" | [
-0.5658698678016663,
-0.18423178791999817,
0.7251366972923279,
-0.047008216381073,
-0.1605110764503479,
0.4868312478065491,
0.028022045269608498,
-0.07486645877361298,
0.08882589638233185,
-0.8400900363922119,
0.2127087414264679,
0.2837147116661072,
-0.07051894068717957,
0.1557936072349548... | |
TriangleIndices="0 1 2 0 2 3"/>
</Viewport2DVisual3D.Geometry>
<Viewport2DVisual3D.Material> | [
-0.09358923882246017,
0.016941051930189133,
0.3519272804260254,
0.09713335335254669,
-0.49635669589042664,
0.3080793023109436,
0.13860662281513214,
-0.3470968008041382,
-0.400203138589859,
-0.816375195980072,
0.03729016333818436,
0.21031102538108826,
-0.2764202952384949,
-0.064366906881332... | |
<DiffuseMaterial Viewport2DVisual3D.IsVisualHostMaterial="True" Brush="AliceBlue"/>
</Viewport2DVisual3D.Material>
<Label>Hello, 3D</Label> // we'd like to | [
0.14081570506095886,
-0.11935098469257355,
0.6759887337684631,
-0.07970688492059708,
-0.24662820994853973,
-0.09626320004463196,
0.0834006518125534,
-0.26038697361946106,
0.16805005073547363,
-0.6228459477424622,
-0.020415611565113068,
0.25756996870040894,
-0.060861438512802124,
-0.0829242... | |
databind controls like this one
</Viewport2DVisual3D>
</Viewport3D>
</DataTemplate>
</ListBox.ItemTemplate> | [
-0.3442581593990326,
-0.6098862290382385,
0.4598901569843292,
0.275775671005249,
-0.36448755860328674,
-0.10468297451734543,
-0.1892106831073761,
-0.5853058099746704,
-0.2508513033390045,
-0.6960978507995605,
0.11467581987380981,
0.3963373601436615,
-0.42499029636383057,
0.1053623482584953... | |
<ListBoxItem />
<ListBoxItem />
<ListBoxItem />
</ListBox>
```
Anyone seen this sort of thing done/have any advice?
Greatly appreciated,
bv
If you are looking for software projects, look up gputils - is the open source assembler and linker, and sdcc - an open source c/c++... | [
0.7294923663139343,
0.5272674560546875,
0.029010316357016563,
0.005566990468651056,
-0.42369434237480164,
-0.3873930871486664,
-0.08096357434988022,
0.19904251396656036,
-0.22416280210018158,
-0.6805777549743652,
-0.15830175578594208,
0.4861909747123718,
-0.12025018036365509,
0.16956175863... | |
projects, there is nothing specific that comes to mind. However, do visit the piclist to pick up code snippets and learn from examples. Some of the best PIC coders contribute there.
If you are looking for hardware projects, there are verilog PIC16/18 cores on opencores but no PIC24 cores yet.
So, there's plenty to s... | [
0.6981606483459473,
0.0571790412068367,
-0.14626164734363556,
0.5784488916397095,
-0.041395142674446106,
0.19475507736206055,
-0.2172815352678299,
0.45989856123924255,
-0.6860346794128418,
-0.7186489701271057,
0.19223928451538086,
0.40051090717315674,
0.2971176207065582,
0.273695707321167,... | |
We are using Replication and seem to be having endless problems with it. It seems to shut down for unknown reasons. It needs to be shut down to remove a column and only starts back up half the time. Does anyone have any advice on how to properly use replication or some alternatives to it.
Edit:
We are using Sql Serv... | [
0.33257168531417847,
0.20081761479377747,
0.17870554327964783,
0.23237821459770203,
-0.3415461480617523,
-0.37851616740226746,
0.0754707008600235,
0.12324261665344238,
-0.5354214310646057,
-0.2376948744058609,
0.4290509521961212,
0.5141003727912903,
-0.43183332681655884,
0.2605260014533996... | |
more useful, but you also can set up log shipping with secondary server in STAND BY mode (especially if you need significant part of your data for reports), then you can run reports on secondary server. You just have to remember that log shipping will interfere with transaction log backups, so you have to use the same ... | [
0.22483229637145996,
-0.18482744693756104,
0.29651200771331787,
0.49470722675323486,
0.005305032711476088,
-0.4857238531112671,
-0.051063451915979385,
0.07200129330158234,
-0.517465353012085,
-0.5396407842636108,
0.08030455559492111,
0.7818703055381775,
-0.17262105643749237,
0.138805046677... | |
When Traversing a Tree/Graph what is the difference between Breadth First and Depth first? Any coding or pseudocode examples would be great.
These two terms differentiate between two different ways of walking a tree.
It is probably easiest just to exhibit the difference. Consider the tree:
```
A
/ \
B C
/... | [
0.0034521915949881077,
-0.28471311926841736,
0.26437968015670776,
0.03355405107140541,
-0.46590280532836914,
0.10662557929754257,
0.2946673333644867,
-0.10172463953495026,
-0.6445724368095398,
-0.848953127861023,
-0.10529690980911255,
0.1486252397298813,
-0.15163737535476685,
0.02647079341... | |
the node in this order
```
A, B, C, D, E, F
```
Here we work all the way **across** each level before going down.
(Note that there is some ambiguity in the traversal orders, and I've cheated to maintain the "reading" order at each level of the tree. In either case I could get to B before or after C, and likewise I ... | [
-0.2591499090194702,
-0.0028744053561240435,
0.45139241218566895,
0.014273782260715961,
0.13633519411087036,
0.13475807011127472,
0.27012163400650024,
-0.17060503363609314,
-0.3283766806125641,
-0.79831463098526,
-0.12943482398986816,
0.2394922971725464,
-0.1333693265914917,
0.263015449047... | |
Get the "next" node from Container
Store all the children of N in Container
Do some work on N
```
The difference between the two traversal orders lies in the choice of `Container`.
* For **depth first** use a stack. (The recursive implementation uses the call-stack...)
* For **breadth-first** use a queue.
--... | [
-0.5727478265762329,
-0.3122203052043915,
0.3602796494960785,
-0.10492858290672302,
0.25929832458496094,
0.09994842857122421,
-0.0287739597260952,
-0.018159784376621246,
-0.3621213436126709,
-0.7909030914306641,
-0.312121719121933,
0.1383054405450821,
-0.16495531797409058,
0.27329286932945... | |
children, so it is guaranteed to end for
finite, acyclic graphs.
---
At this point, I've still cheated a little. With a little cleverness you can also *work-on* the nodes in this order:
```
D, B, E, F, C, A
```
which is a variation of depth-first, where I don't do the work at each node until I'm walking back up th... | [
0.005372094921767712,
0.02983311377465725,
0.3159560263156891,
0.2127436101436615,
0.21277117729187012,
0.23284025490283966,
0.4777218699455261,
-0.013149325735867023,
-0.5391273498535156,
-0.6408337354660034,
-0.1584605723619461,
0.36548009514808655,
-0.18593570590019226,
0.11473862081766... | |
stack, but I'll leave it as an exercise. | [
0.269112765789032,
0.35984405875205994,
0.16670922935009003,
0.051101986318826675,
0.14589187502861023,
-0.18570761382579803,
0.1203441396355629,
-0.055398937314748764,
-0.33343788981437683,
0.007294617593288422,
0.18605099618434906,
0.5874631404876709,
0.03989129140973091,
-0.306981563568... | |
How can I debug a specific rowtest?
I'm using Visual Studio and nUnit. [TDD.NET](http://www.testdriven.net/) addon is great but it doesn't let me to debug a specific rowtest, before coming to my test I have to go through all previous tests.
I know there are some commercial solutions for this. I'm looking for a free ... | [
0.4373934268951416,
0.15303266048431396,
-0.015902753919363022,
0.12596574425697327,
-0.06710204482078552,
-0.0858268067240715,
0.3164288103580475,
-0.222284734249115,
0.061779510229825974,
-0.746932864189148,
0.11767300218343735,
0.6107060313224792,
-0.1732570081949234,
0.3628110885620117... | |
"x" and "y" and I've got some tests with 10+ rows.
**2 not good enough solutions :**
* Using conditional breakpoints as a work around.
* Launching debug mode with nUnit and running that rowtest from the nUnit GUI. But this takes quite a bit time, and sometimes I don't want to make my unit test DLL as startup project.... | [
0.12794747948646545,
0.09309827536344528,
0.022789232432842255,
0.018208656460046768,
-0.39401257038116455,
0.08822331577539444,
0.5965143442153931,
-0.09510843455791473,
-0.0758819431066513,
-0.5680057406425476,
0.01678202860057354,
0.4716152846813202,
-0.06374300271272659,
-0.22159822285... | |
F
```
A **depth** first traversal would visit the nodes in this order
```
A, B, D, C, E, F
```
Notice that you go all the way **down** one leg before moving on.
A **breadth** first traversal would visit the node in this order
```
A, B, C, D, E, F
```
Here we work all the way **across** each level before going ... | [
-0.009042654186487198,
-0.06882064044475555,
0.5437681078910828,
-0.09435873478651047,
-0.1835053265094757,
0.32902225852012634,
0.5169811844825745,
-0.2623278498649597,
-0.5410521626472473,
-0.7766528129577637,
-0.11234729737043381,
0.24838200211524963,
-0.061098527163267136,
-0.156240835... | |
after F. This may or may not matter, depends on you application...)
---
Both kinds of traversal can be achieved with the pseudocode:
```
Store the root node in Container
While (there are nodes in Container)
N = Get the "next" node from Container
Store all the children of N in Container
Do some work on N
``... | [
-0.44028207659721375,
-0.30155882239341736,
0.3023618757724762,
0.07744288444519043,
0.13388924300670624,
0.1669706255197525,
0.05260969698429108,
-0.15283678472042084,
-0.31085777282714844,
-0.6144046783447266,
-0.24795959889888763,
0.3706260919570923,
-0.2657525837421417,
0.0874640420079... | |
Foreach child of Node
ProcessNode(child)
/* Alternate time to work on the payload Node (see below) */
```
The recursion ends when you reach a node that has no children, so it is guaranteed to end for
finite, acyclic graphs.
---
At this point, I've still cheated a little. With a little cleverness you can al... | [
-0.025325264781713486,
0.18026456236839294,
0.4306603968143463,
-0.0048490772023797035,
0.33698415756225586,
0.4547656178474426,
0.29707464575767517,
-0.26256170868873596,
-0.2584829032421112,
-0.6509041786193848,
-0.04969478026032448,
0.2617970108985901,
-0.004339164588600397,
0.266154497... | |
way down to find their children.
This traversal is fairly natural in the recursive implementation (use the "Alternate time" line above instead of the first "Work" line), and not *too* hard if you use a explicit stack, but I'll leave it as an exercise. | [
-0.1659700572490692,
-0.2780681550502777,
0.09128212928771973,
0.20909537374973297,
0.45970624685287476,
0.17869436740875244,
0.5730535984039307,
0.13940508663654327,
-0.548767626285553,
-0.534126877784729,
-0.48711952567100525,
0.13028556108474731,
0.05521220713853836,
-0.2094011604785919... | |
I am working on an "optimization" on my application and I am trying to understand the output that rails (version 2.2.2) gives at the end of the render.
Here is the "old" way:
```
Rendered user/_old_log (25.7ms)
Completed in 466ms (View: 195, DB: 8) | 200 OK
```
And the "new" way:
```
Rendered user/_new_log (48.6ms... | [
-0.11253626644611359,
0.13813994824886322,
0.6018977165222168,
-0.16246303915977478,
-0.2765252888202667,
0.41032156348228455,
0.5634037256240845,
-0.29130053520202637,
-0.18534089624881744,
-1.1372332572937012,
0.023447703570127487,
0.7351490259170532,
-0.06020722910761833,
-0.20209996402... | |
... but I would like the page to respond as quickly as possible even though it is a "slow" page.
So, my question is, what do the numbers represent/mean? In other words, which way was the faster method and why?
This:
```
Rendered user/_old_log (25.7ms)
```
is the time to render *just* the `_old_log` partial template... | [
0.056881166994571686,
-0.029156146571040154,
0.7723785042762756,
-0.05025659501552582,
-0.11536174267530441,
0.44582122564315796,
0.6291760206222534,
-0.7263994812965393,
-0.3701004981994629,
-0.6476985216140747,
-0.39026859402656555,
0.39484021067619324,
0.09135294705629349,
-0.1284999698... | |
view (partials & everything) and all database requests, respectively, and come from [ActionController::LogSubscriber](http://api.rubyonrails.org/v5.1/classes/ActionController/LogSubscriber.html) as well. | [
0.2836146354675293,
-0.21220315992832184,
0.5519799590110779,
0.15983636677265167,
-0.1195957362651825,
0.28785037994384766,
0.34467053413391113,
-0.05627468600869179,
-0.35079121589660645,
-0.33420154452323914,
-0.5270780324935913,
0.4170605540275574,
-0.2999047040939331,
-0.0893886759877... | |
I have an application consisting of an ASP.NET web application, a couple of Windows services, and a SQL Server 2005 database. This application is replicated at several sites, so that each site has a server containing all parts (web app, services, & DB). Currently the process for deploying updates is this:
Database
---... | [
0.3043229877948761,
0.2106744796037674,
0.6286455988883972,
-0.012655929662287235,
-0.10251597315073013,
0.053758732974529266,
0.12598463892936707,
-0.3474039137363434,
0.0028481134213507175,
-0.7485122680664062,
0.03223298862576485,
0.3477385640144348,
-0.02320239134132862,
0.171768262982... | |
a site.
5. Remote desktop into that site to unzip files.
6. Manually modify web.config when necessary.
7. Repeat 4-6 for each site.
Windows Services
----------------
1. Build project in Visual Studio.
2. Zip rebuilt binaries.
3. Copy zip file to a site.
4. Remote desktop into that site.
5. Stop the service.
6. Uninst... | [
0.5696810483932495,
0.14455656707286835,
0.8323715329170227,
-0.18283747136592865,
0.19517415761947632,
-0.20155541598796844,
0.8341414928436279,
0.01107789482921362,
-0.28985464572906494,
-0.8070994019508362,
-0.4965071678161621,
0.6323804259300232,
-0.2057073563337326,
0.3307400345802307... | |
am looking for suggestions on how to automate this process. I have started looking into learning MSBuild for merging configurations and copying files out to my servers, but I'm not sure how far it will take me. Thanks.
Take any script language you are comfortable with (looks like even .bat would work for you) and get [... | [
0.44400471448898315,
-0.10170519351959229,
0.3615526556968689,
0.34679800271987915,
-0.011128316633403301,
-0.04753807559609413,
0.17961949110031128,
0.2173994928598404,
-0.20429426431655884,
-1.156943917274475,
-0.2357690930366516,
0.37999987602233887,
-0.10809502005577087,
-0.02306278049... | |
10. | [
-0.08822448551654816,
0.18770866096019745,
-0.09022785723209381,
0.13894987106323242,
-0.05078039690852165,
0.20117522776126862,
-0.064805768430233,
0.029661614447832108,
-0.04598407819867134,
-0.6242819428443909,
-0.3719773590564728,
0.2594887912273407,
-0.035407379269599915,
0.0416744239... | |
I need a linq expression that will find the nearest numbers (both "greater or equal" and "less or equal") in an array for a given number.
E.g.
Array - 1, 33, 66, 100
If I have the number 10, I want to return 1 and 33. If I have the number 70, I want to return 66 and 100. If I have the number 33, I want to return 33 a... | [
0.10268785804510117,
0.1723410189151764,
0.46315956115722656,
0.04369473084807396,
-0.09726420789957047,
0.20750939846038818,
-0.03127020224928856,
-0.44378232955932617,
-0.041634418070316315,
-0.4534794092178345,
0.11903193593025208,
0.4843929708003998,
-0.25091660022735596,
-0.1367933601... | |
searching for a *single* linq expression to achieve this, but perhaps I was being a little hopeful :)
Similar to Andrews answer, but I prefer doing the filter before the OrderBy, which reduces the amount of data the query has to run through. Also OrderBy.First is the same as Min, and OrderByDescending.First is the same... | [
-0.04127522185444832,
-0.29014381766319275,
0.5384755730628967,
-0.27253827452659607,
-0.03533390536904335,
0.07625686377286911,
0.41913414001464844,
-0.47274529933929443,
-0.10620613396167755,
-0.5435201525688171,
-0.18058012425899506,
0.7673317790031433,
-0.34235647320747375,
-0.12215772... | |
How can I get the last value of an ArrayList?
The following is part of the [`List`](http://java.sun.com/javase/6/docs/api/java/util/List.html) interface (which ArrayList implements):
```
E e = list.get(list.size() - 1);
```
`E` is the element type. If the list is empty, `get` throws an [`IndexOutOfBoundsException`](... | [
0.29640525579452515,
-0.14699311554431915,
0.38451021909713745,
-0.2329513281583786,
0.0257264357060194,
-0.05321362242102623,
0.2423701286315918,
-0.5031558275222778,
-0.24007876217365265,
-0.5178490281105042,
-0.0902056097984314,
0.39675021171569824,
-0.1726137101650238,
0.11174956709146... | |
I'm pulling my hair out on this one. I'm trying to implement a ADO.Net Data Service that uses a Linq to SQL data context. I thought I had it working, but the URL for one of my tables always gets an exception.
The obvious difference between the table that isn't working and the ones that are, is that the one getting the... | [
0.26707544922828674,
0.21193167567253113,
0.3264080584049225,
0.17398428916931152,
-0.01005792897194624,
-0.3206901550292969,
0.14719024300575256,
0.049377452582120895,
-0.11439980566501617,
-0.3563915193080902,
0.08287642151117325,
0.48669978976249695,
-0.38063567876815796,
0.281934410333... | |
if I were.)
It is a very simple table:
Name: UserDetails :: | Guid UserID | int GroupID (foreign key) | string Name |
Anybody know if there's a trick to getting Guids to work? Or if maybe this is an entirely different problem?
Here's the exception from the service:
An error occurred while processing this request.
I... | [
0.12346232682466507,
-0.03439809009432793,
0.5439053773880005,
-0.19475838541984558,
0.011551977135241032,
0.12900085747241974,
0.4125469923019409,
-0.4086819589138031,
-0.12469471991062164,
-0.3967321813106537,
-0.10251621901988983,
0.6735361814498901,
-0.40119341015815735,
0.244455277919... | |
Object customObject, ResourceType resourceType, Uri absoluteUri, String relativeUri, SyndicationItem item, DictionaryContent content)
at System.Data.Services.Serializers.SyndicationSerializer.WriteComplexObjectValue(Object element, String propertyName, ResourceType expectedType, String relativeUri, DictionaryContent ... | [
-0.23597612977027893,
-0.12549370527267456,
0.7455976009368896,
-0.053011029958724976,
-0.20265455543994904,
0.45341628789901733,
0.32807907462120056,
-0.2725355327129364,
-0.36072850227355957,
-0.4430842399597168,
-0.22974784672260284,
0.8420800566673279,
-0.15404003858566284,
0.372051954... | |
a Guid value at all.
I had to add an [IgnoreProperties("User")] to my UserDetail class in Linq to SQL.
The "User" Property is a relation to the "User" class that holds the ASP.Net Memberships user informations (actual table name is aspnet\_Users). I have the Linq to SQL "User" class ignored by the data service so I t... | [
-0.08587923645973206,
0.09596896171569824,
0.5358830690383911,
0.048895131796598434,
-0.08678730577230453,
-0.19452163577079773,
0.1511991173028946,
-0.005765510722994804,
-0.3035418689250946,
-0.43444958329200745,
0.17384839057922363,
0.5133092403411865,
-0.28881600499153137,
0.2037012577... | |
get an exception complaining about the problem property. For whatever reason, it didn't give me a problem with this one property though, so I wasn't aware anything was wrong. And as you can see above, when I did get an exception, it wasn't useful.
So to any others using Linq To SQL with ADO.Net Data Services, this is ... | [
0.2153920978307724,
0.2119976282119751,
0.020832110196352005,
0.12212879955768585,
-0.029694462195038795,
-0.473114013671875,
0.4128410518169403,
0.06407579779624939,
-0.3842514455318451,
-0.32316040992736816,
-0.008938579820096493,
0.5847399234771729,
-0.48292192816734314,
0.1066107079386... | |
I have a .xsd file which I use to generate code with the xsd.exe tool from Visual Studio.
Some class members are Guids and the xsd.exe tool gives 2 warnings:
Namespace '<http://microsoft.com/wsdl/types/>' is not available to be referenced in this schema.
Type '<http://microsoft.com/wsdl/types/:guid>' is not declared.
... | [
0.44437697529792786,
0.33899396657943726,
0.3446545898914337,
-0.08581843227148056,
-0.2527288496494293,
-0.22750356793403625,
0.23071302473545074,
-0.038912005722522736,
-0.21674273908138275,
-0.6433811783790588,
-0.08402786403894424,
0.40173694491386414,
-0.4607622027397156,
0.4052540957... | |
existed. It seems that the xsd.exe tool knows the Guid definition internally, but it cannot validate the xsd schema.
As [boj](https://stackoverflow.com/users/72563/boj) pointed out, the only way to validate the schema with Guids in it, is to (re)define that type in a schema. The trick here is to add the Guid type to t... | [
0.0949547067284584,
0.17622515559196472,
0.702741265296936,
0.03597790747880936,
-0.3689426779747009,
-0.21611489355564117,
0.004097544588148594,
-0.19928844273090363,
-0.15628990530967712,
-0.6175488829612732,
0.10010611265897751,
0.5270305275917053,
-0.3924562335014343,
0.328152179718017... | |
<xs:documentation xml:lang="en">
The representation of a GUID, generally the id of an element.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}... | [
0.06834828853607178,
-0.09449227154254913,
0.6497388482093811,
-0.04729178175330162,
-0.1534765064716339,
0.12707513570785522,
-0.10389820486307144,
-0.6689617037773132,
-0.07289329916238785,
-0.7969005107879639,
-0.17083783447742462,
0.3428218364715576,
-0.36296284198760986,
-0.2492159754... | |
and this new xsd file:
```
xsd.exe myschema.xsd guid.xsd /c
``` | [
0.09656400978565216,
0.28672993183135986,
0.7184433937072754,
0.22089926898479462,
0.03253300115466118,
-0.3283425569534302,
-0.3388577401638031,
0.20643256604671478,
-0.24945420026779175,
-0.8151500821113586,
-0.10391223430633545,
0.4170529842376709,
-0.2611289918422699,
0.387748926877975... | |
The following code throws an exception in Powershell V1 (Excel 2007):
```
$E = New-Object -COM "Excel.Application"
$E.Visible = $True
$wb = $E.Workbooks.Add() #<<<Exception here
```
The error says that the format might be old or that the type library is not valid (translated from Spanish). A similar script for Word ... | [
-0.07617458701133728,
0.22735142707824707,
0.6513933539390564,
-0.0008032573969103396,
0.0156414695084095,
-0.24951355159282684,
0.2705114185810089,
-0.1543925702571869,
-0.1716623604297638,
-0.49764445424079895,
-0.3775739371776581,
0.5982095003128052,
-0.35973286628723145,
0.163556069135... | |
$books, $null, $ci)
```
From the same article:
> When you use one of these workarounds for a computer where the regional settings
> do not match the current language version of Office, you should be familiar with
> how Excel behaves and how Excel will interpret data that might be formatted for
> a specific locale... | [
0.14157992601394653,
-0.041390061378479004,
0.17700396478176117,
0.2233240306377411,
0.2515614628791809,
-0.228157177567482,
0.2757737934589386,
0.25796404480934143,
-0.21268074214458466,
-0.6740062236785889,
-0.48562389612197876,
0.3126295506954193,
-0.049057602882385254,
0.07753928750753... | |
I'm making a very simple html webpage consisting only of text. How can I narrow the single column to make it easier for the reader to read?
I would like the body of text to be roughly in the center of the page and left aligned, with margins of white space (roughly equal) to left and right.
By putting the text inside a... | [
0.1440572291612625,
0.13673222064971924,
0.7816554307937622,
-0.12712541222572327,
-0.30357807874679565,
0.09241819381713867,
-0.07621201872825623,
-0.203050434589386,
0.04087170213460922,
-0.6771864295005798,
-0.13166047632694244,
0.3621346950531006,
0.04794572666287422,
-0.17442600429058... | |
line which is much longer.
</DIV>
``` | [
0.2477324903011322,
-0.3240512013435364,
0.6467055678367615,
-0.2026074081659317,
-0.10835041850805283,
0.13292063772678375,
0.36112359166145325,
0.3527466952800751,
-0.21992450952529907,
-0.3398098051548004,
-0.29836636781692505,
-0.007304419297724962,
-0.12248890101909637,
0.059521578252... | |
I am watching the ASP.NET learn video on <http://www.asp.net/learn/3.5-videos/video-13.aspx>
and it is showing you can place controls on a page using Absolute positioning. I am just wondering if this is a best practice or should I avoid Absolute positioning? It seems like a nice, easy feature, but there must be some re... | [
0.05670887604355812,
-0.3197593688964844,
0.5994287729263306,
0.19997979700565338,
0.09061101078987122,
-0.1022704541683197,
0.0027814735658466816,
-0.1683296114206314,
-0.015175455249845982,
-0.7408862709999084,
0.19647783041000366,
0.6303606033325195,
0.16555480659008026,
-0.237783938646... | |
require you to reposition all of the elements, but in relative positioning, you would only need to change one value, and all the other elements would adjust accordingly. | [
0.08458125591278076,
-0.015731515362858772,
0.22675904631614685,
-0.041467662900686264,
0.2822970449924469,
0.32234612107276917,
0.10966001451015472,
-0.6225350499153137,
-0.10805144160985947,
-0.4754568934440613,
-0.26897910237312317,
0.41703537106513977,
-0.2323271930217743,
-0.262899398... | |
I'm trying to automate testing of the code... well, written without testing in mind (no IDs on many elements, and a lot of elements with the same class names). I would appreciate any help (questions are below the code):
```
<div id="author-taxonomies" class="menu-opened menu-hover-opened-inactive" onmouseover="styleMe... | [
0.1166476160287857,
0.20722121000289917,
0.18266695737838745,
-0.006915916223078966,
-0.08513116836547852,
-0.1490614116191864,
0.22571425139904022,
-0.23681539297103882,
-0.10135765373706818,
-0.6701728701591492,
-0.23638442158699036,
0.3999963402748108,
-0.20039069652557373,
0.0711253210... | |
style="top: 525px; left: 34px; z-index: 100; display: none;"> </div>
<div id="top-level-menu-item-2" class="as-master">
<div class="filter-label">Title</div>
</div>
<div id="top-level-menu-item-2" class="as-slave">
<div id="top-level-menu-item-2" class="as-slave-title as-... | [
-0.27669557929039,
-0.3242848515510559,
0.2588072717189789,
0.045089151710271835,
-0.16949744522571564,
-0.026443397626280785,
0.1513771265745163,
-0.40080636739730835,
-0.2731519341468811,
-0.8150640726089478,
-0.37887975573539734,
0.4425714910030365,
-0.014259221032261848,
0.178581073880... | |
class="as-slave-body"> </div>
<div class="as-slave-buffer"> </div>
</div>
<div id="top-level-menu-item-3" class="as-master">
<div class="filter-label">Location</div>
</div>
<div id="top-level-menu-item-3" class="as-slave"> </div>
</div>
</div>
```
The questi... | [
0.05262377858161926,
-0.21699559688568115,
0.33761101961135864,
-0.01121558342128992,
-0.1480434089899063,
0.09942685812711716,
0.13973475992679596,
-0.44401317834854126,
-0.06006162613630295,
-0.8868438601493835,
-0.2849576771259308,
0.1603928804397583,
-0.1498487889766693,
0.274678409099... | |
"Title" with class "as-slave" is not visible at the moment
It would be something similar to:
1. //div[@id="top-level-menu-item-3"]/div[@class="filter-label"]
2. //div[@id="top-level-menu1"] --- and check in code for display: none ... assuming it is selenium rc you are using
Update: also be sure to install the followi... | [
0.44338226318359375,
-0.06216174736618996,
0.4605003595352173,
0.11580611765384674,
-0.04533429816365242,
-0.48088186979293823,
0.3082910180091858,
-0.2761598229408264,
-0.11066226661205292,
-0.6579816341400146,
-0.4190542697906494,
0.8258044123649597,
-0.27137383818626404,
0.2900255024433... | |
How would I combine the following two queries to produce a combination of the two?
```
SELECT *
FROM post_attributes
WHERE name IN ('title', 'body');
SELECT id, url, created_at, name, value
FROM posts, post_attributes
WHERE posts.id = post_attributes.post_id
ORDER BY id;
```
The idea would be to extract the pos... | [
0.40172144770622253,
0.2954334318637848,
0.3403383791446686,
0.31124600768089294,
-0.1925932615995407,
0.26637744903564453,
-0.14387468993663788,
-0.2603837549686432,
0.017898833379149437,
-0.532618522644043,
0.06953759491443634,
0.28337758779525757,
-0.2147713601589203,
0.4459790289402008... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.