text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
{ ItemTemplate = new CellTemplate(columnName) }; grdResults.Columns.Insert(columnNumber,
[ -0.35767319798469543, -0.037209004163742065, 0.6747764945030212, -0.18092097342014313, -0.04647289961576462, 0.5127652287483215, 0.09862097352743149, -0.37143760919570923, -0.21380728483200073, -0.6365907192230225, -0.23633885383605957, 0.19896340370178223, -0.1605035662651062, 0.224298790...
templateColumn); columnNumber++; } } ``` As part of the OnRowDataBound handler I retrieve one of the controls in the statically column and set some attributes on it... ``` protected void grdResults_OnRowDataBound(object sender, GridViewRowEventArgs e) { . . . var row = e.Row; var rowDa...
[ 0.16294150054454803, -0.18404337763786316, 0.652950644493103, -0.23526962101459503, 0.16466939449310303, -0.03424295037984848, 0.2750155031681061, -0.6934519410133362, 0.08410337567329407, -0.526264488697052, -0.18213731050491333, 0.40550968050956726, -0.6618362665176392, 0.149719640612602...
var hypEdit = (HyperLink)row.FindControl("hypEdit"); hypEdit.NavigateUrl = "~/Pages/Edit.aspx?action=Edit&objectType=" + rowData[objectTypeLiteral] + "&id=" + rowData[objectIdLiteral]; hypEdit.Visible = true; } } . . . } ``` This all works fine but no column names are displaye...
[ 0.17550674080848694, 0.049037955701351166, 0.7467141151428223, -0.16156074404716492, -0.0899442657828331, -0.0643375962972641, 0.43586939573287964, -0.5615269541740417, -0.01055858377367258, -0.687499463558197, -0.14215056598186493, 0.6454765200614929, -0.5796000361442566, -0.1647936552762...
(var columnName in columnNames) { var templateColumn = new TemplateField { ItemTemplate = new CellTemplate(columnName),
[ -0.14831359684467316, -0.19164615869522095, 0.36877912282943726, -0.13559794425964355, 0.3271249830722809, 0.17882506549358368, 0.12806224822998047, -0.5808192491531372, -0.03317268565297127, -0.571313738822937, -0.1268162876367569, 0.31086769700050354, -0.4410531222820282, 0.1745857000350...
HeaderText = columnName }; grdResults.Columns.Insert(columnNumber, templateColumn); columnNumber++; } } ``` For some reason this one extra line change causes the row.FindControl("hypEdit"); call in the OnRowDataBound handler to return
[ -0.10498212277889252, -0.23751303553581238, 0.5208521485328674, -0.13397498428821564, 0.15096542239189148, -0.07858579605817795, 0.32770368456840515, -0.22071850299835205, -0.09098465740680695, -0.3338753879070282, -0.20042943954467773, 0.49472951889038086, -0.42032521963119507, 0.11638961...
null.Can anyone see something im missing here or has anyone experienced a similar issue? **UPDATE** I've made sure that I'm not referring to a header or footer row here. Also, if I step over the object reference exception this occurs for every item that is in the DataSource. Not sure if this helps, but as I expected...
[ 0.17122530937194824, 0.05653146654367447, 0.2938099801540375, 0.24866865575313568, -0.15289588272571564, -0.33657312393188477, 0.4029253423213959, 0.44927719235420227, -0.3163067698478699, -0.8327386975288391, 0.010039374232292175, 0.12281905114650726, -0.22758813202381134, 0.2413417249917...
the wonderful world of triggers, here is the code to remove blank address lines from your example: I've added a name to the address text block and added a DataTrigger to hide it when the address is blank ``` <Window.Resources> <DataTemplate x:Key="CustomersTemplate"> <Grid> ... snip ... <...
[ 0.5426977276802063, 0.028246356174349785, 0.052545368671417236, 0.12044243514537811, 0.035506121814250946, -0.07566486299037933, -0.09574157744646072, -0.1536293923854828, -0.2779792547225952, -0.543778121471405, 0.22636562585830688, 0.4402864873409271, -0.10178858786821365, 0.241266906261...
<DataTrigger Binding="{Binding Path=Address}" Value=""> <Setter TargetName="AddressLine" Property="Visibility" Value="Collapsed"/> </DataTrigger> </DataTemplate.Triggers> </DataTemplate> </Window.Resources> ```
[ -0.12994679808616638, -0.09515001624822617, 0.3908807337284088, 0.03943705931305885, -0.14702343940734863, -0.160739466547966, -0.10211096704006195, -0.49201393127441406, -0.1494741588830948, -0.653476357460022, -0.3326810896396637, 0.2550099492073059, -0.2279144823551178, 0.04197030887007...
I'm building a (LAN) network application, so there is always the possibility that a connection will be disconnected, for various possible reasons. I am trying to think of a good design for handling this issue, such that it doesn't affect the rest of the application. I wrote a quick thing to try to do it, but I think it...
[ 0.20568636059761047, -0.24496625363826752, 0.3392045795917511, 0.17032162845134735, 0.27980363368988037, -0.366891086101532, 0.24541428685188293, 0.0845065489411354, -0.25124818086624146, -0.9826852083206177, -0.07122683525085449, 0.7197795510292053, -0.2919327914714813, 0.0210299473255872...
bool endOfStream; int maxRetries = 5; public void connect() { // ... code to initialize a (TCP) socket to endPoint this.stream = new NetworkStream(socket, true); this.reader = new StreamReader(stream); } string readNextMsg() { try { string msg = reader.ReadL...
[ 0.13464504480361938, -0.46244189143180847, 0.7087428569793701, -0.16976460814476013, 0.20321469008922577, 0.0189798716455698, 0.4792194366455078, -0.09930884093046188, 0.1902262568473816, -0.5783689022064209, -0.26385676860809326, 0.3973848819732666, -0.5177555680274963, 0.5352132320404053...
if (msg == "EOF") endOfStream = true; return msg; } catch (IOException e) { Exception ex = e; while (maxRetries-- > 0) { try { connect(); ex = null; }
[ -0.01887122169137001, -0.5751681327819824, 0.385896235704422, -0.15009529888629913, 0.3371451497077942, 0.14556121826171875, 0.553498387336731, -0.19362236559391022, 0.09203308820724487, -0.41196897625923157, -0.3341931700706482, 0.6186621785163879, -0.3607720136642456, -0.0481920465826988...
catch (Exception e2) { ex = e2; } } if (x != null) throw ex; } } } ``` Not very elegant, and probably not the best that can be done. Could you please share your experience, and may be even suggest an existing library? Thank you. Yes, it's basically a hangover from VB6. Java lets y...
[ 0.4310312867164612, -0.06336874514818192, -0.25400686264038086, -0.03417472168803215, -0.07290149480104446, -0.6257931590080261, 0.3002757728099823, -0.19799208641052246, -0.1797529011964798, -0.41225728392601013, 0.031024161726236343, 0.47773727774620056, -0.39523816108703613, -0.04225805...
warn you these days I believe. And yes, it's a really bad idea. The most obvious example of it being bad is Thread.Sleep: ``` Dim t as new Thread(...) t.Sleep(1000) ``` Which thread is sleeping? The current one. Doh!
[ 0.7032092809677124, 0.4133075773715973, 0.3312700688838959, -0.11778776347637177, 0.04008589684963226, 0.06952565908432007, 0.45968982577323914, 0.22930389642715454, -0.5117316842079163, -0.6389157176017761, 0.06616329401731491, 0.1864623725414276, -0.3811475932598114, 0.4911663234233856, ...
We have a scenario One Main e-commerce website - currently attracting a lot of visitors. Three sub "brand specific" sites which will hang off this site - each of these sites will potentiall have the same level of traffic over time. The client requires order processing for each brand site to happen in one place (i.e....
[ 0.23107153177261353, 0.017674220725893974, 0.6138609647750854, 0.2950284481048584, 0.17088977992534637, 0.017146877944469452, -0.03808756172657013, 0.04616420716047287, -0.2831704020500183, -0.7253177762031555, 0.01632932387292385, 0.2689709961414337, -0.214692622423172, 0.2993995249271393...
for Frontoffice "reads". Any writes we perform would go back to the main database to keep stock concurrent Any thoughts? Future scalability is a major factor. Without having a more detailed understanding of how your application is to function it is difficult to provide you with clear direction. Your proposed implemen...
[ 0.2515641450881958, 0.3457440435886383, 0.33036792278289795, 0.3440796434879303, 0.13122910261154175, -0.09842107445001602, 0.32430458068847656, -0.03186022862792015, -0.20096832513809204, -0.7011942863464355, -0.2608436644077301, 0.3793433904647827, -0.1456812173128128, 0.2271642237901687...
likely manage data such as supplier information, billing etc. that may not need to be pushed to subscribers. Your central server is likely going to be your sticking point if any, as all other servers will directing write activity back to it. The location of your distributed sites i.e. how far they are from the central...
[ 0.37508830428123474, -0.08468238264322281, 0.6845271587371826, 0.40614941716194153, 0.15743668377399445, -0.23638127744197845, 0.1174917221069336, 0.14814403653144836, -0.4019567370414734, -0.6765372157096863, 0.03285568952560425, 0.43953201174736023, -0.3147166669368744, 0.367939680814743...
your application needs to be aware that only read activity can be processed on the local server and all write activity needs to be routed to the central server. I hope this helps but please feel free to pose additional questions. Cheers, John
[ 0.35884883999824524, 0.6327317953109741, 0.5957382917404175, 0.19995048642158508, 0.27274882793426514, -0.4361714720726013, 0.4344947338104248, 0.13281632959842682, -0.06969989836215973, -0.669184684753418, -0.1396152675151825, 0.6370913982391357, 0.05090133845806122, -0.07592379301786423,...
I have SQL SELECT statement that returns: ``` Error: ORA-00600: internal error code, arguments: [qerpfAllocateR], [], [], [], [], [], [], [] ``` If I narrow my results by adding one more condition in WHERE clause everything is ok. Anyone knows what is happening? EDIT: ``` select * from ( select tbl1.col1,...
[ -0.0007240960258059204, 0.2859859764575958, 0.5731319189071655, -0.04080919921398163, 0.26265227794647217, 0.0494656041264534, 0.28495022654533386, -0.17626644670963287, -0.1465744525194168, -0.44409847259521484, -0.17467977106571198, 0.3167293667793274, -0.17771382629871368, 0.45881325006...
tbl1.points desc ) s where rownum <= 3 ``` EDIT2: My DB admin suggested solution that works: ``` select * from (select rank() over (order by tbl1.points desc) rank, tbl1.col1, ..., tbl1.points from table1 tbl1, table2 tbl2 where tbl1.tbl2FK = tbl2.PK and tbl...
[ -0.22947515547275543, -0.06796994805335999, 0.3548426032066345, -0.04987595975399017, -0.047285210341215134, 0.32553139328956604, 0.10170090943574905, -0.5709855556488037, -0.11069275438785553, -0.6327559947967529, -0.20144517719745636, 0.18748585879802704, -0.3035091459751129, 0.124290294...
tbl1.dateColumn = to_date('27-10-2008','dd-mm-yyyy')) s where s.rank <= 3 ``` Good luck with getting support from Oracle... Seriously though, every time I hit this problem, rearranging the query a little bit usually helps. Maybe fiddling around with the indexes a bit.
[ 0.09931812435388565, -0.07373771071434021, 0.4268909990787506, -0.015764037147164345, 0.09340918809175491, -0.15857216715812683, 0.1444409042596817, 0.26845964789390564, -0.1678449660539627, -0.4993312656879425, 0.15038198232650757, 0.4127431809902191, -0.3833475410938263, 0.28906103968620...
I'm implementing a Modified preorder tree traversal class for a category tree on a Web site, but I'm having trouble with one scenario. Typically when inserting a new category a top-level parent is specified, whose left value in the tree is used in order to determine where the new category should go in the tree. However...
[ 0.24586378037929535, -0.032273851335048676, -0.05178669095039368, 0.004382961895316839, 0.031599197536706924, -0.17841419577598572, 0.08686520159244537, -0.07621171325445175, -0.301187664270401, -0.505264401435852, -0.10664472728967667, 0.3035793900489807, -0.2304464727640152, 0.4037441611...
of them seem to be inserting a "root" node in the tree at the time of installation. I'm wondering if this is so they don't ever have to detect if it is the first insert, and they always have a left reference. Any thoughts or pseudo-code would be much appreciated. I'm doing this in PHP if it matters. My tree might look ...
[ 0.7188062071800232, 0.31129536032676697, 0.23070286214351654, 0.11957836151123047, 0.3459267020225525, -0.06524693220853806, 0.07628678530454636, 0.27047476172447205, -0.1210392639040947, -0.5068657398223877, -0.20498228073120117, 0.6499683856964111, -0.05032191425561905, -0.15721379220485...
/ \ MP3 TVs Shirts Shoes ``` My thought is that in this scenario, Apparel's right value will always be the greatest in the table, but I'm not sure how I might use that to determine it is the last. Any help or hints would be appreciated. In the example you've presented, Electronics and Apparel are technical...
[ 1.042039394378662, 0.13100920617580414, 0.24692271649837494, 0.08624789118766785, 0.1751071959733963, 0.08308111876249313, -0.27923157811164856, -0.058948058634996414, -0.5243625044822693, -0.6503740549087524, -0.06629731506109238, 0.7131310701370239, -0.01985958218574524, 0.17645679414272...
you need a value above all three, say "All" that is your root node. See [Storing Hierarchical Data in a Database](http://www.sitepoint.com/article/hierarchical-data-database/2/) for a example with both a enumerated tree and examples or actual storage in the database.
[ -0.34051552414894104, 0.0058683110401034355, -0.1530134528875351, 0.38452771306037903, -0.030893705785274506, -0.23431296646595, 0.22209827601909637, 0.027424924075603485, -0.4757278859615326, -0.5307961106300354, -0.17083843052387238, -0.10752824693918228, -0.24175888299942017, 0.25952386...
using firebug, where are the js errors shown when the page renders? (if you have any good js debugging links w/firebug send them my way please!) Javascript errors will be listed in the Console of Firebug. You can also set Firebug to break on all errors, which is helpful for detecting why the error was thrown.
[ 0.10731028020381927, 0.34867507219314575, 0.11682181805372238, -0.10827895998954773, -0.42544832825660706, -0.13590660691261292, 0.7670892477035522, 0.273573637008667, -0.09795290231704712, -0.960880696773529, -0.3038235306739807, 0.6468601822853088, -0.37684690952301025, -0.15280325710773...
Following up on [this](https://stackoverflow.com/questions/477646/packed-vs-unpacked-vectors-in-system-verilog "packed vs unpacked vectors in system verilog") question about the difference between packed and unpacked vectors in SV, why would I ever want to use unpacked vectors? Packed vectors have these advantages t...
[ 0.055032797157764435, -0.46566739678382874, 0.025136802345514297, 0.1959880143404007, -0.35737115144729614, 0.07013554871082306, -0.3079596161842346, -0.08862729370594025, -0.6809213757514954, -0.7621505856513977, -0.025634219869971275, 0.5908676981925964, -0.23483407497406006, -0.00992385...
use unpacked. With unpacked, there is no temptation (and accidental possibility) of treating the whole array name as a variable, and make an erroneous assignment. There is also no possibility of bit-bleeding from one element to another, when you may be thinking you are accessing B bits of element N, but in reality you ...
[ 0.19208455085754395, -0.0005656044231727719, -0.26908573508262634, -0.015542857348918915, -0.04081501066684723, -0.19085568189620972, 0.10522489249706268, -0.23925870656967163, -0.40938717126846313, -0.5518662929534912, -0.13302242755889893, 0.643040657043457, -0.3968988060951233, 0.040627...
pack only what you need to. For example, if I have 9 ports, each with 21 bits of information, I would like to declare it as : ``` input logic [20:0] p1 [9]; ``` The `20:0` part constitutes a unit of information, assigned and sampled together (nominally). Splitting those bits apart will destroy the protocol or the c...
[ 0.45969581604003906, -0.22283819317817688, 0.2162821888923645, 0.11734190583229065, 0.24379053711891174, -0.09941043704748154, -0.18334878981113434, -0.3814176321029663, -0.5384546518325806, -0.43137770891189575, -0.006288081873208284, 0.44455885887145996, -0.4848385751247406, -0.122181817...
a paradigm to think along... In this paradigm, you would be surprised how many things start to appear unpacked that you always thought were packed !!
[ 0.002111491048708558, -0.3317355215549469, -0.11621681600809097, 0.2476578801870346, -0.16145244240760803, -0.15773813426494598, -0.05837332084774971, -0.23409070074558258, -0.5441771745681763, -0.38582322001457214, 0.1175050288438797, 0.21910728514194489, -0.2115914523601532, 0.1750397086...
I have a function that dynamically adds text to an image in a predesignated spot. Originally I did it with jpegs, and it was working. I switched to PNG so the images would be better quality, as the original jpegs were kind of pixely. Anyway, here is my code. It executes down to the `oBitmap.Save()`, then dies with "A G...
[ -0.1636936217546463, -0.31468820571899414, 0.7751580476760864, -0.12602095305919647, -0.07162822782993317, 0.166564479470253, 0.2622150778770447, -0.1365034580230713, -0.09534265100955963, -0.8486981987953186, -0.271648645401001, 0.48322632908821106, -0.5516512393951416, 0.1690149158239364...
oText As String = context.Server.HtmlDecode(context.Request.QueryString("t")) If String.IsNullOrEmpty(oText) Then oText = "Placeholder" Dim oPType As String = context.Server.HtmlDecode(context.Request.QueryString("p")) If String.IsNullOrEmpty(oPType) Then oPType = "none" Dim imgPath As ...
[ 0.1853417307138443, -0.35199981927871704, 0.7707860469818115, -0.3772140145301819, 0.0546175017952919, 0.08689356595277786, -0.051866259425878525, -0.061531711369752884, -0.23152592778205872, -0.5476966500282288, -0.6039115190505981, 0.6040002703666687, -0.48265859484672546, -0.09874389320...
Case "m" imgPath = "img/banner_blue.png" Case Else Throw New Exception("no ptype") End Select Dim oBitmap As Bitmap = New Bitmap(context.Server.MapPath(imgPath)) Dim oGraphic As Graphics = Graphics.FromImage(oBitmap)
[ -0.06467956304550171, -0.38277119398117065, 0.814624011516571, -0.14159496128559113, -0.18018479645252228, 0.03203275799751282, 0.2416386753320694, -0.19211791455745697, -0.3625495135784149, -0.6664798259735107, -0.27581414580345154, 0.41471850872039795, -0.5814458727836609, 0.095514118671...
Dim frontColorBrush As New SolidBrush(Color.White) Dim oFont As New Font(FONT_NAME, 30) Dim oInfo() As ImageCodecInfo = ImageCodecInfo.GetImageEncoders Dim oEncoderParams As New EncoderParameters(2) Dim xOffset As Single = Math.Round((oBitmap.Height - oFont.Height) / 2, MidpointRounding...
[ -0.24085021018981934, -0.40147802233695984, 0.8969295620918274, -0.2091434895992279, -0.5679038166999817, 0.44278907775878906, 0.4889084994792938, -0.7577582597732544, -0.03528319671750069, -0.3906649351119995, -0.10247877985239029, 0.5512248277664185, -0.30672600865364075, 0.0142631018534...
= New EncoderParameter(Encoder.ColorDepth,8L) oGraphic.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias oGraphic.DrawString(oText, oFont, frontColorBrush, oPoint) oBitmap.Save(context.Response.OutputStream, oInfo(4), oEncoderParams) context.Response.Output.Write(oBitmap) ...
[ -0.11892668157815933, -0.12304096668958664, 0.6859652996063232, -0.16934233903884888, -0.09235020726919174, 0.4745980203151703, 0.3113262951374054, -0.5996047854423523, -0.21348802745342255, -0.688730776309967, -0.15645429491996765, 0.37530115246772766, -0.3276683986186981, -0.229127809405...
`context.Response.ContentType = "image/jpeg"` changed to `"image/png"` * changed base images (`img/banner_green.jpg`, `img/banner_blue.jpg`) to `.png` * added the second encoding parameter specifying color depth * changed `oInfo(1)` (jpeg) to `oInfo(4)` (png) Are there more things I need to tweak to get this routine t...
[ 0.15666291117668152, -0.20384572446346283, 0.9873315095901489, -0.1264186054468155, -0.1983669400215149, 0.21993066370487213, 0.1103854775428772, -0.3630884289741516, -0.3571165204048157, -0.6125528216362, -0.4138319790363312, 0.4925263226032257, -0.3642749488353729, -0.23349608480930328, ...
is a TextWriter, and the overload you use here, `TextWriter.Write(object)` will just call ToString on the object and write the results into the stream, what in this case results in writing "System.Drawing.Bitmap" to the output.
[ 0.20306828618049622, -0.28981342911720276, 0.5235030651092529, 0.21406880021095276, 0.23301361501216888, -0.3780936896800995, 0.13713529706001282, 0.09615937620401382, 0.10602448880672455, -0.4326338469982147, -0.03089689277112484, 0.6378094553947449, -0.23643550276756287, 0.10029641538858...
Is there a built-in control that is close to an application bar at the bottom of Facebook, or is such a function only available through the use of JavaScript/AJAX? I imagine you mean this: Screenshot: <http://screencast.com/t/kqFPArcmYQ> Video: <http://screencast.com/t/X6IczIIv> If that's the case, no, it cannot be d...
[ 0.338049054145813, -0.28213539719581604, 0.1855688840150833, 0.5638437271118164, -0.013103039935231209, -0.039605412632226944, -0.17711472511291504, 0.04950253292918205, -0.4355047643184662, -0.7749963402748108, 0.068755142390728, 0.6861909031867981, 0.041654154658317566, -0.13405428826808...
pages, to see if those will fit your idea. You can definitely build the core of the menu in ASP.Net, and then use a javascript library to get the dynamic feel that you're looking for. Hope that helps a little bit.
[ 0.4187711477279663, -0.24605081975460052, 0.3235990107059479, 0.36810779571533203, -0.27122586965560913, -0.12913115322589874, -0.02017820067703724, 0.3331933319568634, -0.48398107290267944, -0.8563026189804077, -0.16506816446781158, 0.3282385766506195, -0.11028895527124405, 0.020725579932...
Just want to ask for some opinions here. How do you feel about using a language (and/or framework) that isn't widely used in your location to write software for a company? For instance, I live in an area dominated by .NET, with the occasional PHP job. Let's say that I'm learning Python and decide to use it to write sof...
[ 0.7610679864883423, 0.44188836216926575, -0.29801154136657715, 0.015109642408788204, 0.21569888293743134, -0.21320132911205292, 0.22299620509147644, 0.5277535319328308, -0.3882346749305725, -0.42991459369659424, 0.054338764399290085, 0.44307950139045715, 0.11506176739931107, -0.10943774133...
the company, they'd basically have nobody to maintain/add to it unless they retain on me as a consultant. While that's really good for me, it seems a bit "crooked" - granted, that's how the business world works. What are your thoughts? I should mention that this is a very small company and I'm the only IT person, so ...
[ 0.4921444058418274, 0.17883756756782532, -0.07336254417896271, -0.01589447259902954, 0.04572419077157974, -0.22200602293014526, 0.19646698236465454, 0.317796528339386, -0.22747653722763062, -0.271651029586792, -0.07375746220350266, 0.6514737606048584, 0.1951134353876114, 0.0160541757941246...
it. Also, the company is.. how shall we say... *extremely frugal* and wouldn't purchase the required resources for .NET (e.g. server licenses, SQL licenses, Visual Studio, components). I personally have an MSDN subscription but I can't use that for them. Also FWIW there **are** people in the area who use the language ...
[ 0.5414941310882568, 0.2654687464237213, -0.06561881303787231, 0.16347554326057434, 0.21811921894550323, -0.4156537652015686, 0.18860428035259247, 0.6775665879249573, 0.1411268413066864, -0.40744319558143616, -0.011674158275127411, 0.6664722561836243, -0.052290454506874084, 0.32239776849746...
existing standards. We're talking about a situation where the poster is the entire IT and development department for his company. It's certainly important to keep in mind availability of talent, but Ruby is hardly a fringe language these days. In an environment where there's only one developer, productivity is also a ...
[ 1.0387163162231445, 0.38450801372528076, -0.06692817807197571, 0.4171973168849945, -0.029817257076501846, -0.10331515222787857, 0.3295183479785919, -0.12523843348026276, -0.328360915184021, -0.44259291887283325, -0.1346595585346222, 0.5783107280731201, 0.04857497662305832, 0.09570796042680...
and use it for everything unless there's a *really* good reason to use something else. If you go with Ruby, stick with Ruby for your utility scripts, cron jobs and that little GUI app the boss wanted to automatically SMS the intern when he takes more than five minutes to bring him his coffee.
[ 0.6695391535758972, 0.347715824842453, 0.1286756545305252, 0.22958511114120483, -0.030705880373716354, -0.044612009078264236, 0.4549202620983124, 0.2798921763896942, -0.12476104497909546, -0.4569772779941559, 0.1425839215517044, 0.46111318469047546, -0.10087108612060547, -0.326099485158920...
I need the user to set a number of percentage values which should always add up to 100%. What are standard ways to archieve this? I came up with the following: 1) have a standard slider control for each value you need to set. Moving one slider will automatically adjust all the others so the sum will always come out as...
[ 0.3896930515766144, 0.03153695538640022, 0.8361786603927612, 0.4210950434207916, 0.13220550119876862, 0.20339888334274292, -0.26276683807373047, -0.3758818805217743, 0.12490584701299667, -0.2986820638179779, 0.1389039307832718, 0.6360477805137634, -0.28233203291893005, -0.06962273269891739...
ugly when you have lots of sliders and thus low percentage values, normalization to 100% isn't immediately obvious. 2) have a slider control with several sliding knobs. Pro: normalization is implicit and obvious because the length of the slider is fixed, relative weight is easy to see at a glance Con: non-standard, ...
[ -0.39112913608551025, 0.051948342472314835, 0.44604456424713135, -0.05359073728322983, -0.32110267877578735, 0.21925824880599976, 0.3701442778110504, -0.062206435948610306, -0.08040221035480499, -0.7019970417022705, -0.0797591581940651, 0.609876275062561, -0.3456067144870758, -0.1028041914...
to put a text/number representation for each slice 4) ... ? I'm not happy with either of these hence my question here. Any better ideas? I'm dealing with 3-10 individual percentage values on a rich windows client (i.e. not web). cheers, ``` Sören ``` What about vertical sliders? Like a sound mixer. I think it look...
[ 0.4450083076953888, 0.1197717934846878, 0.4456014633178711, 0.03987434506416321, -0.2622910141944885, 0.1436317414045334, -0.12091042846441269, 0.009679004549980164, -0.3315746486186981, -0.6603336334228516, 0.16877175867557526, 0.7312700152397156, 0.13468103110790253, 0.014119620434939861...
Is it possible to get, using Bash, a list of commands starting with a certain string? I would like to get what is printed hitting <tab> twice after typing the start of the command and, for example, store it inside a variable. You should be able to use the *compgen* command, like so: ``` compgen -A builtin [YOUR STR...
[ 0.30655235052108765, 0.07133965939283371, 0.18963520228862762, -0.18499477207660675, 0.06748552620410919, 0.10729429125785828, -0.08035185933113098, -0.2063034325838089, -0.3502623736858368, -0.46601924300193787, -0.007849220186471939, 0.9285256862640381, -0.1796225607395172, -0.1108825877...
man page for *complete* which uses *compgen*): ``` alias Alias names. May also be specified as -a. arrayvar Array variable names. binding Readline key binding names. builtin Names of shell builtin commands. May also be specified as -b. command Command names. May also be specified as -c. ...
[ -0.13545000553131104, 0.04419075325131416, 0.012537747621536255, -0.09308252483606339, -0.16595223546028137, 0.1502801477909088, 0.36675524711608887, -0.7098341584205627, -0.322343111038208, -0.891449511051178, -0.4779624044895172, 0.7471140027046204, -0.15478374063968658, -0.0255877841264...
of enabled shell builtins. export Names of exported shell variables. May also be specified as -e. file File names. May also be specified as -f. function Names of shell functions. group Group names. May also be specified as -g. helptopic Help topics as accepted by the help builtin. hostn...
[ 0.03269508108496666, -0.17208337783813477, 0.4824066162109375, -0.15055517852306366, -0.09332497417926788, 0.04092448949813843, 0.061710190027952194, 0.1723015010356903, -0.35869452357292175, -0.47425150871276855, -0.758019208908081, 0.7281126379966736, -0.28390800952911377, -0.12879686057...
variable. job Job names, if job control is active. May also be specified as -j. keyword Shell reserved words. May also be specified as -k. running Names of running jobs, if job control is active. service Service names. May also be specified as -s. setopt
[ 0.3535860776901245, -0.38884836435317993, 0.043829627335071564, -0.006126636639237404, 0.0007178017986007035, 0.3356800973415375, 0.13396871089935303, 0.081438809633255, -0.11281973123550415, -0.5082533955574036, -0.6656428575515747, 0.40811392664909363, -0.22405506670475006, 0.03661568090...
Valid arguments for the -o option to the set builtin. shopt Shell option names as accepted by the shopt builtin. signal Signal names. stopped Names of stopped jobs, if job control is active. user User names. May also be specified as -u. variable Names of all shell variab...
[ 0.07667683064937592, -0.03179934620857239, 0.5876246094703674, -0.2615055739879608, 0.03619637340307236, 0.629150927066803, 0.10583702474832535, -0.008938145823776722, -0.16688278317451477, -0.2398718297481537, -0.4079485237598419, 0.628792941570282, -0.15684974193572998, -0.11653690785169...
as -v. ```
[ 0.010181939229369164, 0.39284437894821167, 0.38382282853126526, -0.15628519654273987, -0.29818862676620483, 0.3021571934223175, 0.19067901372909546, 0.03213009610772133, -0.2749297320842743, -0.25397226214408875, -0.3674129843711853, 0.5197109580039978, -0.20209340751171112, 0.371921271085...
In bash ``` echo ${!X*} ``` will print all the names of the variables whose name starts with 'X'. Is it possible to get the same with an arbitrary pattern, e.g. get all the names of the variables whose name contains an 'X' in any position? Use the builtin command compgen: ``` compgen -A variable | grep X ```
[ 0.006310919299721718, 0.14813201129436493, 0.24712401628494263, -0.23874802887439728, -0.11874912679195404, -0.19145147502422333, -0.024289369583129883, -0.3141745328903198, -0.48205268383026123, -0.19423073530197144, -0.37355223298072815, 0.708246648311615, -0.5458434820175171, -0.1418437...
Is it time()? Is it time().substr(microtime(), 2, 2)? Is it time().substr(microtime(), 2, 3)? Kind of lost with the following snippet. ``` function updateClock ( ) { var timeStamp = <?php echo time().substr(microtime(), 2, 2);?>; var currentTime = new Date ( ); currentTime.setTime( timeStamp ); ... ...
[ 0.22486044466495514, -0.003692199941724539, 0.8744598031044006, -0.1295860856771469, 0.21059833467006683, 0.2238900363445282, 0.2155478298664093, -0.000025005372663144954, -0.5085835456848145, -0.6837239861488342, 0.3435826301574707, 0.34313419461250305, -0.20638176798820496, 0.46548417210...
but the web page still shows my local time after I upload the js.php (rendering the javascript code) to my server. My server is approx 12 hours different in time from me. My guess is that does php takes client side time into account running time() ? I mean browsers do send request time to apache right? I copied the t...
[ 0.1386278122663498, 0.06524652987718582, 0.7156662344932556, -0.06889815628528595, -0.009348507970571518, 0.07752133905887604, 0.619329571723938, -0.11069514602422714, -0.2525622844696045, -0.7974949479103088, 0.2179936319589615, 0.16482096910476685, 0.29999738931655884, 0.2206742763519287...
time()? [Date.setTime](http://www.w3schools.com/jsref/jsref_setTime.asp) expects the number of **milliseconds** since 1970-1-1. php's [time function](http://php.net/time) yields the number of **seconds** since 1970-1-1. Therefore, you can just use ``` var TimeStamp = <?php echo time()*1000;?> ``` Due to latency issu...
[ 0.2574610114097595, -0.06243131682276726, 0.6604422330856323, -0.35596904158592224, -0.08346514403820038, 0.09361417591571808, 0.4548761546611786, -0.3159649074077606, -0.5969574451446533, -0.4205273687839508, 0.05872685834765434, -0.037664785981178284, -0.15581806004047394, 0.304635971784...
I have a web user control which my aspx page contains. During testing I discovered a exception being thrown. (The general rule that is in place, is that when an exception occurs the user is redirected to a excpetion page detailing the error) Once the excpetion was handled in my User Control I wanted to throw it to th...
[ -0.10852419584989548, 0.10528074204921722, 0.12220265716314316, -0.0339195616543293, -0.16335360705852509, -0.1314556896686554, 0.4363199770450592, 0.004193222615867853, -0.22234944999217987, -0.5918603539466858, -0.06514954566955566, 0.3714389204978943, -0.40171730518341064, 0.02744307555...
I got a horrible javascript type dialog with the exception message. To work around this I declared an Event which is then raised from the user control with the exception as the parameter. I can successfully parse the expception to the required format and redirect the user to the exception page. My question(s) are t...
[ 0.1854826658964157, 0.14137104153633118, 0.1557256430387497, 0.002294385340064764, -0.36579957604408264, -0.09690127521753311, 0.3473309278488159, -0.08105801045894623, -0.0599423423409462, -0.36905208230018616, -0.02943916991353035, 0.3424890339374542, -0.591880202293396, 0.19108963012695...
Why does throwing the exception from the user control only result in > the javascript dialog and not the > Global.asax error handling kicking in. Because there is a page error during an asynchronous postback, here's a good article on [Error Handling in ASP.Net Ajax Applications](http://www.codedigest.com/Articles/AS...
[ -0.2628253996372223, -0.12255208194255829, -0.10065155476331711, 0.14572757482528687, -0.35363590717315674, -0.14868062734603882, 0.34194421768188477, -0.07036900520324707, -0.2282135784626007, -0.28310108184814453, 0.15191872417926788, 0.381521075963974, -0.3079720139503479, -0.0115583613...
So we ran into an interesting issue today. We have a Java EE web app that uses a bunch of 3rd party jars. This includes Hibernate. We use the Java logging api that comes with the SDK for logging purposes. Typically we are pretty thin on logging but we ran into this issue with one of our 3rd party jars using log4j to c...
[ 0.5917113423347473, 0.46817144751548767, -0.17494715750217438, -0.027860715985298157, -0.34946566820144653, -0.16258101165294647, 0.39878469705581665, -0.03507174551486969, -0.2359773814678192, -0.06494303047657013, 0.40564972162246704, 0.4990895390510559, -0.3677164912223816, 0.0621994249...
no time. I have 2 issues with this: 1. I need to fix this logging issue (If possible I do not wish to yank out or modify the log4j config in the 3rd party jar). Is there a good way to do this besides modifying or yanking out the log4j config in the 3rd party jar OR by having my own log4j config that overrides the con...
[ 0.3090817332267761, 0.06467968225479126, -0.06944968551397324, 0.43010208010673523, -0.01151246763765812, -0.5470165014266968, 0.5376607775688171, 0.05949040874838829, -0.15852515399456024, -0.7886159420013428, 0.11708644777536392, 0.6124919056892395, -0.4485500454902649, -0.02392453700304...
be logging away merrily? I think this is bad design. I want to get the community's opinion on this. I want the 3rd party libraries logging ERROR's. That being said I think it is slightly awkward that this 3rd party jar to log DEBUG's from packages other than the ones it is responsible for. e.g. in my case, this 3rd pa...
[ 0.6774535179138184, 0.18749332427978516, 0.0704902708530426, -0.1359519511461258, -0.09966836869716644, -0.40159371495246887, 0.4065423607826233, 0.35449153184890747, -0.2686840891838074, -0.07346787303686142, 0.23685862123966217, 0.5769357085227966, -0.5171588659286499, 0.1628194600343704...
in there seems to be the best way to go. You need to implement `operator <<` appropriately for your class. The general pattern looks like this: ``` template <typename T> logger& operator <<(logger& log, T const& value) { log.your_stringstream << value; return log; } ``` Notice that this deals with (non-`cons...
[ -0.2873190939426422, -0.2383630871772766, 0.1567278355360031, -0.2245371788740158, -0.1262272447347641, -0.3466068506240845, 0.2128475308418274, -0.30027031898498535, 0.04541485384106636, -0.4472940266132355, -0.19026623666286469, 0.3413030505180359, -0.6196061968803406, -0.010963804088532...
operations would either fail at compile-time (wrong method signature) or would be swallowed at run-time.
[ -0.26863011717796326, 0.15838433802127838, 0.12706945836544037, 0.212535560131073, 0.4009729027748108, 0.05229241028428078, 0.38975611329078674, 0.004423970822244883, -0.191284641623497, -0.25059595704078674, -0.4912092983722687, 0.29704222083091736, -0.42822593450546265, -0.08158239722251...
In a WCF service, I have two classes with the [DataContract] attribute. One of these classes has an "is-a" relationship with the other - so class B can inherit from class A. However, when I configure inheritance between these two classes, both denoted with a [DataContract] attribute, the metadata fails to load when tes...
[ 0.33748582005500793, -0.14397785067558289, 0.3845237195491791, -0.2645759582519531, 0.05476037785410881, -0.17276352643966675, 0.2990950345993042, -0.5432641506195068, 0.1394386738538742, -0.6222521066665649, -0.21508094668388367, 0.5137218236923218, -0.4417066276073456, 0.3832123875617981...
set; } } [DataContract] public class B: A { [DataMember] public double BValue1{ get; set; } [DataMember] public double BValue2 { get; set; } } ``` NOTE: The custom types are also defined using data contracts. **UPDATE**: Below is the error: > Error: Cannot obtain Metadata from <http://localhost...
[ 0.27855387330055237, -0.024998050183057785, 0.4706692397594452, 0.03240349143743515, -0.008127553388476372, -0.2878407835960388, 0.15855006873607635, -0.40814363956451416, -0.2386043667793274, -0.38156768679618835, -0.4031854569911957, 0.5381861329078674, -0.48006564378738403, 0.2400133162...
reference that cannot be resolved: '<http://localhost:8002/GISDataServices/mex>'. `Receivera:InternalServiceFault`The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <...
[ 0.48476678133010864, -0.2367429882287979, 0.5911491513252258, 0.031162753701210022, 0.05501066520810127, -0.09694939851760864, 0.6030080914497375, -0.3716510236263275, -0.4052123725414276, -0.5225386023521423, -0.0002910315233748406, 0.15915924310684204, -0.22358199954032898, 0.25087082386...
the base class with the [KnownTypeAttribute] constructing it with the derived class's type. For instance: ``` [DataContract] [KnownType(typeof(B))] public class A { [DataMember] public string Value { get; set; } } [DataContract] public class B : A { [DataMember] public string OtherValue { get; set; } } `...
[ 0.018835484981536865, -0.20999625325202942, 0.028680948540568352, -0.24992305040359497, 0.18356873095035553, -0.32271450757980347, 0.04800938814878464, -0.4297614097595215, 0.022820044308900833, -0.20343168079853058, -0.32935571670532227, 0.4141072928905487, -0.4526962637901306, 0.10142492...
My TextBox won't update! I am using it as a Log to update what other things are doing... **Form 1 code:** ``` using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.IO; using System.Data.OleDb; using System.Collections.Sp...
[ 0.04989512264728546, -0.12648938596248627, 0.4330582618713379, -0.256082683801651, 0.03193364292383194, 0.24380844831466675, 0.5314021110534668, -0.2387065291404724, -0.12789051234722137, -0.7049535512924194, -0.23959049582481384, 0.456479549407959, -0.5760928392410278, 0.25759539008140564...
{ this.Log.Items.Add(message); // Doesnt add to textbox this.Log.Items.Add("This won't update the textbox!!! Why?"); // Doesnt add to textbox } private void exitProgramToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); }
[ -0.2747555375099182, -0.15726518630981445, 0.5270988941192627, -0.11525975167751312, 0.40500351786613464, -0.07178802788257599, 0.49868476390838623, -0.12574350833892822, -0.23280119895935059, -0.4459618031978607, -0.44738075137138367, 0.5358446836471558, -0.5190090537071228, 0.16570720076...
private void aboutToolStripMenuItem1_Click(object sender, EventArgs e) { Form aboutBox = new AboutBox1(); aboutBox.ShowDialog(); } private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { } private void settingsToolStripMenuIt...
[ 0.30426645278930664, -0.12274936586618423, 0.3652206361293793, 0.0352240726351738, 0.35544225573539734, -0.20544210076332092, 0.43849262595176697, -0.2787381708621979, 0.1264544278383255, -0.6657183170318604, -0.27778321504592896, 0.9811446070671082, -0.41371971368789673, 0.168957650661468...
{ settingsForm.settings.ShowDialog(); } private void synchronize_Click(object sender, EventArgs e) { this.Log.Items.Add("This WILL update the textbox. It is exactly the same as the other one..."); // This will add to the textbox DatabaseHandling.createDataSet...
[ 0.0034501911140978336, -0.31520044803619385, 0.49199169874191284, -0.04548105224967003, 0.3736185133457184, -0.013653268106281757, 0.39243248105049133, -0.1344001144170761, -0.05113540217280388, -0.7931788563728333, -0.2572234272956848, 0.620403528213501, -0.5614573955535889, 0.25119462609...
} public class settingsForm { public static Form settings = new Settings(); } } ``` **My Logging Class code:** ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LCR_ShepherdStaffupdater_1._0 { public class Logging { static Mai...
[ 0.12185371667146683, -0.2527502179145813, 0.6262322664260864, -0.20151367783546448, 0.3817806541919708, 0.22212287783622742, 0.42654064297676086, -0.08096582442522049, -0.46894487738609314, -0.4176327586174011, -0.26688504219055176, 0.695751428604126, -0.35407719016075134, 0.38156890869140...
logAddDelegate = mainClass.logAdd; logAddDelegate(message); } } } ``` I am just completely stumped....does anyone know how I can fix the logAdd function so I can get my textbox log to finally update? **EDIT:** I finally got it to work, here was the fix: **Form1 Code** ``` using System; usi...
[ -0.04785197228193283, 0.0257037952542305, 0.6005678772926331, -0.11828210204839706, 0.11447340995073318, 0.058998264372348785, 0.694768488407135, -0.023429542779922485, -0.5187721848487854, -0.49324512481689453, -0.4072125554084778, 0.3826582133769989, -0.36721712350845337, 0.4724780917167...
{ InitializeComponent(); } public void add(string message) { this.Log.Items.Add(message); } public void logAdd(string message) { Log.Invoke(new logAdd(add), new
[ -0.06232078745961189, -0.31429725885391235, 0.21333979070186615, -0.3197445869445801, 0.15482936799526215, 0.21407927572727203, 0.23238664865493774, -0.29685622453689575, -0.46580469608306885, -0.5892244577407837, -0.4593217372894287, 0.25814586877822876, -0.5447529554367065, 0.13202561438...
object[] { message }); } private void exitProgramToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } private void aboutToolStripMenuItem1_Click(object sender, EventArgs e) { Form aboutBox = new AboutBox1();
[ 0.036173682659864426, -0.09809736162424088, 0.6956179738044739, -0.2641195058822632, 0.21402615308761597, -0.10120455920696259, 0.5703975558280945, -0.2957020401954651, 0.03155283257365227, -0.5204370617866516, -0.48284727334976196, 0.622763454914093, -0.4638575613498688, 0.274403333663940...
aboutBox.ShowDialog(); } private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { } private void settingsToolStripMenuItem1_Click(object sender, EventArgs e) { settingsForm.settings.ShowDialog(); } private void synchronize...
[ 0.2660675048828125, -0.08660116046667099, 0.39670512080192566, 0.11587781459093094, 0.4537840187549591, -0.004934036172926426, 0.44471269845962524, -0.1030464619398117, 0.21442967653274536, -0.6843392848968506, -0.24752402305603027, 0.838188648223877, -0.5092000961303711, 0.166304364800453...
{ logAdd("this works"); } } public class settingsForm { public static Form settings = new Settings(); } } ``` **Logging Code:** ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LCR_ShepherdStaffupdater_1._0 { publi...
[ -0.011605910025537014, -0.21830634772777557, 0.5679420828819275, -0.1932803839445114, 0.3506190776824951, 0.07496056705713272, 0.45292025804519653, -0.14288228750228882, -0.3750980496406555, -0.5799447298049927, -0.36054766178131104, 0.7085307836532593, -0.4737018346786499, 0.3801337778568...
public static void updateLog(string message) { logAddDelegate = mainClass.logAdd; logAddDelegate(message); } } } ``` Well...I can tell that is a really bad way to do it...but until I find a true fix as long as it works im happy. Thanks for the help guys! What thread are you...
[ 0.2722676992416382, -0.0503295473754406, 0.480796754360199, -0.10026881843805313, 0.09975086897611618, -0.18624016642570496, 0.4287296533584595, 0.32933884859085083, -0.4176305830478668, -0.4031659662723541, -0.19520048797130585, 0.8378193378448486, -0.5321809649467468, 0.1749008297920227,...
that the TextBox wouldn't get updated in that case. If you try calling `logAdd()` from `synchronize_Click()` (assuming that this is called from the UI thread based on the name), does it work then?
[ 0.33383774757385254, -0.1736660599708557, 0.1687757670879364, 0.060384444892406464, 0.2876059114933014, -0.18753857910633087, 0.3221781849861145, 0.03735686466097832, -0.1717739701271057, -0.4100571274757385, 0.0018843607977032661, 0.6358089447021484, -0.2594161629676819, -0.05413832515478...
im trying to call a setter method in some an actionscript block of my custom component from an actionscript class. I can do this fine when its the main application i want to call by using ; ``` Application.application.methodName(); ``` however how can i call a method from a custom component? My component is in my c...
[ 0.22790268063545227, 0.013427166268229485, 0.43711867928504944, 0.12684601545333862, 0.06120086833834648, 0.03511781245470047, 0.11565598845481873, -0.21206797659397125, -0.30424585938453674, -0.5506394505500793, 0.06710595637559891, 0.5623478293418884, -0.6374266147613525, 0.0746837854385...
method static; doing so would likely be useless, as you'd want the method call to do something with the component's current state, I'm guessing -- use some of its data, change its appearance, etc. What you really need is an object reference. Since Application.application resides at the top (or actually very close to t...
[ 0.23099440336227417, -0.005204841494560242, 0.7132714986801147, 0.22946283221244812, -0.010180292651057243, -0.1377393901348114, 0.1764506995677948, -0.19257394969463348, -0.3555953800678253, -0.3096599876880646, 0.06221137195825577, 0.4219856560230255, -0.3221026360988617, 0.1898287385702...
that you're venturing into dangerous OO waters, here. :) The right way to do this would really be to figure out some way to pass a reference to your custom component to the ActionScript class that requires access to it -- for example, in your MXML: ``` <mx:Script> <![CDATA[ private function this_creationC...
[ 0.21575798094272614, -0.22279946506023407, 0.34595444798469543, 0.10948708653450012, 0.5139203667640686, -0.3708474040031433, 0.5747935771942139, 0.0050216433592140675, -0.26988083124160767, -0.5333792567253113, -0.1626439243555069, 0.5470219254493713, -0.290761262178421, -0.08465385437011...
in your ActionScript class: ``` public class YourClass { private var componentReference:YourCustomComponent; public function YourClass(component:YourCustomComponent) { this.componentReference = componentReference; } private function yourMethod():void { this.componentReference....
[ -0.020105775445699692, -0.29572048783302307, 0.40311822295188904, 0.004020315129309893, -0.04139736294746399, 0.10034181922674179, 0.4543190002441406, -0.10363037884235382, -0.22163933515548706, -0.5193689465522766, -0.15408295392990112, 0.7090616226196289, -0.46468600630760193, -0.2234472...
An ipv6 router stores a number of routes as the first `n` bits of the address. In 2000, researchers found only 14 distinct prefix lengths in 1500 ipv6 routes. Incoming packets are routed to different outgoing ports based on the longest prefix match, so if the first 8 bits of packet x match an 8 bit route but the first ...
[ 0.12303006649017334, 0.04688122123479843, 0.36296558380126953, 0.03930876404047012, -0.04654727503657341, 0.17295663058757782, 0.17571714520454407, -0.1370983123779297, -0.3035353720188141, -0.622201144695282, -0.08698467910289764, -0.13842271268367767, -0.17146523296833038, 0.249214082956...
a good algorithm to find the longest matching prefix in my routing table? Use either a [trie](http://en.wikipedia.org/wiki/Trie) or a [radix-tree](http://en.wikipedia.org/wiki/Radix_tree) to store the "standard" prefixes. A suffix tree/array is an unnecessary over-kill; they are used to find matches between **infixes**...
[ 0.28631591796875, -0.10510867834091187, -0.026112329214811325, 0.2088858187198639, -0.05916769430041313, -0.009966709651052952, 0.19867879152297974, -0.36712390184402466, 0.03419221565127373, -1.0028115510940552, 0.04835249111056328, 0.22642138600349426, -0.24843162298202515, -0.0453040227...
Is there any way of tracing user's identity when he/she triggers a a delete trigger on T-SQL 2005, e.g. with UNIQUEIDENTIFIER? If I do record the UNIQUEIDENTIFIER, how do I trace it back to the user? According to the same Javadoc: If the argument is `NaN` or an infinity or positive zero or negative zero, then the resu...
[ -0.000612440169788897, -0.06178727000951767, 0.011413349770009518, -0.02632034942507744, 0.10941264033317566, -0.11735866218805313, 0.07707009464502335, -0.015975968912243843, -0.2707306444644928, -0.022532708942890167, 0.38180065155029297, 0.38129234313964844, -0.1016729548573494, 0.20363...
I need to connect to a MS SQL Server on Windows from PHP running on Red Hat Enterprise Linux 4. I have installed FreeTDS and I can connect to the database using the tsql command. My current PHP does not have the mssql functions/extension. My question is, how do I set up the mssql extension without rebuilding PHP? Is ...
[ 0.40214118361473083, 0.2864285111427307, 0.4011034071445465, 0.1409289687871933, -0.18139910697937012, -0.2686099112033844, 0.15584544837474823, 0.16919274628162384, -0.15838894248008728, -0.7425635457038879, 0.31552526354789734, 0.4447948932647705, -0.3677173852920532, 0.36339014768600464...
be able to use these together to connect PHP to a MSSQL server. That said, I suggest rebuilding PHP so you have access to the mssql extension. That should result in better performance and reliability than using ODBC in this fashion. (For what it's worth, RHEL 5.x has a php-mssql RPM you can install.)
[ 0.5342725515365601, -0.0536055862903595, 0.34620246291160583, 0.36992189288139343, 0.01952565275132656, -0.3702891170978546, 0.25201651453971863, -0.0006554530118592083, -0.35751068592071533, -0.6438698172569275, 0.0380864180624485, 0.8243961930274963, -0.08678295463323593, -0.070250995457...
How to add a link stylesheet reference to the head of a document ? I've found this code but it's not working with all browsers, it crashes my IE7 : ``` var ss = document.createElement("link"); ss.type = "text/css"; ss.rel = "stylesheet"; ss.href = "style.css"; document.getElementsByTagName("head")[0].appendChild(ss);...
[ 0.22929255664348602, 0.0982942283153534, 0.8818323612213135, 0.07418019324541092, 0.05019741132855415, -0.3655586838722229, 0.7698643803596497, -0.14872795343399048, -0.015581091865897179, -0.9004133343696594, 0.006118617951869965, 0.3113805055618286, -0.36883872747421265, 0.07683473825454...
I have several Multi-Select parameters in my report. I am trying to find a way to pass in multiple values for a single parameter in the web query string? If I pass in a single value, it works fine. The report runs fine selecting multiple choices for a single param. My trouble lies in the web query string. Although Joh...
[ 0.07052755355834961, 0.1532590240240097, 0.28233978152275085, -0.10686639696359634, -0.18703898787498474, 0.307632178068161, 0.28050848841667175, -0.5958086252212524, -0.613502562046051, -0.4400392472743988, 0.04478584975004196, 0.2119583934545517, -0.7061058282852173, 0.3066443204879761, ...
then reference the value like so: ``` where yourColumn in (@<your param name>) ```
[ 0.20330572128295898, 0.41628292202949524, 0.4622758626937866, -0.08330676704645157, 0.16347192227840424, -0.05375393107533455, -0.10064751654863358, 0.15929251909255981, 0.007607143372297287, -0.1964803785085678, -0.08746162056922913, 0.2310888022184372, 0.10127541422843933, 0.035226993262...
I'm an entry level programmer so please be descriptive in your responses. I am trying to use a Java API given as a .jar file in my C# .net application. I don't know much Java, but this .jar file says "no main-class manifest attribute" when I try to run it so this means its a library? This Java API also comes with a .j...
[ 0.5110213160514832, 0.15061332285404205, -0.23083695769309998, 0.030742652714252472, -0.18922699987888336, -0.25191208720207214, 0.05775522440671921, -0.24256937205791473, -0.26921555399894714, -0.4614552855491638, 0.06747721880674362, 0.3204796314239502, -0.28008487820625305, 0.0242299027...
classes to jar file then In C# use Process class for execute and map IO stream." I am semi-familiar with the Process class in C# but I don't understand how I could use it to use a Java library in my C# .net project. Is this possible? or was that answer incorrect? If so, could you explain how I can use the .jar librar...
[ 0.5684993267059326, 0.11898995190858841, 0.09033927321434021, -0.028633538633584976, -0.453992635011673, -0.08652432262897491, 0.20709922909736633, -0.059240762144327164, -0.03780522570014, -0.8191758394241333, 0.47926580905914307, 0.32685643434524536, -0.1749502718448639, 0.32354372739791...
contains a main() function, it will be converted into an exe that can be run on the CLR. Otherwise it will be converted into dll’s. To use the dll’s in your project just add them as references in Visual Studio and the same API that was available to you in Java will be accessible in your .Net application. You can also ...
[ 0.3367200493812561, -0.12359904497861862, 0.12026629596948624, 0.10353695601224899, 0.027216831222176552, -0.043271902948617935, -0.04972220957279205, 0.08753525465726852, -0.07312658429145813, -0.4526404142379761, 0.05396334454417229, 0.274636447429657, -0.522454559803009, 0.0375520624220...
How do I customize a create content form for a certain content type. In this instance I have a CCK type, of Products but every time I create a product I use 4 fields Name, Price, Picture and dimensions. Is there a way to slim down the create content form to just have these options? Is this what Contemplate does? You'...
[ 0.43427449464797974, -0.07905026525259018, 0.5427578687667847, -0.09738444536924362, 0.18451571464538574, -0.01008407212793827, -0.02066851034760475, -0.34496232867240906, -0.032348379492759705, -0.6644226908683777, -0.0072044022381305695, 0.5965612530708313, -0.37876445055007935, 0.092498...
if($form_id == 'nodetype_node_form') { $form['path']['#access'] = FALSE; $form['menu']['#access'] = FALSE; $form['author']['#access'] = FALSE; $form['options']['#access'] = FALSE; $form['comment_settings']['#access'] = FALSE; $form['revision_information']['#access'] = FALSE; } } ``` Contempl...
[ -0.17394958436489105, 0.003274777438491583, 0.5571736097335815, -0.13699471950531006, 0.4419615864753723, -0.09512306749820709, 0.16226890683174133, -0.21410374343395233, 0.19887064397335052, -0.6737064719200134, -0.4391138553619385, 0.6305979490280151, -0.259537935256958, 0.07105838507413...
Should I initialize class fields at declaration like this? ``` public class SomeTest extends TestCase { private final List list = new ArrayList(); public void testPopulateList() { // Add stuff to the list // Assert the list contains what I expect } } ``` Or in setUp() like this? ```...
[ 0.6040493249893188, -0.1801982820034027, -0.02875695563852787, -0.192886084318161, -0.03458109498023987, -0.27908456325531006, 0.25528982281684875, -0.4422804117202759, 0.10624576359987259, -0.3738706707954407, -0.20401664078235626, 0.5666781067848206, -0.3363839387893677, -0.0416033044457...
super.setUp(); this.list = new ArrayList(); } public void testPopulateList() { // Add stuff to the list // Assert the list contains what I expect } } ``` I tend to use the first form because it's more concise, and allows me to use final fields. If I don't *need* to use the set...
[ 0.6838383674621582, -0.17699790000915527, 0.1262960284948349, -0.18288108706474304, 0.026595091447234154, -0.4277786314487457, 0.5444610714912415, -0.31359925866127014, -0.04230780899524689, -0.523025631904602, -0.2918320596218109, 0.5774313807487488, -0.37224069237709045, 0.00719794351607...
once per test method. That means `list` will be created once per test, regardless of where I declare it. It also means there are no temporal dependencies between the tests. So it seems like there are no advantages to using setUp(). However the JUnit FAQ has many examples that initialize an empty collection in setUp(), ...
[ 0.810823917388916, -0.0024903141893446445, -0.04690349102020264, -0.017637118697166443, -0.27732595801353455, -0.21349826455116272, 0.16739217936992645, -0.3889085650444031, -0.39428943395614624, -0.7054499983787537, -0.09361479431390762, 0.3780439496040344, -0.15060940384864807, -0.005102...