text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
if m <= 1: if stack: m = stack.pop() return fib_helper(m, k + 1, stack) else: return k + 1
[ -0.290615051984787, -0.10889109969139099, 0.8236309289932251, -0.39944037795066833, 0.3802957236766815, 0.09097514301538467, 0.2135619819164276, -0.5597088932991028, -0.1379217803478241, -0.3817853629589081, -0.5852972269058228, 0.6100771427154541, -0.40889179706573486, -0.0835862755775451...
else: stack.append(m - 2) return fib_helper(m - 1, k, stack) return fib_helper(n, 0, []) # iterative with accumulator and stack def fib(n): k, stack = 0, [] while 1: if n <= 1: k = k + 1 if stack:
[ -0.43448445200920105, -0.36342912912368774, 0.6758828163146973, -0.5824123024940491, 0.16058993339538574, 0.24438780546188354, 0.26949602365493774, -0.7481603026390076, -0.12031254917383194, -0.4957115650177002, -0.1413843333721161, 0.9176770448684692, -0.4001547694206238, -0.2416952252388...
n = stack.pop() else: break else: stack.append(n - 2) n = n - 1 return k ``` Now, your case is a lot tougher than this: a simple accumulator will
[ -0.2099371999502182, 0.08912914991378784, 0.15451590716838837, -0.31171929836273193, 0.13319635391235352, -0.04564087465405464, 0.16082076728343964, -0.5672577619552612, -0.38940075039863586, -0.3063507080078125, -0.07109270989894867, 0.650026261806488, -0.3393593728542328, -0.060481652617...
have difficulties expressing a partly-built tree with a pointer to where a subtree needs to be generated. You'll want a [zipper](http://www.haskell.org/haskellwiki/Zipper) -- not easy to implement in a not-really-functional language like Python.
[ -0.2502105236053467, -0.17375019192695618, -0.04875112324953079, 0.004544674884527922, -0.2577996551990509, -0.1347622275352478, 0.42436644434928894, 0.2811112701892853, -0.39558812975883484, -0.40403881669044495, -0.41351860761642456, 0.19213856756687164, -0.5282379388809204, -0.361842304...
Question: Should I write my application to directly access a database Image Repository or write a middleware piece to handle document requests. Background: I have a custom Document Imaging and Workflow application that currently stores about 15 million documents/document images (90%+ single page, group 4 tiffs, the...
[ 0.6631804704666138, 0.3796879053115845, 0.49296483397483826, 0.14084076881408691, 0.13130463659763336, 0.10783930867910385, -0.11118735373020172, -0.3189622163772583, -0.2847038209438324, -0.56646329164505, 0.3372909426689148, 0.5088697671890259, -0.07504930347204208, -0.03415517508983612,...
2 index fields. It's a life insurance policy administration system so I index images with a policy number and a system wide unique id number. There are other index values, but they're stored and maintained separately from the image data. Those index values give me the ability to look-up the unique id value for individu...
[ 0.27899736166000366, 0.08936288207769394, 0.37679997086524963, -0.0368347205221653, -0.4208832383155823, -0.014362014830112457, 0.03553105518221855, -0.13851988315582275, -0.2150542140007019, -0.5872094035148621, 0.0062548876740038395, 0.48768314719200134, -0.21908965706825256, 0.295332670...
the database design - I'm working with our DBAs on that aspect. If that changes, I'll be back :-) The current system to be replaced is obviously a middleware application, but it's a very heavyweight system spread across 3 windows servers. If I go this route, it would be a single server system. My primary concerns are...
[ 0.36268073320388794, 0.214966282248497, 0.49648913741111755, 0.25682520866394043, 0.3740783929824829, -0.04732292890548706, 0.018113717436790466, 0.06457072496414185, -0.3270919620990753, -0.5754748582839966, 0.04256553575396538, 0.6192115545272827, -0.2892475128173828, 0.16656872630119324...
handles scanning and otherwise adding images to the repository. We also have a few other applications that receive documents (via ftp) and they insert them into the repository automatically as they are received, either will full index information or as "batches" that a user reviews and indexes. Most (90%+) of the docu...
[ 0.3443774878978729, 0.12427610903978348, 0.6080107688903809, 0.3300178050994873, 0.11078602075576782, -0.24839715659618378, 0.11347523331642151, -0.32196974754333496, -0.2448347955942154, -0.38165098428726196, -0.13442206382751465, 0.36536717414855957, 0.3700677156448364, -0.04516357928514...
from now management comes back and says "Function Y in Application X is running unacceptably slow, how do we speed it up?" And all too the often the answer is to upgrade the back end solution. And when it comes to upgrading back ends, its almost always going to less expensive to scale out than to scale up in terms of h...
[ 0.13982194662094116, 0.08671656996011734, 0.6181061863899231, 0.22966842353343964, 0.24065130949020386, -0.017504572868347168, 0.016567006707191467, 0.024810519069433212, -0.11810672283172607, -0.8088418245315552, -0.23060767352581024, 0.4350445568561554, 0.19289728999137878, 0.42030122876...
end storage solution so that when scalability does become an issue only the middleware app will need to be updated.
[ -0.08543632179498672, 0.1266692876815796, 0.45523980259895325, 0.30507510900497437, 0.3068419396877289, -0.031097466126084328, -0.17975646257400513, 0.17544038593769073, 0.07578063756227493, -0.5890138745307922, -0.3436407744884491, 0.3138278126716614, -0.11875264346599579, 0.1994962096214...
I get the following message in a VC6 project compile: > OTE: WINVER has been defined as 0x0500 or greater which enables > Windows NT 5.0 and Windows 98 features. When these headers were released, > Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. > For this release when WINVER is defined as ...
[ 0.653415858745575, 0.03961053490638733, 0.5555995106697083, -0.24378478527069092, -0.20977798104286194, -0.06860589236021042, 0.1183977723121643, -0.137795552611351, 0.1132105141878128, -0.5488807559013367, -0.13277260959148407, 0.8490610718727112, -0.03946149721741676, 0.23861469328403473...
SDK release notes for more information. Any idea what is going on? It builds and links fine. I have VC6, VS2005 and 2008 on my XP machine. Perhaps my Platform SDK is not up to date? The warning message you're seeing is from the Platform SDK that was supplied with the Visual C++ 6.0 installation, which it seems da...
[ 0.14720609784126282, -0.01234897319227457, 0.33457106351852417, -0.043917350471019745, -0.3046492040157318, -0.3328852951526642, 0.05034021660685539, -0.006993541494011879, -0.26972633600234985, -0.6293089389801025, 0.03385891765356064, 0.5929654240608215, -0.0398363396525383, 0.0229793600...
that is compatible with Visual C++ 6.0 is the February 2003 edition. (There's another post [here](http://blogs.msdn.com/windowssdk/archive/2006/06/20/640172.aspx) that may be useful.) A word of caution, though - I don't know whether the February 2003 Platform SDK will coexist with your Visual Studio 2005 and 2008 inst...
[ -0.17347656190395355, 0.14476239681243896, 0.25634175539016724, -0.05276031047105789, -0.021882493048906326, -0.3097952604293823, 0.1337508112192154, 0.16459530591964722, -0.31506580114364624, -0.23167787492275238, 0.06994621455669403, 0.817661464214325, -0.119415782392025, -0.198866724967...
I just downloaded MVC and I am going through a tutorial. Everything goes fine until I try to declare a DataContext object. My dbml is named **db.dbml** (tried another on named test.dbml) and when I try this: ``` public dbDataContext db = new dbDataContext(); ``` I get: > The type or namespace name > 'dbDataContex...
[ 0.17202676832675934, 0.16045774519443512, 0.3997843861579895, -0.14321905374526978, -0.4041782319545746, -0.4048338234424591, 0.7324987053871155, 0.010636578314006329, -0.2571198046207428, -0.7356818914413452, -0.04827423766255379, 0.4599880278110504, -0.4973934590816498, 0.374269813299179...
following and work-arounds: <https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=361577>
[ 0.37714725732803345, -0.3211877942085266, 0.527157187461853, 0.17679782211780548, -0.527497410774231, 0.22700683772563934, 0.09667904675006866, 0.05898384377360344, -0.3606281876564026, -0.38974353671073914, -0.05425206199288368, 0.4584369361400604, -0.04415702819824219, -0.031631972640752...
I have a windows application running at the backend. I have functions in this applications mapped to hot keys. Like if I put a message box into this function and give hot key as `Alt`+`Ctrl`+`D`. then on pressing `Alt`, `Ctrl` and `D` together the message box comes up. My application is working fine till this point. ...
[ 0.06684345752000809, 0.09315407276153564, 0.544953465461731, 0.00430081645026803, -0.10396925359964371, 0.11430402100086212, 0.016176939010620117, 0.11972656846046448, -0.13846220076084137, -0.7856297492980957, 0.10219749808311462, 0.751272439956665, -0.16029217839241028, 0.173723399639129...
text append it with "\_copied" and paste it back to notepad. Anyone who has tried a similar application please help me with your valuable inputs. Your question has two answers How can my app set a global hotkey ---------------------------------- You have to call an API funcion called RegisterHotKey ``` BOOL Regist...
[ -0.10716590285301208, 0.04010947421193123, 0.7628576159477234, 0.3182835876941681, 0.12160687148571014, -0.06551477313041687, 0.2522643506526947, 0.25632965564727783, -0.1349090337753296, -0.7168238759040833, -0.48755666613578796, 0.7844254374504089, -0.35939130187034607, -0.17379911243915...
// virtual-key code ); ``` More info here: <http://www.codeproject.com/KB/system/nishhotkeys01.aspx> How to get the selected text from the foreground window ------------------------------------------------------- Easiest way is to send crl-C to the window and then capture the clipboard content. ``` [DllImport("Use...
[ -0.1935253143310547, -0.11139728128910065, 0.877962589263916, 0.021808354184031487, 0.20256848633289337, 0.04981405287981033, 0.043440286070108414, -0.16901364922523499, -0.23959438502788544, -0.49404001235961914, -0.7742722630500793, 0.6888153553009033, -0.24411854147911072, 0.08770253509...
C key (43 is "C") keybd_event (0x43, 0, KEYEVENTF_KEYUP, 0); keybd_event (VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);// 'Left Control Up } ``` Disclaimer: Code by Marcus Peters from here: <http://bytes.com/forum/post1029553-5.html> Posted here for your convenience.
[ -0.26877278089523315, 0.29553836584091187, 0.14858856797218323, 0.10336613655090332, 0.3885515034198761, 0.15045760571956635, 0.1417117863893509, -0.01335456408560276, -0.12741830945014954, -0.2216968685388565, -0.3816149830818176, 0.4903087317943573, -0.4192211627960205, 0.100019477307796...
The most favorite feature of StackOverflow for me is that it can automatically detect code in post and set appropriate color to the code. I'm wondering how the color is set. When I do a `Ctrl`+`F5` on a page, the code seems first be black text, then change to be colorful. Is it done by jQuery? In reply to.. > Spolsky...
[ 0.12117533385753632, 0.11494631320238113, 0.3674922585487366, -0.07593899220228195, 0.03682231158018112, -0.28602737188339233, -0.08065705001354218, 0.22121559083461761, -0.3743976056575775, -0.554465115070343, 0.011193427257239819, 0.3956362009048462, -0.333615243434906, 0.080689385533332...
4 # <- numbers # /\ a comment // also a comment.. ``` ..that most stuff highlights properly. The above isn't an actuall programming language, but it highlights perfectly. There are exceptions, for example, it can sometimes treat a `/` as the start of a regex (as in Perl/Ruby). when it is not: ``` th...
[ 0.20515893399715424, 0.16698943078517914, 0.5019977688789368, -0.15195214748382568, -0.34215572476387024, -0.2445238083600998, 0.2716118097305298, -0.064879409968853, -0.36551788449287415, -0.308938205242157, -0.5064002275466919, 0.36484456062316895, -0.1916646659374237, -0.007928394712507...
=~ /this is a regex with a [/*] multiline comment markers in it! */ ```
[ 0.06573735922574997, 0.06863687932491302, 0.317512184381485, -0.09906185418367386, 0.04945908486843109, 0.1180553138256073, 0.12072733789682388, 0.15439854562282562, 0.11647611111402512, -0.30140721797943115, -0.4534240961074829, 0.4472711980342865, -0.3542027473449707, 0.01425766851752996...
My understanding is that in unix, when memory is freed, the memory doesn't get returned back to the operating system, it stays in the process to be used again for the next call to malloc. On windows, I understand that the memory actually gets returned to the operating system. Is there any big difference between these...
[ 0.22549962997436523, -0.03194731846451759, 0.18157464265823364, 0.28496459126472473, 0.20811223983764648, -0.1672707200050354, 0.04784252867102623, 0.4919582009315491, -0.333530455827713, -0.6259916424751282, -0.05883274972438812, 0.7515848278999329, 0.1141599714756012, 0.12727658450603485...
seem to decrease in size in UNIX-like systems, but do in windows). There isn't much difference between Windows and Unix with respect to that. In both, there are two levels of allocation. The operating system allocates memory to the process in large chunks (one page or more; on x86, the page size is usually 4096 bytes)...
[ -0.0962802916765213, 0.18083392083644867, 0.24343444406986237, 0.20202338695526123, 0.12909027934074402, 0.31047043204307556, -0.15945039689540863, -0.0681971088051796, -0.4955393671989441, -0.662850558757782, -0.2624431550502777, 0.1102389395236969, 0.13117405772209167, 0.4118857085704803...
library then can, if it wants, tell the operating system to release that chunk of memory. On Linux, you have `brk` and `mmap`. `brk` controls the size of of a large chunk of memory allocated to your process; you can expand or shrink it, but only at one end. `malloc` traditionally expands this chunk of memory when it n...
[ 0.18039360642433167, -0.24426622688770294, 0.1604643315076828, 0.0484514981508255, 0.24496375024318695, 0.08829330652952194, -0.49205461144447327, 0.21161235868930817, -0.5868831872940063, -0.6231403350830078, -0.47958624362945557, 0.4192360043525696, -0.2786302864551544, 0.274340063333511...
the source of the "Unix doesn't release memory back" meme. However, there's also anonymous `mmap`. Anonymous `mmap` requests a chunk of memory from the operating system, which can be placed anywhere in the process memory space. This chunk can be returned easily when it's not needed anymore, even if there are later all...
[ 0.17905542254447937, 0.03361660987138748, 0.05795932561159134, 0.12353947013616562, -0.03958866745233536, -0.08895570784807205, -0.21844466030597687, 0.4940422475337982, -0.17917005717754364, -0.6204873919487, -0.5074288249015808, 0.444547563791275, -0.11815721541643143, 0.1748597174882888...
you can use your own, asking memory from the operating system and subdividing it the way you want (or sometimes asking memory from another allocator, but in larger blocks). One interesting use is to have an allocator for all the memory associated with a task (for instance, a web server request), which is completely dis...
[ 0.028144851326942444, -0.3371817469596863, -0.2010423243045807, 0.4315211772918701, -0.12290388345718384, 0.08694369345903397, -0.3629167675971985, -0.1873578280210495, -0.6797113418579102, -0.4542861580848694, -0.38640332221984863, 0.014936943538486958, -0.14111919701099396, -0.0140307582...
Basically I need a hosted solution, where one can create an account for a project and the distributed team members can interact through that site during the project implementation. I know a lot of such software but not a hosted one. I think [Basecamp](http://basecamphq.com) is the most popular one.
[ 0.7360105514526367, 0.17540696263313293, -0.16003145277500153, 0.006359937135130167, 0.0942060574889183, -0.19196286797523499, 0.21519842743873596, 0.2749522626399994, -0.2782379984855652, -0.5064265131950378, 0.10844668745994568, 0.01981181465089321, -0.006975424941629171, 0.1088779196143...
Suppose I have this Windows wchar\_t string: ``` L"\x4f60\x597d" ``` and ``` L"\x00e4\x00a0\x597d" ``` and would like to convert it (not necessarily programmatically; it will be a one-time thing) to GCC/Linux wchar\_t format, which is UTF-32 AFAIK. How do I do it? (a general explanation would be nice, but example...
[ 0.15574930608272552, 0.12175095826387405, 0.09024675190448761, 0.009831063449382782, -0.08261752873659134, -0.09616240859031677, -0.007251357659697533, 0.02931731566786766, 0.04288089647889137, -0.8752272725105286, -0.04974719509482384, 0.47417423129081726, -0.09724805504083633, 0.00638094...
How do I iterate over the words of a string composed of words separated by whitespace? Note that I'm not interested in C string functions or that kind of character manipulation/access. I prefer elegance over efficiency. My current solution: ``` #include <iostream> #include <sstream> #include <string> using namespace...
[ 0.006603131536394358, 0.06979534775018692, 0.3980482220649719, -0.25760817527770996, 0.3750886023044586, 0.2413453906774521, 0.4239584803581238, -0.17501021921634674, 0.012966829352080822, -0.8125641345977783, -0.29129543900489807, 0.3883885443210602, -0.010622924193739891, -0.046528395265...
} while (iss); } ``` For what it's worth, here's another way to extract tokens from an input string, relying only on standard library facilities. It's an example of the power and elegance behind the design of the STL. ``` #include <iostream> #include <string> #include <sstream> #include <algorithm> #include <iterator...
[ 0.19396188855171204, -0.017143340781331062, 0.6431582570075989, -0.14890803396701813, -0.013779991306364536, 0.04111120104789734, 0.3227764964103699, -0.6209400296211243, -0.3668966293334961, -0.6860353946685791, -0.3454051911830902, 0.24782271683216095, -0.21611890196800232, -0.1942872256...
insert them into a container, using the same generic [`copy`](https://en.cppreference.com/w/cpp/algorithm/copy) algorithm. ``` vector<string> tokens; copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter(tokens)); ``` ... or create the `vector` directly: ``` vector<string> tokens{i...
[ -0.00482469005510211, -0.08692707121372223, 0.390631765127182, 0.213656485080719, 0.26519468426704407, 0.4397828280925751, -0.3809927701950073, -0.3997810482978821, -0.438573956489563, -0.6165614724159241, -0.24259832501411438, 0.10656339675188065, -0.19357013702392578, 0.13268843293190002...
I'm trying to get a simple search form working in my RoR site. I've got the following code: (in note\_controller.rb) ``` def search @results = Note.find_with_ferret(params[:term]).sort_by(&:ferret_rank) respond_to do |format| format.html format.xml { render :xml => @nootes } end end ``` ...
[ -0.1550827920436859, 0.0659201517701149, 0.8778783082962036, -0.26392245292663574, -0.2536865174770355, 0.06221718341112137, 0.3856053948402405, -0.7561661005020142, -0.214442640542984, -0.6155309081077576, -0.10624946653842926, 0.25902244448661804, -0.40495073795318604, 0.2202260345220565...
result.tile, result %></li> <% end %> </ul> ``` As you can hopefully see from the above I've got a model which I've told to acts\_as\_ferret. I've then got a search action in my controller, which tries to render to the search.html.erb view. I've got a form in the index view which does a search. However, when I run th...
[ -0.011156418360769749, -0.12798963487148285, 0.6723130345344543, -0.15225708484649658, -0.33530688285827637, -0.10992515832185745, 0.36347895860671997, -0.3426518440246582, -0.35086145997047424, -0.8405798077583313, 0.16489604115486145, 0.508562445640564, -0.37761175632476807, 0.1790852993...
appreciated. **Update:** Below is the only bit I can seem to extract from the log. I'm using Heroku and it doesn't seem to give quite the stardard log files. Hope this is helpful. ``` Processing NotesController#search (for 152.78.202.74, 127.0.0.1 at 2008-10-25 07:32:23) [POST] Session ID: BAh7BzoMY3NyZl9pZCIlZmEyMz...
[ -0.3636065721511841, -0.11109922081232071, 0.539884626865387, 0.16622011363506317, 0.13850094377994537, -0.09800245612859726, 0.4185464680194855, -0.32287150621414185, -0.16889390349388123, -0.8464978933334351, -0.24745213985443115, 0.6271837949752808, 0.04734558239579201, -0.0850304663181...
:handle_parse_errors=>true, :auto_flush=>true, :create_if_missing=>true, :path=>"/mnt/home/userapps/38385/index/development/note", :default_field=>[:title, :body], :analyzer=>#, :lock_retry_time=>2}, :ferret_fields=>{:title=>{:via=>:title, :term_vector=>:with_positions_offsets, :boost=>1.0, ...
[ -0.4517415165901184, 0.09710248559713364, 0.6121053099632263, -0.11041036248207092, -0.19774596393108368, 0.44332966208457947, 0.10298728197813034, -0.9634199142456055, -0.24833275377750397, -0.258616179227829, -0.4218195080757141, 0.6899319291114807, -0.5204135775566101, 0.051440622657537...
/vendor/plugins/acts_as_ferret/lib/class_methods.rb:155:in `find_with_ferret' /app/controllers/notes_controller.rb:14:in `search' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perf...
[ -0.08703793585300446, 0.004975293297320604, 0.5193143486976624, -0.33993494510650635, -0.2552907466888428, 0.6126388311386108, 0.7321248650550842, -1.010663628578186, -0.4296763241291046, -0.34172049164772034, -0.26345083117485046, 0.4753809869289398, -0.5645844340324402, -0.22942978143692...
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' /usr/...
[ -0.3501018285751343, 0.11053485423326492, 0.504542350769043, -0.19733314216136932, 0.10157763957977295, 0.7780606746673584, 0.4356106221675873, -0.929650604724884, -0.6983715891838074, -0.2522667646408081, -0.4250337481498718, 0.5928354859352112, -0.39119160175323486, -0.1775074303150177, ...
/usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/backends/base.rb:45:in `start' /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/server.rb:146:in `start' /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/controllers/controller.rb:79:in `start' /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in `se...
[ -0.20069073140621185, 0.015606464818120003, 0.7022088766098022, -0.03024963103234768, 0.22317329049110413, 0.08465471863746643, 0.48432448506355286, -0.6118603348731995, -0.1733243316411972, -0.726329505443573, -0.3965616524219513, 0.7285742163658142, -0.1987776905298233, -0.08127574622631...
has\_many? If fields in the table, what column types are "title" and "body" declared at in the migration, and what kind fo mySQL column types are they? Also usually helpful to include your O/S, the versions of ruby, rails, ferret and a\_a\_f you're using.
[ 0.3112424612045288, 0.13447625935077667, 0.344245582818985, 0.004357926081866026, 0.12671472132205963, -0.08269225805997849, 0.16758869588375092, 0.111098513007164, -0.1224035695195198, -0.7848297357559204, -0.0763273686170578, 0.7197690606117249, -0.19590049982070923, 0.06756258010864258,...
I recently started using Git as my version control system for some Cocoa projects I'm working on and wondered if there are best practices for working with version control systems on Cocoa projects. There is the obvious "build" directory which I exclude from versioning as it's not important and can change quite a bit w...
[ 0.3849564492702484, 0.2273361086845398, 0.19589504599571228, -0.05233632028102875, -0.2890986204147339, -0.236543208360672, 0.1228037029504776, 0.4343291223049164, -0.3282417356967926, -0.7630005478858948, -0.040850456804037094, 0.4423668384552002, -0.12847216427326202, 0.16822728514671326...
my Mercurial `.hgignore` file, which is based on [Peter Hosey's](http://boredzo.org/blog/archives/2008-03-20/hgignore-for-mac-os-x-applications). ``` syntax: glob .DS_Store *.swp *~.nib build *.pbxuser *.perspective *.perspectivev3 *.mode1v3 *.pyc ```
[ -0.2494741976261139, 0.16122941672801971, 0.8339381814002991, 0.09874555468559265, -0.013611799106001854, 0.13753317296504974, 0.2106529325246811, 0.2884812653064728, -0.0579700842499733, -0.8169896006584167, -0.34528133273124695, 0.4685327708721161, -0.16158653795719147, 0.169938236474990...
What is the best way to have my C# Compact Framework program running in the background on a Windows Mobile device ? I need to respond to different events, such as a text message arriving with a specific content. I would like not to start up any UI when the process is started, but just run in the background until UI is ...
[ 0.4025264382362366, 0.07216836512088776, 0.7523447275161743, 0.10302698612213135, -0.022695941850543022, -0.2412852942943573, 0.032580967992544174, -0.1240004301071167, -0.24980081617832184, -0.721625804901123, 0.05056168511509895, 0.6600247621536255, -0.46607276797294617, -0.0255623813718...
[SDF](http://www.smartdeviceframework.com) does. At that point you can raise a UI any time by creating and showing a Form as usual. You cannot create a true service for CE or WinMo with managed code because EE Hosting is not supported.
[ 0.7023348212242126, -0.32606297731399536, 0.5890366435050964, -0.05229688063263893, -0.04265497624874115, -0.30979058146476746, 0.14862538874149323, -0.12981556355953217, -0.07891499251127243, -1.0505551099777222, -0.19848652184009552, 0.14564409852027893, -0.024380000308156013, 0.06185127...
I need to integrate a email client in my current python web app. Anything available? L.E.: I'm building my app on top of CherryPy Looking up [webmail](http://pypi.python.org/pypi?%3Aaction=search&term=webmail&submit=search) on [pypi](http://pypi.python.org/pypi) gives [Posterity](http://pypi.python.org/pypi/Posterity/...
[ 0.5873225331306458, 0.017370058223605156, 0.14377449452877045, 0.0857885554432869, -0.40636149048805237, 0.36710530519485474, 0.12371909618377686, 0.1844250112771988, -0.28871339559555054, -0.5515555739402771, 0.16102315485477448, 0.04993751645088196, -0.3941110074520111, -0.05043874680995...
*(This question specifically in C#, but applies generally to .NET)* I have a largish application that has a fairly good design, and is broken into major sections over interfaces (this was done to assist parallel development). We now have a primary set of concrete classes that implement the required interfaces, but w...
[ 0.5033749341964722, 0.29820919036865234, 0.26134514808654785, -0.21361002326011658, -0.22223421931266785, 0.017482979223132133, 0.1031903401017189, -0.30190515518188477, 0.19329240918159485, -0.7692059874534607, 0.07217654585838318, 0.5994367003440857, -0.5888798236846924, 0.02370690740644...
new ConcreteXComponent1(); IMyInterface xComponent = new ConcreteXComponentAlternative(); ``` That works great, but obviously requires a recompile -- I'd rather the concrete class was chosen using a value from a config file. What's the standard pattern for changing concrete classes using a configuration file? Is th...
[ 0.30628731846809387, -0.15578968822956085, 0.0065884822979569435, -0.15019723773002625, -0.11244598031044006, -0.14083634316921234, 0.23321038484573364, -0.21713851392269135, -0.19421756267547607, -0.4842838644981384, 0.06476907432079315, 0.56679767370224, -0.5605980157852173, -0.107934452...
I have a select query that currently produces the following results: ``` Description Code Price Product 1 A 5 Product 1 B 4 Product 1 C 2 ``` Using the following query: ``` SELECT DISTINCT np.Description, p.promotionalCode, p.Price FROM Price AS p INNER JOIN
[ 0.4993935227394104, 0.12342187017202377, 0.3599093556404114, -0.01956731453537941, -0.01213275920599699, 0.4326234757900238, -0.5100204944610596, -0.4027549922466278, 0.01848013699054718, -0.39330267906188965, -0.09401732683181763, 0.49973955750465393, 0.000869028561282903, 0.6550276875495...
nProduct AS np ON p.nProduct = np.Id ``` I want to produce the following: ``` Description A B C Product 1 5 4 2 ``` ``` SELECT np.Id, np.Description, MIN(Case promotionalCode WHEN 'A' THEN Price ELSE NULL END) AS 'A', MIN(Case promotionalCode WHEN 'B' THEN Price ELSE NULL END) AS 'B', ...
[ 0.31659403443336487, -0.006265802308917046, 0.2714281380176544, -0.15896522998809814, -0.1308114230632782, 0.8891857862472534, -0.38299405574798584, -0.19782590866088867, 0.02081485092639923, -0.10370749980211258, -0.011798321269452572, 0.5866361856460571, -0.1386195719242096, 0.0137424925...
JOIN nProduct AS np ON p.nProduct = np.Id GROUP BY np.Id, np.Description ``` --- Here is a simple test example: ``` DECLARE @temp TABLE ( id INT, description varchar(50), promotionalCode char(1), Price smallmoney ) INSERT INTO @temp select 1, 'Product 1', 'A', 5 union SELECT 1, 'Produc...
[ 0.45143869519233704, -0.2390243262052536, 0.3557445704936981, -0.1344531923532486, 0.011077726259827614, 0.6618174314498901, -0.39403972029685974, -0.35812056064605713, 0.10608553886413574, -0.13407695293426514, 0.09349493682384491, 0.43877336382865906, -0.16936759650707245, 0.193946704268...
'B' THEN Price ELSE NULL END) AS 'B', MIN(Case promotionalCode WHEN 'C' THEN Price ELSE NULL END) AS 'C' FROM @temp GROUP BY id, description ```
[ 0.6932348608970642, -0.2375010848045349, 0.3707817792892456, -0.011976396664977074, 0.026884423568844795, 0.4381972849369049, -0.006388876121491194, -0.023901144042611122, 0.2020164132118225, -0.13243041932582855, -0.5805338621139526, 0.6115700602531433, 0.1891479343175888, 0.4139509797096...
Our usage case is a database responsible for accounts, sessions, licenses, etc. — it needs to be polled upon client startup, so high reliability is crucial. As such, we'd like to replicate across different servers in physically separate networks, just in case an entire datacenter happens to go down. I have successfully...
[ 0.4365399479866028, 0.346834272146225, 0.4386565089225769, 0.14768086373806, 0.12635959684848785, -0.08186136186122894, -0.0512097105383873, -0.13902415335178375, -0.29336249828338623, -0.567831814289093, 0.2479710727930069, 0.4491536617279053, 0.04522012174129486, 0.17298518121242523, -...
as inefficient (and they do say "Note: Web synchronization is designed for synchronizing data with portable computers, handheld devices, and other clients. Web synchronization is not intended for high-volume server-to-server applications.") The former, a VPN, would work, but I still consider it a needlessly complex so...
[ 0.19564850628376007, 0.0916406586766243, 0.3966210186481476, 0.2810376286506653, -0.0587809793651104, -0.29394832253456116, 0.40761566162109375, 0.29650577902793884, -0.13986732065677643, -0.7036566734313965, 0.03427049145102501, 0.26341512799263, -0.3123950660228729, 0.19488316774368286, ...
tunnel from `<publisher>:1434` to `<subscriber>:1433`. I cannot, however, get SQL Server Management Studio to connect this way (I'm not sure it supports the `:` port syntax). I've also set up an alias on `<publisher>`'s SQL Server Configuration Manager, with `@@servername` of `<subscriber>`, pointing to `localhost:1434...
[ -0.410783976316452, 0.0975804328918457, 0.6032842397689819, 0.057266365736722946, -0.21442879736423492, 0.047657307237386703, 0.252555251121521, 0.2797203063964844, -0.21513673663139343, -0.3510974645614624, 0.0989820808172226, 0.032576996833086014, -0.37880685925483704, 0.3984417021274566...
1.2.1. Is this possible at all? Is there another way I can leverage SSH to pretend the machine exists within the same network? Or do I have to go with a VPN? When you talk about different locations for the servers, does it also mean different domains? Your comment on web replication is true, but applies only to the da...
[ 0.5386858582496643, -0.17187194526195526, 0.30228379368782043, 0.33573704957962036, 0.03699341043829918, -0.29478245973587036, 0.20689956843852997, 0.029011381790041924, -0.44248074293136597, -0.6770058870315552, 0.036016304045915604, 0.27963244915008545, -0.42107468843460083, 0.2330846339...
major domain/security issue when you begin to think about exchanging data between servers. If you need to connect servers belonging to different domains through a VPN or any dedicated link, and if you don't want to go through SQL Security (avoid it!), you will face specific (and licensing!) issues related to domain tru...
[ 0.13601450622081757, -0.007640549447387457, 0.5057766437530518, 0.49821212887763977, 0.04183676838874817, -0.8616207838058472, 0.06351342052221298, 0.09595229476690292, -0.5154188275337219, -0.5262665748596191, -0.015355742536485195, 0.1719847321510315, -0.3903824985027313, 0.7065264582633...
``` <?php function toconv(string) { $gogo = array("a" => "b","cd" => "e"); $string = str_replace( array_keys( $gogo ), array_values( $gogo ), $string ); return $string; } ?> ``` How can I implement that in JavaScript? And to make it in a way, where you can do it directly from a...
[ -0.07228321582078934, 0.11059636622667313, 0.39124420285224915, -0.33421891927719116, 0.10971716791391373, -0.22605401277542114, 0.29390841722488403, -0.20987579226493835, -0.06084001436829567, -0.4074874818325043, -0.22501423954963684, 0.6498557925224304, -0.6365052461624146, 0.0350188687...
reg = new RegExp(x, "g"); string.replace(x, gogo[x]); } return string; } </script> ```
[ 0.03223251923918724, -0.16914761066436768, 0.45878487825393677, -0.33745306730270386, 0.2095412164926529, 0.0015553351258859038, 0.3436942398548126, -0.06927278637886047, -0.057645175606012344, -0.5364936590194702, -0.5550915002822876, 0.8379640579223633, -0.49169567227363586, 0.2260634005...
I'm using Visual Studio icon library (VS2008ImageLibrary), there are some BMP files with a pink background. How can I make the pink background become transparent? What software can I use to do this? Any free one? Thanks You can [try it online](http://www.gifworks.com/cgi-bin/gifworks.pl?com=transfer_open) provided yo...
[ 0.6624102592468262, -0.2301589846611023, 0.32739508152008057, -0.022146696224808693, -0.18223610520362854, 0.014455577358603477, 0.2000581920146942, 0.09511417150497437, -0.27982065081596375, -0.8369825482368469, 0.22470417618751526, 0.533880352973938, -0.20549777150154114, -0.128428190946...
So, simple procedure, calculate a factorial number. Code is as follows. ``` int calcFactorial(int num) { int total = 1; if (num == 0) { return 0; } for (num; num > 0; num--) { total *= num; } return total; } ``` Now, this works fine and dandy (There are certainly qu...
[ -0.13821172714233398, -0.1453828662633896, 0.21564556658267975, -0.235530823469162, -0.179756298661232, 0.15614840388298035, 0.04062769189476967, -0.36529219150543213, -0.0959496721625328, -0.34534120559692383, -0.012853728607296944, 0.6126869320869446, -0.050585512071847916, -0.0189081411...
larger numbers such as 250 it, to put it bluntly, craps out. Now, the first couple factorial "bits" for 250 are { 250, 62250, 15126750, 15438000, 3813186000 } for reference. My code spits out { 250, 62250, 15126750, 15438000, **-481781296** } which is obviously off. My first suspicion was perhaps that I had breached t...
[ 0.1268736571073532, 0.44282013177871704, 0.43331921100616455, -0.18329906463623047, -0.16948817670345306, 0.2624398171901703, 0.12441514432430267, -0.032837193459272385, -0.3522840440273285, -0.40868908166885376, 0.027950696647167206, 0.4070567786693573, -0.12599988281726837, 0.39603734016...
signed is the problem I can solve this by making the integer unsigned but this would only be a temporary solution, as the next iteration yields 938043756000 which is far above the 4294967296 limit. So, is my problem the signed limit? If so, what can I do to calculate large numbers (Though I've a "LargeInteger" class I...
[ -0.08209449052810669, 0.20065797865390778, 0.5211982727050781, -0.13927824795246124, -0.14930301904678345, -0.12741875648498535, 0.3391444683074951, -0.15498507022857666, -0.5942525267601013, -0.40798377990722656, 0.05783693119883537, 0.6130223274230957, -0.25649648904800415, 0.11120199412...
limits that are probably similar). You'll need a C++ large number library [like this one](http://mattmccutchen.net/bigint/).
[ 0.006146736443042755, -0.5361378192901611, 0.4419173300266266, 0.07305076718330383, -0.17020085453987122, -0.3021831810474396, 0.3369362950325012, -0.0413324311375618, -0.34830403327941895, -0.5323155522346497, 0.0058405641466379166, 0.49184805154800415, -0.37327614426612854, -0.1226065382...
What's the best way to handle a visitor constructing their own URL and replacing what we expect to be an ID with anything they like? For example: [ASP.Net MVC - handling bad URL parameters](https://stackoverflow.com/questions/236349) But the user could just as easily replace the URL with: <https://stackoverflow.com...
[ 0.056182194501161575, -0.14923688769340515, 0.34401965141296387, 0.19858390092849731, 0.07876439392566681, -0.2930281460285187, -0.09322982281446457, -0.12219864130020142, -0.50423663854599, -0.4244510531425476, -0.020098112523555756, 0.3048309087753296, -0.27506759762763977, 0.22500327229...
you suggest? Here's an example of a route like yours, with a constraint on the number: ``` routes.MapRoute( "Question", "questions/{questionID}", new { controller = "StackOverflow", action = "Question" }, new { questionID = @"\d+" } //Regex constraint specifying that it must be a number. ); ``` Here ...
[ 0.0018549978267401457, -0.07562069594860077, 0.24665877223014832, 0.09214144200086594, -0.06370455026626587, -0.17161256074905396, 0.23684924840927124, -0.2898145020008087, -0.24008561670780182, -0.8304117918014526, 0.04020179435610771, -0.024220870807766914, -0.36560240387916565, 0.234623...
+2147483647). I leave this as an exercise to the user to resolve. :) If the user enters the url "questions/foo", they will not hit the Question action, and fall through it, because it fails the parameter constraint. You can handle it further down in a catchall/default route if you want: ``` routes.MapRoute( "Catc...
[ -0.28389251232147217, -0.08910585939884186, 0.6270276308059692, -0.0024661144707351923, 0.06082422286272049, -0.11224152147769928, 0.24858903884887695, -0.3760654628276825, -0.4553477466106415, -0.41130387783050537, -0.2575712203979492, 0.0332072451710701, -0.25349414348602295, 0.127719178...
as the LAST route.** Placing it further up the chain will mean that this will handle all others below it, given the lazy nature of routes in ASP.NET MVC.
[ 0.16630277037620544, -0.29574835300445557, 0.9048388004302979, -0.10826877504587173, 0.04969491809606552, -0.2047232985496521, 0.33082684874534607, 0.019057776778936386, -0.380007266998291, -0.5829761028289795, -0.21757996082305908, 0.05489045009016991, 0.004361734259873629, 0.119900383055...
EDIT: Is there any other phone systems that allow connecting into the native messaging system to read input in the composer? There is absolutely no way to do this in standard J2ME. Symbian phones will allow you to write C++ code that comes close to doing what you describe. You may not be able to directly query the t...
[ 0.336582213640213, 0.12088020145893097, 0.1468052864074707, 0.1292687952518463, -0.1436435729265213, -0.18145354092121124, 0.2036716192960739, -0.06287918984889984, -0.23974423110485077, -0.5228848457336426, 0.05894417688250542, 0.6977139115333557, -0.5338290929794312, 0.021875722333788872...
As well-known, C++ has steeper learning curve than most of the mainstream languages, which results in better performance . But, does using C++ over other languages[like Java,Ruby,Python] for Qt development have still (major) advantages,let's say about Qtopia? If any, what are they? Qt is natively a C++ API, so any othe...
[ 0.2780499756336212, -0.07904832810163498, 0.04848657175898552, -0.04709449037909508, -0.14449715614318848, -0.2819399833679199, 0.06138850376009941, 0.09739603102207184, 0.14506523311138153, -0.43102654814720154, -0.0653880313038826, 0.8920434713363647, -0.42080676555633545, -0.25539621710...
I have a client server application that sends XML over TCP/IP from client to server and then broadcast out to other clients. How do i know at what the minimun size of the XML that would warrant a performance improvement by compression the XML rather than sending over the regular stream. Are there any good metrics on t...
[ 0.42603445053100586, -0.25612321496009827, 0.17442819476127625, 0.3030983507633209, -0.2493351399898529, -0.25752758979797363, -0.07687362283468246, 0.05404816195368767, -0.3161567449569702, -0.839009702205658, 0.13090717792510986, 0.5187551975250244, -0.22345659136772156, 0.20962025225162...
would be a portable binary format such as google's "protocol buffers". I maintain a .NET/C# version of this called [protobuf-net](http://code.google.com/p/protobuf-net/). This is designed to be side-by-side compatible with regular .NET approaches (such as XmlSerializer / DataContractSerializer), but is much smaller tha...
[ 0.22692200541496277, -0.33787938952445984, 0.17832469940185547, -0.00233323872089386, -0.3547282814979553, 0.06149027496576309, -0.1401466280221939, -0.264925479888916, 0.024581683799624443, -0.8903447389602661, 0.1618417352437973, 0.12118866294622421, -0.3050241768360138, 0.09527950733900...
I'd like to do the same in C#. Is there anyway of using properties in C# with parameters in the same way I've done with the parameter 'Key' in this VB.NET example? > ``` > Private Shared m_Dictionary As IDictionary(Of String, Object) = New Dictionary(Of String, Object) > > ``` ``` Public Shared Property DictionaryEl...
[ 0.15170739591121674, 0.03378046303987503, 0.2984020411968231, -0.06101978197693825, 0.14638134837150574, -0.15574979782104492, 0.007837283425033092, -0.2827768921852112, -0.019953370094299316, -0.7346563339233398, 0.0030335169285535812, 0.8755399584770203, -0.13696640729904175, 0.319159448...
Return [String].Empty End If End Get Set(ByVal value As Object) If m_Dictionary.ContainsKey(Key) Then m_Dictionary(Key) = value Else m_Dictionary.Add(Key, value) End If End Set End Property ``` Thanks > Is there anyway of using properties in C# with...
[ -0.07328776270151138, 0.12044284492731094, 0.5072892308235168, -0.1291874200105667, -0.03872641175985336, -0.2902502119541168, 0.314965158700943, -0.3395868241786957, -0.01059939805418253, -0.4858580231666565, -0.15395262837409973, 0.7228127121925354, -0.04051080718636513, 0.20784924924373...
property in C# with an argument, to model indexed access (as in a dictionary): ``` public T this[string key] { get { return m_Dictionary[key]; } set { m_Dictionary[key] = value; } } ``` Other properties can't have arguments. Use a function instead. By the way, it's recommented to do the same in VB so other ....
[ 0.12219242006540298, 0.04928787425160408, 0.291551798582077, 0.08558868616819382, -0.15716278553009033, -0.2911115884780884, 0.23861347138881683, -0.3991296589374542, -0.135419100522995, -0.46668586134910583, -0.12251472473144531, 0.7981639504432678, -0.14774970710277557, 0.219414919614791...
doesn't have to test whether the value already exists. --- ``` Public Shared Property DictionaryElement(ByVal Key As String) As Object Get Dim ret As String If m_Dictionary.TryGetValue(Key, ret) Then Return ret Return "" ' Same as String.Empty! ' End Get Set(ByVal value As Object) ...
[ 0.005665849894285202, 0.11607209593057632, 0.41406458616256714, -0.04122671112418175, 0.0741160437464714, -0.38242968916893005, 0.031187167391180992, -0.11232607066631317, 0.09057226032018661, -0.4027130901813507, -0.37984710931777954, 0.7151684761047363, -0.08821439743041992, 0.5819718241...
I want to be able to selectively copy a list of files and preserve their directory structure. The problem is that there are quite a few files that their path exceeds 256 character. How is this problem usually handled? Edit: I should make it clear that I only want to selectively copy files, not folders. I don't think r...
[ 0.16629157960414886, -0.02650364860892296, 0.2765573561191559, 0.1870792806148529, 0.04444260895252228, -0.10879683494567871, 0.4910704791545868, -0.1326649785041809, -0.3495290279388428, -0.5082783102989197, -0.09623297303915024, 0.501250684261322, -0.5345989465713501, -0.0891915336251258...
middle of a recursion, this layout exists: ``` C:\a\very\long\path subst K: "C:\a\very\long\path" K:\another\very\long\path subst L: "K:\another\very\long\path" L:\yet\another\very\long\path subst M: "L:\yet\another\very\long\path" xcopy M:\*.* "D:\target" ``` This way with each level of subst, a shorter path is ...
[ -0.0340181440114975, -0.10148806124925613, 0.5107913613319397, 0.1774335354566574, 0.31590136885643005, -0.02929685264825821, -0.11696542054414749, -0.26788464188575745, -0.46844571828842163, -0.5946333408355713, -0.3385295867919922, 0.4488376975059509, -0.13806110620498657, 0.121107034385...
general procedure of doing it with subst. How you do it depends on your needs, I always used that little subst trick in a minimal, "solves this single problem" way. For example, copying to an equally deep target path means you need another stack of subst'ed drive letters. Unpacking all .zip files within a single, d...
[ 0.3108362853527069, -0.23337163031101227, 0.2738858163356781, 0.12713167071342468, 0.012423046864569187, -0.23260176181793213, 0.32200488448143005, -0.30918067693710327, -0.31447887420654297, -0.6372810006141663, -0.2042066603899002, 0.5515055656433105, -0.06911274045705795, -0.11415299773...
How do I get the directory where the rakefile.rb is located? I want to use this as my root directory to locate everything off. use `__FILE__` to get the file name then you can get the directory from there: in `test.rb` ``` puts __FILE__ ``` output: ``` /users/foo/test.rb ``` `__FILE__` resolves to the full path...
[ 0.4891952574253082, 0.02669852413237095, 0.2886427640914917, 0.10780995339155197, -0.023965831845998764, -0.08822091668844223, 0.32662975788116455, -0.27178171277046204, 0.4272344410419464, -0.5868126749992371, 0.4606001675128937, 0.6057577133178711, -0.11184815317392349, 0.433585166931152...
I built an application which displays the records from database in the window and checks the the database for new records every couple of seconds. The problem is that the window blinks each time I check for new records and I want to fix it. I have tried to compare the old datatable with the new one and refresh only if ...
[ 0.31624388694763184, 0.3339233994483948, 0.19601573050022125, -0.058573685586452484, 0.01604270003736019, -0.19564609229564667, 0.3448111116886139, 0.04913489148020744, -0.3477936387062073, -0.54949551820755, -0.005523913539946079, 0.5732767581939697, -0.34788793325424194, 0.40896445512771...
bool result = false; DataTable dtTemp = OleDbWorks.GetBelongingMessages(currentCallID); if(dtTemp != dtMessages) { dtMessages = dtTemp; result = true; }
[ -0.3775136470794678, -0.36370596289634705, 0.5530234575271606, -0.21553543210029602, 0.31735843420028687, -0.0744204893708229, 0.47056227922439575, -0.3753485381603241, -0.028247365728020668, -0.22761085629463196, -0.4167017340660095, 0.5442112684249878, -0.28204602003097534, 0.19160363078...
else { result = false; } return result; } ``` First off, it's important to recognize that what you're comparing in your code is the *references* of the datatables, not the *contents* of the datatables. In
[ 0.2959114909172058, 0.36776286363601685, -0.15708237886428833, 0.098878413438797, -0.18505054712295532, -0.14041517674922943, 0.04595233500003815, -0.3077317178249359, 0.03463689237833023, -0.9216421246528625, 0.035117097198963165, 0.5489800572395325, -0.29857298731803894, 0.11482973396778...
order to determine if both datatables have the same contents, you're going to have to loop through all of the rows and columns and see if they're equal: ``` //This assumes the datatables have the same schema... public bool DatatablesAreSame(DataTable t1, DataTable t2) { if (t1.Rows.Count !...
[ 0.10089431703090668, 0.057735100388526917, 0.21196864545345306, -0.08049292117357254, 0.08106131851673126, -0.15915626287460327, 0.29850196838378906, -0.3928605318069458, -0.1381770372390747, -0.3133910298347473, -0.30063197016716003, 0.4019836485385895, -0.44712525606155396, 0.25798428058...
foreach (DataColumn dc in t1.Columns) { for (int i = 0; i < t1.Rows.Count; i++) { if (t1.Rows[i][dc.ColumnName] != t2.Rows[i][dc.ColumnName]) { return false;
[ -0.02275838702917099, 0.13846245408058167, 0.45173072814941406, -0.4458535611629486, 0.2635592222213745, 0.408303827047348, 0.2932715117931366, -0.5747855305671692, 0.2609214186668396, -0.3276255130767822, -0.37729549407958984, 0.5801397562026978, -0.17689865827560425, 0.10552386194467545,...
} } } return true; } ```
[ -0.08118729293346405, 0.280894935131073, 0.023844337090849876, -0.3592664897441864, 0.33117562532424927, -0.21861371397972107, 0.39884355664253235, 0.25558894872665405, 0.3315984606742859, -0.23888768255710602, -0.44067683815956116, 0.9789620041847229, -0.2460855096578598, 0.20182678103446...
How to do svn update of multiple files located across different directories ? For committing multiple files from different directories, we can put them all up in a text file and give that file as an argument to svn commit and it will happily commit all those files. But **update** ? **EDIT:** Mr. Fooz's answer is def...
[ 0.41282400488853455, 0.08538158982992172, 0.37980329990386963, 0.17086978256702423, -0.23227064311504364, -0.0914691686630249, 0.17598804831504822, -0.224111869931221, -0.1495124101638794, -0.4913223683834076, 0.06113840639591217, 0.7205920219421387, -0.5109519362449646, -0.072569645941257...
commands in it. Please note that the file that is used by svn commit contains *only* the filenames and no svn commands. Given that there are valid reasons for selectively updating from a repository when there are a lot of downstream changes available, my question would be whether you're trying to do this on a UNIX/Linu...
[ 0.06393806636333466, -0.29884302616119385, 0.4533342123031616, 0.11536985635757446, -0.09119785577058792, -0.28488391637802124, 0.1736045479774475, 0.0681229755282402, -0.254738450050354, -0.7081316709518433, -0.04398559406399727, 0.7995132803916931, -0.3002322018146515, 0.1708027869462967...
deal with those by properly escaping such problem-characters.) If, for some frightening reason, your list of files is so astronomically-large that it breaks the shell command-line-length limit, you can do this instead: ``` cat list_of_files | xargs svn update ``` Two things to keep in mind while using either of the...
[ 0.13592307269573212, -0.033940184861421585, 0.4495740532875061, -0.09659961611032486, 0.26285427808761597, -0.3070574700832367, 0.2782198190689087, -0.047592662274837494, -0.4681036174297333, -0.6872318387031555, -0.40997472405433655, 0.9148046970367432, -0.23014234006404877, 0.05709007754...
I may be in the minority here, but I very much enjoy [Perl's formats](https://perldoc.perl.org/perlform). I especially like being able to wrap a long piece of text within a column ("~~ ^<<<<<<<<<<<<<<<<" type stuff). Are there any other programming languages that have similar features, or libraries that implement simil...
[ 0.3783077597618103, 0.016712253913283348, 0.31809747219085693, 0.025319654494524002, -0.5934061408042908, -0.12479964643716812, -0.10153640061616898, 0.07666667550802231, -0.4772838354110718, -0.3348068296909332, -0.12502802908420563, 0.45265287160873413, -0.06571268290281296, 0.0347933806...
month, day, year Number: location toe size ------------------------------------------- DOT ex = <<TOD @) @<<<<<<<<<<<<<<<< @#.## num, location, toe_size TOD body_fmt = Format.new (top_ex, ex) body_fmt.setPageLength(10) num = 1 month = "Sep" day = 18 year = 2001 ["Market", "Ho...
[ -0.10087969899177551, -0.0024062353186309338, 0.7726931571960449, -0.04085340350866318, -0.3022174537181854, 0.3562045693397522, 0.22803828120231628, -0.04425086826086044, -0.5388009548187256, -0.476180762052536, -0.09573604166507721, -0.12247393280267715, 0.28154921531677246, 0.6691802144...
num += 1 } ``` Which produces: ``` Piggy Locations for Sep 18, 2001 Number: location toe size ------------------------------------------- 1) Market 3.50 2) Home 7.00 3) Eating Roast Beef 10.50 4)
[ 0.3446134030818939, 0.10640249401330948, 0.09180992841720581, 0.12874004244804382, 0.08204446732997894, 0.57350093126297, -0.015125000849366188, 0.11220499128103256, -0.17355729639530182, -0.37306421995162964, 0.42018914222717285, 0.10816223174333572, 0.2018493115901947, 0.2475349307060241...
Having None 14.00 5) On the way home 17.50 ```
[ 0.3090932369232178, 0.5652032494544983, 0.6585051417350769, -0.416688472032547, 0.187651589512825, -0.064402736723423, 0.6352327466011047, -0.07905805110931396, -0.0879126638174057, -0.5080779790878296, 0.08663278818130493, 0.5598746538162231, -0.01338657271116972, -0.08795949816703796, ...
I am looking for a more sophisticated way of using Linq to SQL. I am leaning L2Q but I am only seeing simple examples of business objects and simple CRUD operations in them. Any sample application that includes these: 1- Business objects which get their data from more than 1 table and from many to many tables. 2- Ke...
[ 0.27316761016845703, 0.11928147077560425, 0.4058699905872345, 0.2321890890598297, -0.07849039882421494, -0.0877171978354454, -0.018646566197276115, -0.24729523062705994, -0.26706525683403015, -0.6567549705505371, 0.24714310467243195, 0.2925955057144165, -0.11957447230815887, -0.17443978786...
am desiging my database in a way so my use of Linq to SQL is easier!) 3- Good use of relationships between tables. It should be more than just dragging tables into the designer. 4- Transactions 5- disconnected data. Use in ASP.NET. 6- N-Tier architecture 7- Basically, more sophisticated use of LINQ to SQL and lear...
[ 0.021226979792118073, 0.058072034269571304, 0.49312329292297363, 0.2671017050743103, -0.2137327790260315, -0.1274036020040512, 0.08913614600896835, -0.30114880204200745, -0.34084054827690125, -0.6982845067977905, 0.014694271609187126, 0.3722439110279083, -0.2020663022994995, -0.01174438185...
looking for real life sophisticated samples which can be a good source for learning above from what books and tutorials provide. Anything on CodePlex? Google code... etc? Scott Gutherie did a 9 part series on his blog that might be of interest to you <http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sq...
[ 0.6862275004386902, -0.09023541212081909, -0.30747559666633606, 0.21906274557113647, 0.18056975305080414, -0.07985834777355194, 0.29001301527023315, 0.10281242430210114, -0.32391247153282166, -0.3146294951438904, -0.056779686361551285, 0.24265998601913452, -0.1123424544930458, -0.118368454...
Perl and PHP do this with backticks. For example, ``` $output = `ls`; ``` Returns a directory listing. A similar function, `system("foo")`, returns the operating system return code for the given command foo. I'm talking about a variant that returns whatever foo prints to stdout. How do other languages do this? Is t...
[ 0.22955822944641113, 0.010194601491093636, 0.24346643686294556, -0.18720076978206635, -0.4692142605781555, -0.04465629905462265, 0.006894298829138279, 0.045841559767723083, -0.2186044603586197, -0.12403500080108643, -0.06271148473024368, 0.44933927059173584, -0.4113588333129883, -0.0539385...
That's basically the question, is there a "right" way to implement `operator<<` ? Reading [this](http://bytes.com/forum/thread170304.html) I can see that something like: ``` friend bool operator<<(obj const& lhs, obj const& rhs); ``` is preferred to something like ``` ostream& operator<<(obj const& rhs); ``` But...
[ -0.3291643261909485, 0.20066677033901215, 0.581069827079773, -0.13618351519107819, 0.22687578201293945, -0.03953012451529503, 0.2833271622657776, -0.2354493886232376, -0.027305785566568375, -0.6518025398254395, -0.22919833660125732, 0.691424548625946, -0.3431573808193207, 0.010465912520885...
interpretation of the article you [link](http://bytes.com/forum/thread170304.html). ### Equality This article is about somebody that is having problems correctly defining the bool relationship operators. The operator: * Equality == and != * Relationship < > <= >= These operators should return a bool as they are co...
[ 0.03689205273985863, 0.045429110527038574, 0.05397668108344078, 0.010866259224712849, -0.49066752195358276, -0.07123709470033646, 0.6666619777679443, -0.06710795313119888, 0.016323816031217575, -0.5031642913818359, 0.09164585173130035, 0.42314234375953674, -0.3039897382259369, 0.0511517263...
sides if they are not the same type, while member functions only allow the rhs to be auto converted. I find this a paper man argument as you don't really want auto conversion happening in the first place (usually). But if this is something you want (I don't recommend it) then making the comparators free standing can be...
[ 0.21189166605472565, -0.4434736371040344, 0.32053685188293457, 0.23313255608081818, -0.4663054943084717, 0.17235805094242096, -0.11348769813776016, -0.40452513098716736, -0.14336729049682617, -0.5593366622924805, 0.24323198199272156, 0.6879240870475769, -0.21488046646118164, 0.098151877522...
can not be member operators they have to be external to the class. Thus they must either be friends of the class or have access to a public method that will do the streaming for you. It is also traditional for these objects to return a reference to a stream object so you can chain stream operations together. ``` #inc...
[ 0.29594355821609497, 0.0300894882529974, 0.1911047399044037, -0.06264936923980713, 0.14041189849376678, 0.09333426505327225, 0.49663063883781433, -0.2748703360557556, -0.4464898407459259, -0.4716660976409912, -0.42607250809669495, 0.528398871421814, -0.4504789710044861, 0.02168162353336811...