text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
information that can be used to balence out my irrational loathing of UML-heavy design and act as a 'sanitizer' for my suggestions. Most of all Im looking to write a useful document rather than one that will sit moulding away in some obscure network directory. Any ideas? [UML Distilled](https://rads.stackoverflow.com...
[ 0.21215187013149261, 0.09653341770172119, 0.32151734828948975, 0.31428012251853943, 0.2759370803833008, -0.007760902401059866, 0.10184470564126968, 0.20824873447418213, -0.10751353204250336, -0.2925994396209717, -0.3843270242214203, 0.15409967303276062, -0.10714970529079437, -0.11792343109...
I have a certain POJO which needs to be persisted on a database, current design specifies its field as a single string column, and adding additional fields to the table is not an option. Meaning, the objects need to be serialized in some way. So just for the basic implementation I went and designed my own serialized f...
[ 0.07884328067302704, 0.08354746550321579, 0.02300090715289116, 0.024374675005674362, -0.22417697310447693, -0.11878392100334167, 0.0758228600025177, -0.05799981951713562, -0.2295825034379959, -0.3739156424999237, 0.3721877634525299, 0.4113895893096924, -0.5255072116851807, 0.10765984654426...
from a basic test I conducted, this somehow becomes a very costly operation (building a ByteArrayOutputStream, an ObjectOutputStream, and so on, same for the deserialization). So what are my options? What is the preferred way for serializing objects to go on a database? **Edit:** this is going to be a very common ope...
[ 0.1335214525461197, 0.2725781500339508, -0.16637177765369415, 0.07837159931659698, -0.1294221132993698, -0.007976572960615158, 0.3428970277309418, -0.08799750357866287, -0.1275995820760727, -0.6451528072357178, 0.24010057747364044, 0.13752788305282593, -0.5832172632217407, 0.00128943112213...
XOM library. The same principles apply to you. The built-in Java serialization is Java-specific, fragile, and slow, and so is best avoided. You have roughly the right idea in using a String-based format. The problem, as you state, is that you're running into formatting/syntax problems with delimiters. The solution is ...
[ 0.35164281725883484, 0.05681805685162544, 0.2712944746017456, 0.15420667827129364, 0.07757876068353653, -0.4477139115333557, -0.03980182483792305, -0.07182285934686661, -0.19586358964443207, -0.8008110523223877, -0.11567050963640213, 0.4094643294811249, -0.5474629402160645, -0.022908868268...
and JSON are two great options here; they're standardized, text-based, flexible, readable, and have lots of library support. They'll also perform surprisingly well (sometimes even *faster* than Java serialization).
[ 0.2294195592403412, -0.13687117397785187, 0.030195293948054314, 0.12161079049110413, -0.14858771860599518, -0.25265932083129883, -0.1483164131641388, 0.2465284913778305, -0.5064677596092224, -0.8096871972084045, -0.493308424949646, 0.6641950607299805, -0.11128503829240799, -0.1718838661909...
Given a list of urls, I would like to check that each url: * Returns a 200 OK status code * Returns a response within X amount of time The end goal is a system that is capable of flagging urls as potentially broken so that an administrator can review them. The script will be written in PHP and will most likely run o...
[ 0.38375934958457947, 0.18140806257724762, 0.6159420609474182, 0.3694685399532318, -0.03745712339878082, -0.11681761592626572, 0.5086092352867126, -0.09205731004476547, -0.17287850379943848, -0.46552199125289917, -0.22190992534160614, 0.3259132504463196, 0.0065239230170845985, -0.0757762417...
checking the status of a url in PHP considering both accuracy and performance? Use the PHP cURL extension. Unlike fopen() it can also make HTTP HEAD requests which are sufficient to check the availability of a URL and save you a ton of bandwith as you don't have to download the entire body of the page to check. As a s...
[ 0.26899388432502747, -0.34400925040245056, 0.7225468754768372, 0.07800156623125076, -0.16667936742305756, -0.3790731132030487, 0.25216031074523926, -0.07368484884500504, 0.1226520836353302, -0.6005590558052063, 0.022604020312428474, 0.601410448551178, -0.12023158371448517, -0.3044582009315...
output to browser CURLOPT_URL => $url, // set URL CURLOPT_NOBODY => true, // do a HEAD request only CURLOPT_TIMEOUT => $timeout); // set timeout curl_setopt_array($ch,
[ 0.05762043595314026, -0.15027694404125214, 0.8287457823753357, -0.18945100903511047, 0.07744662463665009, -0.20550094544887543, 0.34639114141464233, 0.014729110524058342, -0.07652987539768219, -0.7448254227638245, -0.7119565606117249, 0.12540020048618317, -0.3327924311161041, -0.1263782531...
$opts); curl_exec($ch); // do it! $retval = curl_getinfo($ch, CURLINFO_HTTP_CODE) == 200; // check if HTTP OK curl_close($ch); // close handle return $retval; } ``` However, there's a ton of possible optimizations: You might want to re-use the cURL instance and, if checking more than one URL per ...
[ 0.1097869873046875, 0.002765476005151868, 0.9290404915809631, -0.11322828382253647, -0.10503003001213074, -0.29641538858413696, 0.3780144453048706, -0.18418638408184052, -0.18676398694515228, -0.48234373331069946, -0.3333807587623596, 0.6500535011291504, -0.3962599039077759, -0.07650145143...
Where is a reliable registry key to find install location of Excel 2007? How about: ``` [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\X.0\Common\InstallRoot] ``` > which contains a key named 'Path' with > the installation directory of that > version of Office. This is consistent > for Excel 8.0 through 12.0. If y...
[ -0.030855577439069748, 0.4115945100784302, 0.05221264809370041, 0.32928740978240967, -0.16928400099277496, -0.11109617352485657, 0.19657231867313385, 0.0895390510559082, -0.25540727376937866, -0.4878798723220825, 0.016630366444587708, 0.5920090079307556, -0.009721100330352783, -0.204334244...
I need to search a string and replace all occurrences of `%FirstName%` and `%PolicyAmount%` with a value pulled from a database. The problem is the capitalization of FirstName varies. That prevents me from using the `String.Replace()` method. I've seen web pages on the subject that suggest ``` Regex.Replace(strInput, ...
[ 0.11466258764266968, 0.246379554271698, 0.29816994071006775, -0.10879849642515182, 0.11613427102565765, 0.2174476683139801, 0.11312402039766312, 0.0056305560283362865, 0.00044227237231098115, -0.6363561749458313, 0.06146346777677536, 0.5080342888832092, 0.050295390188694, 0.472505927085876...
special characters? [From MSDN](http://msdn.microsoft.com/en-us/library/ewy2t5e0.aspx) $0 - "Substitutes the last substring matched by group number number (decimal)." In .NET Regular expressions group 0 is always the entire match. For a literal $ you need to ``` string value = Regex.Replace("%PolicyAmount%", "%Pol...
[ -0.2516346275806427, -0.08093427866697311, 0.4810106158256531, -0.13498231768608093, -0.04678984731435776, 0.37258273363113403, -0.04853152111172676, -0.20956160128116608, -0.1670227348804474, -0.3691019117832184, -0.4604908525943756, 0.5767907500267029, -0.15242742002010345, -0.3097478747...
I'm using Delphi 6, and I want a database bound list box with multiselect. I found three types of List boxes: `TListBox`, `TDBListBox` and `TDBLookupListBox`. As far as I can understand, `TListbox` is not bound to database. `TDBListBox` and `TDBLookupListBox` can't be multiselected. Is there a way to get a multisele...
[ 0.07466568052768707, -0.14740341901779175, 0.40245455503463745, 0.12263476103544235, -0.39187195897102356, -0.1758696734905243, 0.23236359655857086, -0.36653509736061096, -0.21609973907470703, -0.6373074650764465, -0.06251846253871918, 0.4542684257030487, -0.7161886692047119, -0.0762805044...
use an invisible data listbox and copy the contents to a normal listbox.
[ 0.3050336241722107, -0.11588531732559204, -0.019826265051960945, 0.29937782883644104, 0.13642250001430511, -0.5178530216217041, 0.10073631256818771, 0.159462571144104, -0.22825466096401215, -0.6159849166870117, -0.4059966802597046, 0.057591941207647324, -0.6741700768470764, 0.1095340996980...
This is baffling me, maybe somebody can shine the light of education on my ignorance. This is in a C# windows app. I am accessing the contents of a listbox from a thread. When I try to access it like this ``` prgAll.Maximum = lbFolders.SelectedItems.Count; ``` I get the error. However, here is the part I don't get. If...
[ 0.37860342860221863, 0.15036161243915558, 0.20849700272083282, -0.005303954239934683, -0.07765034586191177, -0.16086870431900024, 0.42819827795028687, 0.2052919715642929, -0.23041841387748718, -0.948966920375824, 0.12147724628448486, 0.6537375450134277, -0.2854576110839844, 0.1707370430231...
way to access them is via delegate. My question was mainly this: Why can I access and iterate through the SelectedItems object just fine, but when I try to get (not set) the Count property of it, it blows up. ``` prgAll.Maximum = lbFolders.SelectedItems.Count; ``` On that line you perform an assignment (**set/add**)...
[ 0.09323755651712418, -0.1233937069773674, 0.14174491167068481, 0.10438650846481323, -0.038980770856142044, -0.059363458305597305, 0.16182956099510193, -0.26763007044792175, -0.38016754388809204, -0.6939687132835388, -0.06608865410089493, 0.38231804966926575, -0.3640890419483185, 0.22636660...
I know that `tan(angle)` gets me the tangent. But how do I do the "reverse tangent" so that I can get the angle given the length of both sides of the right triangle? I'm assuming there is a method for this in `math.h`? There should be an atan() function. For example: <http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2...
[ 0.2799380421638489, 0.3186889886856079, 0.1577521711587906, -0.231581449508667, -0.20358000695705414, 0.1114843413233757, -0.19748063385486603, 0.01248626597225666, -0.18029716610908508, -0.538128674030304, 0.2392270565032959, 0.8987945914268494, 0.17670989036560059, 0.0856187492609024, ...
This is the css for setting the color for h1 text that is linked: ```css .nav-left h1 a, a:visited { color: #055830; } ``` ```html <div class="nav-left"> <h1><a href="/index.php/housing/">Housing</a></h1> </div> ``` It does not look like it is working appropriately, any help is appreciated. What about: ```...
[ -0.31484687328338623, 0.04339652508497238, 0.47439610958099365, -0.26309385895729065, -0.004210122860968113, 0.2799466550350189, 0.02810254693031311, -0.004737240262329578, -0.36082738637924194, -0.8640486598014832, -0.39838507771492004, 0.10035363584756851, -0.5445789098739624, 0.10338007...
I'm planning to write gateway web application, which would need "terminal window" with VT100/ANSI escape code support. Are there any AJAX based alternatives for such a task? I'm thinking something like this: <http://tryruby.hobix.com/> My preferred backend for the system is Python/Twisted/Pylons, but since I'm just p...
[ -0.17296256124973297, 0.13187509775161743, 0.3914628028869629, 0.00013164615666028112, 0.08102225512266159, -0.003708986332640052, 0.2672577202320099, -0.02004684880375862, -0.23583486676216125, -0.8542132377624512, -0.037980373948812485, 0.4640655219554901, -0.050192322582006454, -0.20042...
Can I use comments inside a [JSON](https://en.wikipedia.org/wiki/JSON) file? If so, how? No. JSON is data-only. If you include a comment, then it must be data too. You could have a designated data element called `"_comment"` (or something) that should be ignored by apps that use the JSON data. You would probably be ...
[ 0.4416954517364502, 0.10994190722703934, 0.1348501741886139, 0.1579378843307495, -0.09065674990415573, -0.28907009959220886, -0.1104251816868782, 0.04514119401574135, -0.14545802772045135, -0.6736420392990112, -0.4841424822807312, 0.49322453141212463, -0.16678158938884735, -0.1588889807462...
"title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language",
[ -0.2719041109085083, 0.040859442204236984, 0.64668869972229, 0.41380763053894043, -0.23773977160453796, 0.00665240129455924, -0.037807006388902664, -0.06061186641454697, -0.07138308882713318, -0.540351390838623, -0.7433021664619446, 0.16264981031417847, -0.2363811433315277, -0.209765806794...
"Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"]
[ 0.0774543508887291, 0.04450126737356186, 0.5412668585777283, 0.33908432722091675, -0.1330210566520691, -0.12551894783973694, -0.2063795030117035, -0.1488228291273117, -0.20190660655498505, -0.11802702397108078, -0.6082618236541748, 0.3699571490287781, -0.28624412417411804, 0.04666779190301...
}, "GlossSee": "markup" } } } } } ```
[ -0.34055450558662415, 0.28866493701934814, 0.0775575265288353, -0.09513486921787262, 0.18577241897583008, -0.10635992884635925, 0.028937287628650665, 0.2347736656665802, 0.18643903732299805, -0.6376464366912842, -0.5556461811065674, 0.4575898051261902, -0.2853585183620453, 0.05339504778385...
I have the following `before_filter`: ``` def find_current_membership respond_to do |wants| wants.html { @current_membership = @group.memberships.for(@current_user) } wants.rss {} wants.js { @current_membership = @group.memberships.for(@current_user) } end end ``` I would like to sha...
[ 0.33676865696907043, 0.05929233133792877, 0.39921069145202637, -0.21909789741039276, 0.023718111217021942, -0.20140275359153748, 0.2889212667942047, -0.5697820782661438, -0.10525743663311005, -0.6042404770851135, -0.014230753295123577, 0.35682180523872375, -0.37606555223464966, 0.091538421...
wants.all { @current_membership = @group.memberships.for(@current_user) } end end ``` But alas, it did not. If I'm reading this right, it looks like `find_current_membership` is your `before_filter` method, is that right? eg: ``` class SomeController < ApplicationController before_filter :find_current_membe...
[ 0.16145923733711243, -0.08577773720026016, 0.673152506351471, -0.11993493884801865, 0.23992469906806946, -0.1640138179063797, 0.0177993755787611, -0.391609787940979, -0.31838685274124146, -0.5242772698402405, -0.024487975984811783, 0.6145700216293335, -0.2681193947792053, 0.051177568733692...
# stuff, or maybe nothing end private def find_current_membership @current_membership = @group.memberships.for(@current_user) unless request.format.rss? end end ```
[ 0.46509069204330444, 0.006210819352418184, 0.5522905588150024, 0.1569814831018448, 0.33540892601013184, -0.8187376260757446, 0.26953068375587463, 0.2397979199886322, -0.3759288489818573, -0.023415174335241318, -0.2927606403827667, 0.3259313702583313, -0.2170851081609726, 0.3627498149871826...
Simple question really - how do I use `text_field_with_auto_complete` inside a `form_for` block? I've tried doing `f.text_field_with_auto_complete` but that gives an error, and just using `text_field_with_auto_complete` by itself doesn't seem to do anything. Am I missing something here? A couple of months back I wrot...
[ 0.30386894941329956, 0.03594500198960304, 0.15750914812088013, -0.26661214232444763, -0.17125731706619263, -0.020551882684230804, 0.28318777680397034, -0.26801037788391113, -0.43334636092185974, -0.32854360342025757, 0.038865890353918076, 0.6552252173423767, -0.31353265047073364, -0.159338...
article for details for how it works: <http://patshaughnessy.net/2008/10/31/modifying-the-autocomplete-plugin-to-allow-repeated-fields>
[ 0.13226273655891418, -0.06992263346910477, -0.07134833186864853, -0.2796548008918762, 0.06660300493240356, -0.236235573887825, 0.42727571725845337, 0.13532036542892456, -0.03345906734466553, -0.26256227493286133, -0.28793051838874817, 0.6425878405570984, -0.4060420095920563, 0.001147472881...
For my web service component, I need to generate a relatively large XML (~500 lines) according to many factors. I am facing a few different choices here: 1. StringBuilder 2. XmlWriter class 3. C# object with serialization??? Which one should I use. Is there any other ways that I am not aware of? If you populate the XM...
[ 0.2848473787307739, -0.10905655473470688, 0.3874060809612274, 0.2412962168455124, -0.2611023783683777, -0.09610580652952194, -0.041720516979694366, -0.07690335810184479, -0.13523714244365692, -0.6613419651985168, -0.024103965610265732, 0.3583919107913971, -0.21844550967216492, 0.3043616414...
I have an existing database with the table Transactions in it. I have added a new table called TransactionSequence where each transaction will ultimately have only one record. We are using the sequence table to count transactions for a given account. I have mapped this as a one-to-one mapping where TransactionSequence ...
[ -0.18928876519203186, 0.0237087644636631, 0.3675612509250641, -0.06053668260574341, -0.10998419672250748, 0.06233498454093933, -0.13490690290927887, -0.07812555879354477, -0.4961449205875397, -0.5796951055526733, 0.3791905641555786, 0.4455707371234894, -0.22110377252101898, 0.4021674692630...
like 'UPDATE Transaction SET TransactionId = ? WHERE TransactionId = ?'. But this fails because of the trigger. How can I configure my mapping so that NHibernate will not try to update the Transaction table when a new TransactionSequence table is inserted? Transaction mapping: ``` <class name="Transaction" table="Tra...
[ -0.5315824151039124, -0.17526350915431976, 0.4840567708015442, -0.042662039399147034, 0.09945587068796158, -0.15961991250514984, 0.016370680183172226, -0.42711761593818665, -0.3129168152809143, -0.7318770289421082, 0.04352180287241936, 0.5886995792388916, -0.5373256802558899, 0.28557732701...
lazy="false" constrained="false"> </one-to-one> </class> ``` And the sequence mapping: ``` <class name="TransactionSequence" table="TransactionSequence" dynamic-update="true"> <id name="TransactionId" column="TransactionID" type="Int32"> <generator class="foreign"> <param name="prop...
[ -0.47419530153274536, -0.23528388142585754, 0.3357290029525757, -0.04944318160414696, 0.08113511651754379, 0.23610128462314606, -0.265843003988266, -0.5513561964035034, -0.5986613035202026, -0.5275565385818481, -0.19196216762065887, 0.6760464310646057, -0.328212171792984, 0.071455948054790...
class="Transaction" constrained="true" foreign-key="fk_Transaction_Sequence" /> </class> ``` Any help would be greatly appreciated... One to one mapping in nhibernate doesn't work the way you think it does. It's designed so that you have two classes, which when persisted to their co...
[ -0.5358893871307373, 0.08314533531665802, 0.2808813750743866, 0.005786384455859661, -0.12205495685338974, 0.03615756332874298, -0.1296224296092987, -0.06642956286668777, -0.36108526587486267, -0.6742353439331055, 0.061436936259269714, 0.43193334341049194, -0.43081849813461304, 0.3258929550...
Sequence html: ``` <many-to-one name="Transaction" class="Transaction" column="fk_Transaction_Sequence" /> ``` This *should* do what you want it to do. Note the property-ref. The next question you're going to post on is going to ask how you get lazy loading on one-to-one associations. The answer is, you can't... we...
[ -0.13756535947322845, 0.18208926916122437, 0.2960165739059448, -0.3424491882324219, -0.13343462347984314, -0.11162744462490082, -0.02889806032180786, -0.11200542002916336, -0.24432413280010223, -0.5121366381645203, 0.051821041852235794, 0.3275589048862457, -0.8127612471580505, 0.3119233250...
it's going to result in a total waste of your time. I suggest either: 1. Have two many-to-one associations. 2. Have a many-to-one association with a collection on the other end. This will save you a lot of headaches in the long run.
[ 0.4413798451423645, 0.03359914571046829, -0.16105467081069946, 0.26074469089508057, -0.11231536418199539, -0.17814457416534424, -0.002955063246190548, -0.1057041734457016, -0.23535197973251343, -0.28092753887176514, 0.30536985397338867, 0.608264148235321, -0.21951447427272797, -0.014098530...
I'm stuck with .Net 1.1 application (i.e. I can not use the generics goodies from 2.0 for now), and I was trying to optimize some parts of the code. As it deals a lot with runtime callable wrappers, which need to be released, I ended up to create a utility method which loops until all references are released. The signa...
[ 0.3435388505458832, 0.06521809101104736, 0.31913310289382935, -0.0035416092723608017, 0.0036729350686073303, -0.4768546521663666, 0.23483647406101227, 0.11617504805326462, -0.39453867077827454, -0.4822006821632385, -0.0609435960650444, 0.5107506513595581, -0.4185976982116699, 0.50056517124...
reference to null before the GC.Collect call, it does not cleanup properly. So, my code looks like: ``` ReleaseObject(myComObject); myComObject = null; GC.Collect() ... ``` As, there are a bunch of xxx=null, I decided to put this in the util method, but as there is a difference between passing by reference, and pas...
[ -0.18159990012645721, 0.2818441689014435, 0.4837470054626465, -0.1558920294046402, -0.017539188265800476, -0.07112372666597366, 0.3428925573825836, -0.09880919754505157, -0.1418403685092926, -0.5117444396018982, -0.07842423021793365, 0.5396770238876343, -0.6898083686828613, 0.3053165674209...
reverse cast from object to MyComClass is not implicit, and there is no guarantee what the method will do), I was wondering if there is a workaround, or I need to stay with my hundreds assignments of nulls. Note: I have a bunch of different COM objects types, thats why I need a "object" parameter, and not a type safe ...
[ 0.03476383164525032, -0.01991390995681286, 0.07840417325496674, -0.12580840289592743, -0.21838583052158356, 0.2219768911600113, 0.4212224781513214, -0.026009080931544304, 0.029895838350057602, -0.3770955502986908, 0.43606075644493103, 0.6561176180839539, -0.47203898429870605, 0.25838494300...
the first place though. Are these static variables, or instance variables whose values need to be released earlier than their containing object? If the variable is just a local variable which will go out of scope anyway, setting it to null shouldn't make any difference (in release). Do the RCWs not implement IDisposab...
[ 0.615760087966919, -0.007515954319387674, 0.14579539000988007, 0.20336943864822388, -0.020575277507305145, -0.48951637744903564, 0.2523423135280609, -0.03248901665210724, -0.3940012454986572, -0.2435445934534073, 0.1357702761888504, 0.6023836731910706, -0.4058831036090851, 0.39139190316200...
to null shouldn't make any difference. To answer the original question directly, however: no, you can't pass a variable by reference unless the method parameter is of exactly the same type, so you're out of luck here. (With generics it would be possible, but you've said you're limited to .NET 1.1.)
[ 0.3863620460033417, -0.2865423858165741, -0.06617198884487152, 0.11288436502218246, -0.3346467614173889, -0.44029462337493896, 0.6018173694610596, 0.0719158872961998, -0.20225615799427032, -0.07490257173776627, 0.04295578971505165, 0.1569938212633133, -0.4700106978416443, 0.296026080846786...
I'm having some problems with the ranking used by fulltext search in SQL Server. Suppose a user searches for two words, "foo bar". We assume the user intends to do an OR search, so we pass "foo OR bar" to our CONTAINSTABLE call. What we're finding is that an row that contains "foo" 10 times but does not contain "bar" ...
[ 0.15139807760715485, 0.2957126796245575, 0.3984290063381195, -0.10357742756605148, -0.15052375197410583, -0.06445375084877014, -0.033598318696022034, -0.04243416339159012, -0.1835518777370453, -0.5763595104217529, -0.014286208897829056, 0.3294871747493744, -0.2935141324996948, 0.1941959112...
how to achieve this? I have found documentation related to a RANKMETHOD modifier, but that seems to be for SQL Enterprise search only, and not available on regular SQL Server 2005 installs. We could also switch to Lucene.Net, but I would hope to verify it has the better ranking available. We might also do multiple sea...
[ -0.115333691239357, -0.23995476961135864, 0.28076085448265076, 0.2924099862575531, -0.24517643451690674, -0.025765497237443924, 0.17211343348026276, 0.16977134346961975, -0.03141769766807556, -0.6870887875556946, 0.07395821064710617, 0.3175063729286194, -0.08430109173059464, 0.088350206613...
a different column than B. If I create a view on the table that merges those columns into a single column, the ranking for "A or B" is more what I expected.
[ 0.01118012797087431, -0.1401163637638092, 0.14062058925628662, -0.08756565302610397, -0.19267748296260834, 0.26297900080680847, -0.011344416067004204, 0.06335567682981491, -0.472968727350235, -0.514168381690979, -0.056097377091646194, -0.04787449911236763, -0.16816043853759766, 0.194589868...
Does anyone know if there's an add-in that does autocomplete for queries on SQL Management Studio? Take a look at [Red Gate's SQL Prompt](http://www.red-gate.com/products/SQL_Prompt/index.htm).
[ 0.1632329374551773, 0.06754022091627121, 0.032073576003313065, 0.2488740235567093, -0.018012402579188347, -0.3421969413757324, 0.4140523076057434, 0.2551470100879669, -0.0849534422159195, -0.4363483190536499, -0.013727836310863495, 0.47774815559387207, -0.07005718350410461, -0.077962614595...
Is there a way to change the default pages used to edit/create/view a Sharepoint list item without using SharePoint designer? Since I've already created the aspx files on the development machine, it seem's a bit silly to have to install SharePoint designer on the customers server just to set a few default pages. Take a...
[ 0.20525330305099487, -0.17820414900779724, 0.348023921251297, 0.13422435522079468, -0.07131441682577133, -0.0800015777349472, -0.004102709237486124, -0.04953324794769287, -0.11288536339998245, -0.6471595764160156, 0.3432787358760834, 0.4762752950191498, -0.13753236830234528, 0.136019200086...
We are re-platforming for a client, and they are concerned about SEO. Their current site supports SEO friendly URLs, and so does the new platform. So for those, we are just going to create the same URL mapping. However, they have a large number of other URLs that are not SEO friendly that they want to permanently redir...
[ 0.5093668699264526, 0.0720205083489418, 0.8019741773605347, 0.2635294795036316, -0.11773993819952011, -0.434047132730484, 0.04002007842063904, -0.26844289898872375, -0.17174150049686432, -0.5443779230117798, -0.04766874387860298, 0.4210687279701233, -0.25536584854125977, 0.0803529694676399...
works along with the hard redirects. One approach (the one [I chose](http://blog.kaeding.name/articles/2008/07/22/migrating-urls-with-apache)) was to create a simple table of old urls and new ones, and then use [mod\_rewrite](http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html) to read the table and perform redirects...
[ -0.014112108387053013, -0.022534754127264023, 0.7181662321090698, -0.07707718759775162, -0.07996471226215363, -0.11918821930885315, 0.0885484591126442, -0.30290812253952026, -0.44455432891845703, -0.8523629903793335, -0.16094008088111877, 0.4957672357559204, -0.18500803411006927, 0.1731249...
I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie? Also, are there common mistakes to watch out for to keep this cookie fr...
[ -0.09800639748573303, 0.3341550827026367, 0.4013168215751648, -0.06719174981117249, -0.0030630831606686115, -0.10763300210237503, 0.7517285943031311, -0.23765651881694794, -0.31933164596557617, -0.47520387172698975, 0.26043370366096497, 0.7621332406997681, 0.15901735424995422, 0.1158523783...
(2015): 1. When the user successfully logs in with Remember Me checked, a **login cookie is issued** in addition to the standard session management cookie. 2. The login cookie contains **a series identifier and a token**. The series and token are **unguessable random numbers** from a suitably large space. Both are sto...
[ 0.2345501184463501, 0.11756356805562973, 0.6153532862663269, -0.10582069307565689, 0.034021880477666855, -0.09254652261734009, 0.15308430790901184, -0.44449907541275024, -0.1907217651605606, -0.614132285118103, -0.37654852867126465, 0.4317958652973175, -0.1397680640220642, 0.16010899841785...
series identifier, the user is considered **authenticated**. A **new token** is generated, a new hash for the token is stored over the old record, and a new login cookie is issued to the user (it's okay to re-use the **series identifier**). 2. If the series is present but the token does not match, a **theft** is assum...
[ 0.2745467722415924, -0.13855360448360443, 0.686149001121521, 0.039028339087963104, 0.11424048990011215, -0.29148098826408386, 0.5542997121810913, -0.44818174839019775, -0.21624642610549927, -0.5946409702301025, -0.35307085514068604, 0.4029097259044647, -0.36081138253211975, 0.4264057874679...
an attacker an open door for impersonating users.
[ -0.10131481289863586, 0.09097957611083984, -0.024005994200706482, -0.03766261786222458, -0.111661896109581, 0.04532836750149727, 0.5556488037109375, 0.0666983425617218, -0.06628885865211487, -0.5837699174880981, -0.42103564739227295, 0.2256656289100647, -0.27655571699142456, -0.04350085929...
I have a performance problem with my ruby on my machine, which I think I have isolated to loading libraries (when #require is called), so I'm trying to work out whether ruby is searching too many folders for libraries. When I run ``` $ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.3.0 - RUBY VERSIO...
[ 0.11926791071891785, 0.39352893829345703, 0.15234968066215515, -0.2580887973308563, -0.14234384894371033, -0.06197825446724892, 0.6524832844734192, -0.26607733964920044, -0.16907887160778046, -0.7606996893882751, -0.2013133019208908, 0.9846174716949463, -0.36594685912132263, -0.03506025299...
- /Users/matt/.gem/ruby/1.8 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.or...
[ 0.14639690518379211, 0.16878964006900787, 0.19196192920207977, 0.18928134441375732, -0.03761337697505951, -0.33753928542137146, 0.6413308382034302, -0.24160607159137726, -0.1980900764465332, -0.333760529756546, -0.36302077770233154, 0.7011502385139465, 0.03388582542538643, -0.0080994535237...
all looks pretty standard to me. My mac running MacOS 10.5 similarly has nothing in ~/.gem/ruby/1.8/gems/ and quite a bit in the other two locations.
[ 0.3310456871986389, 0.12132161110639572, 0.17392313480377197, 0.06938554346561432, 0.021615786477923393, -0.0698142945766449, 0.4047670066356659, 0.17903007566928864, -0.12108404189348221, -0.34059378504753113, -0.04916450381278992, 0.6676795482635498, 0.07040582597255707, -0.1006558611989...
By default Windows (XP) shows the **underlined hotkeys** only, when ALT is pressed. This can be changed in display-properties in the subdialog "Effects" so, that the hotkeys are **always underlined** How can it be changed programmatically? Which API-call or registry-setting can be used to change this setting? I found ...
[ -0.07222083956003189, -0.19079428911209106, 1.0875678062438965, -0.0951623022556305, 0.06949115544557571, 0.06087685003876686, 0.3442295789718628, -0.2704548239707947, -0.23276127874851227, -0.6860305070877075, -0.22416794300079346, 0.6962088942527771, -0.38030508160591125, -0.255791127681...
I'm making a shell script to find bigrams, which works, sort of. ``` #tokenise words tr -sc 'a-zA-z0-9.' '\012' < $1 > out1 #create 2nd list offset by 1 word tail -n+2 out1 > out2 #paste list together paste out1 out2 #clean up rm out1 out2 ``` The only problem is that it pairs words from the end and start of the pr...
[ -0.19574293494224548, 0.30926910042762756, 0.3147437572479248, -0.29201605916023254, -0.24782340228557587, 0.3163520395755768, 0.4901885986328125, 0.02550172246992588, -0.14420098066329956, -0.523534893989563, 0.012259377166628838, 0.5730842351913452, -0.3846912384033203, -0.09427479654550...
the legitimate bigrams. Java and Javascript are similar like Car and Carpet are similar.
[ 0.41061946749687195, -0.02844511717557907, 0.11806811392307281, 0.10870640724897385, -0.014740683138370514, -0.21201924979686737, -0.020231202244758606, 0.103838250041008, -0.3125925362110138, -0.44060590863227844, -0.15632307529449463, 0.534578263759613, -0.2671831548213959, -0.1456255465...
I am writing a stored procedure where I have an input parameter called *my\_size* that is an *INTEGER*. I want to be able to use it in a `LIMIT` clause in a `SELECT` statement. Apparently this is not supported, is there a way to work around this? ``` # I want something like: SELECT * FROM some_table LIMIT my_size; # ...
[ 0.1778065264225006, 0.20029392838478088, 0.36762291193008423, -0.13762784004211426, 0.14154458045959473, 0.10596802085638046, 0.015115099959075451, 0.03450867906212807, -0.47486838698387146, -0.47997963428497314, 0.11733802407979965, 0.3039570450782776, -0.33818021416664124, 0.274031072854...
> <http://forums.mysql.com/read.php?98,126379,133966#msg-133966> > > > However, I think this bug should get some attention because I can't > imagine that prepared statements within a procedure will allow for any > procedure-compile-time optimizations. I have a feeling that prepared > statements are compiled and ex...
[ 0.17789828777313232, 0.13803358376026154, 0.18542711436748505, 0.10995019972324371, 0.23843520879745483, 0.04410487413406372, 0.407191663980484, -0.19473016262054443, -0.09500817209482193, -0.44204431772232056, 0.0008150610374286771, 0.696114718914032, -0.35506942868232727, 0.0278611034154...
procedure. I'm no expert > though.
[ 0.4159092903137207, 0.11502830684185028, 0.2125271111726761, 0.06358002871274948, 0.12637928128242493, -0.1525024026632309, 0.5550447702407837, -0.17711502313613892, -0.14163708686828613, -0.43800631165504456, 0.21975043416023254, 0.43508121371269226, -0.18939322233200073, -0.1044754385948...
I'd love a *good* native Python library to write XLS, but it doesn't seem to exist. Happily, Jython does. So I'm trying to decide between jexcelapi and Apache HSSF: <http://www.andykhan.com/jexcelapi/tutorial.html#writing> <http://poi.apache.org/hssf/quick-guide.html> (I can't use COM automation because I'm not on Wi...
[ 0.19370464980602264, 0.1416466236114502, 0.0654381737112999, -0.07117491960525513, -0.3035559058189392, -0.018722020089626312, 0.2662237584590912, -0.07010531425476074, 0.03957224264740944, -0.7923582792282104, -0.03333539143204689, 0.46091872453689575, -0.15955449640750885, -0.39229986071...
doesn't have very good documentation or community. Which would you use, and why? What's wrong with [xlwt](http://pypi.python.org/pypi/xlwt)?
[ 0.6710379123687744, -0.015370173379778862, -0.25930148363113403, 0.12073034048080444, -0.1428440809249878, -0.021616129204630852, 0.0840873047709465, 0.36565500497817993, -0.4231579005718231, -0.14927680790424347, -0.06910475343465805, 0.2684473693370819, -0.6307082772254944, -0.2789770662...
ffdshow has this [awesome little API](http://ffdshow-tryout.svn.sourceforge.net/viewvc/ffdshow-tryout/trunk/src/ffdshowRemoteAPI.cpp?view=markup) for controlling playback of video files. It allows you to change subtitles, fast forward, get the name of the file playing, etc... Its implemented as a windows message loop ...
[ 0.551943838596344, -0.2196202427148819, 0.5838499665260315, 0.18354123830795288, -0.3076138496398926, -0.421928733587265, 0.11046982556581497, -0.05315975472331047, -0.268004834651947, -0.49885666370391846, 0.3862699270248413, 0.6940063238143921, -0.34353315830230713, 0.31987106800079346, ...
a bit fiddly, and this is for an open source project anyway so I have very limited time to work on it. ### This question remains unanswered, the bounty system chose a wrong answer for this question. A plugin in class has been created and is available here: <http://damienbt.free.fr/Information.htm>
[ 0.5256211161613464, -0.024536777287721634, 0.5505659580230713, 0.07390844821929932, -0.2149340957403183, -0.3107445538043976, 0.39611706137657166, -0.07684724032878876, -0.10669458657503128, -0.3164665997028351, 0.07606539875268936, 0.4545457661151886, 0.07797884941101074, 0.05301822349429...
Is there a pure-Java equivalent to <jsp:forward page="..." /> that I can use within a <% ... %> block? For example, I currently have a JSP page something like this: ``` <% String errorMessage = SomeClass.getInstance().doSomething(); if (errorMessage != null) { session.setAttribute("error", errorMessag...
[ -0.18888087570667267, 0.18484719097614288, 0.3817127048969269, -0.38980913162231445, -0.4574248790740967, 0.1868538111448288, 0.604195773601532, -0.6303540468215942, -0.1625475287437439, -0.5429919362068176, 0.135127991437912, 0.38874512910842896, -0.0399361290037632, 0.25582650303840637, ...
harder to read due to indentation, among other things. So, can I do the forward in the Java code without use the JSP tag? Something like this would be ideal: ``` <% String errorMessage = SomeClass.getInstance().doSomething(); if (errorMessage != null) { session.setAttribute("error", errorMessage); ...
[ -0.23623138666152954, 0.17839579284191132, 0.7704160213470459, -0.25800424814224243, -0.36581841111183167, -0.04523356631398201, 0.2793590724468231, -0.43771597743034363, -0.18399880826473236, -0.526244044303894, -0.04352550208568573, 0.31158843636512756, -0.10702355206012726, 0.1898644417...
in JSP, so you can use it like this: ``` pageContext.forward("<some relative jsp>"); ```
[ -0.35177260637283325, 0.05931694060564041, 0.40765661001205444, -0.2706322968006134, -0.45777222514152527, -0.3556092381477356, -0.028572576120495796, 0.06570257246494293, -0.12369842082262039, -0.6546552181243896, -0.39091211557388306, 0.42715728282928467, -0.3926744759082794, -0.21865040...
I'd like to check ancestry using two jQuery objects. They don't have IDs, and are only going to be available as jQuery objects (or DOM nodes if you called `get()`). jQuery's `is()` only works with expressions, so this code would be ideal but will not work: ``` var someDiv = $('#div'); $('a').click(function() { if...
[ 0.3756084740161896, -0.11524499952793121, -0.0702064037322998, 0.0016803001053631306, 0.40664398670196533, 0.019222304224967957, 0.20677264034748077, -0.30753451585769653, -0.007861310616135597, -0.44690239429473877, 0.11107795685529709, 0.17886944115161896, -0.12591880559921265, 0.4363170...
element exists in a list, so would the following work? ``` var someDiv = $('#div'); $('a').click(function() { if ($(this).parents().index(someDiv) >= 0) { alert('boo'); } } ``` From [#index reference](http://docs.jquery.com/Core/index#subject).
[ 0.24401317536830902, -0.064958356320858, 0.04245076701045036, -0.2693924009799957, 0.1900203377008438, -0.1697055548429489, 0.20797188580036163, -0.34224942326545715, -0.06665799766778946, -0.3440679609775543, -0.4179992377758026, 0.4946320056915283, -0.3697405159473419, 0.1195908561348915...
Is there an **efficient** way to create a file with a given size in Java? In C it can be done with [ftruncate](http://linux.die.net/man/2/ftruncate) (see [that answer](https://stackoverflow.com/questions/139261/how-to-create-a-file-with-a-given-size-in-linux#245239)). Most people would just write **n** dummy bytes i...
[ 0.13119575381278992, -0.13437466323375702, 0.17333504557609558, -0.24795301258563995, -0.058492742478847504, -0.07915638387203217, -0.1541421264410019, -0.38324373960494995, -0.49301841855049133, -0.5422559380531311, -0.11630751192569733, 0.23349368572235107, -0.45090264081954956, 0.037205...
RandomAccessFile f = new RandomAccessFile("t", "rw"); f.setLength(1024 * 1024 * 1024); } } ``` on a Linux machine will allocate the space using the ftruncate(2) ``` 6070 open("t", O_RDWR|O_CREAT, 0666) = 4 6070 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 6070 lseek(4, 0, SEEK_CUR) ...
[ -0.20507988333702087, -0.5230622887611389, 0.7116115093231201, -0.1954973042011261, 0.15239471197128296, 0.3533894419670105, -0.07747870683670044, -0.25453251600265503, -0.19990846514701843, -0.7229203581809998, -0.28513696789741516, 0.5044564008712769, -0.42285457253456116, 0.041751660406...
of the fcntl(2) system call. ``` /2: open64("t", O_RDWR|O_CREAT, 0666) = 14 /2: fstat64(14, 0xFE4FF810) = 0 /2: llseek(14, 0, SEEK_CUR) = 0 /2: fcntl(14, F_FREESP64, 0xFE4FF998)
[ -0.4340354800224304, -0.10088104009628296, 0.6582329869270325, -0.3594963848590851, 0.20975905656814575, -0.25046780705451965, 0.2577759921550751, -0.4789979159832001, 0.0503276027739048, -0.5655173659324646, -0.4558262228965759, 0.7449522018432617, -0.7145437002182007, -0.2552110552787781...
= 0 ``` In both cases this will result in the creation of a sparse file.
[ 0.020692380145192146, 0.04910079762339592, 0.24703967571258545, -0.35153862833976746, 0.16788260638713837, -0.36376503109931946, 0.20910753309726715, -0.2131207138299942, -0.024114521220326424, -0.3467969596385956, -0.2767750322818756, 0.16525475680828094, -0.41075438261032104, 0.420681208...
We have a common problem of moving our development SQL 2005 database onto shared web servers at website hosting companies. Ideally we would like a system that transfers the database structure and data as an exact replica. This would be commonly achieved by restoring a backup. But because they are shared SQL servers, ...
[ 0.24105486273765564, 0.22109761834144592, 0.18241532146930695, 0.45691826939582825, 0.15307572484016418, -0.10135739296674728, 0.016584567725658417, 0.01206015795469284, -0.3263269364833832, -0.4504888653755188, -0.01813100464642048, 0.45803314447402954, -0.24378782510757446, 0.34170526266...
in an order the conflicts with the database schema. Also, indexes might not be replicated if they are set to auto generate. Thus we are left with a messy operation: 1. Create a script in SQL 2005 that generates the database in SQL 2000 format. 2. Run the script to create a SQL 2000 database in SQL 2000. 3. Create a s...
[ 0.24911648035049438, 0.1863987296819687, 0.22759225964546204, 0.1655181497335434, -0.17186221480369568, -0.16048744320869446, 0.23581036925315857, -0.4302295446395874, -0.09480751305818558, -0.44392192363739014, 0.2134263813495636, 0.44377392530441284, -0.43068549036979675, 0.1690063178539...
Tasks/Import data. 6. Use SQL 2000 to generate a script that creates the database with indexes and keys. 7. Copy the commands that generate the indexes and foreign keys only. These are located after the table creation commands. Note: In SQL 2005, the indexes and foreign keys are generated as one and cannot be easily se...
[ 0.33591121435165405, 0.17970451712608337, 0.2079029232263565, 0.11440899223089218, -0.019081611186265945, 0.05948604270815849, 0.1683204174041748, 0.022254081442952156, -0.4568765461444855, -0.42320430278778076, 0.10458169877529144, 0.7136845588684082, -0.23210053145885468, -0.105730436742...
I've been running into this problem with Flex for nearly a year, and each time I work up a quick hack solution that works for the time being. I'd like to see if anyone has a better idea. Here are the conditions of a problem: ``` |------Container ------------| | explicitHeight: 400 (or whatever) | ...
[ 0.3295303285121918, -0.0013650376349687576, 0.5827716588973999, 0.03252089396119118, 0.23655468225479126, 0.08025530725717545, 0.19305750727653503, -0.12067315727472305, 0.016495155170559883, -0.8209176659584045, 0.016758771613240242, 0.8331560492515564, 0.01585378125309944, -0.22644865512...
| | | | | |-Repeater------| | | | | | Potentially | | | | | | a lot of stuff. | | |--|--|---------------|---|---| ``` The problem is that, contrary to what I would like to happen, the VBox will ALWAYS expand to accommodate the content inside it, instead of sticking to the ex...
[ 0.5948414206504822, -0.07808413356542587, 0.5441957712173462, 0.10489027202129364, 0.024009263142943382, -0.15126703679561615, 0.08816022425889969, 0.0955476313829422, -0.28757262229919434, -0.4465855062007904, -0.2600335478782654, 0.5219457745552063, -0.18537448346614838, 0.41986063122749...
scroll bar. My solution has been to hard code in a reference to the parent (or however far up the display list we need to go to find an explicitly set value as opposed to a percentage). I've even considered using this in a utility class: ``` public static function getFirstExplicitHeightInDisplayList(comp:UIComponent...
[ 0.2064560502767563, -0.012073483318090439, 0.8276957273483276, -0.17451901733875275, -0.042118340730667114, 0.04840708151459694, 0.2526938021183014, -0.3041262626647949, 0.10407677292823792, -0.7807568311691284, -0.059513915330171585, 0.8018081188201904, -0.14909140765666962, 0.18860827386...
*"By default, the size of the VBox container is big enough to hold the image at it original size. If you disable layout updates, and use the Zoom effect to enlarge the image, or use the Move effect to reposition the image, the image might extend past the boundaries of the VBox container.* *You set the autoLayout pro...
[ 0.3743658661842346, -0.37695321440696716, 0.5375020503997803, 0.004093722905963659, 0.47201967239379883, -0.03109513223171234, 0.31344759464263916, -0.2450786828994751, -0.22030332684516907, -0.3913712799549103, -0.40950092673301697, 0.5717301964759827, -0.06165267154574394, 0.014074561186...
its boundaries.* I hope that will help you.
[ 0.2949681878089905, 0.2212764322757721, 0.26229193806648254, -0.1609232872724533, -0.17133542895317078, 0.0039055885281413794, 0.13221429288387299, -0.1597326695919037, -0.31385838985443115, -0.5243000388145447, 0.3335524797439575, 0.15166446566581726, 0.22284099459648132, 0.13377305865287...
I have the following intentionally trivial function: ``` void ReplaceSome(ref string text) { StringBuilder sb = new StringBuilder(text); sb[5] = 'a'; text = sb.ToString(); } ``` It appears to be inefficient to convert this to a StringBuilder to index into and replace some of the characters only to copy i...
[ 0.10319641977548599, 0.17611625790596008, 0.5037785172462463, -0.3111400902271271, -0.0661327987909317, 0.11119423061609268, 0.35515761375427246, -0.6136502623558044, -0.03580119460821152, -0.5657997727394104, -0.054831910878419876, 0.37206804752349854, -0.3431299924850464, 0.1745516210794...
you must create a new string. Using a StringBuilder as you do above is probably as easy a method as any.
[ 0.5483881831169128, -0.07104738056659698, -0.0004929042770527303, 0.18939629197120667, -0.0038919884245842695, 0.20010943710803986, 0.2688404619693756, -0.2357293963432312, -0.39888161420822144, -0.6647312641143799, -0.12203626334667206, 0.2934069335460663, -0.10782620310783386, 0.30057576...
I have done this: ``` $ z() { echo 'hello world'; } ``` How do I get rid of it? ``` unset -f z ``` Will unset the function named z. A couple people have answered with: ``` unset z ``` but if you have a function and a variable named z only the variable will be unset, not the function.
[ 0.05048595741391182, 0.24196495115756989, 0.2255493700504303, -0.053045693784952164, -0.111932672560215, -0.0644836574792862, 0.222177192568779, 0.029450085014104843, -0.06590546667575836, -0.23049704730510712, -0.21519586443901062, 0.4383441209793091, -0.5101823210716248, 0.57814699411392...
Here's the situation - I've got a shell that loads an external .swf. Now, that .swf is 800x600, but it's an animation piece, and there are elements that extends off the stage. When I load the .swf into the shell and call its width attribute, it returns 1200 - because it's including the elements that break out of the st...
[ 0.16952580213546753, 0.0217122845351696, 0.47237443923950195, -0.02309153415262699, 0.13620048761367798, 0.14605432748794556, -0.16110290586948395, -0.4359387159347534, -0.15495415031909943, -0.648261547088623, 0.11161234974861145, 0.7204774022102356, 0.21836188435554504, -0.14431048929691...
loaded SWF as defined by the FLA it was created with can be found in the `Loader` object in which you've loaded the SWF into. ``` swfLoader.contentLoaderInfo.width swfLoader.contentLoaderInfo.height ``` This will always show you the dimensions as defined in the FLA properties. It makes no difference if any images, M...
[ 0.14002525806427002, 0.1796083301305771, 0.9378709197044373, -0.25996506214141846, 0.05084759369492531, -0.23582807183265686, -0.14323392510414124, -0.09915173798799515, 0.005314827896654606, -0.4843898415565491, -0.19658677279949188, 0.6152878403663635, 0.05094251036643982, -0.02600369788...
I am trying to add different styles within a textarea eg bold, different colors etc WYSIWYG editors (eg tinyMCE) used in web pages typically do this but I am having trouble working out how they do it. You cannot do this: [alt text http://www.yart.com.au/test/html.gif](http://www.yart.com.au/test/html.gif) So how do...
[ 0.4808468520641327, 0.3927263915538788, 0.2046433836221695, 0.07458195835351944, -0.09124070405960083, 0.17488907277584076, 0.1464926302433014, -0.33702826499938965, 0.08269540965557098, -0.7701361775398254, 0.06648935377597809, 0.4176757037639618, -0.38035592436790466, -0.0564623586833477...
called to make styling changes (bold, italic, and so on). Then when the user submits the form they copy the innerHTML from the iframe into the original textarea. For more details about how to enable this mode and what you can do with it see: <https://developer.mozilla.org/En/Rich-Text_Editing_in_Mozilla> However, my s...
[ 0.5322794318199158, -0.1297295242547989, 0.4834369122982025, 0.2294638752937317, -0.00856960378587246, -0.07135222852230072, -0.07716477662324905, -0.2825912535190582, 0.08714202046394348, -0.5862724781036377, -0.00385335017926991, 0.7012994289398193, -0.37225833535194397, -0.1098944395780...
in how you enable editing features, you will also want to normalize the html that is created. For example, IE creates `<br>` elements when the user presses enter and FF creates `<p>` tags. For style changes IE uses `<b>`, `<i>`, etc. while FF uses spans with style attributes.
[ 0.4646148979663849, -0.06212426349520683, 0.29980820417404175, 0.10844699293375015, -0.1588348001241684, -0.11152873188257217, -0.08780739456415176, -0.33191588521003723, -0.4134889543056488, -0.8268002271652222, -0.0906873568892479, 0.4185740351676941, -0.34789329767227173, -0.16654039919...
Let's say I have two arrays: > int ArrayA[] = {5, 17, 150, 230, 285}; > > > int ArrayB[] = {7, 11, 57, 110, 230, 250}; Both arrays are sorted and can be any size. I am looking for an efficient algorithm to find if the arrays contain any duplicated elements between them. I just want a true/false answer, I don't care...
[ 0.1923179179430008, 0.036428581923246384, 0.016108863055706024, -0.08202726393938065, -0.1834481656551361, 0.2965230941772461, 0.20580269396305084, -0.3761403560638428, -0.31940680742263794, -0.587489128112793, -0.00921265222132206, 0.21302513778209686, -0.2329302281141281, 0.2693638205528...
seems like there should be a more efficient algorithm. I would also like a generic solution that doesn't assume that the arrays hold numbers (i.e. the solution should also work for strings). However, the comparison operators are well defined and both arrays are sorted from least to greatest. Pretend that you are doing...
[ -0.12073751538991928, -0.21906433999538422, 0.16867616772651672, -0.12186901271343231, -0.1270456165075302, -0.05894269049167633, 0.36857444047927856, -0.41090425848960876, -0.30101293325424194, -0.6206900477409363, -0.03382840007543564, 0.20520247519016266, -0.5416011810302734, 0.08896280...
ArrayA.length || counterB == ArrayB.length) return false; else if(ArrayA[counterA] == ArrayB[counterB]) return true; else if(ArrayA[counterA] < ArrayB[counterB]) counterA++; else if(ArrayA[counterA] > ArrayB[counterB]) counterB++; else halt_and_catch_fire(); } ``...
[ 0.26654550433158875, -0.15969999134540558, 0.17815981805324554, -0.5315788388252258, -0.03802269697189331, -0.16306404769420624, 0.621900200843811, -0.7094258069992065, -0.058935873210430145, 0.020061062648892403, -0.5304082036018372, 0.520950973033905, -0.5504761338233948, 0.2124619483947...
Most developers understand the concept of [wicked problems](http://en.wikipedia.org/wiki/Wicked_problem). What's a good analogy to use when explaining this concept to project managers? If you want an analogy, I would go with the timeline of NASA. Still technical based, but you do not need any coding skills to understan...
[ 0.26320749521255493, 0.38611629605293274, -0.28568992018699646, 0.3080919086933136, -0.20203909277915955, -0.20910832285881042, 0.4310069680213928, -0.19446872174739838, -0.03502407670021057, -0.5450291037559509, -0.17768041789531708, 0.5066529512405396, -0.07695320248603821, 0.16291789710...
"solve" the problem once in order to > clearly define it and then solve it > again to create a solution that works. When NASA started, they were tasked with getting a man on the moon. I'm sure at the time they had ideas of how they were going to accomplish the task, but there was no way they could spec out the first...
[ 0.3617662489414215, 0.38390323519706726, -0.022878561168909073, 0.5503984093666077, 0.29026082158088684, 0.3023878037929535, 0.01913771592080593, -0.028624078258872032, -0.48029181361198425, -0.622556209564209, -0.019047768786549568, 0.4664250910282135, -0.14710156619548798, -0.05855707824...
back home safely. Eventually they got to the point of getting to the moon, but there was still the issue of getting home. I hope this seems like a non-programming wicked problem to your project manager. If not, I agree with Glomek. You are doomed.
[ 0.3061223328113556, 0.3187532126903534, 0.23926500976085663, 0.2693500220775604, 0.23922832310199738, -0.14013636112213135, 0.15459389984607697, 0.19800616800785065, -0.20117171108722687, -0.39116597175598145, -0.32251474261283875, 0.1464972347021103, -0.023408230394124985, 0.0764378532767...
Will their be a new release of the compact framework with VS2010 and .net 4.0 and if so what new features will it include? WPF? linq to SQL? etc Visual Studio 2010 only supports developing for windows phone 7. This is a silver light based framework, it does not support win forms or native code. VS2010 can not be us...
[ 0.3085438311100006, 0.05861927568912506, 0.7093860507011414, 0.20544841885566711, -0.139935702085495, -0.07218602299690247, 0.22466608881950378, -0.020683132112026215, 0.10240910202264786, -0.8522668480873108, 0.12026834487915039, 0.30265355110168457, -0.029550686478614807, -0.176337778568...
In DB2, you can name a column ORDER and write SQL like ``` SELECT ORDER FROM tblWHATEVER ORDER BY ORDER ``` without even needing to put any special characters around the column name. This is causing me pain that I won't get into, but my question is: why do databases allow the use of SQL keywords for object names? Su...
[ 0.13542501628398895, 0.24700312316417694, 0.004146006889641285, -0.024224191904067993, -0.24780473113059998, -0.4104820489883423, 0.2902168333530426, -0.14203821122646332, 0.04816675931215286, -0.49498632550239563, -0.12057162076234818, 0.3934006094932556, -0.5945925712585449, -0.082774616...
entirely reasonable. Unfortunately, SQL comes from the old COBOL school of languages ("computing languages should be as similar to English as possible"). Hence, SQL (like COBOL) has several [hundred keywords](http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0001095.html). I d...
[ 0.5504962801933289, 0.4720121920108795, 0.18557825684547424, 0.34043243527412415, -0.2354779988527298, -0.4523395597934723, 0.28277090191841125, -0.270955353975296, 0.01657143421471119, -0.006013964302837849, 0.15293537080287933, 0.4304015040397644, -0.12182711064815521, 0.0396862626075744...
including spaces, diacriticals and in some implementations (yes, including DB2), control characters! Try the following for example: ``` CREATE TABLE "My Tablé" ( A INTEGER NOT NULL ); ``` Yes, that's a line break in the middle of an identifier along with an e-acute at the end... (which leads to interesting speculat...
[ -0.22921188175678253, 0.21430093050003052, 0.04633759707212448, -0.010486236773431301, -0.18143676221370697, 0.1322203129529953, -0.013273888267576694, -0.1855747401714325, -0.09119240939617157, -0.6127467155456543, -0.46824949979782104, 0.06925678998231888, -0.3370160758495331, -0.0356686...
``` template <class T> bool BST<T>::search(const T& x, int& len) const { return search(BT<T>::root, x); } template <class T> bool BST<T>::search(struct Node<T>*& root, const T& x) { if (root == NULL) return false; else { if (root->data == x) return true; else if(ro...
[ 0.15667381882667542, 0.1590571403503418, 0.06786642968654633, -0.22193224728107452, 0.059553276747465134, -0.21642650663852692, 0.5839264988899231, -0.5287060141563416, 0.2097238004207611, -0.6068387627601624, -0.7607091069221497, 0.5409256219863892, -0.5854909420013428, 0.3371264636516571...