text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm concerned that this might be working on an NP-Complete problem. I'm hoping someone can give me an answer as to whether it is or not. And I'm looking for more of an answer than just yes or no. I'd like to know why. If you can say,"This is basically this problem 'x' which is/is not NP-Complete. (wikipedia link)" (No...
[ 0.18887385725975037, 0.22091320157051086, 0.05274156853556633, -0.0317232571542263, -0.16708886623382568, -0.3437998294830322, 0.11454349011182785, 0.06164058297872543, -0.38455769419670105, -0.48807400465011597, -0.0915655791759491, 0.27776142954826355, -0.14620032906532288, 0.31930589675...
| | | | | | E F G H | | | | | | | | +--J--+--K--+--L--+ |
[ -0.2852892577648163, 0.5082672238349915, 0.5558636784553528, -0.035350289195775986, -0.11585976183414459, 0.16482795774936676, 0.3930948078632355, -0.537632942199707, 0.14826782047748566, -0.31371450424194336, -0.6689910888671875, 0.1584453135728836, -0.3465999364852905, 0.2871781885623932...
| M | | House ``` Points A though M (no
[ -0.23825755715370178, 0.49738070368766785, 0.4554975628852844, -0.5337972044944763, 0.2600085139274597, 0.030017446726560593, 0.6216047406196594, -0.5131669640541077, -0.3710983395576477, -0.26706740260124207, -0.4977343678474426, 0.16873066127300262, -0.12037095427513123, 0.36018103361129...
'I') are control points (like a valve in a natural gas pipe) that can be either open or closed. The '+'s are nodes (like pipe T's), and I guess the Well and the House are also nodes as well. I'd like to know if I shut an arbitrary control point (e.g., C) whether the Well and House are still connected (other control po...
[ 0.218584805727005, -0.0020357852336019278, 0.6444756984710693, 0.07886816561222076, 0.21900179982185364, 0.08451336622238159, 0.3393048346042633, -0.3300265073776245, 0.036495547741651535, -0.32812803983688354, -0.2288651317358017, 0.0641351118683815, -0.13151498138904572, 0.68864840269088...
C does not disconnect the House. Another way of putting this, is C a bridge/cut edge/isthmus? I could treat each control point as a weight on the graph (either 0 for open or 1 for closed); and then find the shortest path between Well and House (a result >= 1 would indicate that they were disconnected. There's various...
[ 0.21463796496391296, 0.03746397793292999, 0.658269464969635, 0.06416384875774384, 0.07519857585430145, -0.045673951506614685, 0.22657716274261475, -0.7054919600486755, -0.3460805416107178, -0.35894155502319336, -0.11969878524541855, 0.11184893548488617, -0.25445443391799927, 0.334858894348...
some artificial limit on how many hops to check before giving up. Someone must have classified this kind of problem before, I'm just missing the name. See <http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm> , your one stop shop for all graph related problems. I believe your problem is in fact solvable in quadratic t...
[ -0.07160946726799011, -0.03397958353161812, 0.22534441947937012, 0.2572782039642334, -0.21763299405574799, -0.14458107948303223, 0.6094122529029846, 0.35956498980522156, -0.6408857107162476, -0.47652068734169006, 0.10889825969934464, 0.3428642153739929, -0.33235952258110046, -0.05199452489...
I have a Windows Mobile application using the compact framework (NETCF) that I would like to respond to someone pressing the send key and have the phone dial the number selected in my application. Is there a way using the compact framework to trap the send key? I have looked at several articles on capturing keys, but I...
[ 0.3284870982170105, -0.13676880300045013, 0.3625470995903015, 0.08284410089254379, 0.028631828725337982, -0.28293970227241516, 0.3213317394256592, -0.11193323880434036, -0.23261921107769012, -0.4779396057128906, -0.1099700778722763, 0.5487092137336731, -0.30787140130996704, 0.0075195510871...
out that the "Send" key is called the "Talk" key in Windows Mobile lingo. I then found a blog post about using the SHCMBM\_OVERRIDEKEY message to signal the OS to send my app a WM\_HOTKEY message when the user presses the Talk key. [Jason Fuller Blog post about using the Talk button](http://blogs.msdn.com/windowsmobil...
[ 0.20241691172122955, 0.025260986760258675, 0.18990233540534973, -0.14848101139068604, 0.10234858095645905, -0.2056281864643097, 0.29541006684303284, 0.02109248749911785, -0.10919363796710968, -0.38436415791511536, -0.2156442105770111, 0.5193833708763123, -0.5016095042228699, 0.315435051918...
from someone that actually has this working on both Smartphones and PocketPC phones. I can confirm that using SHCMBM\_OVERRIDEKEY works on both PPC and SP devices. I have tested it on WM5 PPC, WM5 SP, WM6 PPC, WM6 SP. I have not tried WM6.1 or WM6.5 yet but I kind-of assume that they work since WM6 works. Also you may...
[ 0.38108018040657043, -0.0862659364938736, 0.4914599657058716, 0.3626244366168976, -0.15629462897777557, -0.20405003428459167, 0.02934095449745655, -0.2371288686990738, -0.21896721422672272, -0.22377492487430573, 0.09780221432447433, 0.7521852850914001, -0.2442340850830078, -0.1417749822139...
of the "talk" key for a specific window you need to do: ``` SendMessage(SHFindMenuBar(window_hwnd), SHCMBM_OVERRIDEKEY, VK_TTALK, MAKELPARAM((SHMBOF_NODEFAULT|SHMBOF_NOTIFY), (SHMBOF_NODEFAULT|SHMBOF_NOTIFY)); ``` You can turn on/off the trap at any time. To turn the trap off i...
[ 0.08056816458702087, 0.03476058691740036, 0.6538693308830261, -0.19793763756752014, 0.17473682761192322, 0.017817625775933266, 0.4778966009616852, -0.13447882235050201, -0.22325263917446136, -0.6113401651382446, -0.7781310677528381, 0.8860259652137756, -0.7340890765190125, -0.1060629934072...
MAKELPARAM(0, (SHMBOF_NODEFAULT|SHMBOF_NOTIFY)); ``` To detect when the 'Talk' key is pressed you need to trap the WM\_HOTKEY window message on the window proc: ``` case WM_HOTKEY: switch(HIWORD(lParam)) { case VK_TTALK: // make ph call break; } return TRUE; ``` To make a phone ...
[ 0.15617069602012634, -0.17208842933177948, 0.8200770020484924, -0.1382053792476654, 0.44798123836517334, -0.1111101359128952, 0.27047595381736755, -0.40211018919944763, 0.002656418364495039, -0.16852480173110962, -0.4389306902885437, 0.7159513235092163, -0.43637701869010925, -0.04673789441...
= sizeof(PHONEMAKECALLINFO); call.dwFlags = PMCF_DEFAULT; call.pszDestAddress = number; PhoneMakeCall(&call); } ``` To support DTMF during a phone call you need to track the phone call using [SNAPI](http://msdn.microsoft.com/en-us/library/aa455748.aspx) (I believe there is a C# library to help you out the...
[ -0.2232898622751236, -0.252444326877594, 0.923992931842804, -0.07725197076797485, 0.1894165426492691, 0.028402263298630714, 0.34326228499412537, -0.1973838061094284, -0.29265522956848145, -0.6875697374343872, -0.4238828122615814, 0.97295081615448, -0.14001283049583435, -0.25172433257102966...
to close the SNAPI handle: ``` RegistryCloseNotification(phone_call_notify_handle); ``` While in the call send a message to the cprog application with the key that was pressed by the user: ``` #define WM_CPROG_SEND_VKEY_DTMF (WM_APP+3) // Sends the DTMF tone(s) through to the current call (converting from VKEY to D...
[ -0.19213487207889557, -0.1561988741159439, 0.8782113790512085, -0.3007659912109375, -0.011959722265601158, 0.039490651339292526, 0.44410276412963867, -0.20094923675060272, -0.2880386412143707, -0.44566604495048523, -0.4780435860157013, 0.7135010361671448, -0.5065904855728149, -0.1481875032...
{ s_hwndCProg = FindWindow(TEXT("MSCprog"), NULL); } // Send WM_CPROG_SEND_VKEY_DTMF to the CProg window. if(NULL != s_hwndCProg) { bRet = BOOLIFY(PostMessage(s_hwndCProg, WM_CPROG_SEND_VKEY_DTMF, (WPARAM)chDTMF, 0)); } return bRet; } ```
[ -0.21555739641189575, 0.03933561593294144, 0.8725255727767944, -0.2555136978626251, 0.17901185154914856, -0.10206975042819977, 0.6430816054344177, -0.04286946356296539, -0.2413932830095291, -0.6294170618057251, -0.6417185068130493, 0.7716038823127747, -0.11842333525419235, 0.34799358248710...
\*\* Dup: [What's the difference between X = X++; vs X++;?](https://stackoverflow.com/questions/226002/whats-the-difference-between-x-x-vs-x) \*\* So, even though I know you would never actually do this in code, I'm still curious: ``` public static void main(String[] args) { int index = 0; System.out.println(...
[ -0.04010637477040291, -0.043342474848032, 0.4330741763114929, -0.27503010630607605, 0.0017718380549922585, 0.08004637062549591, 0.12468304485082626, -0.13133740425109863, -0.2855430245399475, -0.43460366129875183, -0.14903639256954193, 0.42101362347602844, -0.43146100640296936, 0.370076328...
= index++;` means "set index to index, then increment index by 1" in the same way `System.out.println(index++);` means "pass index to the println method then increment index by 1". This is not the case however. Can anyone explain what's going on? this is a duplicate question. **EDIT:** I can't seem to find the origi...
[ 0.11353399604558945, 0.296444833278656, 0.416204035282135, -0.3352906405925751, -0.08817299455404282, 0.05981755256652832, 0.31030648946762085, -0.3264928460121155, -0.22371970117092133, -0.3466971814632416, -0.2204730063676834, 0.49326762557029724, -0.3461807668209076, 0.24154512584209442...
Can anybody help me to build an XSD file to validate XMLs like these: ``` [test] [a/] [b/] [a/] [b/] [/test] [test] [a/] [a/] [b/] [/test] ``` Basically, I can have any number of `<a>` and/or `<b>` nodes without any other rule (can't use `<xs:sequence>`). It isn't going to very fast if you have a lot of **a** or **...
[ 0.3341745436191559, 0.1033095046877861, 0.16145265102386475, 0.42543911933898926, -0.168585866689682, -0.32206419110298157, -0.12061339616775513, -0.25962215662002563, -0.12915760278701782, -0.49244025349617004, 0.3191327750682831, 0.3917764723300934, -0.03957533836364746, -0.1476435065269...
</xs:choice> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ```
[ -0.06321469694375992, 0.1369476169347763, 0.005631559528410435, -0.11639328300952911, -0.07019995152950287, -0.03038969449698925, -0.07490251958370209, -0.5034818053245544, 0.10200025886297226, -0.6637027263641357, -0.38958531618118286, 0.30599716305732727, -0.37924134731292725, 0.07390138...
I just saw this question: [Understanding .NET’s “SecurityAction” parameter for permissions](https://stackoverflow.com/questions/353968/understanding-nets-securityaction-parameter-for-permissions) And I have a question. With the following code: ``` private void button1_Click(object sender, EventArgs e) { Layer1()...
[ 0.1439882218837738, -0.1374925673007965, 0.5536692142486572, -0.1611396074295044, 0.17347358167171478, -0.1934284269809723, 0.4592147767543793, -0.29106345772743225, -0.3678150475025177, -0.4842950105667114, -0.42401039600372314, 0.3099639415740967, -0.25769639015197754, 0.3089977502822876...
void Layer3() { using (FileStream stream = new FileStream(@"C:\temp\test.txt", FileMode.Create)) { } } ``` why does the code produce a security exception with the call to `Layer2`? How is the permission object treated, I'd imagine that the garbage collector would destroy the object, since I don't have an ...
[ 0.23813332617282867, 0.09902719408273697, 0.3135458528995514, -0.3178878426551819, -0.04765649884939194, -0.48209652304649353, 0.429945170879364, -0.10241289436817169, -0.2947130799293518, -0.4210484027862549, -0.06260309368371964, 0.4287773668766022, -0.36673489212989807, 0.24729490280151...
forgive me if this question is really basic. Does a security permission/denial like this flag the stack or something? Otherwise, why is it not in effect for Layer2b? It's the same thread, so clearly, while it isn't killed by garbage collection, it is getting removed/destroyed/cleaned out at some point. Calling .Deny()...
[ 0.5968369245529175, -0.05046186223626137, 0.20574337244033813, 0.050372809171676636, -0.03852147236466408, -0.5683056712150574, 0.4473130702972412, -0.06536690145730972, -0.4485654830932617, -0.42998045682907104, -0.08748819679021835, 0.20830138027668, -0.41027724742889404, 0.3519742488861...
representation of state of the part of the .NET security runtime at a point in time (a stack frame). Just use .NET Reflector to learn more.
[ 0.3780921697616577, -0.29771721363067627, 0.25971004366874695, 0.4501473307609558, -0.11458102613687515, -0.3182772994041443, 0.1268448829650879, -0.1846987009048462, -0.222120001912117, -0.8665348887443542, 0.1728060245513916, 0.36391571164131165, -0.029080530628561974, -0.019125826656818...
What's the best way to load HTML markup for a custom jQuery UI widget? So far, I've seen elements simply created using strings (i.e. `$(...).wrap('<div></div>')`) which is fine for something simple. However, this makes it extremely difficult to modify later for more complex elements. This seems like a fairly common p...
[ 0.4605782926082611, 0.04046767204999924, 0.39852720499038696, 0.11107776314020157, -0.12755842506885529, -0.02800428867340088, -0.0017862870590761304, -0.22498345375061035, -0.18760748207569122, -0.866802453994751, -0.02076949179172516, 0.3151319921016693, -0.31021052598953247, -0.14813850...
storing its reference in a variable, for later use.
[ 0.03796546533703804, 0.18983736634254456, 0.24228264391422272, 0.20589730143547058, 0.14209485054016113, 0.11313595622777939, -0.29004332423210144, -0.17854346334934235, 0.04687336087226868, -0.3115989565849304, -0.12331929802894592, 0.14262603223323822, -0.26992326974868774, 0.22493194043...
I have two files with slight differences. A normal `diff` will show me the differences between the files. With `-c` or `-u` I can add an amount of context to each hunk. What options can I pass to `diff` to see every unchanged line alongside the changes, and get the diff as a single, large hunk? Use the "-y" option for ...
[ 0.22566939890384674, 0.04746510460972786, 0.7554675340652466, -0.06148840859532356, -0.2140502631664276, 0.5529178977012634, -0.15897849202156067, -0.3409092128276825, -0.017902392894029617, -0.5511465072631836, -0.08619951456785202, 0.4070255160331726, -0.17493203282356262, -0.07919213175...
* Praesent fringilla facilisis pede. * Nulla sit amet tellus id massa luctus pellentesque. * Nulla sit amet tellus id massa luctus pellentesque. * Pellentesque a neque nec elit aliquam congue. * Pellentesque a neque nec elit aliquam congue. * Quisque rhoncus ultricies elit.
[ -0.3268992602825165, -0.054347679018974304, 0.47409453988075256, -0.04994247853755951, -0.2829384207725525, 1.0303322076797485, 0.44005268812179565, 0.10079363733530045, -0.06135959550738335, -0.5058717131614685, 0.11779443919658661, 0.5948126316070557, -0.18183180689811707, -0.34390908479...
* Quisque rhoncus ultricies elit. * Pellentesque laoreet urna id arcu. * Pellentesque laoreet urna id arcu. * Aenean non erat et elit egestas dictum. * Aenean non erat et elit
[ 0.11476477980613708, 0.12913110852241516, -0.011732799932360649, -0.07175900787115097, -0.042448583990335464, 0.8470854163169861, 0.30098605155944824, 0.16548700630664825, -0.14140020310878754, -0.4145759642124176, 0.2261446714401245, 0.8337571620941162, -0.044919028878211975, -0.381366729...
egestas dictum. * Proin ornare sem eget nulla. * Proin ornare sem eget nulla. * Phasellus placerat convallis elit. * Phasellus placerat convallis elit. * Donec ultricies metus non purus.
[ -0.18528017401695251, -0.21991872787475586, 0.3456788957118988, -0.33934351801872253, -0.07946185022592545, 0.8465818166732788, 0.30868467688560486, -0.1339074969291687, -0.05212174355983734, -0.49484357237815857, -0.18747447431087494, 0.20016825199127197, -0.28403541445732117, -0.39347359...
* Donec ultricies metus non purus. * Sed vel enim et nunc accumsan egestas. * Sed vel enim et nunc accumsan egestas. * Cras eget elit in purus luctus ornare. * Cras eget elit in purus luctus ornare. * In pharetra
[ -0.2639772891998291, 0.0393633171916008, 0.3212946355342865, -0.38907766342163086, -0.20686043798923492, 1.0009320974349976, 0.19327948987483978, -0.17511218786239624, -0.2911728322505951, -0.3637002110481262, 0.10652966797351837, 0.8329662680625916, 0.016607070341706276, -0.64591449499130...
ligula sodales pede. < * Morbi consectetuer mi vitae sem. * Morbi consectetuer mi vitae sem. * Donec sollicitudin pretium erat.
[ -0.1617775857448578, -0.19667045772075653, 0.53279048204422, -0.18441307544708252, 0.10718667507171631, 0.36819031834602356, -0.09341031312942505, 0.06394106894731522, -0.29270288348197937, -0.1954171359539032, -0.16413886845111847, 0.42210641503334045, 0.3550661504268646, -0.1165302172303...
* Donec sollicitudin pretium erat. * Cras facilisis nunc sed leo. * Cras facilisis nunc sed leo. * Nunc varius ante sed nisi. * Nunc varius ante sed nisi.
[ 0.0036058963742107153, 0.08649314939975739, 0.5053841471672058, -0.33481964468955994, -0.27978435158729553, 0.7140876650810242, 0.22553697228431702, -0.19335325062274933, -0.13142773509025574, -0.4234442412853241, -0.245550274848938, 0.22194473445415497, 0.24595971405506134, -0.37412649393...
> THIS SHOULDN'T BE HERE
[ 0.2522481679916382, 0.5364410281181335, -0.05512634664773941, -0.2859542965888977, -0.1969795525074005, -0.39393797516822815, 0.4472992718219757, 0.3099260628223419, -0.10703759640455246, -0.6058043241500854, 0.06253587454557419, -0.0005520316190086305, -0.19050566852092743, 0.198542058467...
> THIS SHOULDN'T EITHER! * Aenean in quam sagittis est ornare ultricies. * Aenean in quam sagittis est ornare ultricies. * Etiam dignissim scelerisque velit. * Etiam dignissim scelerisque velit. * Mauris porta fringilla
[ 0.2864875793457031, -0.023891329765319824, 0.5175150036811829, -0.18785834312438965, 0.0016797247808426619, 0.4550834000110626, 0.5556358695030212, -0.06909911334514618, -0.11214537173509598, -0.7896173596382141, 0.21753525733947754, 0.6400120258331299, -0.10328570008277893, -0.30888065695...
sapien. * Mauris porta fringilla sapien. * Proin vitae nisl vitae mauris viverra tempor. * Proin vitae nisl vitae mauris viverra tempor. * Maecenas quis arcu sed lorem mollis bibendum. * Maecenas quis arcu sed lorem mollis bibendum. * Morbi
[ -0.05267917737364769, -0.16720055043697357, 0.3736226260662079, -0.09503284841775894, -0.03724837675690651, 0.6372785568237305, 0.39648696780204773, 0.11446792632341385, -0.0133030591532588, -0.3289361894130707, -0.1697062849998474, 0.6678364872932434, 0.10118287056684494, -0.3509618341922...
sed turpis non risus molestie posuere. | * Morbi sed non risus molestie posuere. * Curabitur id magna in nulla commodo tristique. * Curabitur id magna in nulla commodo tristique. * Praesent quis nulla vel augue faucibus viverra. | * Praesent quis nulla BAD vel augue faucibus vi...
[ -0.17920762300491333, -0.07190699130296707, 0.02157338336110115, -0.32206180691719055, -0.22457751631736755, 1.0462920665740967, 0.19038215279579163, 0.10821552574634552, 0.08722267299890518, -0.4098014235496521, 0.09410341829061508, 0.5734885334968567, -0.4045913517475128, -0.080449730157...
| * Sed lacinia interdum libero. > ANOTHER ADDITION *
[ -0.22396114468574524, -0.440059632062912, 0.03760943561792374, -0.08436509221792221, -0.1966882348060608, 0.7192818522453308, 0.025504615157842636, -0.007636507041752338, -0.20485469698905945, -0.78078293800354, -0.09451868385076523, 0.09081654995679855, -0.19921506941318512, -0.1659524142...
Donec ultricies posuere arcu. * Donec ultricies posuere arcu. * Etiam interdum auctor mi. * Etiam interdum auctor mi. ```
[ -0.002609774935990572, 0.009393829852342606, 0.3918529748916626, -0.3551044464111328, 0.13009634613990784, 0.97746741771698, -0.0020837837364524603, 0.06385339051485062, 0.06508298218250275, -0.7276360392570496, 0.14417511224746704, 0.5956903100013733, 0.05627449229359627, -0.2407143563032...
When I'm running a simple Ruby script, what's the easiest way to dump an object's fields to the console? I'm looking for something similar to PHP's `print_r()` that will work with arrays as well. Possibly: ``` puts variable.inspect ```
[ 0.47141969203948975, 0.08684239536523819, -0.014425976201891899, -0.16551288962364197, -0.12909328937530518, -0.07506341487169266, 0.06557103246450424, 0.007551252841949463, 0.020349716767668724, -0.41724085807800293, -0.018450142815709114, 0.5428818464279175, -0.4298764765262604, -0.08351...
In C#, I'm creating an XML file from a DataTable using dataTable.WriteXml(filePath), and get the following: ``` <?xml version="1.0" encoding="utf-8" ?> <ExperienceProfiles> <ExperienceProfile> <Col1>blah</Col1> <Col2>4ed397bf-a4d5-4ace-9d44-8c1a5cdb0f34</Col2> </ExperienceProfile> </ExperienceProfiles> ``...
[ 0.20868873596191406, 0.3261426091194153, 0.4981234073638916, 0.062107931822538376, 0.08036981523036957, -0.17473913729190826, -0.06871391832828522, -0.0846763625741005, -0.01521374098956585, -0.5631189942359924, -0.3106854259967804, 0.8399890661239624, 0.16066694259643555, -0.2572256028652...
In the schema define Col1 and Col2 as attributes of the ExperienceProfile element and the DataSet will know to format the output document to meet the requirements specified in the schema. If you are not comfortable with creating a schema you can create a sample of the XML file the way that you want it to be formatted,...
[ 0.1804244965314865, 0.04463288187980652, 0.5182576179504395, 0.2018958330154419, -0.15352068841457367, -0.22140143811702728, -0.26899775862693787, -0.12099865078926086, -0.07789827883243561, -0.5467168092727661, 0.11301577836275101, 0.45969730615615845, -0.1228681430220604, -0.157038778066...
How do I check the type of a value on runtime? I'd like to find out where I'm creating doubles. If you're using Objective-C classes, then the `[myObject isKindOfClass: [InterestingClass class]]` test is available. If you're using primitive types (which your question, quoting the "double" type, suggests), then you can'...
[ 0.5262324213981628, 0.05469580739736557, -0.16853712499141693, 0.15179724991321564, -0.11452926695346832, -0.14293141663074493, 0.007713302504271269, -0.08068504929542542, -0.13536621630191803, -0.5796499848365784, 0.021009640768170357, 0.7138103246688843, -0.5764181613922119, -0.432542651...
because it may be that the solution doesn't involve detecting the creation of doubles at all :-).
[ 0.3081115484237671, 0.13655051589012146, 0.0008877904620021582, 0.11534290760755539, 0.18312901258468628, -0.05171241611242294, 0.31350409984588623, -0.3092150390148163, -0.03915349766612053, -0.286758691072464, -0.21977631747722626, 0.38902515172958374, -0.46968749165534973, -0.0800405889...
Suppose we have *n* elements, *a*1, *a*2, ..., *a*n, arranged in a circle. That is, *a*2 is between *a*1 and *a*3, *a*3 is between *a*2 and *a*4, *a**n* is between *a**n*-1 and *a*1, and so forth. Each element can take the value of either 1 or 0. Two arrangements are different if there are corresponding *a**i*'s whose...
[ 0.15294189751148224, -0.06655452400445938, 0.22730565071105957, -0.42602649331092834, -0.07432698458433151, 0.1929159313440323, -0.009520028717815876, -0.6828130483627319, -0.25386321544647217, -0.6277562975883484, -0.22315536439418793, -0.046388737857341766, -0.3784692883491516, 0.1830577...
is the question:** How many arrangements are possible, such that no two adjacent elements both have the value 1? If it helps, only consider cases where *n*>3. I ask here for several reasons: 1. This arose while I was solving a programming problem 2. It sounds like the problem may benefit from Boolean logic/bit arit...
[ 0.22802351415157318, -0.05363842099905014, -0.20306381583213806, -0.17766836285591125, -0.1190854012966156, 0.1913439929485321, -0.06533726304769516, -0.422174870967865, -0.2705613672733307, -0.33357682824134827, -0.05724859982728958, 0.129696324467659, -0.4197315275669098, -0.001041464973...
not "11"). To make it easier to write a recurrence, we'll compute A(n) as the sum of two numbers: B(n), the number of such sequences that end with a 0, and C(n), the number of such sequences that end with a 1. Then B(n) = A(n-1) (take any such sequence of length n-1, and append a 0) and C(n) = B(n-1) (becaus...
[ 0.011415965855121613, 0.009286868385970592, 0.10195564478635788, -0.4679824113845825, -0.1575259417295456, 0.2932393252849579, 0.17088909447193146, -0.4867708086967468, -0.39978399872779846, -0.11078695952892303, -0.37952297925949097, 0.3522396385669708, -0.3839714527130127, 0.111631728708...
is simply the Fibonacci number Fn+2 where the Fibonacci sequence is defined by F0=0, F1=1, and Fn+2= Fn+1+Fn for n ≥ 0. Now for your question. We'll count the number of arrangements with a1=0 and a1=1 separately. For the former, a2 … an can be any sequence at all (with no consecutive 1s), so the number is A(n-1)=...
[ 0.12944386899471283, -0.23302686214447021, 0.2577425539493561, -0.5517425537109375, -0.10856394469738007, 0.18691106140613556, 0.22667652368545532, -0.7011953592300415, -0.22861149907112122, -0.26800668239593506, -0.21848221123218536, 0.36909493803977966, -0.47672805190086365, -0.014375030...
that if you call the answer as G(n)=Fn+1+Fn-1, then G(n+1)=Fn+2+Fn, and G(n+2)=Fn+3+Fn+1, so even G(n) satisfies the same recurrence as the Fibonacci sequence! [Actually, any linear combination of Fibonacci-like sequences will satisfy the same recurrence, so it's not all that surprising.] So another way to c...
[ -0.0675438642501831, -0.04262956231832504, 0.1875436156988144, -0.3307129442691803, -0.23576194047927856, 0.20169389247894287, 0.3548617959022522, -0.5642878413200378, -0.40102747082710266, -0.0934988334774971, -0.3171866238117218, 0.3930862843990326, -0.3360222280025482, 0.179076790809631...
because it's very close to 0 for large n, in fact G(n) is the **closest integer to ((1+√5)/2)n** for all n≥2.]
[ -0.326371431350708, 0.034804217517375946, 0.4367375373840332, -0.41866663098335266, -0.20604845881462097, 0.22628924250602722, 0.4034671187400818, -0.5011838674545288, -0.0830799862742424, -0.3296874165534973, -0.06991071254014969, 0.035003095865249634, -0.29716840386390686, -0.01253624819...
Anyone have suggestions for security auditing of an .NET Web Application? I'm interested in all options. I'd like to be able to have something agnostically probe my application for security risks. EDIT: To clarify, the system has been designed with security in mind. The environment has been setup with security in mi...
[ 0.7436977028846741, 0.20264758169651031, -0.12090800702571869, 0.4557165503501892, -0.14176127314567566, -0.2805655896663666, 0.4940764307975769, 0.15109333395957947, -0.2739701569080353, -0.4697839319705963, 0.23528027534484863, 0.5623192191123962, 0.08682164549827576, -0.1925627738237381...
would be to independently verify the security that was implemented by the team. BTW - there are several automated hack/probe tools to probe applications/web servers, but i'm a bit concerned about whether they are worms or not... **Best Thing to do:** * Hiring a security guy for source code analysis * Second best thin...
[ 0.6833720207214355, -0.05156520754098892, 0.06892553716897964, 0.397706538438797, -0.2847570776939392, -0.043590012937784195, -0.01948959194123745, -0.047406237572431564, -0.13593201339244843, -0.7286731600761414, 0.05003795027732849, 0.5184118747711182, -0.015624508261680603, -0.064469002...
free version of [Netsparker](http://www.mavitunasecurity.com/communityedition/) Hiring some security specialist is so much better idea (will cost more though) because they won't only find injection and technical issues where an automated tool might find, they will also find all logical issues as well.
[ 0.5173395872116089, -0.4775388240814209, 0.21734805405139923, 0.29459118843078613, 0.14793048799037933, -0.38131019473075867, 0.41290679574012756, 0.08905161172151566, -0.06632691621780396, -0.5859484672546387, -0.25087451934814453, 0.2571685016155243, -0.18581096827983856, -0.279978394508...
I want to add options to a dropdownbox on my aspx page from the c# code behind during load. I don't know how to get a reference to the control. I have some c# code that is triggered when the user changes the dropdownbox. In that I get a reference to the dropdown with: ``` DropDownBox ddb = (DropDownBox)info.Toolbar.To...
[ 0.1837168037891388, -0.40942931175231934, 0.22880269587039948, 0.14113204181194305, 0.11075965315103531, 0.10184548795223236, 0.18939091265201569, -0.029145848006010056, -0.2743467092514038, -0.6050244569778442, -0.20760351419448853, 0.6997441649436951, -0.33870431780815125, -0.08747465908...
to have all the items in the dropdown by the time Page\_PreLoad fires. To do this you will want to put your code in Page\_Init, at this point the controls are created but viewstate has not yet been injected into them. Take a look here [ASP.NET Page Life Cycle Overview](http://msdn.microsoft.com/en-us/library/ms178472....
[ 0.05578422546386719, -0.3818863332271576, 0.3857443630695343, 0.25231707096099854, 0.2514422535896301, -0.23221038281917572, 0.24164383113384247, -0.056829098612070084, -0.2761160135269165, -0.7426857948303223, -0.21854375302791595, 0.3508954644203186, 0.09107599407434464, 0.16002358496189...
I need to use one logical PGM based multicast address in application while enable such application "seamlessly" running across several different geo-locations (i.e. think US/Europe/Australia). Application is quite throughput (several million biz. messages a day) and latency demanding whith a lot of small but very freq...
[ 0.07887318730354309, -0.08897819370031357, 0.5227122902870178, 0.11094004660844803, -0.19576503336429596, -0.02686767280101776, 0.1890982985496521, -0.0317201167345047, -0.31400811672210693, -0.9129461646080017, -0.24423092603683472, 0.26494863629341125, -0.14319674670696259, 0.14815719425...
messages” and forward them via AMQP. 3) Write specialized in-house gate which tunnels multicast messages via TCP to other two locations. 4) Any other solution I would prefer option 1 as it does not need additional code writes from devs. but I’m afraid it will not be reliable connection. Are there any rules to appl...
[ 0.06000669673085213, -0.09445470571517944, 0.764906108379364, 0.17489281296730042, -0.04861593618988991, 0.20802956819534302, 0.3555268943309784, -0.13397692143917084, -0.41413673758506775, -0.9205390810966492, -0.19453273713588715, 0.36003437638282776, -0.4889810383319855, 0.2134655565023...
Currently I use this reg ex: ``` "\bI([ ]{1,2})([a-zA-Z]|\d){2,13}\b" ``` It was just brought to my attention that the text that I use this against could contain a "`\`" (backslash). How do I add this to the expression? Add `|\\` inside the group, after the `\d` for instance.
[ 0.0023197985719889402, 0.3860335350036621, 0.4037683606147766, -0.6288872361183167, -0.08551990985870361, -0.07969924807548523, 0.4451383352279663, -0.3249697983264923, -0.15832489728927612, -0.3485863506793976, -0.3238541781902313, 0.4485737085342407, -0.4967186152935028, 0.12361612915992...
I am writing Eclipse plugins, and frequently have a situation where a running Job needs to pause for a short while, run something asynchronously on the UI thread, and resume. So my code usually looks something like: ```java Display display = Display.getDefault(); display.syncExec(new Runnable() { public void run(...
[ 0.5672314763069153, 0.0944664403796196, 0.29042938351631165, -0.5549286007881165, -0.02315138839185238, -0.18383817374706268, 0.2865158021450043, 0.029706772416830063, -0.1226770207285881, -0.8012158274650574, -0.006257101893424988, 0.5420144200325012, -0.2505872845649719, -0.0213589519262...
to use the calculation result here! ``` One way to do it is to have the entire Job class have some field. Another is to use a customized class (rather than anonymous for this and use its resulting data field, etc. What's the best and most elegant approach? You probably shouldn't be assuming that the async `Runnable` ...
[ 0.18747806549072266, 0.03261110559105873, 0.136078342795372, 0.18018494546413422, -0.06107775494456291, -0.0618048831820488, 0.1502089947462082, -0.25680479407310486, -0.23256956040859222, -0.49766412377357483, -0.25791454315185547, 0.6478040814399719, -0.1647442877292633, -0.0731830447912...
I'm working on a website with a em-based layout (so it can stretch and compress gracefully when users increase or decrease font size). This site has a header that should be displayed across all pages. I have a "header" div in all pages, and the site-wide css file includes the code: ``` #header { width: 50em; h...
[ 0.47958528995513916, 0.4088697135448456, 0.6022961139678955, -0.1307186484336853, 0.022281983867287636, 0.017032625153660774, 0.02184457704424858, -0.05545426532626152, -0.19002093374729156, -0.9886668920516968, -0.021614747121930122, 0.21240809559822083, 0.06357741355895996, 0.10692672431...
make my image stretch and squish, instead of repeating or getting cut off?** (I'd like a css-based solution if possible... I've got some html ideas in store, already). You probably shouldn't be assuming that the async `Runnable` will have finished by the time the `asyncExec` call returns. In which case, you're lookin...
[ 0.3942515552043915, -0.1759197860956192, 0.5084435939788818, 0.03906605392694473, 0.08337568491697311, 0.016215268522500992, 0.40368109941482544, 0.13099133968353271, -0.3477534055709839, -0.7073942422866821, -0.29246100783348083, 0.6430097818374634, -0.011046175844967365, 0.13011170923709...
I have a ToggleButtonBar with a DataProvider setup like this: ``` <mx:ToggleButtonBar itemClick="clickHandler(event);" selectedIndex="0"> <mx:dataProvider> <mx:String>{resourceManager.getString('dashboard','daily')}</mx:String> <mx:String>{resourceManager.getString('dashboard','monthly')}</mx:St...
[ 0.012454695999622345, 0.060573067516088486, 0.569794237613678, -0.013536699116230011, -0.03967662900686264, 0.14586496353149414, 0.019846688956022263, 0.2382478266954422, -0.21380992233753204, -0.6970487236976624, 0.017519332468509674, 0.3062317371368408, 0.00379251129925251, 0.03690604120...
can manually reset them in code, but is there a cleaner solution? I would abstract out the data for your data provider into a bindable variable, then just reset the data provider when you change locals. ``` <mx:Script> <![CDATA[ [Bindable] myArray:Array = new Array( [resourceManager.g...
[ 0.29461827874183655, -0.07929510623216629, 0.5426478385925293, 0.2197689563035965, 0.1982315331697464, 0.09702396392822266, 0.25436103343963623, -0.17128713428974152, -0.3840528428554535, -0.7907702922821045, -0.0317859873175621, 0.8556602597236633, -0.3381214141845703, -0.0135019700974226...
, [resourceManager.getString('dashboard','yearly')]); ]]> </mx:Script> <mx:ToggleButtonBar itemClick="clickHandler(event);" selectedIndex="0" id="myToggleButtonBar" dataprovider="{myArray}" /> ``` Then you can just say ``` myToggleButtonBar.dataProvider = myArray; ``` after you swap the locals and it shou...
[ 0.1600150316953659, -0.11421382427215576, 0.288885235786438, 0.16951467096805573, -0.10108914971351624, -0.5133609771728516, 0.20718997716903687, 0.07950066030025482, -0.10826556384563446, -0.9153342247009277, 0.27662384510040283, 0.7498483657836914, -0.15220120549201965, -0.17958779633045...
If a packed Javascript saves 20kb off the download size, but takes a perfomance hit to unpack, then are there any benefits, besides obfuscating the code? I've made this a community wiki because it may be open to some discussion. Packed javascript code generally does not take longer to execute vs regular code. Most cod...
[ 0.5278576016426086, -0.1033652275800705, -0.11367251724004745, 0.040096815675497055, -0.2117219865322113, -0.399085134267807, 0.05639570578932762, 0.08819830417633057, -0.4306812882423401, -0.5091627836227417, -0.0853663980960846, 0.5412368178367615, -0.23723311722278595, -0.30571624636650...
I'm developing an application with Adobe Flex and AIR, and I've been banging my head against the wall trying to figure out how to solve a scrolling issue. The basic structure of my main application window (simplified greatly) is this: ``` <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http:/...
[ -0.30239182710647583, 0.0022626989521086216, 1.156843662261963, -0.1907266080379486, -0.19288474321365356, 0.24642419815063477, -0.1693364530801773, -0.30665960907936096, -0.020841261371970177, -0.6479605436325073, -0.06611887365579605, 0.7140616774559021, 0.021142950281500816, -0.24932897...
<mx:VBox id="MainContent" width="100%"> <mx:Panel width="100%" height="200" /> <mx:Panel width="100%" height="200" /> <mx:Panel width="100%" height="200" /> <mx:Panel width="100%" height="200" /> <mx:Panel width="100%" height="200" /> </mx:VBox> ...
[ -0.4034002125263214, -0.2823844254016876, 0.855181872844696, -0.10491926968097687, 0.12325815111398697, 0.5569307804107666, 0.20161102712154388, -0.28373661637306213, -0.14118249714374542, -0.8482573628425598, -0.39790526032447815, 0.7617490291595459, 0.012484423816204071, -0.5566951036453...
/> </mx:HDividedBox> <mx:Panel id="FooterContent" width="100%" height="25" /> </mx:VBox> </mx:WindowedApplication> ``` The trouble is that the "MainContent" box might contain a huge list of subcomponents, and the presence of that long list causes a vertical scrollbar to appear at the highest level of t...
[ 0.05318170413374901, -0.05028965696692467, 0.8522050976753235, -0.130619078874588, -0.07629033923149109, 0.010279189795255661, 0.26387929916381836, -0.05241923779249191, -0.1076178178191185, -0.7464410662651062, -0.19031257927417755, 0.5480764508247375, -0.25378867983818054, -0.10020918399...
found a [related question](https://stackoverflow.com/questions/245292/best-way-to-size-containers-in-flex-to-obey-only-parent-containers-explicit-dim) on StackOverflow, where the problem's solution was to use "autoLayout" and "verticalScrollPolicy" attributes on parent containers. So I tried adding autoLayout="false" ...
[ 0.13400422036647797, -0.19163604080677032, 0.6939474940299988, 0.12796132266521454, 0.16194285452365875, -0.02179204672574997, 0.2681242525577545, -0.214885413646698, -0.4441438913345337, -0.339469850063324, -0.09767593443393707, 0.5017778277397156, -0.1894199103116989, -0.0620177984237670...
to wrap the VBox in a Canvas. There's a handy little component [here](http://dusbabek.net/?p=50), called ScrollableVBox, which performs the workaround while taking care of a few bookkeping issues (like adding and removing children to the VBox, passing them around the Cavas wrapper).
[ 0.5019233822822571, -0.34299391508102417, 0.2457665205001831, 0.1973821371793747, 0.013681955635547638, -0.07769045978784561, -0.015364563092589378, -0.07349060475826263, -0.3065388798713684, -0.5684707164764404, -0.008635971695184708, 0.37887030839920044, 0.03337255120277405, -0.350250780...
I've just finished a six hour debugging session for a weird UI effect where I found that my favorite framework's implementation of an interface function called "getVisibleRegion" disabled some UI feature (and apparently forgot to restore it). I've filed a bug with the framework, but this made me think about proper de...
[ 0.5094043016433716, 0.055818893015384674, 0.3447999954223633, -0.11958502978086472, -0.09508758783340454, -0.3484035134315491, 0.40798133611679077, -0.0417497344315052, -0.14929261803627014, -0.4659719169139862, 0.09324836730957031, 0.6223958134651184, -0.06105871871113777, -0.073442950844...
disappeared and it was impossible to "unfold" or see folded code . I traced it down to a call to getVisibleRegion() on an ITextViewer whose type represents a source code viewer. Now, ITextViewer's documentation does state that "Viewers implementing ITextViewerExtension5 may be forced to change the fractions of the inpu...
[ 0.18268030881881714, -0.3929189443588257, 0.7674496173858643, 0.07982392609119415, 0.11221826076507568, -0.17988811433315277, 0.05662720277905464, 0.36209750175476074, -0.45072081685066223, -0.5162955522537231, 0.023861629888415337, 0.31004828214645386, -0.09950923919677734, 0.507185637950...
This is very interesting to me... This image displays perfectly well in Safari, but not at all in Firefox! Here's the relevant code: ``` <div id="ad"> <p>Advertisment</p> <img src="/ADS/fakead1.gif" /> </div> ``` With CSS: ``` #ad{color: #666;} #ad p{ font-size: .5em; text-align: center; padding...
[ 0.005849383305758238, 0.35505232214927673, 0.7299069762229919, -0.13536687195301056, -0.262395977973938, -0.0643836259841919, 0.11807196587324142, -0.24609322845935822, -0.14822866022586823, -0.8169644474983215, -0.019818199798464775, 0.4145498275756836, -0.45054420828819275, -0.1414117962...
have thought! I'll need to change the div name to something less obvious than "ad" (!) I should have known. A word to the wise: if you want your ad to get through, name the div in klingon.
[ 0.5525341629981995, 0.2625541090965271, 0.510589063167572, -0.157948300242424, -0.4899705648422241, -0.07833503186702728, 0.18786165118217468, 0.3976980745792389, 0.14131800830364227, -0.4465016722679138, -0.2753794491291046, 0.2557052969932556, -0.2734138071537018, 0.23028676211833954, ...
So I'm teaching myself Ruby on Rails, with a PHP background. I've written a sloppy, proof-of-concept PHP application called "[2NDP.](http://rezich.com/storybored)" I want to re-create this in Ruby on Rails (but more basic, more clean, and with a better interface), so I can learn some of the basics. 2NDP is a website w...
[ 0.2989257574081421, 0.030024627223610878, -0.05185870826244354, 0.32785338163375854, -0.0813380777835846, -0.08429200202226639, 0.21571168303489685, 0.15478220582008362, -0.28793060779571533, -0.5424779653549194, 0.022219672799110413, 0.3539993166923523, 0.018407316878437996, -0.2186866700...
four other pages by having four separate columns, one for each possible page ID that could be referenced. So right now in my RoR application, I have "stories" that have "pages" that are associated with them. I need a way to get the pages to reference each other, but the possibility of more than one reference per page ...
[ 0.49815139174461365, 0.18238860368728638, 0.6952019333839417, 0.4426487982273102, -0.15741683542728424, 0.15472793579101562, 0.086107537150383, 0.04211479797959328, -0.5808358788490295, -0.29547351598739624, 0.14284661412239075, 0.7261848449707031, -0.19825983047485352, -0.0278254207223653...
I'm trying to re-apply what I've learned with a "real-life application." Rather then having four seperate columns, a separate joining table might be more appropriate. For example: Pages -> LinkedPages -> Pages Then you can create a [has\_many through](http://wiki.rubyonrails.org/rails/pages/Beginner+Howto+on+has_many...
[ 0.5901324152946472, 0.1619693785905838, 0.7775449752807617, -0.0063306959345936775, -0.24236738681793213, -0.3790164589881897, 0.35602688789367676, -0.3884147107601166, -0.11682169884443283, -0.9101303815841675, -0.019386129453778267, 0.3991989493370056, -0.28648343682289124, 0.30232447385...
How do you open a path in explorer by code in c++. I googled and couldn't find any thing but systems commands to do this, however, i dont want it to block or show the console window. You probably are looking for the [`ShellExecute()`](http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx) function in `shellapi.h...
[ -0.11881259828805923, 0.008420453406870365, 0.18301594257354736, -0.1825537085533142, 0.10831739753484726, -0.025962600484490395, 0.4940562844276428, -0.08365505933761597, -0.15185219049453735, -0.800799548625946, -0.41034361720085144, 0.6579065322875977, -0.33342137932777405, -0.086751736...
will also handle URLs, so the following will open up the user's default browser: ``` ShellExecuteA(NULL, "open", "http://www.google.com", NULL, NULL, SW_SHOWDEFAULT); ``` Although make sure to pay attention to the note in the documentation that ShellExecute relies on COM (Although your code doesn't have to worry abo...
[ 0.32952335476875305, 0.16593420505523682, 0.34341228008270264, -0.03376402333378792, 0.10112631320953369, 0.08181940019130707, 0.07453764975070953, 0.15153314173221588, -0.1942845731973648, -0.8101434111595154, -0.16242161393165588, 0.7849383354187012, -0.1133238822221756, 0.16988599300384...
Ok this is more of a computer science question, than a question based on a particular language, but is there a difference between a map operation and a foreach operation? Or are they simply different names for the same thing? Different. foreach iterates over a list and **performs** some operation with side effects to ...
[ 0.14186203479766846, 0.04837237298488617, 0.15317757427692413, -0.1733875870704651, 0.016777504235506058, -0.10215485095977783, 0.23698611557483673, -0.3099463880062103, -0.2586439549922943, -0.6196776032447815, -0.30394455790519714, 0.43003183603286743, -0.2621433436870575, -0.00922677572...
If I have two objects, one being the list of items, and the other having a property storing the selected item of the other list, is it possible to update the selected item through binding in WPF? Lets say I have these two data structures: ``` public class MyDataList { public ObservableCollection<Guid> Data { get;...
[ -0.004658892750740051, -0.3202537000179291, 0.2819980978965759, 0.09432341903448105, 0.05211193114519119, -0.18007545173168182, -0.09119513630867004, -0.229543074965477, -0.12422294914722443, -0.7070991396903992, -0.10356763750314713, 0.32817575335502625, -0.3280262351036072, 0.13205942511...
there might be many instances of MyDataStructure, each with a chosen item from MyDataList. The data list is common to all the instances, and I need a way to select an item and store that selection in the MyDataStructure. I believe you should be able to do this (make sure to declare the local namespace): ``` <Window.Re...
[ -0.10023423284292221, -0.2460208237171173, 0.45205074548721313, 0.2565435469150543, 0.12491533160209656, 0.06245335564017296, -0.0121062146499753, 0.028159938752651215, -0.19436125457286835, -1.0031934976577759, -0.01372859813272953, 0.1352604478597641, -0.15778848528862, 0.369022369384765...
I'm porting a process which creates a MASSIVE `CROSS JOIN` of two tables. The resulting table contains 15m records (looks like the process makes a 30m cross join with a 2600 row table and a 12000 row table and then does some grouping which must split it in half). The rows are relatively narrow - just 6 columns. It's be...
[ 0.5302556157112122, 0.1859421581029892, 0.5318831205368042, 0.12297391146421432, 0.24301204085350037, 0.0707835704088211, 0.30985918641090393, -0.32995569705963135, -0.4252914786338806, -0.7760877013206482, 0.2755909562110901, -0.024086112156510353, 0.10554923117160797, 0.47850295901298523...
halve the final table - but this still seems like it's not going to complete any time soon. First I'm going to look to eliminate this table from the process if at all possible - obviously it could be replaced by joining to both tables individually, but right now I do not have visibility into everywhere else it is used...
[ -0.06741214543581009, 0.17470379173755646, 0.8379276394844055, -0.15346865355968475, 0.007221424952149391, -0.06915667653083801, 0.24636991322040558, -0.3599594235420227, -0.3446677029132843, -0.6482776999473572, 0.12859299778938293, 0.3567020893096924, -0.27226218581199646, 0.048496305942...
this box is a 64-bit 8-way with 32-GB of RAM)? Details: It's written this way in FOCUS (I'm trying to produce the same output, which is a CROSS JOIN in SQL): ``` JOIN CLEAR * DEFINE FILE COSTCENT WBLANK/A1 = ' '; END TABLE FILE COSTCENT BY WBLANK BY CC_COSTCENT ON TABLE HOLD AS TEMPCC FORMAT FOCUS END DEF...
[ 0.33247312903404236, 0.09805519878864288, 0.6336336135864258, -0.11843990534543991, 0.17153242230415344, -0.19668953120708466, -0.09316559880971909, -0.21516066789627075, -0.1065780445933342, -0.4152357280254364, -0.33016589283943176, 0.4858235716819763, -0.3772110641002655, 0.111860051751...
END TABLE FILE TEMPCC BY CA_JCCAC BY CC_COSTCENT AS COST CENTER BY ACCOUNT_NO BY LI_LNTM ON TABLE HOLD AS TEMPCCAC END ``` So the required output really is a CROSS JOIN (it's joining a blank column from each side). In SQL: ``` CREATE TABLE [COSTCENT]( [COST_CTR_NUM] [int] NOT NULL, [CC_CNM] [v...
[ -0.2216845452785492, 0.12352859973907471, 0.7654993534088135, 0.09789609909057617, 0.13027191162109375, -0.046324484050273895, -0.3383203148841858, -0.11562224477529526, -0.2120535671710968, -0.47780534625053406, -0.2166978120803833, 0.227206751704216, -0.14226752519607544, 0.3557524979114...
[ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] CREATE TABLE [JOINGLAC]( [ACCOUNT_NO] [int] NULL, [LI_LNTM] [int] NULL, [PR_PRODUCT] [varchar](5) NULL, [PR_GROUP] [varchar](1) N...
[ -0.039191097021102905, 0.06791946291923523, 0.6034166812896729, -0.09703321009874344, 0.03658091649413109, 0.10790431499481201, 0.11139166355133057, -0.6583408713340759, -0.1826007217168808, -0.3289356231689453, -0.44302013516426086, 0.453470915555954, -0.47142329812049866, 0.0300807878375...
[LI_ANLZ] [int] NULL, [LI_TYPE] [varchar](2) NULL, [PR_SORT] [varchar](2) NULL, [PR_NM] [varchar](26) NULL, [PZ_SORT] [varchar](2) NULL, [PZNAME] [varchar](26) NULL, [WANLZ] [varchar](3) NULL, [OPMLNTM] [int] NULL, [PS_GROUP] [varchar](5) NULL, [PS_SORT] [v...
[ -0.5243158340454102, -0.01877133920788765, 0.5037335753440857, -0.30778419971466064, -0.003911128733307123, 0.4532245397567749, 0.40630826354026794, -0.48080161213874817, -0.508594810962677, -0.6992022395133972, -0.44488611817359924, 0.2605252265930176, -0.4855991005897522, 0.1777728199958...
[PT_GROUP] [varchar](5) NULL, [PT_SORT] [varchar](2) NULL, [PT_NAME] [varchar](26) NULL ) ON [PRIMARY] CREATE TABLE [JOINCCAC]( [CA_JCCAC] [varchar](16) NOT NULL, [CA_COSTCENT] [int] NOT NULL, [CA_GLACCOUNT] [int] NOT NULL, [CA_LNTM] [int] NOT NULL, [CA_UNIT] [varchar](...
[ 0.010834289714694023, 0.012759608216583729, 0.5276219844818115, -0.23538479208946228, 0.3027983009815216, 0.17048445343971252, -0.08339682966470718, -0.4319148659706116, -0.31871309876441956, -0.3235633969306946, -0.21298769116401672, 0.34622955322265625, -0.46484726667404175, 0.2442001700...
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] ``` With the SQL Code: ``` INSERT INTO [JOINCCAC] ( [CA_JCCAC] ,[CA_COSTCENT] ,[CA_GLACCOUNT] ,[CA_LNTM] ,[CA_UNIT] ) SELECT Util.PADLEFT(CONVERT(varchar, CC.COST_CTR_NUM), '0',
[ 0.21181097626686096, 0.2702738344669342, 0.6408128142356873, -0.16922546923160553, 0.3270399272441864, 0.24745653569698334, -0.26361238956451416, -0.22350597381591797, 0.020182747393846512, -0.5936213135719299, -0.23233570158481598, 0.5742166042327881, -0.40178632736206055, 0.3336679637432...
7) + Util.PADLEFT(CONVERT(varchar, GL.ACCOUNT_NO), '0', 9) AS CC_JCCAC ,CC.COST_CTR_NUM AS CA_COSTCENT
[ 0.06854521483182907, -0.016506914049386978, 0.46236324310302734, -0.09200868010520935, 0.3319511413574219, 0.28875502943992615, -0.5363353490829468, 0.2540757656097412, -0.1135825365781784, -0.536421537399292, -0.11660485714673996, 0.5238034725189209, -0.005631211679428816, 0.3971095979213...
,GL.ACCOUNT_NO % 900000000 AS CA_GLACCOUNT ,GL.LI_LNTM AS CA_LNTM ,udf_BUPDEF(GL.ACCOUNT_NO, CC.COST_CTR_NUM, GL.LI_LNTM, 'N') AS CA_UNIT FROM JOINGLAC AS GL CROSS JOIN COSTCENT AS CC ``` Depending on how this table is subsequently used, it should be able to be eliminated f...
[ -0.11222542822360992, 0.060748517513275146, 0.5391353964805603, -0.11776380240917206, 0.18045750260353088, 0.040738631039857864, -0.2806292772293091, 0.06911405175924301, -0.26168322563171387, -0.34822967648506165, -0.14624053239822388, 0.3471294641494751, -0.19315388798713684, 0.564955770...
an extremely large porting effort, and I might not find the usage of the table for some time, so I was wondering if there were any tricks to `CROSS JOIN`ing big tables like that in a timely fashion (especially given that the existing process in FOCUS is able to do it more speedily). That way I could validate the correc...
[ 0.21834206581115723, 0.033821579068899155, 0.5178990364074707, 0.07745642960071564, 0.0054520005360245705, -0.16109217703342438, 0.20139937102794647, -0.12876152992248535, -0.29413509368896484, -0.9138601422309875, -0.0014914751518517733, 0.4887060821056366, -0.012084114365279675, -0.11977...
SO FAR:** It turns out that the UDFs do contribute a lot (negatively) to the performance. But there also appears to be a big difference between a 15m row cross join and a 30m row cross join. I do not have SHOWPLAN rights (boo hoo), so I can't tell whether the plan it is using is better or worse after changing indexes....
[ 0.23245015740394592, 0.2548370361328125, 0.5315320491790771, -0.2531556785106659, 0.004933577496558428, -0.12171066552400589, 0.3404792249202728, -0.02190163917839527, -0.2726495862007141, -0.7480636835098267, 0.09911240637302399, 0.1539890468120575, -0.16014571487903595, 0.229001432657241...
low numbers of columns used, this query can be easily enhanced with covering indexes: ``` CREATE INDEX COSTCENTCoverCross ON COSTCENT(COST_CTR_NUM) CREATE INDEX JOINGLACCoverCross ON JOINGLAC(ACCOUNT_NO, LI_LNTM) ``` Here are my questions for further optimization: When you put the query in query analyzer and whack ...
[ -0.08346158266067505, -0.062490470707416534, 0.4762324392795563, 0.0008437033393420279, 0.0958244726061821, -0.11951057612895966, -0.07056458294391632, -0.3145565986633301, -0.025237953290343285, -0.8341560959815979, 0.07883193343877792, 0.3528657853603363, -0.45000001788139343, 0.07871134...
to the top and scroll all the way to the right. The first step should be accessing a table. Which table is that and what method is used(index scan, clustered index scan)? What method is used to access the other table? Parallelism: You should see the little jaggedy arrows on almost all icons in the plan indicating that...
[ -0.43135377764701843, -0.16473862528800964, 0.4957270622253418, 0.21371057629585266, 0.13861753046512604, -0.1639201045036316, 0.04011351242661476, 0.026618516072630882, -0.6022788286209106, -0.7962022423744202, -0.17729221284389496, 0.32989880442619324, -0.4204612672328949, 0.096846640110...
+ columnName, 7) ``` Are there any triggers on JOINCCAC? How about indexes? With an insert this large, you'll want to drop all triggers and indexes on that table.
[ 0.05154500901699066, 0.0486832857131958, 0.44893941283226013, -0.2917291224002838, 0.06723883002996445, -0.1347832828760147, 0.12305168062448502, 0.22796180844306946, -0.19303278625011444, -0.3917155861854553, 0.0633763000369072, 0.495376318693161, -0.557310163974762, -0.054157473146915436...
I have following table structure: ``` Table: Plant PlantID: Primary Key PlantName: String Table: Party PartyID: Primary Key PartyName: String PlantID: link to Plant table Table: Customer PartyID: Primary Key, link to Party CustomerCode: String ``` I'd like to have Customer entity object with following fiel...
[ -0.629521906375885, 0.10098756104707718, 0.6096628308296204, -0.18000812828540802, 0.06542374938726425, 0.13964860141277313, -0.09969848394393921, 0.0775398388504982, -0.265574187040329, -0.5316237211227417, -0.20511895418167114, 0.23355308175086975, -0.11775587499141693, 0.416917473077774...
- I am getting following error: ``` Error 3024: Problem in Mapping Fragment starting at line 352: Must specify mapping for all key properties (CustomerSet.PartyID) of the EntitySet CustomerSet ``` Removing Plant association works. Any hints or directions very appreciated. You can get these fields by using the refere...
[ -0.4179692566394806, 0.004521368071436882, 0.41442370414733887, -0.0736185759305954, 0.018577802926301956, -0.03514178842306137, 0.1467437446117401, 0.1115969568490982, -0.07586976885795593, -0.59083491563797, -0.19548292458057404, 0.12461166828870773, -0.3365854024887085, 0.36334446072578...
I have a MasterPage, with my Usercontrol inside a div. I can set visible=false to the UserControl and to the containing div, and this works fine. But the Page\_Load of the UserControl is always hit. Is this by design, or am I missing how to stop page execution going into the Page\_Load method of the UserControl. svna...
[ 0.24231557548046112, 0.24338369071483612, 0.258273184299469, -0.14928649365901947, -0.2507850229740143, -0.2645188271999359, 0.7674564719200134, -0.1579916775226593, -0.12823215126991272, -0.657040536403656, -0.011595928110182285, 0.5114363431930542, -0.19553139805793762, 0.368244171142578...
I have heard that the Java implementation of Generics is not as good as the C# implementation. In that the syntax looks similar, what is it that is substandard about the Java implementation, or is it a religious point of view? [streloksi's link](http://www.jprl.com/Blog/archive/development/2007/Aug-31.html) does a grea...
[ 0.4218829274177551, 0.47557538747787476, -0.18141426146030426, 0.07280924171209335, -0.43699896335601807, -0.23434029519557953, 0.6410665512084961, 0.07351282984018326, -0.03305719047784805, -0.4446463882923126, 0.0964309349656105, 0.6351912617683411, -0.2197640985250473, 0.202190235257148...