text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Sorry, really newbie question, but if I was to create an ASP.NET website application, such as a calendar of events linked to a database - would the user interacting with this Calendar be using Active X? Don't really know how to put that question any other way. Reason I ask is that my works system blocks Active X contr...
[ 0.6198137998580933, 0.07086945325136185, 0.20602957904338837, 0.48615652322769165, -0.266706258058548, -0.19671334326267242, 0.19362492859363556, 0.28059637546539307, -0.42898112535476685, -0.5547587275505066, 0.2030639797449112, 0.2967792749404907, -0.19179342687129974, 0.2670913934707641...
you want and use JavaScript etc rather than ActiveX. For really slick dynamic stuff MS are pushing [Silverlight](http://silverlight.net/), which is their competitor to Flash in many ways.
[ 0.43526795506477356, -0.1622714102268219, 0.4111364185810089, 0.15948346257209778, -0.2939361333847046, -0.38623046875, 0.10709388554096222, 0.2534120976924896, -0.5043138861656189, -0.6092492341995239, -0.1649918258190155, 0.4177294075489044, -0.33053144812583923, -0.16526253521442413, ...
When I look in the SVN log I really wish I could see markers that tell me when releases were done. I've seen this in other version control systems such as PVCS and [Perforce](http://www.perforce.com/perforce/doc.current/manuals/cmdref/tag.html). Can this be done in SVN? I've done a little bit of research and so far it...
[ 0.5263124108314514, 0.03005269542336464, 0.5429553985595703, -0.01580304279923439, -0.3014111816883087, -0.33714836835861206, 0.12815755605697632, -0.03446296975016594, -0.39428621530532837, -0.5151347517967224, -0.03812352567911148, 0.8199524879455566, -0.05304272472858429, 0.190775096416...
each release. I can do that using a text document! Edit2 ----- My goal is to have a single view that shows me a chronology of my releases, between which I can see all of the code changes that took place between each release. This then makes it easier to compile release notes. Richard, tags are very close, but I wonde...
[ 0.47050073742866516, -0.10146424174308777, 0.19755087792873383, 0.10704764723777771, 0.03617347404360771, -0.20782877504825592, -0.078853078186512, -0.10209237039089203, -0.5464465022087097, -0.3769354522228241, -0.12531277537345886, 0.5543422698974609, -0.09540366381406784, 0.013015397824...
the only way that you should modify release. You can then tag from release if you want, not 100% necessary. But what this will give you is a branch that has a subset of the trunk's revisions in it. Find out your release dates with: ``` svn log --stop-on-copy svn://server/project/branches/release ``` This will give...
[ 0.01961839199066162, -0.3197289705276489, 0.5925934314727783, 0.33113905787467957, 0.16767552495002747, -0.13714760541915894, -0.0197837483137846, 0.1110454872250557, -0.6467486619949341, -0.4887855052947998, -0.22532784938812256, 0.5932632088661194, -0.08072791993618011, 0.353842973709106...
release them just yet, but still including subsequent revisions.
[ 0.48404619097709656, 0.004165530204772949, 0.26124024391174316, 0.2765522599220276, 0.25432470440864563, -0.1592673659324646, -0.00906476378440857, -0.17375679314136505, 0.05803839489817619, -0.4333314299583435, -0.20339395105838776, 0.16079293191432953, 0.08592410385608673, 0.113337293267...
I have a couple of personal web-based projects in the pipeline, and am unable to chose how to host them. I have questions in the area of domain names and actual file hosting (which I believe are separate topics, though many companies provide both). Domain Names ------------ I have a domain name registered with Freep...
[ 0.9445784687995911, 0.2244674563407898, 0.2695675492286682, 0.2282916158437729, 0.16372613608837128, -0.34684374928474426, 0.049003180116415024, 0.12487854808568954, -0.1647690385580063, -0.29043048620224, 0.12460274249315262, 0.025197582319378853, -0.09611159563064575, 0.45719113945961, ...
hiding, but that means that people can't bookmark specific pages in my websites. Hosting ------- I wish to host ASP.NET applications (plural) using SQL Server 2005. What are the steps to choosing a hosting environment, and how do I connect the domain name to the hosting environment? You shouldn't be using the JavaScr...
[ 0.3147880434989929, -0.03259001299738884, 0.46046575903892517, -0.0013485404197126627, 0.05056403577327728, -0.14191311597824097, 0.2521061599254608, -0.15479876101016998, -0.09435642510652542, -0.20759345591068268, -0.08217990398406982, 0.6121097207069397, -0.37870359420776367, 0.24836780...
}); } ```
[ -0.021051988005638123, 0.2668358087539673, 0.3705363869667053, -0.4691636562347412, 0.3760703206062317, -0.2627323567867279, 0.2119927555322647, 0.10825841128826141, 0.2634750008583069, -0.3890021741390228, -0.36508485674858093, 0.8346177935600281, -0.47098344564437866, 0.24482795596122742...
I have a subversion repository that I administer. When I try to add a file which has accented (non-ASCII) characters in its name, the server refuses the command. The server is running on Ubuntu, the client is Eclipse on Windows. I could not find anything in the [SVN FAQ](http://subversion.tigris.org/faq.html) about ac...
[ 0.27608755230903625, 0.2516716718673706, 0.265605092048645, -0.2556006908416748, -0.3635025918483734, 0.0531538687646389, 0.2534237504005432, 0.22283507883548737, -0.1839432716369629, -0.6432061791419983, -0.0698561817407608, 0.3531211316585541, -0.1231936365365982, 0.2907426953315735, 0...
apr-iconv, Subversion can not convert utf8 strings and will throw an error if it fails to do so. You might also get more information from the server error log.
[ -0.08140088617801666, 0.10856331884860992, 0.34677502512931824, -0.20234335958957672, -0.48141252994537354, 0.32230237126350403, 0.4860004186630249, 0.23379389941692352, -0.20826733112335205, -0.6668116450309753, -0.0434766486287117, 0.33837297558784485, -0.5112013816833496, 0.121300846338...
Can a PHP script unserialize a Storable file created with Perl? No, but you can dump PHP-readable data from Perl with [PHP::Serialization](http://search.cpan.org/perldoc?PHP::Serialization). You also might want to pick something more standard, like YAML or JSON. Pretty much any language can understand those.
[ 0.16458432376384735, -0.011903135105967522, 0.023642275482416153, 0.2567996084690094, -0.38723188638687134, -0.26752689480781555, 0.2388591766357422, 0.13751788437366486, -0.32329314947128296, -0.09825137257575989, -0.07979035377502441, 0.20294539630413055, -0.32338014245033264, -0.0884593...
I am familiar with concurrent programming in Java which provides a lot of tools for this. However, C++ concurrent programming isn't so easy to start using. What is the best way to start programming concurrently on C++? Are there any nice libraries which wrap concurrent programming primitives and provide you with more ...
[ 0.4926031827926636, -0.10346480458974838, 0.07563994824886322, 0.4340919852256775, -0.24727584421634674, -0.20336580276489258, 0.10630272328853607, 0.3753199279308319, -0.5619462728500366, -0.39809152483940125, 0.4441821873188019, 0.3079237937927246, -0.5080454349517822, 0.2689663767814636...
are several choices: [ACE](http://www.cs.wustl.edu/~schmidt/ACE.html) which provides some [concurrency constructs](http://www.cs.wustl.edu/~schmidt/ACE-papers.html#concurrency) Intel [Threading Building Blocks](http://www.threadingbuildingblocks.org/) [boost::threads](http://www.boost.org/doc/libs/1_38_0/doc/html/th...
[ 0.09193111956119537, 0.1458105444908142, 0.12828437983989716, 0.1687130630016327, -0.27947041392326355, 0.06569085270166397, 0.028288744390010834, -0.14222288131713867, -0.5492505431175232, -0.3765198290348053, -0.39531370997428894, 0.05697295069694519, -0.3440190255641937, 0.1608645170927...
I have two processes that I have up and running and I am doing logging from. One is a client the other is a webservice. I want to setup a central log system where I can track logs and interactions between processes -- for instance I want to be able to associate calls made from the client to the webservice when I look a...
[ 0.4859600067138672, 0.1369168609380722, 0.28080102801322937, 0.01995209977030754, 0.1959693878889084, -0.11506940424442291, -0.102993905544281, -0.00802590325474739, -0.4620397388935089, -0.4938468933105469, 0.18539375066757202, 0.5970764756202698, -0.14575496315956116, 0.20870910584926605...
as Enterprise Library or Log4Net? Is there anyone that has looked into something like this? Any help would be appreciated. If you have a more defining term for this please feel free to change the title of the question or tags. I suggest you capture them in the click handler, and pass them into a delegate for the new ...
[ 0.35449355840682983, -0.30560028553009033, 0.11103589087724686, 0.04412270337343216, 0.1541515588760376, 0.04758032411336899, -0.009245616383850574, -0.041466109454631805, -0.4342825710773468, -0.5975046753883362, -0.18640145659446716, 0.3658639192581177, -0.3222920298576355, 0.14693836867...
... } private void menuItem1_Click(object sender, EventArgs e) { int width = Width; int height = Height; Thread t = new Thread(() => RequestImage(width, height)); t.Start(); } private void RequestImage(int width, int height) { try {
[ 0.22770914435386658, -0.45218148827552795, 0.5276199579238892, -0.3879408836364746, 0.38644132018089294, 0.2411731630563736, 0.4205075800418854, -0.11174693703651428, -0.24066679179668427, -0.5176752805709839, -0.49202755093574524, 0.5031099915504456, -0.33331039547920227, 0.29813605546951...
... int alto = height; int ancho = width; this.token = "..."; ... } catch (Exception ex) {
[ -0.07906407117843628, -0.33221644163131714, 0.09080498665571213, -0.2618314027786255, 0.20156599581241608, -0.09865963459014893, 0.1948997527360916, -0.23772001266479492, -0.3253152668476105, 0.02051590196788311, -0.4749701917171478, 0.32400697469711304, -0.11941247433423996, -0.0012008879...
... } } } ```
[ 0.10697511583566666, 0.3782142400741577, 0.38326728343963623, -0.05855722352862358, 0.3067355155944824, -0.15650886297225952, -0.033901285380125046, 0.3985115885734558, 0.2887873649597168, -0.6913634538650513, -0.22078344225883484, 0.49476704001426697, -0.4071010649204254, 0.32509687542915...
Non-blocking TCP/IP `SocketChannel`s and `Selector` in NIO help me to handle many TCP/IP connections with small number of threads. But how about UDP `DatagramChannels`? (I must admit that I'm not very familiar with UDP.) UDP send operations don't seem to block even if the `DatagramChannel` is not operating in blocking...
[ -0.12918563187122345, -0.2795601487159729, 0.32649949193000793, -0.031669579446315765, -0.42458638548851013, -0.2719031572341919, 0.12560680508613586, -0.0043150982819497585, -0.4190997779369354, -0.5195263624191284, -0.04438122361898422, 0.2278970181941986, -0.5206769108772278, 0.16659605...
one port, is there no advantage of using non-blocking mode with `DatagramChannel` and `Selector`? It's been a while since I've used Java's DatagramSockets, Channels and the like, but I can still give you some help. The UDP protocol does not establish a connection like TCP does. Rather, it just sends the data and forge...
[ 0.11231138557195663, -0.16014833748340607, 0.2878926396369934, -0.10564152151346207, -0.2707284986972809, -0.2245185226202011, 0.1582750827074051, 0.15250709652900696, -0.5171148777008057, -0.6145069003105164, 0.21724510192871094, 0.3970867395401001, -0.46422815322875977, 0.185452505946159...
not know anything about the network, it will write it out at the earliest opportunity without checking the network speed or if it actually gets to where it is supposed to be going. Thus, to you, it appears as if the channel is actually immediately ready for more sending.
[ 0.42683252692222595, -0.18747305870056152, 0.601074755191803, 0.35525038838386536, 0.10365191847085953, -0.4284907579421997, 0.39610445499420166, 0.5205362439155579, -0.12569431960582733, -0.5147285461425781, -0.1636459082365036, 0.2087024450302124, -0.08450212329626083, 0.1330942809581756...
I like the way that Google Chrome allows you to grab tabs out of a window to create additional windows. Does any one know if there is way to do this style of docking and undocking in my .Net application? Or better yet does any one know if there is a .Net component that can provide this type of functionality? It's been ...
[ 0.36411717534065247, -0.05132317170500755, 0.20875538885593414, 0.18705438077449799, -0.14895769953727722, -0.1544976383447647, 0.10363004356622696, 0.39654815196990967, -0.5236751437187195, -0.6963025331497192, 0.31101641058921814, 0.37254369258880615, -0.25051024556159973, 0.197601929306...
If it is important to make sure that the data actually gets there, that is the client's responsibility. Thus, even if you are in blocking mode, your send operation will only block for as long as it takes to flush the buffer out. Since UDP does not know anything about the network, it will write it out at the earliest op...
[ 0.02534407563507557, -0.2701607942581177, 0.4304940104484558, 0.06713806837797165, -0.008280104957520962, -0.35048726201057434, 0.256899356842041, 0.15024623274803162, -0.5290682911872864, -0.48000282049179077, -0.2783016264438629, 0.27389031648635864, -0.23630835115909576, 0.0821566507220...
How can I get an ASP.net web form (v3.5) to post a file using a plain old `<input type="file" />`? I am not interested in using the ASP.net FileUpload server control. In your aspx : ``` <form id="form1" runat="server" enctype="multipart/form-data"> <input type="file" id="myFile" name="myFile" /> <asp:Button runat="...
[ 0.26370710134506226, -0.13543324172496796, 0.7925320863723755, -0.03033885732293129, 0.10851667821407318, -0.1337343454360962, 0.4295378625392914, -0.24238203465938568, -0.2124747484922409, -0.8927687406539917, -0.16283629834651947, 0.2673874497413635, -0.27101844549179077, 0.1327165812253...
file.SaveAs(Server.MapPath(Path.Combine("~/App_Data/", fname))); } } ```
[ 0.003426234470680356, 0.09154541045427322, 0.4806616008281708, -0.36442822217941284, 0.4924057126045227, 0.09248487651348114, 0.3413078188896179, 0.2682257294654846, -0.11590804159641266, -0.9967870116233826, -0.5115277767181396, 0.48898354172706604, -0.5783915519714355, 0.0566476099193096...
**Questions:** -------------- 1. What is the best practice for keeping track of a thread's progress without locking the GUI ("Not Responding")? 2. Generally, what are the best practices for threading as it applies to GUI development? **Question Background:** ------------------------ * I have a PyQt GUI for Windows. ...
[ 0.3122788369655609, -0.008495398797094822, 0.5447394251823425, 0.04339482635259628, -0.20225907862186432, 0.020814262330532074, 0.3686603009700775, -0.039838675409555435, -0.28418901562690735, -0.8800182938575745, -0.08193763345479965, 0.5123629570007324, 0.09197156131267548, -0.3763205409...
display the progress of the selected thread. * Display results of the selected thread if it's finished. * I'm using Python 2.5. **My Idea:** Have the threads emit a QtSignal when the progress is updated that triggers some function that updates the progress bar. Also signal when finished processing so results can be di...
[ 0.27600619196891785, 0.08796577900648117, 0.4494827091693878, -0.24104003608226776, -0.012832188978791237, 0.16108985245227814, 0.3134753406047821, -0.1778196543455124, -0.30347493290901184, -0.7791427373886108, -0.050619859248399734, 0.12059182673692703, -0.31005987524986267, 0.1535473912...
"resultsReady(str)") def __init__(self, docs): self.docs = docs self.progress = 0 #int between 0 and 100 self.results = [] threading.Thread.__init__(self) def getResults(self): return copy.deepcopy(self.results) def run(self): num_docs = len(self.docs) - ...
[ -0.021089214831590652, -0.270179808139801, 0.4001550078392029, -0.009019799530506134, 0.11021163314580917, 0.15459273755550385, 0.34628549218177795, -0.2453865259885788, -0.3180257976055145, -0.3332942724227905, 0.022530995309352875, 0.6854308247566223, 0.01159700471907854, 0.2530266940593...
for i, doc in enumerate(self.docs): processed_doc = self.processDoc(doc) self.results.append(processed_doc) new_progress = int((float(i)/num_docs)*100) #emit signal only if progress has changed if self.progress != new_progress: self.emit(QtCor...
[ 0.10109899938106537, -0.11153336614370346, 0.4798767566680908, -0.4604910910129547, 0.029653219506144524, 0.3224294185638428, 0.44065818190574646, -0.46435412764549255, -0.09939344227313995, -0.4027697443962097, -0.23203282058238983, 0.4047084450721741, -0.3018353581428528, 0.1225427687168...
self.progress = new_progress if self.progress == 100: self.emit(QtCore.SIGNAL("resultsReady(str)"), self.getName()) def processDoc(self, doc): ''' this is tivial for shortness sake ''' return re.findall('<a [^>]*>.*?</a>', doc) class GuiApp(QtGui.QMainWindow): def ...
[ -0.1901763677597046, -0.13093741238117218, 0.6783742904663086, -0.44098177552223206, -0.03716462478041649, 0.27570924162864685, 0.426643043756485, -0.45892977714538574, -0.1356755942106247, -0.8926984667778015, 0.12179573625326157, 0.6072174906730652, -0.34496787190437317, 0.22000013291835...
self.progress_object = {} #{'thread_name': int(thread_progress)} self.results_object = {} #{'thread_name': []} self.selected_thread = '' #'thread_name' def processDocs(self, docs): #create new thread p_thread = ProcessingThread(docs) thread_name = "example_threa...
[ -0.11392763257026672, -0.12898531556129456, 0.5977374315261841, -0.29651933908462524, -0.0064143524505198, 0.19822829961776733, -0.007611845154315233, -0.4774744212627411, -0.635877251625061, -0.7488632798194885, 0.1286686658859253, 0.321347177028656, -0.38870707154273987, 0.34141433238983...
#add thread to dict of threads self.processing_threads[thread_name] = p_thread #init progress_object for this thread self.progress_object[thread_name] = p_thread.progress #connect thread signals to GuiApp functions QtCore.QObject.connect(p_thread, QtCore.SIGNAL('progressUpdat...
[ -0.40569570660591125, -0.08324982225894928, 0.9161046147346497, -0.22104088962078094, -0.11252067238092422, 0.4267411231994629, 0.2669717073440552, -0.36280304193496704, -0.24375733733177185, -0.8085657358169556, -0.11754437536001205, 0.4377996027469635, -0.4484163820743561, 0.151094555854...
self.processing_threads[thread_name].progress #update progress bar for selected thread if self.selected_thread == thread_name: self.setProgressBar(self.progress_object[self.selected_thread]) def updateResultsObject(self, thread_name): #update results_object for thread with resu...
[ -0.3085406720638275, -0.197773739695549, 0.6152684092521667, -0.21658660471439362, -0.07438228279352188, 0.16347475349903107, 0.23717914521694183, -0.4395350515842438, -0.5092393755912781, -0.7533490657806396, -0.03897222504019737, 0.3528037667274475, -0.3743765950202942, 0.080128490924835...
except KeyError: self.setResultsWidget(None) ``` Any commentary on this approach (e.g. drawbacks, pitfalls, praises, etc.) will be appreciated. **Resolution:** --------------- I ended up using the QThread class and associated signals and slots to communicate between threads. This is primarily because my...
[ -0.009388425387442112, 0.14396001398563385, 0.36895450949668884, 0.09519656747579575, -0.11294393241405487, -0.0458957739174366, 0.19286838173866272, -0.017054099589586258, -0.09557582437992096, -0.960342288017273, -0.16513876616954803, 0.7261635661125183, -0.2398110181093216, 0.1301852613...
across threads—as long as the threads > are running their own event loops. > This is a much cleaner method of > communication compared to sending and > receiving events, because it avoids > all the bookkeeping and intermediate > QEvent-derived classes that become > necessary in any nontrivial > application. Communicati...
[ -0.008637397550046444, -0.26090455055236816, 0.14123615622520447, 0.1724240481853485, -0.038681674748659134, -0.18774057924747467, 0.23931895196437836, -0.10062871873378754, -0.3750104010105133, -0.7544493675231934, -0.0013366547646000981, 0.0798000693321228, -0.4048261046409607, 0.4234157...
to do with the inter-thread > communication mechanism used by Qt > when connecting signals from one > thread to the slot of another thread. > When such a connection is made, it is > referred to as a queued connection. > When signals are emitted through a > queued connection, the slot is invoked > the next time the dest...
[ 0.13067573308944702, -0.37371739745140076, 0.14066468179225922, 0.020333850756287575, -0.031397558748722076, -0.08318687230348587, 0.12552985548973083, -0.18117310106754303, -0.20034196972846985, -0.6141632199287415, -0.2603874206542969, 0.37406450510025024, -0.4748394787311554, 0.40601935...
using a > database connection, as the database > connection can be used only by the > thread that created it). The queued > connection properly dispatches the > signal to the thread object and > invokes its slot in its own context by > piggy-backing on the event system. > This is precisely what we want for > inter-thre...
[ -0.14394207298755646, -0.3358842432498932, 0.3653794229030609, 0.11212176084518433, -0.1401287168264389, -0.19887079298496246, 0.07679238170385361, -0.2683051824569702, -0.15698124468326569, -0.8812540173530579, -0.14656634628772736, 0.5329936742782593, -0.5426579713821411, 0.0160842128098...
thread-safety and mutexing, his solution would have been my choice. If you want to use signals to indicate progress to the main thread then you should really be using PyQt's QThread class instead of the Thread class from Python's threading module. A simple example which uses QThread, signals and slots can be found on ...
[ 0.16829167306423187, 0.13241003453731537, 0.1466626077890396, 0.08170824497938156, -0.10377055406570435, -0.04036533087491989, -0.027433231472969055, -0.11658825725317001, -0.4976710379123688, -0.41808032989501953, 0.11357586830854416, 0.5299362540245056, -0.25460562109947205, 0.1375269889...
I have the following: ``` var o = {f: function(fn) { fn.call(o); }}; var ob = {f: function() { o.f(function() { this.x = 2; //HERE: how can this reference ob? //ob.x = 2; }); }}; ob.f(); ob.x; // undefined ``` `o.f(fn)` calls `fn` where `this` is bound to o. At HERE, I want to use `this`...
[ -0.09787539392709732, 0.20953910052776337, 0.6692807078361511, -0.30738168954849243, 0.08234694600105286, 0.09673125296831131, 0.022708149626851082, -0.05644369125366211, -0.2381390482187271, -0.6320872902870178, -0.18509933352470398, 0.6019964814186096, -0.40987271070480347, 0.27089345455...
... }; ``` What I'm doing now is: ``` var Ob = function() { var self = this; self.f = function() { o.f(function() { self.x = 2; }; }; }; var ob = new Ob(); ob.f(); ob.x; // 2 ``` But I don't like above for stylistic reasons: 1. Using the `new` operator sounds like too classical OOP. 2. Definin...
[ -0.07244130969047546, 0.2766757905483246, 0.46565866470336914, -0.4998825490474701, 0.18194657564163208, -0.05278199166059494, 0.34787505865097046, -0.16851353645324707, -0.16841357946395874, -0.7055293321609497, -0.3466738760471344, 0.5528390407562256, -0.39596062898635864, 0.318672984838...
function that uses method call that sets `this` to other object than `ob`. I can do something like the following: ``` var ob = {f: function() { o.f(function() { self.x = 2; }); }}; var self = ob; ob.f(); ob.x; ``` But I don't know how to factor above. I tried: ``` function obj(o) { return funct...
[ -0.5528490543365479, -0.11739054322242737, 0.45041248202323914, -0.34653621912002563, 0.03385060280561447, 0.3690403699874878, 0.3378531038761139, -0.22629565000534058, -0.0815974622964859, -0.5213367938995361, -0.3023555278778076, 0.7415633797645569, -0.5479578971862793, -0.08743756264448...
self.x = 2; }); }}); ob.f(); ob.x;// ReferenceError: self is not defined ``` So, is there a way to reference the object in a function inside the object reliably (`this` can bound to anything depending on the context)? Following Douglas Crockfords simple constructor pattern, I would make a constructor-function tha...
[ -0.1561359018087387, 0.2860054075717926, 0.42277076840400696, -0.3843107521533966, -0.028005095198750496, 0.31441831588745117, 0.3337389826774597, -0.39024046063423157, -0.027992557734251022, -0.27957603335380554, 0.07636462897062302, 0.5782360434532166, -0.7027471661567688, 0.123564153909...
me.x = 2; }); }; return me; } var ob = obj(); ob.f(); ob.x; // 2 ```
[ -0.35570111870765686, 0.17335397005081177, 0.3363366723060608, -0.6232157945632935, 0.17359039187431335, 0.4438723623752594, 0.5923163890838623, 0.005799156613647938, -0.11035634577274323, -0.5477172136306763, -0.593481183052063, 0.500917375087738, -0.4130157232284546, 0.28542864322662354,...
I found an [answer that uses OpenSSL](https://stackoverflow.com/questions/403174/convert-pfx-to-cer/405545#405545), but I'm on Windows, and I don't have it easily to hand. Is there a way (e.g. using CERTUTIL or VBScript) to see the certificates in a .PFX file? If I use "certutil -dump", it asks for the password for th...
[ 0.08830605447292328, 0.339521199464798, 0.3281296193599701, 0.09882449358701706, 0.026552310213446617, -0.1936824917793274, 0.1807946115732193, -0.11355309933423996, -0.2235124260187149, -0.4305405616760254, -0.43516969680786133, 0.3354395925998688, -0.25883379578590393, 0.1148309484124183...
Difficult to put down in words, so assuming this example table: ``` | id | col1 | col2 | -------------------- | 1 | aa | 12 | | 2 | aa | 12 | | 3 | bb | 13 | | 4 | cc | 13 | ``` I would like a query which selects rows 3 & 4 or even just the value 13 So something like checking this assumption: ...
[ -0.5027090907096863, 0.16699595749378204, 0.46800947189331055, 0.036225270479917526, -0.16583527624607086, -0.04243331775069237, -0.03578485921025276, -0.3715652823448181, -0.5234082937240601, -0.5599521398544312, -0.12505804002285004, 0.29381927847862244, -0.3746972382068634, 0.0335716009...
doing a 'group by' and row count for each column in separate queries and comparing, but it would be nice to be able to pick out offending rows A query or pl/sql procedure would be fine To get just "13": ``` select col2 from mytable group by col2 having count(distinct col1) > 1; ``` To get the rows: ``` select * fr...
[ -0.5551291704177856, 0.22042375802993774, 0.3827126622200012, -0.09153946489095688, -0.18799953162670135, 0.2869719862937927, -0.2824017107486725, -0.500450611114502, -0.3007858693599701, -0.5910077095031738, -0.16841928660869598, 0.14624741673469543, -0.30461156368255615, -0.0263705793768...
How would you get the dreamed DRY ideal in this sample, in the language of your choice: ``` drawLine(Point(0, 0), Point(w, 0)); int curRowY = 0; for(int row=0; row<rowHeights.size(); row++) { curRowY += rowHeights[row]; drawLine(Point(0, curRowY), Point(w, curRowY)); } drawLine(Point(0, 0), Point(0, h)); int ...
[ 0.3152971863746643, -0.47612065076828003, 0.6632670164108276, 0.004229831043630838, 0.29570287466049194, 0.1710556298494339, 0.01332449447363615, -0.1650799959897995, 0.07133862376213074, -0.6296008229255676, -0.31473344564437866, 0.38455620408058167, -0.2615836262702942, 0.222656339406967...
for (int i = 0; i < gaps.Length; i++) { Vector vector = direction * gaps[i]; start += vector; end += vector; drawLine(start, end); } } repeatLines(Point(0, 0), Point(0, w), Vector(1, 0), rowHeights); repeatLines(Point(0, 0), Point(h, 0), Vector(0, 1), colWidths); ``...
[ -0.1485079824924469, -0.37462443113327026, 0.6749563217163086, -0.17809797823429108, 0.23891420662403107, 0.34936973452568054, 0.13172391057014465, -0.1949436366558075, -0.3250403106212616, -0.6253526210784912, -0.23791426420211792, 0.25287824869155884, -0.3045251667499542, 0.5325608849525...
I am sending a reply mail using PHP to those who send a mail to me. My problem is when I send an email, it sits in the spam folder. What do I do in order to deliver mail correctly. What should I do? ### My code ``` <?php $email_id="welcome@gmail.com"; $recipient = "@gmail.com"; //Recipient $mail_body = $...
[ 0.23423713445663452, 0.35151660442352295, 0.7968998551368713, -0.35254400968551636, -0.2638173997402191, 0.04338906332850456, 0.7490769624710083, -0.21892449259757996, -0.13269838690757751, -0.6532436013221741, -0.20676997303962708, 0.3332737982273102, -0.39682891964912415, 0.1131405755877...
$subject, $mail_body, $header); /mail command :) ?> ``` The problem is not necessarily in your code. One possibility is that your server's mail transfer agent is misconfigured - I've experienced [this](http://cbl.abuseat.org/helocheck.html) issue once. Worth checking.
[ 0.45144331455230713, 0.49891379475593567, 0.01697007194161415, -0.054435282945632935, -0.062202390283346176, -0.22421766817569733, 0.4797811806201935, 0.06487992405891418, -0.19546309113502502, -0.5489519834518433, -0.054794300347566605, 0.5115721225738525, -0.46007490158081055, 0.14486747...
When you pickle an object that has some attributes which cannot be pickled it will fail with a generic error message like: ``` PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup __builtin__.instancemethod failed ``` Is there any way to tell which attribute caused the exception? I am using Python 2...
[ -0.05741309002041817, -0.07197193056344986, -0.22859534621238708, -0.13388560712337494, -0.05673212185502052, 0.21725408732891083, -0.15992523729801178, 0.1107897087931633, -0.2567470073699951, -0.38750022649765015, 0.21619248390197754, 0.2862047255039215, -0.3148861229419708, -0.160911604...
so it took me a while to identify the bad attribute. As requested, here is one simple example were pickle intentionally fails: ``` import cPickle as pickle import new class Test(object): pass def test_func(self): pass test = Test() pickle.dumps(test) print "now with instancemethod..." test.test_meth = new....
[ 0.06696118414402008, 0.28719669580459595, -0.08338268846273422, -0.14401713013648987, 0.02106453850865364, 0.09501181542873383, 0.2732151448726654, -0.053266774863004684, -0.10212001204490662, -0.47184044122695923, 0.014146557077765465, 0.41693589091300964, -0.479231595993042, 0.2615291774...
against Python for not including more helpful error messages. In the meantime, modify the `_reduce_ex()` function in `copy_reg.py`. ``` if base is self.__class__: print self # new raise TypeError, "can't pickle %s objects" % base.__name__ ``` Output: ``` <bound method ?.test_func of <__main__.Test object...
[ -0.24253800511360168, 0.13425862789154053, 0.012266554869711399, -0.16389144957065582, 0.037423573434352875, 0.22245903313159943, 0.2110295295715332, -0.1820988655090332, -0.3218374252319336, -0.39036238193511963, -0.0879342332482338, 0.29929155111312866, -0.18188560009002686, 0.1267609447...
What I'm looking for is something like: ``` @list = qw(1 2 3 4 5 6); foreach (@list) { #perl magic goes here print "i: $i, j:$j\n"; } ``` returns: ``` i:1, j:2 i:3, j:4 i:5, j:6 ``` In response to a very good suggestion below, I need to specify that this script will run on someone else's build server, and I'...
[ 0.4210564196109772, 0.1083960011601448, 0.4762430787086487, -0.14012469351291656, -0.060995571315288544, -0.022324804216623306, 0.4257526397705078, -0.28892087936401367, -0.28927454352378845, -0.5143366456031799, 0.1487620323896408, 0.38950711488723755, -0.18166625499725342, 0.157236963510...
a time. (`n` at a time, get it?). An example is probably a better > explanation than I could give in words. Example: ``` my @x = ('a' .. 'g'); my $it = natatime 3, @x; while (my @vals = $it->()) { print "@vals\n"; } ``` This prints ``` a b c d e f g ``` The implementation of [`List::MoreUtils::natat...
[ 0.34191879630088806, -0.2277022898197174, 0.32787832617759705, -0.06500504165887833, 0.12439408153295517, -0.03538636118173599, 0.4586802124977112, -0.30494317412376404, -0.42608267068862915, -0.6254169940948486, -0.16665442287921906, 0.3831312656402588, -0.43468981981277466, 0.38707846403...
I'm just starting out with LINQ to Entities, and I'm trying to replicate a search we currently do in a stored procedure as a LINQ to Entities query. However, I can't seem to figure out the correct way to query properties of entities more than one "join" away from the starting point of my query. For example, say I have...
[ 0.2610448896884918, 0.3156452178955078, 0.6941946148872375, 0.008675134740769863, -0.15977199375629425, -0.014905189163982868, -0.5016803741455078, -0.16761240363121033, -0.3268294036388397, -0.5753895044326782, 0.37106552720069885, 0.28959962725639343, -0.340422660112381, 0.07635810226202...
the association chain as I can go. There doesn't seem to be a "Location" property available on "CampaignLocation" so that I can filter on properties of the Location. I tried using the LINQ join syntax like this: ``` var campaigns = from c in context.Campaign join cl in context.CampaignLocation ...
[ 0.3388175666332245, 0.1639576256275177, 0.5952274799346924, -0.0009002636070363224, -0.1785830408334732, -0.3199607729911804, -0.08840792626142502, -0.1572793424129486, -0.27188536524772644, -0.1654689759016037, 0.04041523486375809, 0.4993436634540558, -0.4871508777141571, 0.11230672895908...
really weird, there's a column named that on the table. Is it not on the model object since it's the foreign key to the Campaign table? Where am I going wrong here, and what am I missing? **[UPDATE]** It looks like any integer columns I use for foreign keys are not being added as properties of the model objects. The...
[ 0.34990164637565613, 0.3657403588294983, 0.2613584101200104, 0.3504314720630646, -0.03610769286751747, -0.18611323833465576, -0.019410504028201103, 0.327724426984787, -0.5647603273391724, -0.3354721665382385, 0.22296124696731567, 0.2686946392059326, -0.06034887582063675, 0.3121356964111328...
table itself, do you have the Location relationship defined in your EF model for ComaignLocation<->Location? Then depending on what you are actually trying to do (join, etc..) I would consider using the linq join syntax, linq nested query (can form a join) or just using the proc you originally had. If there was a purpo...
[ 0.024865884333848953, -0.099720798432827, 0.6420038938522339, 0.008933019824326038, 0.13532206416130066, -0.029093081131577492, -0.2863057255744934, -0.12547698616981506, -0.381173312664032, -0.6124054789543152, -0.013866269029676914, 0.21738313138484955, -0.4355044960975647, -0.0265965312...
place you still have to define the relationships yourself inside the EFModel.
[ 0.22356517612934113, 0.10966982692480087, 0.28048697113990784, 0.0822652205824852, 0.4031909108161926, -0.27280232310295105, 0.25584444403648376, 0.13087430596351624, -0.24204465746879578, -0.5893115401268005, 0.07509832084178925, 0.1458452045917511, -0.016417061910033226, 0.20142503082752...
I have a solution file that's become 'unstuck' from the projects it references, so that the project GUID references in the .sln point to incorrect GUIDs for the projects that they reference, and this problem persists into several of the projects themselves. 1) Is there an automated tool for fixing this? Anyone who's d...
[ 0.38951870799064636, 0.19566956162452698, -0.10751984268426895, 0.042170315980911255, 0.03556615486741066, -0.08039314299821854, 0.22311373054981232, 0.043193310499191284, -0.11540403962135315, -0.670167088508606, -0.030995875597000122, 0.5538524389266968, -0.3105185329914093, 0.1342805176...
mechanics of static objects to achieve "global" variables but which are contained in a object for sanity management.
[ -0.1122131273150444, -0.03937581926584244, 0.009638805873692036, 0.4486999809741974, 0.1718020737171173, 0.12011419236660004, 0.3287835717201233, -0.26143449544906616, -0.2989416718482971, -0.07959640771150589, -0.22573623061180115, 0.6392953991889954, -0.47172775864601135, 0.0354765318334...
I'm working on a search function for an MVC C# app that will place a (possibly large) chunk of text through a filter, and given the search query, will place an html `<span>` with a highlighted style before and after each search term. I've got a simple algorithm working, but I've got a feeling it will be slow, probably...
[ 0.4917182922363281, 0.03743673115968704, 0.6992241144180298, -0.18317250907421112, 0.006013961508870125, -0.047828227281570435, 0.09979439526796341, -0.4726581573486328, -0.19577379524707794, -0.40784358978271484, -0.300709992647171, 0.6093816161155701, -0.42678046226501465, 0.294534802436...
0, comparer) != -1) { var lastIndex = 0; while ((lastIndex = ret.IndexOf(match, lastIndex, comparer)) != -1) { ret = ret.Insert(lastIndex, head); var tailIndex = lastIndex + match.Length + head.Length; lastIndex = tailIndex;
[ -0.28924939036369324, -0.417853981256485, 0.9726040363311768, -0.3664206862449646, 0.2689049243927002, 0.179687961935997, 0.06268803775310516, -0.34403595328330994, 0.11359592527151108, -0.29063427448272705, -0.290157675743103, 0.5847435593605042, -0.33418354392051697, 0.24840985238552094,...
ret = ret.Insert(tailIndex, tail); } } return ret; } ``` I'm wondering if anyone can give some hints for a better algorithm that would perform better for large chunks of text? I was thinking of using a stringbuilder, but it's also occurred to me that I could be approaching this from entirely the wron...
[ 0.3208686411380768, 0.008270484395325184, 0.32585105299949646, -0.06563728302717209, -0.09968312829732895, -0.00910553801804781, 0.3921216130256653, -0.0041593811474740505, -0.16869010031223297, -0.6484118700027466, -0.3258216083049774, 0.743988573551178, -0.40391623973846436, -0.156685560...
like this: ``` public static string Surround( string original, string head, string tail, string match) { return Regex.Replace( original, match, head + "$0" + tail, RegexOptions.IgnoreCase); } ``` Even better if you can pass in the replacer whole as you save 2N string concats: ``` public static stri...
[ 0.4096042215824127, 0.06754783540964127, 0.5265857577323914, -0.3600815534591675, 0.035689420998096466, -0.32022735476493835, 0.21848206222057343, -0.5420600771903992, 0.0216975137591362, -0.37932726740837097, -0.23178307712078094, 0.8714121580123901, -0.5029852986335754, 0.276662617921829...
As a result of [horrible, horrible errors](https://stackoverflow.com/questions/246540/apache-tomcat-error-wrong-pages-being-delivered), we've changed how we connect Apache to Tomcat. We were using `mod_jk`: ``` JkMount /path ajp13 ``` Now we're using `mod_proxy_ajp`: ``` ProxyPass /path ajp://localhost:8009/path Pr...
[ -0.0073472741059958935, -0.11627576500177383, 0.5624721646308899, 0.21618527173995972, -0.3145372271537781, -0.2747339904308319, 0.3674516975879669, 0.0005671803955920041, -0.21235008537769318, -0.6933538317680359, -0.1662970930337906, 0.5299841165542603, -0.29914185404777527, -0.049552153...
[ProxyPassMatch](http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassmatch): ``` ProxyPassMatch ^/(path/.*\.html)$ ajp://localhost:8009/$1 ``` Edited: Marcus Downing’s correction
[ -0.2902231216430664, 0.11250364780426025, 0.2864725887775421, 0.02601948007941246, -0.10671433061361313, -0.31885668635368347, 0.4443020820617676, 0.037798620760440826, 0.04354523867368698, -0.7120583653450012, -0.19409415125846863, 0.21010494232177734, -0.3690427541732788, 0.0930867567658...
Jeff Atwood's recent blog about [bad apples](http://www.codinghorror.com/blog/archives/001227.html) reminded me about something I've given a lot of though about over my career. What is more important, the quality of the members of the team or the quality of the process they follow. I've come to the conclusion that th...
[ 0.6204650402069092, 0.28813889622688293, -0.7845731973648071, 0.13993939757347107, 0.06007568910717964, 0.24586433172225952, 0.4227646291255951, 0.03349681571125984, -0.12528978288173676, -0.5903307199478149, 0.04040843993425369, 0.30766984820365906, -0.023222658783197403, -0.2288139313459...
up of highly skilled and productive members. The question is what are your experiences with a highly effective team vs a highly effective process? People are a first-order determinant of project success. Process comes next, tools come last. However, experience suggests that the most effective people are those who have...
[ 0.1928698569536209, 0.12015048414468765, 0.157906636595726, 0.13454920053482056, -0.06479658931493759, 0.15405109524726868, 0.4383056163787842, -0.25492334365844727, -0.5453298687934875, -0.8463410139083862, -0.2435016930103302, 0.7082882523536682, 0.38159263134002686, -0.4484030306339264,...
tasks, executing the plan, tracking divergence from plan). So, always aim for "good people" but be aware of ambiguities in the very phrase "good people".
[ 0.012716320343315601, -0.13268837332725525, -0.056167036294937134, 0.23632584512233734, 0.33448296785354614, -0.023239869624376297, 0.7690725326538086, -0.008177287876605988, -0.30490705370903015, -0.585218071937561, -0.20714178681373596, 0.8692049384117126, -0.13202476501464844, -0.720202...
I have created an ActiveX control using C++. I use Visual Basic code to instance the control in an Excel worksheet. I can only run the VB script once, subsequent runs cause the following runtime error when attempting to access the 'ActiveSheet' variable: ``` Microsoft Visual Basic Run-time error '-2147319765 (8002802...
[ 0.02665526792407036, 0.30825498700141907, 0.09509642422199249, 0.018310679122805595, -0.023603715002536774, 0.11729861795902252, 0.2990245223045349, -0.22803109884262085, 0.16894249618053436, -0.4184775650501251, 0.037391241639852524, 0.7115081548690796, -0.43624138832092285, -0.0464922562...
case still causes this error. Other ActiveX controls in the system don't cause this error (eg I tried instancing 'Bitmap Image') from VB code. This is the VB code (a macro that I recorded, but hand-coded VB has the same issue): ``` Sub Macro1() ActiveSheet.OLEObjects.Add(ClassType:="test.test_control.1" _ ...
[ -0.14677822589874268, 0.04846608638763428, 0.2944953739643097, -0.09568087756633759, -0.0024663738440722227, -0.062095753848552704, 0.24734684824943542, -0.23301690816879272, -0.07692237198352814, -0.5288792252540588, 0.0899350717663765, 0.6561332941055298, -0.5144527554512024, 0.004697666...
check the 'Connection points' check box in the 'Options' page. This adds, among other things, IConnectionPointContainerImpl as a base class for your ATL class, which in turn implements IConnectionPointContainer. Failure to do this means that you can't insert your ActiveX control into an Excel document via Visual Basic...
[ -0.19614849984645844, -0.1559181958436966, 0.3585978150367737, 0.2900581657886505, -0.0007484424859285355, 0.07595997303724289, 0.472048819065094, 0.01939314790070057, 0.0629625990986824, -0.45077696442604065, -0.10523389279842377, 0.6483237743377686, -0.29201894998550415, -0.0528678409755...
I'm working with a library that uses Environment.NewLine as it's newline char when writing a file. I need it to write Unix formatted files, and as such would like to change the newline char. Can I change the value of Environment.NewLine? Any other ideas (aside from converting the file post creation)? > Can I change t...
[ 0.3386518061161041, -0.06420062482357025, 0.16571784019470215, -0.0525907538831234, 0.09603597223758698, -0.04704822972416878, -0.06985685974359512, -0.14043696224689484, -0.2576911747455597, -0.900607705116272, 0.0749201625585556, 0.5662036538124084, -0.2220076620578766, 0.382657498121261...
class Unix : Platform { public override string Newline { get { return "\n"; } } } ``` etc., and then just use an instance of the appropriate class.
[ 0.08784232288599014, -0.3056352138519287, 0.049452316015958786, 0.2746082544326782, 0.06505359709262848, -0.4167868196964264, -0.1092575266957283, 0.2997879087924957, -0.1185852512717247, -0.48446258902549744, -0.25078192353248596, 0.5803447365760803, -0.0702710971236229, 0.077505134046077...
What is the difference between System.GetMem and System.ReallocMem? Delphi 2009 Help for ReallocMem, is exactly the same description of GetMem. How about System.FreeMem and System.Dispose **What should I use with arrays?** ``` type PMemberDataList = ^TMemberDataList; TMemberDataList = array[0..MaxClassMembers -...
[ -0.5536693930625916, -0.21172957122325897, 0.7742300033569336, -0.02264905348420143, 0.1290992796421051, 0.22232379019260406, 0.294407457113266, -0.5685533285140991, -0.4331212639808655, -0.7432354688644409, -0.21346522867679596, 0.6295750737190247, -0.48234230279922485, 0.0053620287217199...
New(Item); Items[0]:= Item end; // Remove begin Dispose(Items[0]); Setlength(Items, 0); end; ``` GetMem always allocates memory, FreeMem always releases/frees memory, ReallocMem may do one, the other, or both. In fact, when used properly, ReAllocMem is really the only memory management API needed. If you start ...
[ -0.05794183909893036, -0.34307682514190674, 0.5866557359695435, -0.013134757988154888, 0.18401218950748444, -0.0931873768568039, 0.14041496813297272, -0.44195371866226196, -0.48992300033569336, -0.7290799617767334, -0.4107871651649475, 0.5380876064300537, -0.25618425011634827, 0.2641535997...
or for you "old-skool" folks, the older Turbo Pascal object model (the old "object) syntax. New and Dispose will also ensure that any typed pointer that is a reference to a managed type will properly initialize that type. For instance given the following: ``` type PMyRec = ^TMyRec; TMyRec = record Name: string...
[ 0.44366058707237244, -0.030029691755771637, 0.4966221749782562, -0.019563233479857445, 0.29055747389793396, -0.07437534630298615, 0.19540828466415405, -0.26935964822769165, -0.17408843338489532, -0.49999067187309265, -0.38450363278388977, 0.7349997162818909, -0.03576250746846199, 0.0841440...
Name and Value fields of the record are properly initialized and finalized or cleaned-up. New and Dispose, in the above case is equivalent to: ``` GetMem(Rec, SizeOf(Rec^)); Initialize(Rec); ... Finalize(Rec); FreeMem(Rec); ``` For the example you gave, Gamecat is right, you would probably be better off using a dyna...
[ 0.0312142763286829, -0.17597134411334991, 0.19171713292598724, 0.0749463140964508, 0.2719323933124542, -0.4050607979297638, 0.004904474597424269, -0.29236289858818054, -0.544206440448761, -0.5094424486160278, -0.3975505828857422, 0.4767920672893524, -0.21279121935367584, 0.2001133412122726...
the information is kept neatly packaged together. This would allow you to iterate over the array regardless of the current length by simply doing one of the following: ``` var Member: TMemberData; Items: array of TMemberData; ... begin SetLength(Items, Value); for Member in Items do // iterate over each ele...
[ -0.022936930879950523, -0.45734497904777527, 0.25177714228630066, 0.09289000183343887, -0.15353769063949585, -0.06509744375944138, 0.172825887799263, -0.4551262855529785, -0.3607780635356903, -0.5463835597038269, -0.20962420105934143, 0.4407692551612854, -0.43709373474121094, 0.12610501050...
properly initialized and finalized without the need to do that manually.
[ 0.12672628462314606, 0.2098061442375183, 0.2484121024608612, 0.11286075413227081, 0.42607584595680237, -0.029492735862731934, -0.11723968386650085, -0.29727792739868164, 0.2639431059360504, -0.6294010877609253, -0.3777925670146942, 0.20317009091377258, 0.24450036883354187, -0.0017274270066...
I added a dll project to my solution and explicitly referenced it by an executable project. The executable is complaining that it can't find the lib. Any ideas how to set the project to create the required lib file? And prehaps why the project would not create one?!? Cheers **NOTE** I have searched the project and t...
[ 0.2733306586742401, 0.11099694669246674, 0.40724697709083557, 0.04423758387565613, -0.18022054433822632, -0.40040814876556396, 0.04087292030453682, -0.0514100156724453, -0.03575843200087547, -0.8023039698600769, -0.2555007338523865, 0.5452634692192078, -0.15185503661632538, 0.1486559510231...
write it to. You may also need to generate an imports definition file (.def) in your project, or check your header files and make sure your exported functions are tagged with the \_\_declspec(dllexport) qualifier in the header file. This is usually toggled by a #define such as: ``` #ifdef MYAPI_EXPORTS #define MYAPI_...
[ 0.42789915204048157, -0.037055108696222305, 0.4018542170524597, -0.05598411336541176, -0.09447987377643585, -0.10444255918264389, 0.09100618958473206, -0.3416494131088257, -0.04695133492350578, -0.7797334790229797, -0.23530232906341553, 0.5647963285446167, -0.5583507418632507, -0.160242423...
create the .def file and add the dllexport, just one or the other. I prefer the latter. Also, if you choose to use a .def file, you need to specify it in the Linker properties of your library project.
[ 0.6671349406242371, -0.24957141280174255, 0.1690075695514679, 0.230058491230011, -0.1096596047282219, -0.5148432850837708, -0.14661359786987305, 0.09023674577474594, -0.09590095281600952, -0.7577064633369446, -0.1478859782218933, 0.8044454455375671, -0.27344080805778503, 0.0250232759863138...
I am currently doing some work for a company that runs a legacy web app built on Java Servlets (the system pre-dates JSP's, although they now use them when building new pages). The code base is a big jumbled mess as its around 10 years of building on top of an out of date framework. They have very little consistency in...
[ 0.6422719955444336, 0.5305629372596741, 0.25673574209213257, 0.10023964196443558, 0.07479746639728546, -0.1844807118177414, 0.3097459077835083, 0.3870794475078583, -0.1606009304523468, -0.6406957507133484, 0.32223936915397644, 0.01422761008143425, -0.1074221208691597, 0.4739536643028259, ...
just in general a very inconsistent infrastructure. As I have been working here I have been adding in modern features / trying to clean up the code base a little bit. I added some jQuery to where I was exposed, introduced a bit of security with input validations, cleaned up some of the modules to employ unobtrusive J...
[ 0.4187108874320984, 0.3937971591949463, -0.19700220227241516, 0.028807664290070534, 0.006903375964611769, -0.10717374831438065, 0.4915846884250641, 0.2516399919986725, -0.3003760874271393, -0.35932663083076477, 0.359724760055542, 0.48012953996658325, -0.40923088788986206, 0.005634917877614...
a lot of their old code to make my stuff consistent. They have reached a point where they are now considering a massive update to the system. They want to improve the maintainability of the code base and attempt to move to some sort of modern framework / MVC type application. A lot of the system predates XHTML with in...
[ 0.5314807891845703, 0.12391550093889236, 0.2866041958332062, 0.016807040199637413, -0.31003010272979736, -0.016302194446325302, 0.4091535806655884, 0.18293921649456024, -0.27575773000717163, -0.673307478427887, 0.1913939267396927, 0.2637855112552643, -0.24203532934188843, 0.277429342269897...
is, the move to any of these may require a huge rewrite of a system that is already in use and they cannot afford to start over. My question is: What would be the best way to migrate a legacy code base such as this to a more modern framework while keeping the existing business logic (no sense in rewriting stuff that h...
[ 0.3612890839576721, -0.07126221805810928, 0.11920253932476044, 0.3128536641597748, 0.05412379652261734, -0.04994923993945122, -0.07714468240737915, -0.06160192936658859, -0.426254004240036, -0.8187686204910278, 0.03605576977133751, 0.1941259801387787, -0.02322990447282791, 0.10661980509757...
(reusing a lot of their old code) * rewrite system from scratch using a modern framework but copying over logic from old system (if possible) * keep the old system as is and just update the front end pages to give it a more modern look (might be best given time/money etc.) what is the best way to update legacy Java Se...
[ 0.38598641753196716, 0.20909081399440765, -0.08371037989854813, 0.2992991805076599, 0.038233641535043716, -0.1770123839378357, 0.6290370225906372, -0.08286729454994202, -0.22300821542739868, -0.765690803527832, -0.00576181011274457, 0.40201711654663086, 0.05287995934486389, -0.030846249312...
over to the framework closest in spirit to whatever that style ends up being. By "refactor" I mean - introduce tests in strategic locations, unit as well as functional, and work like mad to reduce duplication, leaning on these tests.
[ 0.5912532210350037, 0.13086353242397308, 0.02376941218972206, 0.17235726118087769, -0.18580439686775208, -0.09224225580692291, 0.3778686225414276, -0.27963346242904663, 0.18671585619449615, -0.6980962753295898, -0.12663310766220093, 0.4698866307735443, 0.18515194952487946, 0.06077838689088...
My development team has worked with subversion for quite some time. The way that manage the trunk and branches is as follows: * We (almost) always release from the trunk * Each release gets its own branch. * When a release is ready for QA, we merge the branch back into the trunk and create a new branch for the next re...
[ 0.5124045610427856, -0.28013500571250916, -0.00376142468303442, 0.3235573172569275, 0.010947038419544697, -0.07506360113620758, 0.41804760694503784, 0.2082459181547165, -0.1688479781150818, -0.42215484380722046, -0.10790449380874634, 0.24287590384483337, -0.024337779730558395, 0.2275469154...
pop-up during QA where subversion did not merge quite right. One solution might be to merge trunk changes into the release branch on a regular basis, say weekly, to ensure that the most up-to-date trunk changes are in the branch. Conflicts can then be fixed in closer to real-time. What is your experience with this is...
[ 0.09836891293525696, -0.42680153250694275, 0.1880194991827011, 0.1875055730342865, -0.05469578132033348, -0.17062132060527802, 0.019895190373063087, 0.2358720898628235, -0.6653997302055359, -0.31015029549598694, -0.060225069522857666, 0.30222615599632263, -0.43311724066734314, 0.0417774617...
managing code branches and releases. But to touch on a few of your points from my perspective: * Yes, I would merge changes from trunk into the release branch more often. Smaller chunks are always going to be more manageable than one large integration. And of course this means you're working against the latest most st...
[ 0.36712566018104553, -0.12541429698467255, -0.2331228107213974, 0.2643263339996338, -0.09050808846950531, -0.23804451525211334, 0.33778122067451477, 0.07714089751243591, -0.4645065367221832, -0.6739059686660767, -0.059660788625478745, 0.6461557149887085, -0.07783247530460358, -0.0118258912...
people run a integration without really knowing what they are doing and what they are expecting as the result. * Perhaps you want to have an integration branch that isn't trunk. This can be tested daily and any issues caught here before they go and break trunk and scare everybody.
[ 0.675859808921814, -0.14841513335704803, -0.23733140528202057, 0.15085050463676453, 0.1283641904592514, -0.018289167433977127, 0.26600155234336853, 0.1743101328611374, -0.33946692943573, -0.4431926906108856, 0.1389942169189453, 0.1074175015091896, -0.14008615911006927, -0.10458347946405411...
Usually my methods are as the following: ``` public List<int> Method1(int input) { var output = new List<int>(); //add some items to output return output; } ``` But FxCop advises another IList implementation instead of List, but I can't remember which. The alternatives include returning it as an IList, I...
[ 0.11269637197256088, -0.06497959792613983, 0.3400515019893646, 0.012963858433067799, -0.21652135252952576, 0.2660716772079468, -0.0271944310516119, -0.5387458801269531, -0.1890040636062622, -0.8077139854431152, -0.07399257272481918, 0.6831696629524231, -0.4563656449317932, 0.00432889396324...
considered the best practice? "Framework Design Guidelines" (2nd ed) in §8.3.1 has quite a lot to say about collections as return values, summary: * **DO NOT** provide settable collection properties. * **DO** use `Collection<T>` or a subclass of `Collection<T>` for properties or return values representing read/write c...
[ 0.4096806049346924, -0.029622793197631836, 0.15016911923885345, 0.10668611526489258, -9.48374349718506e-7, -0.4526750445365906, 0.21913699805736542, -0.31111711263656616, -0.40239059925079346, -0.6458843946456909, -0.38292044401168823, 0.5390210747718811, -0.09946072846651077, 0.1889910846...
type so you have a degree of control). I would return `IList<T>` and ensure I do not define the actual type I am returning, unless I was returning an iterator (when I would use `IEnumerable<T>`).
[ -0.0036310129798948765, -0.43528252840042114, 0.391414612531662, -0.03969740495085716, -0.23612965643405914, 0.01275518536567688, 0.1748345047235489, -0.2113972008228302, 0.2251226156949997, -0.5679959654808044, -0.20009861886501312, 0.5800806283950806, -0.44942399859428406, 0.066041454672...
I have NAnt script which as part of its project calls a batch file using the following task: ``` <target name="makeplane"> <exec program="C:\WINDOWS\system32\CMD.EXE" commandline="/C ${make.file} &gt; ${make.log}" verbose="false" workingdir="${make.dir}" basedir="${make.dir}">...
[ 0.36291956901550293, 0.1057368665933609, 0.23314759135246277, -0.3065400719642639, -0.03255521506071091, 0.1964486688375473, 0.00446954695507884, -0.2687714397907257, -0.06030739098787308, -0.6385694146156311, 0.10379784554243088, 0.1682804524898529, -0.12114810943603516, 0.318036317825317...