text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
In a nutshell, there's a global stylesheet: ``` a { font-family: Arial; } ``` I want to use a different font family for a particular link: ``` <a href="..." style="font-family: Helvetica;">...</a> ``` or ``` <span style="font-family: Helvetica;"><a href="...">...</a></span> ``` but nothing works. Is there an e...
[ -0.1182069331407547, 0.15509110689163208, 0.2890990376472473, 0.1416599005460739, -0.24872753024101257, -0.042457375675439835, 0.6369554996490479, 0.16220726072788239, -0.34830477833747864, -0.49143797159194946, -0.22420257329940796, 0.23237456381320953, -0.561367928981781, 0.3290967345237...
I've installed Oracle XE with APEX, but forgot to write down the URL to access it. How may I determine the URL? The default is <http://127.0.0.1:8080/apex> If you happen to be on Windows, there will also be an entry in the Start menu (Programs > Oracle XE > Database homepage )
[ 0.3462802767753601, 0.22983509302139282, 0.310301810503006, 0.07086101919412613, 0.11839424073696136, -0.3958183526992798, 0.14955952763557434, 0.3191143274307251, 0.09450941532850266, -0.5428555011749268, -0.08245159685611725, 0.5291763544082642, 0.030078936368227005, -0.04595938324928284...
At my workplace, the traffic blocker/firewall has been getting progressively worse. I can't connect to my home machine on port 22, and lack of ssh access makes me sad. I was previously able to use SSH by moving it to port 5050, but I think some recent filters now treat this traffic as IM and redirect it through another...
[ 0.024044062942266464, 0.22557806968688965, 0.4753073751926422, -0.06676352769136429, 0.10078049451112747, 0.08629049360752106, 0.5506142973899841, 0.595879316329956, -0.5953097939491272, -1.1760607957839966, 0.22650979459285736, 0.31568241119384766, -0.0836118534207344, 0.23739410936832428...
emulation, lack of port forwarding, my browser leaks memory at an amazing rate...) I tried setting up `mod_proxy_connect` on top of `mod_ssl`, with the idea that I could send a `CONNECT localhost:22 HTTP/1.1` request through HTTPS, and then I'd be all set. Sadly, this seems to not work; the HTTPS connection works, up u...
[ 0.2961662709712982, 0.033001672476530075, 0.43139249086380005, 0.15297667682170868, -0.21679461002349854, -0.1365826278924942, 0.44411608576774597, 0.2967362105846405, -0.2378235012292862, -0.879699170589447, 0.13565270602703094, 0.5234536528587341, -0.3864534795284271, 0.3962731659412384,...
do this over plain HTTP, for several reasons: * Leaving a big fat open proxy like that just stinks * A big fat open proxy is not good over HTTPS either, but with authentication required it feels fine to me * HTTP goes through a proxy -- I'm not *too* concerned about my traffic being sniffed, as it's ssh that'll be goi...
[ 0.360561341047287, 0.2646555006504059, 0.21935603022575378, -0.04700477793812752, -0.176822230219841, -0.5726373195648193, 0.5871925354003906, -0.11831561475992203, -0.18593557178974152, -0.7715832591056824, -0.19229194521903992, 0.2611103057861328, -0.322792649269104, -0.06128008663654327...
443, because I would no longer be able to serve pages over HTTPS) * I have or can write a simple port forwarder client that runs under Windows (or Cygwin) Edit ---- [DAG: Tunnelling SSH over HTTP(S)](http://dag.wieers.com/howto/ssh-http-tunneling/) has been pointed out to me, but it doesn't help: at the end of the ar...
[ 0.19342046976089478, 0.4392979145050049, 0.21167141199111938, 0.018507113680243492, -0.14231163263320923, -0.31643912196159363, 0.6091598868370056, 0.018486259505152702, -0.3399946689605713, -0.6020809412002563, -0.05158860981464386, 0.22063641250133514, -0.5976559519767761, 0.286357432603...
why the company has such a restrictive policy. It might be for a good reason. If you still find that you want to bypass the policy, you could write a small proxy that will listen on your server on port 443 and then, depending on the request, will forward the traffic either to your web server or to the SSH daemon. Ther...
[ 0.29208776354789734, -0.23032711446285248, 0.4736079275608063, 0.12430962920188904, 0.011877281591296196, -0.38625919818878174, 0.24845653772354126, 0.010930275544524193, -0.3121013939380646, -0.285746306180954, 0.0474468395113945, 0.14543962478637695, -0.3559476435184479, 0.20457409322261...
whereas the SSH handshake starts with the server sending some data. The timeout has to be big enough to delays in delivering the initial data from the client in the TLS/SSL handshake, so it'll make establishing SSH connections slower. 2. If the HTTP proxy in your company is smart, it'll actually eavesdrop on the expect...
[ -0.1900147944688797, -0.15947210788726807, 0.39264604449272156, -0.09250950813293457, -0.15111398696899414, -0.4710124433040619, 0.1611223667860031, -0.3018152713775635, -0.14077982306480408, -0.6280985474586487, -0.3002738654613495, 0.1558961570262909, -0.17057107388973236, 0.214247345924...
requests based on the TLS/SSL version in your client request to determine whether to route the TLS/SSL connection to the web server or to the TLS/SSL-tunneled SSH daemon.
[ 0.16521798074245453, -0.2686273455619812, 0.3569473326206207, 0.36563870310783386, -0.07333218306303024, -0.03405946493148804, 0.13109943270683289, 0.10943181812763214, -0.48549893498420715, -0.7954496741294861, -0.27920767664909363, 0.1571355164051056, -0.15175506472587585, 0.389247328042...
What am I doing wrong here? ``` string q = "john s!"; string clean = Regex.Replace(q, @"([^a-zA-Z0-9]|^\s)", string.Empty); // clean == "johns". I want "john s"; ``` just a FYI ``` string clean = Regex.Replace(q, @"[^a-zA-Z0-9\s]", string.Empty); ``` would actually be better like ``` string clean = Regex.Replace(...
[ 0.3068771958351135, 0.4099785387516022, 0.23938603699207306, -0.17586258053779602, -0.022481456398963928, -0.125010684132576, 0.7498313188552856, -0.2944476306438446, -0.17376437783241272, -0.3676145374774933, -0.13204313814640045, 0.7238144874572754, -0.19264516234397888, 0.19071520864963...
Have you refactored from an [ActiveRecord](http://martinfowler.com/eaaCatalog/activeRecord.html) to a [DataMapper](http://martinfowler.com/eaaCatalog/dataMapper.html) pattern? What conditions prompted the switch? I'm primarily interested in web based applications, but would like to know the challenges that accompany su...
[ 0.6911453008651733, 0.03643752634525299, 0.4242178499698639, -0.43474677205085754, 0.07756824791431427, -0.21997444331645966, 0.18346816301345825, -0.2512272298336029, -0.43551766872406006, -0.8064044713973999, 0.013069809414446354, 0.28222399950027466, -0.4868294298648834, 0.3295275568962...
data access logic is kept separate. Also, it is quite difficult (impossible?) to mock ActiveRecord objects because of their user of static methods.
[ -0.3850899040699005, 0.016835466027259827, 0.24403080344200134, 0.5329865217208862, -0.14472520351409912, 0.09217648953199387, 0.2784361243247986, -0.01106969453394413, -0.2192065417766571, -0.2335919737815857, -0.18266798555850983, 0.5351572036743164, -0.39291301369667053, 0.1936549693346...
I'm making a Stored Procedure that basically concatenates a long string with data from many records. I want to do: ``` set @output = @output + 'aaa' + LINEBREAK ``` How do I specify that line break? ``` DECLARE @LINEBREAK AS varchar(2) SET @LINEBREAK = CHAR(13) + CHAR(10) ```
[ 0.222459077835083, 0.02453804574906826, 0.32601454854011536, -0.24679209291934967, -0.012046233750879765, -0.03158089518547058, 0.4611106514930725, -0.3978712856769562, -0.23882627487182617, -0.1715196967124939, -0.04900852218270302, 0.47995585203170776, -0.4539867639541626, 0.240075677633...
The class method to create an index path with one or more nodes is: ``` + (id)indexPathWithIndexes:(NSUInteger *)indexes length:(NSUInteger)length ``` How do we create the "indexes" required in the first parameter? The documentation listed it as *Array of indexes to make up the index path* but it is expecting a (N...
[ -0.48126018047332764, -0.14070118963718414, 0.5063086748123169, 0.1482284516096115, 0.012318744324147701, 0.03065829910337925, 0.17436036467552185, -0.2258238047361374, -0.24592286348342896, -0.7975289821624756, 0.09435060620307922, 0.48668304085731506, -0.38745057582855225, 0.079164355993...
I've incorporated Apple's Reachability sample into my own project so I know whether or not I have a network connection - if I don't have a network connection, I don't bother sending out and requests. I decided to go with the status notification implementation because it seemed easier to have the reachablity updated in ...
[ -0.06874238699674606, 0.04663683474063873, 0.5579255223274231, 0.027365706861019135, 0.4760068953037262, -0.10030480474233627, 0.41978949308395386, -0.030525073409080505, -0.06532328575849533, -0.42651113867759705, -0.04531519114971161, 0.4372354745864868, 0.055393315851688385, -0.14059169...
thinks this isn't the case. My understanding is you don't get a notification when an EDGE connection, so my assumption is that I lost and regained the connection at some point. Restarting the app is usually sufficient to see the network connection. This isn't an optimal solution, so I was wondering if anybody else cam...
[ -0.07056770473718643, -0.16388876736164093, 0.6197044849395752, 0.2505515515804291, -0.04090660810470581, -0.027197472751140594, 0.7264732122421265, 0.07767646014690399, -0.3339882493019104, -0.5134072303771973, 0.17703866958618164, 0.5253880620002747, -0.01645425334572792, -0.232705250382...
seconds seems to do no harm. ``` - (void) checkReachability { BOOL connected = ([[Reachability sharedReachability] localWiFiConnectionStatus] == ReachableViaWiFiNetwork); // Do something... [self performSelector:@selector(checkReachability) withObject:nil afterDelay:5.0]; } ```
[ 0.07631053775548935, -0.5032034516334534, 0.29089033603668213, 0.32818764448165894, -0.01114078052341938, -0.23322029411792755, 0.4971020519733429, -0.21709518134593964, -0.1869458258152008, -0.5138930082321167, -0.06754107773303986, 0.3191680312156677, -0.10569821298122406, 0.176013007760...
I need to sort tuples according to the second element of each tuple but apparently usort/1 only works with the first element. So I have to swap the elements, usort them and swap back.Is there an easier way?Also is there a way to sort in descending order (I know sorting and reversing can be done, but just want to know)....
[ -0.16533014178276062, 0.009451150894165039, 0.35248038172721863, -0.264911949634552, -0.46066078543663025, 0.0053459941409528255, 0.3919268548488617, -0.3571358621120453, -0.3839990496635437, -0.8063580393791199, -0.14142146706581116, 0.36761340498924255, -0.5566515922546387, -0.3383117318...
Sometimes I break long conditions in `if`s onto several lines. The most obvious way to do this is: ``` if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4'): do_something ``` Isn't very very appealing visually, because the action blends with the conditions. However, it is the...
[ 0.09507955610752106, -0.029665999114513397, 0.07785596698522568, -0.2699333131313324, -0.005280978977680206, -0.07204604893922806, 0.4289788007736206, -0.2957174777984619, -0.11582233011722565, -0.46784907579421997, -0.5673210024833679, 0.353786826133728, -0.26649209856987, -0.299568861722...
and cond4 == 'val4'): do_something ``` But this isn't very pretty. :-) Can you recommend an alternative way? You don't need to use 4 spaces on your second conditional line. Maybe use: ``` if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4'): do_something ``` Also, don...
[ 0.03146953880786896, -0.10619516670703888, -0.008500976487994194, -0.23994404077529907, 0.0357474759221077, 0.20345920324325562, 0.31119027733802795, -0.040780916810035706, -0.07814604789018631, -0.5335914492607117, -0.5424013137817383, 0.6075520515441895, -0.14864663779735565, -0.55909347...
== 'val4' ): do_something if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4'): do_something ``` Both of those are fairly ugly though. Maybe lose the brackets (the [Style Guide](https://www.python.org/dev/peps/pep-0008/#multiline-if-statements) discourages this thoug...
[ 0.1602882593870163, 0.020007770508527756, -0.012764977291226387, -0.4408845901489258, 0.0032109578605741262, -0.041380710899829865, 0.32511183619499207, -0.16531309485435486, -0.3388197124004364, -0.43377259373664856, -0.49191275238990784, 0.6690611839294434, -0.17308391630649567, -0.34371...
cond3 == 'val3' and \ cond4 == 'val4': do_something ``` I think I prefer: ``` if cond1 == 'val1' and \ cond2 == 'val2' and \ cond3 == 'val3' and \ cond4 == 'val4': do_something ``` Here's the [Style Guide](https://www.python.org/dev/peps/pep-0008/#multiline-if-statements), w...
[ 0.2374408096075058, 0.08545693010091782, 0.18220598995685577, -0.3442145884037018, -0.17169007658958435, 0.1481693536043167, 0.29661521315574646, -0.36960455775260925, -0.32498660683631897, -0.3561302423477173, -0.5745992660522461, 0.6488932967185974, -0.3196874260902405, -0.31112477183341...
How do you generate a X.509 public and private key pair and a signing request (CSR file) to be sent to a CA for signing in C#? CountIf can count values equal to one chosen. Unfortunately it seems that there is no good candidate for such function. Alternatively you can use additional column with If to display 1 or 0 if ...
[ 0.3418993353843689, 0.15309599041938782, 0.3340686559677124, -0.0773734599351883, -0.15045161545276642, 0.00693432055413723, 0.04261626675724983, -0.46713343262672424, 0.04054013267159462, -0.3159160315990448, 0.15712934732437134, 0.37807151675224304, -0.3128508925437927, -0.00242153787985...
How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel. Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc. Here...
[ -0.20706361532211304, 0.184615358710289, 0.5369909405708313, -0.218880295753479, -0.1499815285205841, 0.3486078381538391, -0.02790025994181633, -0.4107808768749237, -0.13886409997940063, -0.32508352398872375, 0.06312374025583267, 0.7575665712356567, -0.10360585898160934, -0.154048457741737...
columnName = Convert.ToChar('A' + modulo) + columnName; columnNumber = (columnNumber - modulo) / 26; } return columnName; } ```
[ -0.5042930245399475, 0.31731918454170227, 0.3386097848415375, -0.6254289746284485, -0.05029231682419777, 0.3023584485054016, 0.4456195533275604, -0.33153781294822693, 0.15096178650856018, -0.4295668601989746, -0.3000543713569641, 0.6999149322509766, -0.2725064754486084, 0.26568183302879333...
We are in the process of nutting out the design guidelines we would like to use in our development team and got into a discussion today around how ASP.NET controls should be named. I am talking about our good friends Label, TextBox, Button etc. We came up with the following three possibilities that we voted on: (Examp...
[ 0.24557244777679443, -0.32831311225891113, 0.2566845118999481, 0.14569707214832306, -0.10180490463972092, 0.04604056477546692, -0.2160007506608963, -0.2656055986881256, -0.04690369591116905, -0.6145467162132263, -0.10995730757713318, 0.16210588812828064, -0.49902671575546265, 0.14223203063...
fields (like a label for the textbox or a validator) as in option 2 [lblTextBox]. We ended up deciding to use option 2. It's not as verbose as option 1 and I like that it specifies what control it is before the name of the control. My question is whether Microsoft has released any guidelines for these prefixes and or...
[ 0.25242963433265686, -0.30321842432022095, 0.4210745096206665, 0.02228771708905697, -0.21458443999290466, -0.200447678565979, -0.16139860451221466, 0.019720138981938362, -0.05936284363269806, -0.3077409267425537, -0.4737315773963928, 0.3030332326889038, -0.533235490322113, -0.3018442392349...
it could be any number of controls. Microsoft provides guidance in general for OO naming conventions, but not specifically for naming UI controls. Since UI controls are ultimately variables used in code, they should follow the same convention as any other variable - no hungarian notation prefix. * [msdn.microsoft.com...
[ -0.04202023521065712, -0.11459608376026154, 0.44437921047210693, 0.28022998571395874, 0.03258359432220459, -0.0594857856631279, -0.36386334896087646, -0.19669009745121002, -0.20301225781440735, -0.4500722587108612, -0.4025880992412567, -0.009971672669053078, -0.31219249963760376, 0.3073135...
the control, you start to depend on certain functionalities and you break encapsulation - you should be able to easily swap controls without changing much or any code. (Basic OOP principle) * It is fairly easy to come up with prefixes for the standard controls, but new controls are being developed every day. You may ma...
[ 0.4425116181373596, -0.11060789227485657, 0.385784775018692, 0.53090900182724, 0.12209825962781906, -0.05002797394990921, -0.25101232528686523, -0.15337784588336945, -0.23483829200267792, -0.39252012968063354, -0.11130855232477188, 0.5044299364089966, -0.28329458832740784, 0.03052847273647...
txtFirstName => firstName or FirstName * txtState => state or State * cboState => state or State (prime example of changing control types what about lstState or rdoState - they should all have the same name because your code is not concerned about the type of control,rather the state the user selected) * ctlBilling => ...
[ 0.5043054819107056, -0.051957398653030396, 0.6577556133270264, 0.029170522466301918, 0.13405071198940277, -0.11912776529788971, 0.032594650983810425, -0.26011767983436584, -0.21312814950942993, -0.4103435277938843, -0.2900342643260956, 0.4829219877719879, -0.3649623692035675, 0.10932412743...
I guess this is an odd one, and the answer is most likely it is not possible since it would represent a security breach; but I am looking for a way - if any - to get a screendump of content inside the browser. I don't need the entire window, but actually just need to dump the rendered state of an tag. It need to be cro...
[ 0.4012995958328247, 0.01205667108297348, 0.27480027079582214, 0.02514050342142582, -0.14429636299610138, -0.2910361886024475, 0.3078427314758301, 0.2511572539806366, 0.033140018582344055, -0.9919167160987854, -0.11407116800546646, 0.3626727759838104, -0.1013152226805687, 0.0602872185409069...
(i.e. host Internet Explorer in a WinForms application and get a screenshot of the rendered content) - this will show the Silverlight plug-in and allow taking screenshots.
[ 0.24624639749526978, -0.035301122814416885, 0.41212621331214905, 0.1561225950717926, -0.01735721528530121, -0.4159362316131592, 0.12108781933784485, -0.03824155032634735, 0.16837136447429657, -0.7862164378166199, -0.24042434990406036, 0.2718789875507355, -0.1308499127626419, -0.09120360761...
I'm working on a commercial (not open source) C++ project that runs on a linux-based system. I need to do some regex within the C++ code. (I know: I now have 2 problems.) QUESTION: What libraries do people who regularly do regex from C/C++ recommend I look into? A quick search has brought the following to my attention...
[ 0.3090241551399231, 0.12834380567073822, 0.10532911121845245, 0.11155324429273605, -0.1678234338760376, -0.24036459624767303, -0.01927584782242775, -0.04989844560623169, -0.19540205597877502, -0.35945892333984375, 0.09675516188144684, 0.6779043078422546, -0.2864587604999542, -0.10802776366...
this project) Thanks for all the suggestions. I tried out a few things today, and with the stuff we're trying to do, I opted for the simplest solution where I don't have to download any other 3rd-party library. In the end, I #include <regex.h> and used the standard C POSIX calls regcomp() and regexec(). Not C++, but i...
[ 0.43694642186164856, -0.08237894624471664, 0.24646572768688202, 0.380820631980896, 0.07669339329004288, -0.1462569534778595, 0.22472801804542542, -0.07606080919504166, -0.08134728670120239, -0.5070677399635315, -0.16871486604213715, 0.49670183658599854, -0.4633229374885559, 0.0976296588778...
I use K2 as my workflow engine. For some reason my processes are not available in any of the reporting views (on the workspace). Do I have to do something special when deploying to get them there? Your k2 process should appear in the reports automatically. If it does not, maybe it has never been started? Look at the \...
[ 0.16376636922359467, 0.012775690294802189, -0.02797979861497879, 0.05752767249941826, -0.06040987744927406, -0.15311089158058167, 0.39871886372566223, 0.14674171805381775, -0.4042874276638031, -0.645110547542572, -0.21374113857746124, 0.39418134093284607, -0.1487208604812622, -0.0324382670...
I am seeking a backup tool to back-up virtual OS instances run through Microsoft Virtual Server 2005 R2. According to the [MS docs](http://technet.microsoft.com/en-us/library/cc720377.aspx), it should be possible to do it *live* through volume shadow copy service, but I am having trouble finding any tool for any. What...
[ 0.5162038803100586, -0.025382524356245995, 0.5616052150726318, 0.08954606205224991, -0.11131205409765244, -0.25634342432022095, 0.1365565061569214, 0.09908993542194366, -0.3242790102958679, -0.6427316069602966, 0.13725809752941132, 0.636134147644043, -0.1024538055062294, 0.2122658044099807...
multiple times are only stored once. The compression is superb and the filesystem is restored perfectly with ACLs and reparse points perfectly intact. You can store multiple VHDs and multiple versions of those VHDs in a WIM. Which means you can backup incremental versions of your VHD and it'll just add a little delta ...
[ 0.7954484820365906, -0.43765074014663696, 0.48651567101478577, 0.24106037616729736, -0.10986041277647018, 0.14763601124286652, 0.3576275110244751, -0.48471319675445557, -0.5716222524642944, -0.7056098580360413, 0.24380788207054138, 0.6891183853149414, -0.2243100255727768, 0.081294015049934...
in Windows PE using Virtual Server. Then run ImageX with the /CAPTURE flag and save the WIM to a network drive. 2. Use a tool like VHDMount to mount the virtual machine as a local drive and then capture with ImageX. (In my experience VHDMount is flaky and I would recommend SmartVDK for this task. VHDMount is better for...
[ 0.2499012053012848, -0.1553933322429657, 0.25349727272987366, 0.12047509849071503, -0.39125314354896545, -0.36193186044692993, -0.13948483765125275, 0.06831108033657074, 0.04355732351541519, -0.9829292297363281, -0.07652521878480911, 0.7363813519477844, -0.10209377855062485, -0.13012872636...
Since Python is a dynamic, interpreted language you don't have to compile your code before running it. Hence, it's very easy to simply write your code, run it, see what problems occur, and fix them. Using hotkeys or macros can make this incredibly quick. So, because it's so easy to immediately see the output of your p...
[ 0.41465064883232117, 0.001995793776586652, -0.37482285499572754, -0.02189912274479866, -0.11172311007976532, -0.12370648235082626, 0.46921756863594055, 0.30296894907951355, -0.42464393377304077, -0.2036140412092209, -0.10951216518878937, 0.8721827268600464, -0.4510275423526764, -0.27932512...
how to fix the problem. I use pdb for basic python debugging. Some of the situations I use it are: * When you have a loop iterating over 100,000 entries and want to break at a specific point, it becomes really helpful.(conditional breaks) * Trace the control flow of someone else's code. * Its always better to use a de...
[ 0.3355066776275635, 0.1877240240573883, -0.3188871443271637, 0.13833415508270264, 0.1577976942062378, -0.03358028829097748, 0.48407769203186035, 0.15447980165481567, -0.5213866233825684, -0.5103821158409119, -0.19364097714424133, 0.5255942940711975, -0.5102766752243042, -0.3982685506343841...
some more prints.. debugger can save you time here, you dont need to add the print and run again.
[ 0.4895588159561157, 0.2651754915714264, 0.1035245805978775, 0.28775835037231445, 0.27366042137145996, -0.22913330793380737, 0.3230172097682953, -0.20114123821258545, -0.15496334433555603, -0.5351018905639648, 0.4487660229206085, 0.4612095355987549, -0.27181389927864075, -0.4736403822898865...
I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode, so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented property setter on UIDevice that does the trick but obviously generat...
[ 0.27193617820739746, -0.13666070997714996, 0.8235737085342407, -0.1857023686170578, -0.12995441257953644, -0.09322074055671692, 0.07346983999013901, -0.18720115721225739, -0.14320416748523712, -0.703191339969635, 0.16058754920959473, 0.81533282995224, -0.07263272255659103, 0.08714389801025...
want my app to support landscape and portrait in View 1 but only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation for all views but if the user is in landscape mode in View 1 and then switches to View 2, I want to force the phone to rotate back to Portrait. This is no longer an issu...
[ 0.23516078293323517, -0.2225455939769745, 0.839404284954071, -0.20881232619285583, -0.10809820890426636, 0.048339519649744034, 0.4523996114730835, -0.2606808841228485, -0.08139340579509735, -0.571084201335907, 0.1479322761297226, 0.8483534455299377, -0.2297532558441162, -0.1657572090625763...
it is prior to the latest release. It is not clear if Apple's static analysis will understand that you are working around the older SDK limitations. I personally have been told by Apple to remove the method call on my next update so I am not yet sure if having a hack for older devices will get through the approval pro...
[ 0.23198655247688293, 0.11352372914552689, 0.32576265931129456, -0.0030445819720625877, 0.20770263671875, -0.5064048767089844, 0.20223252475261688, 0.06073234975337982, -0.14873696863651276, -0.2752349078655243, 0.08587497472763062, 0.34057876467704773, -0.007626629434525967, 0.282364875078...
I've got a Java client that needs to access a remote database. It is the goal to hide database credentials from the user and not hardcode any credentials within the code. Therefore, the database access will probably have to be on the server side. I'm restricted to use Ibatis as a data abstraction framework. Apart from...
[ 0.3521949052810669, 0.29035040736198425, -0.07204679399728775, -0.010040251538157463, 0.10646967589855194, -0.10761526226997375, -0.06404128670692444, -0.02804393321275711, -0.17233389616012573, -0.5816676616668701, 0.2950744330883026, 0.4932835102081299, -0.17958283424377441, 0.4019082784...
a Service Layer and expose it over RMI - possibly as EJB3 stateless session beans as you have JBoss, possibly as pure RMI. I wouldn't bother with web services unless you have a specific need. RMI will take case of serialisation for you. Your service layer needs to expose a method to authenticate users using their cred...
[ 0.33182990550994873, 0.24553488194942474, 0.28676968812942505, 0.11255569756031036, -0.2580929100513458, -0.3737795352935791, 0.5703731775283813, -0.2539609372615814, -0.12541083991527557, -0.6814472079277039, -0.300904780626297, 0.3610863983631134, -0.258034348487854, -0.03444094210863113...
layered architecture, but you gain efficiencies from sharing prepared statements amongst all your clients by having a single data source on the server.
[ 0.3442632257938385, 0.054882630705833435, 0.13117125630378723, 0.3405572772026062, -0.19374606013298035, -0.16937266290187836, 0.0269580390304327, -0.10770819336175919, -0.18991462886333466, -0.7509421706199646, -0.28960034251213074, 0.3657386600971222, 0.10250319540500641, 0.0488459393382...
> UPDATED: on win2k it seems it works OK. Sorry for the confusion. MS Windows Vista internal ftp client has a strange behavior. When redirecting its output and error to a file, the errors do not show up there: > ftp -n -s:commands.txt host >output.log 2>&1 When running it from Task Scheduler inside a batch file, I d...
[ 0.24463830888271332, -0.06440234184265137, 0.15040689706802368, -0.3818070590496063, -0.27775871753692627, -0.13992777466773987, 0.7320387363433838, -0.11141149699687958, -0.4646799564361572, -0.662663459777832, -0.1527240127325058, 0.7795937061309814, -0.411031037569046, -0.15508700907230...
I wouldn't bother with web services unless you have a specific need. RMI will take case of serialisation for you. Your service layer needs to expose a method to authenticate users using their credentials entered on startup of the Swing app. All calls for data go through the service layer. No SQL exists in the Swing ap...
[ 0.7600581645965576, 0.5534157156944275, 0.22908999025821686, 0.09481918811798096, -0.23162849247455597, -0.23926697671413422, 0.3278542459011078, -0.3657120168209076, -0.09511212259531021, -0.37544843554496765, 0.07806544750928879, 0.2653031647205353, 0.01744193769991398, -0.03547329828143...
I'm trying to localize my aspx pages. I'm done with content localization using L10n features provided by .net f/w, like resource files. But I'm finding it difficult to set local data in page titles. Most of the browsers, including IE and FF, shows content on window title with some boxes (FF will show properly localiz...
[ 0.2524969279766083, 0.02161867544054985, 0.4728764593601227, -0.19415001571178436, -0.44982796907424927, -0.19010531902313232, 0.24276971817016602, 0.40418365597724915, -0.14970925450325012, -0.7530120611190796, -0.4960300028324127, 0.12988421320915222, -0.18675537407398224, 0.444098860025...
But [Arabic version](http://news.bbc.co.uk/hi/arabic/news/) shows the localized text in title. Can somebody please tell me why this is happening? How we can solve this issue? Note: My site is using Asp.net 2.0 / IIS I suspect this is a typeface issue. The browser title bar and other window ornaments are usually rende...
[ 0.28730109333992004, 0.26570451259613037, 0.47327518463134766, -0.12051855027675629, -0.1674465835094452, -0.2502928078174591, 0.3166588246822357, 0.36454278230667114, -0.10907794535160065, -0.5875242948532104, -0.6172175407409668, 0.18635810911655426, -0.18051932752132416, 0.2605183124542...
characters, which is why you're only seeing the problem on the window titles. Safari uses its own rendering engine for everything including the window chrome, which is why it doesn't look like a normal Windows app, and why your localized titles are working. You might want to try changing your Windows "Active Title Ba...
[ -0.23642472922801971, 0.09165449440479279, 0.3734692335128784, 0.16446971893310547, -0.3951878845691681, 0.3508830666542053, 0.3258950114250183, 0.04383751377463341, -0.24081580340862274, -0.617946445941925, -0.1713232547044754, 0.30521222949028015, -0.29094547033309937, 0.0297548044472932...
What's the difference between absolute path & relative path when using any web server or Tomcat? Absolute paths start with / and refer to a location from the root of the current site (or virtual host). Relative paths do not start with / and refer to a location from the actual location of the document the reference is ...
[ -0.2047298550605774, -0.13820961117744446, 1.0186994075775146, 0.01920424774289131, 0.22383184731006622, 0.11753792315721512, 0.04801809787750244, 0.047402068972587585, 0.01835961639881134, -0.7516592741012573, -0.3263971209526062, 0.526253342628479, -0.2508678436279297, 0.1754000782966613...
I am writing a custom ant task that extends Task. I am using the log() method in the task. What I want to do is use a unit test while deveoping the task, but I don't know how to set up a context for the task to run in to initialise the task as if it were running in ant. This is the custom Task: ``` public class CopyA...
[ 0.3804589807987213, 0.0340178944170475, 0.26027339696884155, -0.2511921525001526, 0.28449299931526184, -0.06775832176208496, 0.47139212489128113, -0.358991801738739, 0.06241798773407936, -0.7778704762458801, -0.051342952996492386, 0.7626736164093018, -0.30863210558891296, 0.182452961802482...
} } ``` This is the unit test code: ``` CopyAndSetPropertiesForFiles task = new CopyAndSetPropertiesForFiles(); task.execute(); ``` When the code is run as a test it gives a NullPointerException when it calls log. ``` java.lang.NullPointerException at org.apache.tools.ant.Task.log(Task.java:346) at org.ap...
[ 0.12452720105648041, 0.3624090552330017, 0.4203026294708252, -0.02325347810983658, 0.26206186413764954, 0.0888628140091896, 0.5184147953987122, -0.3183773458003998, -0.4559295177459717, -0.8054113388061523, -0.19805492460727692, 0.4007856249809265, -0.2589816451072693, -0.073463074862957, ...
the two relevent classes: [ProjectComponent](http://www.docjar.com/html/api/org/apache/tools/ant/ProjectComponent.java.html) and [Task](http://www.docjar.com/html/api/org/apache/tools/ant/Task.java.html) You are calling the log method from Task: ``` public void log(String msg) { log(msg, Project.MSG_INFO); } `...
[ 0.2518230378627777, -0.35539573431015015, 0.5083269476890564, 0.03591107949614525, 0.09056452661752701, -0.01372222974896431, 0.20112371444702148, -0.5355554819107056, -0.21174752712249756, -0.25197118520736694, -0.5112826228141785, 0.7428277134895325, -0.5322689414024353, 0.12325173616409...
// a Project ( for example as a standalone Bean ). // Most ant components can be used this way. if (msgLevel <= Project.MSG_INFO) { System.err.println(msg); } } } ``` It looks like this may be your problem. Your task needs a project context.
[ 0.12304568290710449, -0.20400194823741913, 0.09683870524168015, -0.16504456102848053, 0.07142334431409836, -0.029081592336297035, 0.31101158261299133, 0.042690567672252655, -0.3437235951423645, -0.8337357044219971, -0.14435577392578125, 0.29241102933883667, -0.5072330832481384, -0.03300048...
I need to find out the time a function takes for computing the performance of the application / function. is their any open source Java APIs for doing the same ? You're in luck as there are quite a few [open source Java profilers](http://java-source.net/open-source/profilers) available for you.
[ 0.5505059957504272, 0.08961059153079987, -0.16692541539669037, 0.25466904044151306, 0.0019455613801255822, -0.11086053401231766, 0.202628955245018, 0.2714887857437134, -0.17270037531852722, -0.6398394703865051, 0.21215303242206573, 0.5202040076255798, 0.20776014029979706, -0.00189878523815...
After discovering [Clojure](http://clojure.org) I have spent the last few days immersed in it. What project types lend themselves to Java over Clojure, vice versa, and in combination? What are examples of programs which you would have never attempted before Clojure? Clojure lends itself well to [concurrent programmin...
[ -0.16638444364070892, 0.1533585488796234, -0.07584284991025925, 0.2546297013759613, -0.2405061572790146, -0.08572886884212494, 0.049064382910728455, 0.06779759377241135, -0.47320833802223206, -0.5030049085617065, 0.432180792093277, -0.06428026407957077, -0.4460204243659973, -0.048619035631...
worked great. This is not only because Rich is an amazing programmer, it's also because he didn't have to worry about locking while writing his code. You can check out his [presentation on the ant colony here](http://blip.tv/file/812787).
[ 0.7170383930206299, 0.010715176351368427, -0.347578763961792, 0.28399738669395447, 0.3472360372543335, -0.2945297062397003, 0.42853331565856934, 0.13442523777484894, -0.38569316267967224, -0.16272830963134766, 0.16433396935462952, 0.4810267388820648, -0.10656378418207169, -0.08927953988313...
What are the implications of including a set of visual components released under a [Mozilla Public License](http://www.mozilla.org/MPL/MPL-1.1.html) in a commercial application. Do I have any obligations? I've found pretty good analysis on MPL (and others) by Frank Hecker here: <http://hecker.org/writings/setting-up-...
[ 0.776948094367981, 0.2648787200450897, 0.0038817923050373793, -0.12757350504398346, -0.09045387804508209, -0.23854853212833405, 0.11391060799360275, -0.38431617617607117, -0.35604602098464966, -0.16252551972866058, -0.11820441484451294, 0.6056885123252869, -0.4389055073261261, -0.308496057...
licensed under the same terms as the > original files, and in particular must > be made freely and publicly available > in source form. ... > Thus an open-source product initially > released under the MozPL may be > extended with proprietary code to > create new proprietary products, as > long as the proprieta...
[ 0.6734946370124817, 0.24882635474205017, 0.5210596323013306, 0.038993801921606064, 0.3954260051250458, -0.6683343648910522, -0.225905179977417, -0.2541145980358124, -0.23525434732437134, -0.21353332698345184, -0.31422629952430725, 0.6811530590057373, -0.1888343244791031, 0.1163927465677261...
In order to lighten Apache's load people often suggest using lighttpd to serve up static content. e.g. <http://www.linux.com/feature/51673> In this setup Apache passes requests for static content back to lighttpd via mod\_proxy, while serving dynamic requests itself. My question is: how does this reduce the load on ...
[ 0.23497213423252106, -0.10459933429956436, 0.5330292582511902, -0.1091156154870987, -0.7054858803749084, -0.36789074540138245, 0.2562106251716614, -0.09326440840959549, -0.39150333404541016, -0.43278583884239197, -0.3050873279571533, 0.13149850070476532, -0.5512933731079102, 0.318566173315...
to serve static files certainly seems braindead to me. Apache still has to unpack the HTTP packets and parse the request through its parse tree, send proxy requests, and then Lighttpd has to re-unpack, hit the filesystem and send the files back through Apache. I've never heard of anyone using a setup like this in produ...
[ 0.22184312343597412, -0.1431097686290741, 0.4363323450088501, -0.10155297815799713, -0.610887885093689, -0.17935165762901306, 0.03425601124763489, 0.0005528890178538859, -0.4791417717933655, -0.36643534898757935, 0.05316203087568283, 0.16872546076774597, -0.40509364008903503, 0.37558045983...
files (i.e. images, CSS etc. *and* any dynamic pages you're willing to send cache-friendly headers for) are served out of memory. Apache can also be optimized to serve static files -- so often when I hear people complain about Apache, they really don't know how to configure it. They've only ever used the prefork MPM (...
[ 0.26392149925231934, -0.04095283895730972, 0.10806353390216827, 0.3321395814418793, -0.2920525372028351, -0.42953962087631226, 0.4620814323425293, -0.08885426819324493, -0.3508075773715973, -0.4652917683124542, -0.2733866572380066, 0.3734283745288849, -0.2764701843261719, -0.02762103453278...
(which makes Apache scan the filesystem on every request!) first. (You can also run two instances of Apache, with a "light" Apache as frontend that proxies to a "heavy" Apache for dynamic requests ... maybe your frontend is threaded but your backend is prefork because you have to run thread-unsafe external modules like...
[ 0.10730289667844772, -0.2613344192504883, 0.4994760751724243, 0.16019581258296967, -0.4755956530570984, -0.3075588047504425, 0.3712163269519806, -0.35519301891326904, -0.3983326852321625, -0.602552056312561, -0.18135389685630798, 0.40008628368377686, -0.30173495411872864, 0.206472814083099...
as it would be if it were serving the > file itself. If you're spawning processes on every request, then that means you're using the prefork MPM. Keep in mind that when the OS reports memory usage for each of these processes, not all that memory is wired, a lot of those processes are idle. And when you're talking abo...
[ 0.22411231696605682, -0.19315043091773987, 0.23361614346504211, 0.23670239746570587, -0.019134169444441795, -0.016258766874670982, 0.14302100241184235, 0.0876445323228836, -0.5894494652748108, -0.6531378030776978, -0.174412801861763, 0.6486825346946716, -0.239729642868042, 0.04589577391743...
worker processes is going to instantly go up by about 20-40M (depending on what's enabled in your PHP interpreter), but that doesn't mean Apache is using that memory on static requests. Of course if you're optimizing your server for maximum concurrency on small static files, then enabling mod\_php would still be very b...
[ 0.08559964597225189, 0.03455960378050804, 0.15004195272922516, 0.11387022584676743, -0.2214338630437851, 0.08894228935241699, 0.5366886854171753, -0.1465444266796112, -0.5702844858169556, -0.6380089521408081, 0.29375940561294556, 0.5870143175125122, -0.23606261610984802, -0.065473958849906...
expensive features like .htaccess in Apache that are disabled in Lighttpd, so it wouldn't really be fair.
[ 0.19883351027965546, -0.11945781856775284, 0.08338321000337601, 0.4046015441417694, -0.21037644147872925, -0.3343101739883423, 0.20236659049987793, 0.2120809257030487, 0.18865911662578583, -0.41207581758499146, 0.04922357574105263, 0.41852590441703796, -0.046516429632902145, 0.200007766485...
Are there any free tools for scripting MSSQL table data? I'll gladly write one, but am hoping it's been done, and the app matured a bit before/ Microsoft SQL Server Database Publishing Wizard is a nice GUI that can script out the structure / data / Procs of a SQL Server 2000/2005 db. <http://www.microsoft.com/download...
[ 0.1479688435792923, 0.15364235639572144, 0.05459849536418915, 0.43496283888816833, -0.09257514029741287, -0.3236546516418457, 0.2971971929073334, 0.2369394302368164, -0.2959674596786499, -0.812828540802002, 0.21954429149627686, 0.5222121477127075, 0.12210577726364136, 0.09146646410226822, ...
There's Windows SharePoint Services (WSS) and then there is Microsoft Office SharePoint Server (MOSS). MOSS considerably more expensive than WSS (which ships as part of Microsoft Server licensing). My question is: what does MOSS do that makes it *worth* the extra cost? ..and does [Microsoft Search Server](http://www...
[ -0.1690116822719574, -0.03879903256893158, 0.4925422668457031, 0.12675556540489197, 0.345192551612854, -0.016858842223882675, -0.24099883437156677, 0.20653343200683594, -0.1904393434524536, -0.42801305651664734, 0.06831757724285126, 0.26678600907325745, 0.048717085272073746, 0.275274753570...
couple of sentences? In essence, what are the "big ticket" items in MOSS (and not in WSS)? About WSS vs MOSS: * WSS in not a portal, it's only a collaborative plateform (there are no publishing features in WSS) * MOSS allows you to use user profils, not WSS * Search functionalities are cheap in WSS compare to MOSS (bu...
[ -0.20710879564285278, -0.24349381029605865, 0.6070869565010071, 0.32088416814804077, -0.27270564436912537, -0.18135373294353485, 0.11571364104747772, 0.1735110729932785, -0.28516677021980286, -0.6371738314628601, 0.09193196892738342, 0.3373076021671295, -0.2800862491130829, 0.0299037899821...
SharePoint, WebSite, FileSystem). The BDC (Business Data Catalog) allows you to view an external business data source, such as a SQL database (not necessarily SQL Server, it can be Oracle, MySQL....) or webservices. You'll be able to view data in your portal, and integrate this data to any of your list. The BDC also a...
[ 0.5539041757583618, 0.10073641687631607, 0.22087335586547852, 0.14666709303855896, 0.10257440060377121, -0.465259850025177, -0.42545342445373535, 0.0818052664399147, -0.46943598985671997, -0.5190005302429199, -0.33748671412467957, 0.08333886414766312, -0.12427806854248047, 0.33961611986160...
I have a treeview with nodes like this: "Foo (1234)", and want to allow the user to rename the nodes, but only the Foo part, without (1234). I first tried to change the node text in `BeforeLabelEdit` like this: ``` private void treeView1_BeforeLabelEdit(object sender, NodeLabelEditEventArgs e) { e.Node.Text = "Foo...
[ 0.2727436423301697, 0.06752704828977585, 0.4732989966869354, -0.26768118143081665, -0.06061205640435219, -0.11463004350662231, 0.44559773802757263, -0.18449412286281586, -0.03661362826824188, -0.46985095739364624, 0.11898785829544067, 0.6798516511917114, -0.42794564366340637, 0.08194064348...
if (treeView1.SelectedNode == treeView1.GetNodeAt(e.Location)) { treeView1.SelectedNode.Text = "Foo"; treeView1.LabelEdit = true; treeView1.SelectedNode.BeginEdit(); } } } ``` And then in `AfterLabelEdit`, I set `LabelEdit` back to false. And guess what? This d...
[ -0.018050536513328552, -0.4191567003726959, 0.26121705770492554, -0.1336633861064911, 0.2245745211839676, 0.08695276081562042, 0.32395535707473755, -0.23690387606620789, -0.3266478478908539, -0.6132004261016846, -0.035515714436769485, 0.418071448802948, -0.3510114550590515, 0.1455663740634...
to this on [CodeProject](http://www.codeproject.com). Among the comments at the bottom, you will also find a portable solution.
[ 0.39533719420433044, 0.2044527232646942, -0.23624899983406067, 0.3475692570209503, 0.1446141004562378, -0.23967915773391724, 0.1687774360179901, 0.3986293375492096, -0.2532482147216797, -0.9009522795677185, -0.3211199641227722, 0.3069721460342407, 0.08601213991641998, 0.004920938052237034,...
Every software development professional (and especially project managers) has to deal with a never ending stream of e-mails. What is the best way of organising them in MS Outlook? Obviously some fancy issue tracking tools give more flexibility but I am interested in plain vanilla approach that can be deployed within m...
[ 0.09171541780233383, 0.059511393308639526, 0.586833655834198, 0.09054576605558395, -0.0003253713948652148, 0.25060272216796875, 0.2733571231365204, 0.1484955996274948, -0.2984216809272766, -0.6382651329040527, -0.23835740983486176, 0.36148586869239807, -0.15132853388786316, -0.030316209420...
to done and then selects the next mail). Each day I quickly filter my inbox into the three folders. I can process several hundred mails in 20 mins or so. Do, something I expect to process today. Done, something I don't care about/have read and understood, I dont expect to refer back to these today. Defer, something I ...
[ 0.46255871653556824, 0.17169880867004395, 0.7219768762588501, -0.24262341856956482, -0.1070358082652092, -0.19121690094470978, 0.1245996430516243, -0.37849992513656616, -0.18248775601387024, -0.7100119590759277, -0.013586907647550106, 0.4030812680721283, -0.168268084526062, 0.0499336533248...
day all items in Defer are filtered using the rules above, I dont want to leave things in Defer for more then a day or 2. If stuff hangs around for too long I will add it to my diary to process later. At the end of the day all mail in Done is copied into an archive folder based on the month/year. Done is just a parkin...
[ 0.7004299163818359, 0.024169838055968285, 0.7048802971839905, 0.04421006515622139, 0.017939431592822075, -0.42242613434791565, 0.14661486446857452, -0.07262109965085983, -0.05293401703238487, -0.7182592153549194, -0.018458498641848564, 0.28918689489364624, -0.12794551253318787, 0.123905546...
refer back to in outlook notes. I filter out any tasks I would like to recal into omni focus (<http://www.omnigroup.com/applications/omnifocus/>) the best GTD I have found. I DO NOT EVER use my inbox as a todo list or a mechanism for recording subtle facts I want to recall later. I know a lot of people do but IMHO it...
[ 0.24559344351291656, 0.019581496715545654, 0.28428998589515686, -0.020393291488289833, -0.3216252326965332, -0.09265043586492538, 0.36541250348091125, 0.6385394334793091, -0.17406848073005676, -0.8671146631240845, 0.08995597064495087, 0.38719117641448975, 0.010460012592375278, -0.057007070...
I do follow the mechanism above for each mailing list but some I glance at and some I process in detail. ReEDIT In comments I was asked to provide the source for the macros I mentioned above. I DONT suggest this is seen as an example of good VBA, I am pretty sure it was sourced from the interweb and adapted for my pu...
[ 0.04227161034941673, 0.16873495280742645, 0.5246149301528931, -0.370449036359787, -0.2909716069698334, 0.10267115384340286, 0.12928920984268188, -0.0002765171229839325, -0.26963338255882263, -0.8507455587387085, -0.11950210481882095, 0.4863158166408539, -0.22758060693740845, -0.05193860828...
Set objNS = Application.GetNamespace("MAPI") Set objInbox = objNS.GetDefaultFolder(olFolderInbox) Set objFolder = objInbox.Folders("Done") 'Assume this is a mail folder If objFolder Is Nothing Then MsgBox "This folder doesn't exist!", vbOKOnly + vbExclamation, "INVALID FOLDER" End If ...
[ -0.1476120501756668, -0.19875331223011017, 0.6535271406173706, -0.3489430844783783, -0.0040956297889351845, 0.0930882915854454, 0.4556484818458557, -0.2723962664604187, -0.3938233256340027, -0.572002649307251, -0.6206256151199341, 0.4232098460197449, -0.7723680138587952, 0.0307001862674951...
Exit Sub End If For Each objItem In Application.ActiveExplorer.Selection If objFolder.DefaultItemType = olMailItem Then If objItem.Class = olMail Then objItem.Move objFolder End If End If Next Set objItem = Nothing
[ -0.6169721484184265, -0.3480757474899292, 0.6297555565834045, -0.12473148107528687, -0.02783185988664627, 0.21432501077651978, 0.7138081789016724, -0.10296393185853958, 0.039691079407930374, -0.671226441860199, -0.5632966160774231, -0.05288716405630112, -0.6404327750205994, 0.4943360686302...
Set objFolder = Nothing Set objInbox = Nothing Set objNS = Nothing End Sub ```
[ -0.32099980115890503, -0.12263597548007965, 0.1666439026594162, -0.11704951524734497, -0.3734702169895172, -0.2611095607280731, 0.5281774401664734, -0.2770102024078369, -0.043097689747810364, -0.22496235370635986, -0.6055946350097656, 0.3298455476760864, -0.6212683320045471, 0.086053803563...
I'm setting up an online ordering system but I'm in Australia and for international customers I'd like to show prices in US dollars or Euros so they don't have to make the mental effort to convert from Australian dollars. Does anyone know if I can pull up to date exchange rates off the net somewhere in an easy-to-pars...
[ 0.6844764947891235, 0.36718520522117615, 0.12484804540872574, -0.0640135183930397, -0.1637393832206726, 0.34404057264328003, 0.12019138783216476, 0.11969835311174393, -0.4034169912338257, -0.5165069699287415, 0.26388031244277954, 0.24459220468997955, 0.2193218469619751, 0.2501313388347626,...
EUR: `http://download.finance.yahoo.com/d/quotes.csv?s=GBPEUR=X&f=sl1d1t1ba&e=.csv`
[ 0.3731513023376465, -0.08701299130916595, 0.5548983216285706, 0.08662163466215134, 0.010204847902059555, -0.03209150582551956, -0.35382914543151855, -0.006068931892514229, -0.39069053530693054, 0.1314810812473297, -0.4972703158855438, 0.2317010760307312, -0.16826926171779633, 0.01948941126...
This is a for a Silverlight project that isn't anchored to an .aspx file, so right clicking, etc. is a bit out of the question. Any ideas? Edit: Add an .html file, then click it. Really dumb. Last time I ask a question at three in the morning. Why is right-clicking out of the question? With any HTML document at leas...
[ 0.392959862947464, 0.0187685564160347, 0.32596078515052795, 0.09280569106340408, -0.10674085468053818, -0.3609423041343689, 0.2327272593975067, 0.19541692733764648, -0.4383069574832916, -0.6654074788093567, -0.043570637702941895, 0.36099016666412354, -0.19021517038345337, -0.04778443276882...
In order to verify the data coming from the [Google Safe Browsing API](http://code.google.com/apis/safebrowsing/developers_guide.html), you can calculate a Message Authentication Code (MAC) for each update. The instructions to do this (from Google) are: > The MAC is computed from an MD5 Digest > over the following in...
[ -0.4424915015697479, 0.24180501699447632, 0.6651675701141357, 0.1872074156999588, 0.25955092906951904, -0.1659964770078659, 0.289947509765625, -0.10171391814947128, -0.16295544803142548, -0.4928221106529236, -0.4286932945251465, 0.8402523398399353, -0.2866743803024292, -0.08727595210075378...
of each line. ``` I'm unable to get a match. Please either point out where I'm going wrong, or just write the couple of lines of Python code necessary to do this! FWIW, I expected to be able to do something like this: ``` >>> s = "+8070465bdf3b9c6ad6a89c32e8162ef1\t\n+86fa593a025714f89d6bc8c9c5a191ac\t\n+bbbd724773...
[ -0.1370173841714859, 0.292265385389328, 0.14701218903064728, -0.03794977813959122, -0.07193689793348312, -0.06544081121683121, 0.5711120367050171, -0.33983299136161804, 0.008650638163089752, -0.6414000391960144, -0.0018664590315893292, 0.45501095056533813, -0.6445133090019226, -0.044296097...
When accessing an object in a DataTable retrieved from a database, are there any reasons not to cast the object into your desired type, or are there reasons to use convert? I know the rule is cast when we know what data type we're working with, and convert when attempting to change the data type to something it isn't. ...
[ 0.5850377678871155, 0.2895095944404602, -0.14581963419914246, 0.05944903567433357, -0.30995461344718933, -0.10600606352090836, 0.16779249906539917, -0.11312858760356903, 0.10314320772886276, -0.542593777179718, 0.08941195905208588, 0.41233134269714355, -0.3728436231613159, 0.18327672779560...
that you need to handle are: 1. You obviously need to be able to handle DBNulls (e.g. by testing with Convert.IsDBNull) 2. In the case of ExecuteScalar I believe you need to check for null as well as DBNull. 3. SQL Servers @@IDENTITY and SCOPE\_IDENTITY functions return numeric (decimal) even for columns that are decl...
[ 0.2735476791858673, 0.08379730582237244, 0.22745001316070557, -0.19085638225078583, -0.07003318518400192, 0.1736385077238083, 0.03977369889616966, -0.4449721872806549, -0.15567418932914734, -0.4331771433353424, 0.19589368999004364, 0.6425378322601318, -0.4001571834087372, -0.01274544931948...
I want to put "random" output from my result set (about 1.5 mil rows) in a file in a sorted manner. I know i can use sort by command in my query but that command is "expensive". Can you tell me is there any algorithm for writing result set rows in a file so the content would be sorted in the end and can i gain in perf...
[ 0.2620285451412201, -0.027672739699482918, 0.139400452375412, -0.07256904244422913, -0.13981685042381287, 0.13038432598114014, -0.11571139842271805, -0.5122774839401245, -0.22639375925064087, -0.6702233552932739, 0.24675364792346954, 0.2826806604862213, -0.3348640501499176, -0.070528179407...
file as it comes from the resultset. If your query has multiple joins, create the proper indexes for the joins and for the sort criteria. You can sort the data on your program but you'd be wasting time. That time will be a lot more valuable when employed learning how to properly tune/use your database rather than rein...
[ 0.45725053548812866, -0.35692542791366577, 0.2952745854854584, 0.3824499547481537, 0.03009439818561077, -0.2094789296388626, -0.10321906954050064, -0.12864992022514343, -0.3327874541282654, -0.8083391785621643, -0.10987363010644913, 0.4969065487384796, -0.29720455408096313, 0.1319066137075...
If I have two tables... Category and Pet. Is there a way in LINQ to SQL to make the result of the joined query map to a another strongly typed class (such as: PetWithCategoryName) so that I can strongly pass it to a MVC View? I currently have Category and Pet classes... should I make another one? Maybe I missing so...
[ 0.08317273110151291, 0.09056022018194199, 0.8157686591148376, 0.30988001823425293, -0.11794929206371307, 0.028149038553237915, -0.18159864842891693, -0.4311155676841736, -0.3472311496734619, -0.4193165600299835, 0.013695585541427135, 0.6468209028244019, -0.05272591486573219, 0.402352571487...
CategoryName = c.Name } <?xml version="1.0" encoding="utf-8" ?> <Database Name="PetShop" xmlns="http://schemas.microsoft.com/linqtosql/mapping/2007"> <Table Name="Category" Member="PetShop.Models.Category"> <Type Name="PetShop.Models.Category"> <Column Name="Id" Member="Id" IsDbGenerated="true" IsPrimaryKe...
[ -0.16604575514793396, 0.010928926058113575, 0.6645997762680054, 0.03502808138728142, -0.21143919229507446, 0.10926646739244461, -0.11631377786397934, -0.5215402841567993, -0.3348837196826935, -0.1411755234003067, -0.07308503985404968, 0.5953416228294373, -0.28976866602897644, 0.40308994054...
<Column Name="Price" Member="Price" /> <Column Name="CategoryId" Member="CategoryId" /> <Association Name="FK_Pet_Category" Member="Category" ThisKey="CategoryId" OtherKey="Id" IsForeignKey="true" /> </Type> </Table> </Database> ``` > How would I go about using LoadWith? I'm not finding much help onl...
[ 0.0953172817826271, -0.1309390515089035, 0.4669831395149231, -0.08899926394224167, -0.14689941704273224, 0.052377887070178986, 0.2725112736225128, -0.6436929106712341, -0.17802569270133972, -0.39541932940483093, 0.12059104442596436, 0.6076475381851196, -0.3346160650253296, 0.14526540040969...
query will already include category, so no trip to the database happens when you try to access category.
[ -0.26810288429260254, -0.19784143567085266, 0.2987993061542511, 0.4244931936264038, 0.013709194026887417, -0.33028310537338257, 0.1957758665084839, 0.03164876624941826, -0.3945399522781372, -0.5752558708190918, -0.26374363899230957, 0.23045049607753754, -0.14879478514194489, 0.316474765539...
I am receiving an error from the Oracle JDBC driver (ojdbc14\_g.jar) when trying to obtain a connection to a 10g database. The driver has an oracle.jdbc.driver.OracleLog class which could help but the Oracle documentation is unclear how best to use it. Has anyone had any success using this class? If so, some guidance o...
[ 0.05802366882562637, 0.4541841745376587, 0.11730306595563889, -0.04238521307706833, -0.08870445191860199, -0.08146670460700989, 0.5893287062644958, 0.17311805486679077, -0.2126370519399643, -0.7803640365600586, 0.09219958633184433, 0.44075509905815125, -0.3157687783241272, 0.36219123005867...
(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:208) at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1 (T4CMAREngine.java:1118) at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1 (T4CMAREngine.java:1070) at oracle.jdbc.driver.T4CTTIoa...
[ -0.27836424112319946, 0.13421520590782166, 0.413855642080307, 0.02211851067841053, -0.3069933354854584, 0.47985780239105225, 0.2838860750198364, -0.4923611581325531, -0.34258732199668884, -0.7764856815338135, -0.2613779604434967, 0.4578128159046173, -0.14741069078445435, 0.0859669372439384...
(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect (OracleDriver.java:801) at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection (OracleDataSource.java:297) at oracle.jdbc.pool.OracleDataSource.getConnection (OracleDataSource.java:221) at oracle.jdbc.poo...
[ 0.4530443549156189, 0.1990612894296646, 0.14257672429084778, 0.20238515734672546, -0.30980390310287476, 0.11438377946615219, 0.08690448850393295, -0.3385448455810547, -0.03133836016058922, -0.4568530321121216, -0.12367340922355652, 0.6191986799240112, -0.23316334187984467, -0.3516852259635...