Posts

Showing posts from February, 2012

c# - How to perform 2 checks in LINQ Where -

सार्वजनिक सूची & lt; SavedOption & gt; GetValidSavedOptions (सूची & lt; विकल्प & gt; आइटम विकल्प, सूची & amp; लिफ्ट; सहेजा गया विकल्प & gt; सहेजे गए ऑप्शन) {सूची & lt; सहेजा गया विकल्प & gt; अंतिम सहेजे गए विकल्प = सहेजे गए विकल्प। कहाँ (x = & gt; विकल्प पाठ DoesMatch (y, x) & amp; amp; ItemOptions.Any (y = & gt; y.SomeID == x.SomeID))। सूची (); } मैं पूरी तरह से LINQ और लैम्ब्डा के लिए नया हूँ उपरोक्त में, मुझे क्या चाहिए / क्या करना है सहेजा गया विकल्प में केवल अगर कॉल को OptionTextDoesMatch और SomeID सहेजे गए विकल्प की SomeID में itemOptions की सूची में पाया जाता है। अगर OptionTextDoesMatch पर कॉल true और मौजूदा सहेजे गए ऑप्शन savedOption.SomeID को itemOption में मिलता है संग्रह तब यह toList () में होगा: मैंने इसे करने की कोशिश की लेकिन वाक्य रचना अभी भी मेरे लिए काम नहीं कर रही है: सहेजे गए ऑप्शन। जहां (आइटम विकल्प। कोई भी (वैकल्पिक पाठ मैप्स (एक्स, वाई) & amp; (y => y.SomeID == x.SomeID)))।

Backtracking in Erlang -

Sorry for my english first. I would like to use a back-tracking algorithm in Erlang. This will work as an estimate to solve partially filled sudos. A 9x9 sudoku is stored as a list of 81 elements, where each element stores the potential number that can go to the cell. My initial solution for 4x4 sudoku looks like this: [[1], [3], [2], [4], [4], [2], [3], [1 ], [2,3], [4], [1], [2,3], [2, 3], [1], [4], [2,3]] There are 2 solutions in Sudoku. I have to write both of them after reaching the initial solution, I need to implement a back-tracking algorithm, but I do not know how to do it. I think that the fixed elements are written in a new list called Fixedlist which will change [], [3], [2], [4], [4], [2] for multiple Solution cells [] ], [3], [1], [], [4], [1], [], [], [1], [4], []] < P> From here I get a "sample", I find the shortest length in the solution list which is not equal to 1, and I try the first possible number of this cell and put me in that fixed

qt - How can I add a user editable checkbox in QTableView using only QStandardItemModel -

I have a QTableView and QStandardItemModel . Can a column contain checkboxes that can be editable without using a user representative or without the use of abstract model squares? It's not that I can not do this, I just want to reduce the code, I'll get it overkill for a simple check box. model.setData (index, Qt :: I have used the modelTX.setData (index, FALSE) < / P> Code> but it creates a combo box which is true and false. I will try setItemData . pls, check what the following example will work for you: QStandardItemModel * tableModel = new QStandardItemModel (); // Create text item table - Model- & gt; set item (0, 0, new QStandardItem ("text item")); // check Create Item O- ; Table MODEL-gt; Set item (0, 1, item 0); // set model UI-> Table view-> Setmodel (table model); Hopefully That it helps,

jsf - Escapse url GET parameters in URL with Java/ICEFaces -

I have Java with the JSF / ICEFaces app. I need to move the parameters from one page to another, so I Something similar: & lt; F: param name = "eventName" value = "# {item.event_name}" /> and then get it into the constructor: eventName = request.getParameter ("eventName"); While working properly, unless there is no '/' character in the given string, it is not properly parse. I believe I need to avoid% 2F from the '/' parameter and then parse it back. Two things: 1- How to do it in iCafeases or JSF 2- Do I have to save any other parameters & lt; H: OutputLink value = "http://google.com" & gt; Click & lt; F: Ultimate name = "eventName" value = "# {param.eventName}" /> & Lt; / H: outputLink & gt; Works for me - Browser takes care of url-encoding. Note that you can get the request parameters directly in your page, # {param.paramName}

google app engine - Usage of Static variables in Java Servlets (e.g. in AppEngine) -

I have an application where the servlet is a method called update (ReqIn, ReqOut). I get it from doGet & amp; doPost and pass the request and response variable, and then it is up to update (...) to fill the following fixed variable: < Pre> ... public class server HttpServlet {public static = zero in HttpServletRequest; Public Static HttpServletResponse Out = Faucet; Public static boolean is debug = true; Public Static Boolean isPost = false; Public fixed string url = ""; Public static string ip = "0.0.0.0"; Public Stable Cookie [] Cookies = Faucet; Public Stable UserClass User = Faucet; Public Static Boolean isLoggedIn = false; ...} Actually the most used stuff and the essence. Updating it on every request It also gives me IP address & amp; The current user data from anywhere in the website, only the server. Code entered by the device (); Uneded to create a new class instance using a page to load and using too many access codes: serv

Setting up background images for forms in Delphi -

How can I load an image to my program and make it a background for a form? I need the exact code for that I have seen all over the internet and all the things I have found is a lot of changes, and there are fixes for background work for the purpose of special circumstances. I have also tried some Delphi books. And I have not found it anywhere. Place a TImage on your form. Make sure all other controls on the form are behind you can right-click it and select "Send back" menu option. Load a graphic. var img: TBitmap; Start IMG: = TBitmap Create; Try img.LoadFromFile ('s: \ background.bmp'); Assign it to image control. Image 1 Image: = img; Clear. img.Free at the end; End; End; You can also add the last three steps to load the graphic and put it in the image control at a time. Thanks for John for the suggestion. Image1.Picture.LoadFromFile ('B: \ background.bmp'); See also:

Adding "On The Fly" page to precompiled ASP.Net Site -

If a site is a precompiled ASP.net site, it is possible to add .aspx and .aspx.cs or aspx .vb files Have worked / compiled while flying in a new directory and on that page? Or do these files need to be included in the project, publish the site again, and push the new Bin folder? You can add non precompiled pages to a precompiled web site. I just installed a site like this. It does exactly that - it's a pre-company site with a remote admin tool that adds some custom pages to non-precomfeeded format.

Error while installing the .net windowservice :The name is already in use as either a server or service name -

I create a new window service on my machine and copy the whole project to the server and install the window service on the server I try the machine I can not install the service in my machine ... I get the following error: System.ComponentModel.Win32Exception occurred during an installation phase during an exception: Name is already in use as a sub-name or service display name but If I install it in my local machine then it works. This is because I have created the project in my machine and the service is registered in any IP in any way. Serivce name also I have kept it unique. Any suggestion PPL? Your unique service name may be used as a service name or as a display name on the server machine is. This is not in use on your local machine, so it works. Make sure that the service using your service is an older version of your service, before uninstalling the old version of the service from the server before attempting to install your new version. If the service u

c# - Where can I learn more about P/Invoke? -

Recently, I'm having a lot of conversations with unmanaged libraries and I'm going back to ask questions about something Signing method is signing because I'm not a C / C ++ programmer (although it is not entirely foreign to me) There are situations where there are two different P / AWEZ signatures in the same type of argument in two different ways (formerly: I can use the outside keyword) sometimes, Code> OutAttribute , etc.). I can not see any logic behind it Is there a good resource for understanding P / Awze and better storage for a person who is not C / C ++ expert? The problem is that C / C + languages ​​do not give you a way to see if the data of the data Produces or consumes and whether a logic indicator indicates an array of values ​​or values. Learning the language or studying P / Involve does not really help with it, although it gives you a better shot at the right guess. You only need to specify the specific country code for this which you are

ruby on rails - Erubis block helper throwing error with concat -

I have some block helpers, here's a simple example of what I'm doing: def wrap_foo foo, & amp; Block data = capture (and block) content = "& div; div class = \" foo \ "id = \" # {foo} \ "& gt; # {data} & lt; / div & gt;" concat ( Contents) End I'm just trying to get the Erbis and this is giving me the following error: T Hope this! You were probably hoping to be an example of Aare, there was an error while evaluating zero. & Lt; & Lt; Removes the error by removing the call concat but not ending with my cover Using it: Rail 2.3.5 Erbis 2.6.5 And tried that Beta helps better (2.6.4 though) and Rail 2.3 . Actually using it, which was my last goal, is a fix for this . I just had to change my assistant to concat (content.html_safe!)

php - Split string between two characters? -

OK, it should be incredibly easy, but I do not know what I'm looking for ... I want to split a string between two letters $ string = "blah blah blah blah blah blo blah blah (bam)"; Returns: Array 1 - & gt; Bloper 2 - & gt; Bloop3 - & gt; Thanks Arthur < P> You can do this with regular expressions: $ string = "blah blah blah blah blah blah blah blah"; Preg_match_all ("/\((.*?)\)/", $ string, $ result_array); Print_r ($ result_ar [1]); // $ result_array [0] contains matches with feet This output will be: Array ([0] = & gt; Blopper [ 1] = & gt; bloop [2] = & gt; bam) My regular expression uses the non-greedy selector: (. *?) Which means that as low as possible, It keeps all this stuff from ) and grabbing everything between ( and closing ) to open it? How many words are there?

c# - WPF - how to call mainwindow tabitems from inside a control -

I different Tibis (editing, for additional and more) with Tabroft custom control I have main window I am I want to be able to address other tabs within the control, so when, for example, I click submit on some forms, it activates a specific tab other. I tried BasVando N = new baswondo (); N.SearchTab.Visibility = System.Windows.Visibility.Hidden; Still does not move this clearly Any thoughts? I will consider reusing my architecture here. Can Your Custom Controls (UserControls?) Be within an Option tab? Your main window can then subscribe to rooted events (at the main window level) and the application navigation can be handled. It is very clear from the design standpoint, because the user controls do not need to know about other controls, they say, "I kill this button", and the main window decides That means the event has to show the second window. If you ever change your tab, then you will not be able to break everything because it lowers the pairing be

delphi - comparing a GUID so I can sort by GUID -

What's a cool, fast way to sort a list of GUIDs (as TGuid) I thought I just SysUtils.CompareMem (P1, P2: indicator, length: integer) I use: boolean; Until I did not realize that she returned boolean. I would like to compare it to comparable comparisons () or comparison val () which returns the integer, then it can be used in some way. i suppose many people do not want to sort GUIDs ... any ideas? I think I can make some cascading calls compared to the content of Tigude record (). My tendency tells me that there should be a better way! Thank you! If you are using Delphi 2009 or better, you can use the TComparer & lt; TGUID & gt; You can use. The Comparison () , or BinaryCompare function, calls it from Generics. Defaults Unit

sql - Few questions from a Java programmer regarding porting preexisting database which is stored in .txt file to mySQL? -

I am currently writing a library management Java app, and so far, the main library database is stored in one The file was changed to .txt file which was later converted to ArrayList , to create and edit the database and again to .txt Save changes to the file. In fact, a very ancient method is, in fact, being heard later on SQL, I am considering closing mySQL to the already existing .txt database. Since I do not know exactly how SQL and how specifically my MySQL works, except for the fact that it can communicate with Java code. Can you visit / buy any book / websites from me? First Book Head First with SQL? Especially when using Java code to interact with SQL database? It should be noted that I am already resting with using the third party API. View from 30,000 feet: First of all , You have to find out how to represent text file data using proper SQL tables and fields. If your data represents a single library record of various SQL data types, then you will only need

javascript - Using jquery, how to I animate adding a new list item to a list? -

I have a simple JavaScript function that allows me to add a list to a list. Note that I use JQuery ... function prepaidlist item (list name, listItemHTML) {// Get list item down ... $ ("#" + listName + "li: first"). SlideDown ("slow"); // Add new item to list ... $ (listItemHTML) .prependTo ("#" + listName)} 'listName' only one & lt; Ul & gt; with something and 's Pre-paid work is fine, but I can not get the slide down effect to work. I want to slide the list items down and the new item appears at the top. Any idea how to complete this? I'm still new to JQuery ... if you want to add it and slide down Do this at the same time: functionFendlistItem (list name, listItHtml) {$ (listItemHTML) .hide () Prepaidto ('#' + listName) .Sliddown ('Slow'); } To really do what you describe (slide down, then to feed), you want something like this: / P> function preendListItem (listName, l

ASP.NET C#: Getting Started with ASP.NET Authentication -

I am developing my first web portal in ASP.NET where I want to authenticate. I have heard that ASP.net has a large and well-built authentication system, but I've never used it before. Can you recommend some tutorials or sample codes that can help me get started with basic information about ASP.NET authentication? In particular for the portal I am building, I want to allow users to comment on functions and some pages (this means that I have to dynamically check that a user is logged in Is - how?), Just as a small example. I know that certification, and thus, security is a big topic, but I'm just looking for a basic starting solution, as well as setting up the required login and register form, as well as back-end functions. . Thanks in advance! Take a look at the first patterns; It tells the basics of this general authentication of the Best Practice team then continue, which tells form authentication based on patterns & amp; Best Practices Team

jquery - When do I need to use JSON and XML? -

I know that there are so many sources that explain this, but they just keep adding the key / value to an array Talk about or in an object. I do not understand why and when I should do it, though I always use jquery AJAX as an example, if I create a platform then I need it is? Can any real world give examples? The same XML goes to store this information, but what kind of information? Why can not I store it in MySQL? Edit: With $ .json () you can recover a JSON file and then display the content in the browser. But does Jason make this file? me? Manual? And why? And how? So you can just get a JSON file? Both JSON and XML are used to store structured data basically. If your AJAX call only takes one value (like "number of votes"), then you can be it just bring it and do not use JSON or XML at all, but as soon as you get Needing to get values ​​(like "positive vote" and "negative vote"), you need some structure. Both JSON and XML support nesting

html - Why doesn't this page render correctly in Internet Explorer? -

Take a look at this page: It looks fine in Firefox, but IE will do it poorly How does it come? Your layout is slightly interesting, instead of using empty table cells in any part of the page, you Those people can take and body {width: 750px; Margin: 0 auto; } And you can have HTML something like this: & lt; Body & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; Td class = "splash_desc" & gt; ... & lt; / Td> & Lt; Td class = "splash_photo" & gt; ... & lt; / Td> & Lt; / TR & gt; ... With this method, IE will not take any more space compared to other browsers and will fit well within 750px wide containers. Edit: To get the segment of the header bar horizontally 100%, you have to create the second one for the content. Therefore, instead of using the body element to set the width, use something like this: & Lt; Td class = "splash_photo" & gt; ... & lt; / Td>

in Xcode can you have it automatically highlight references to the selected object like in eclipse? -

In Eclipse, when you click a variable on a variable name, or for example the object, then the same people Highlights are easier to find elsewhere in the code. Does Xcode have any similar attributes? You can highlight them by using a search operation: if If you have chosen a word, then press CMD + E (Search based on current selection), CMD + F (Show search bar), then CMD + G (Next Search) CMD + E, CMD + F and CMD + G. By using prudent usage you can become very productive in Xcode (or other OS X app for that matter)

Problem with categories and structure module - Expressionengine -

I am currently working on a travel site for one of my clients, they require CMS so that they You can also add destinations and make updates to your website easily. The site's infrastructure is explained below: 1 home page This page currently draws information about the destination and a part of the hotel that changes on the page refresh Are there. 2. Destination list page This page will show the countries of this specific destination, for example: If Destination is Caribbean, then it will list the countries that my customer sells for the hotel, so that the rating can be sorted so that the hotel 5 stars will appear near the top of this listing. Countries are set up as categories and are unique to the listing pages, categories contain a brief description of that country and the image linked from the hotel list page that displays hotels in that country. 2b List of hotels This page will list the hotels that are on sale in a specific country. 2c Hotel details page This page has

php - Javascript parameter not well executed when contain space or specific character -

The problem occurs when the link is clicked when I click on the third parameter if space or / and characters like ê , É, ... ... and lt; A href = "javascript: arretSuivrePortefeuille ('13206', 'Suivre', 'Arger de Swivor');" & gt; Suivre & lt; / A & gt; I get from firebug: arretSuivrePortefeuille JavaScript has not been defined: arretSuivrePortefeuille ('13206', 'Suivre', 'Arr% C3% Aetter% 20de% 20suivre'); () Any ideas? MMM, remove the href attribute as the first solution and the instructions Move it to onclick , anyway, this is the right way. Do not forget to remove onclick and add return if necessary. There may be some URL encoding problem in href . If it does not work: What encoding do you use in the document? What are the special characters?

c++: Operator overloading and error handling -

I am currently beginning operator overloading in C ++ for simple 2D top class classes where [Available] Operator. It usually works, but I do not really know how to deal with errors for example if the operator is out of range (in the case of 2D top class in which there are only x and y values, then this range itemprop = "text"> P> The time to handle the error is a difficult animal at the best time. It is too much a big deal error, and if this happens then it is a lot more likely to happen with it. There are four basic paths you can follow: Throw an exception Error handling sledgehammer. A great tool, of course, is to use it if you need it, but if you are not careful then you will end up plucking yourself in the leg. Basically throw If it has not been caught, it will cancel your program. Return a value indicating failure Leave it to check for success and respond accordingly. The failure value will depend on the type. Indentor can retur

cocoa - Attempt to insert nil -

It seems that it should be easy to add bullion to an NSMutableArray. Assume that toDoArray is intialized to have an NSMutableArray following: BOOL checkboxState = NO; [ToDoArray addObject: checkBoxState]; NSMutable arrays require an id, the object is an odd part of C. An ID is an object, but there are no primitive (for example, s preferences, while NSArray s are objects, and in extensions, id S). Maybe it can help

c# - Generic repository - IRepository<T> or IRepository -

I have seen two different ways to make general treasures. What is the difference between those two approaches (professional and opposition)? Please do not worry about the differences in the methods because I public interface IRAP resource & lt; T & gt; Interested in the difference between. Where T: class and public interface erupository: IDisposable What is the difference in functionality, flexibility , unit testing ... ? What will I get or lose? Whether dependency injection frameworks are registered or not? Option 1 Public Interface Erepository & lt; T & gt; Where T: class {T obtaining (object ID); Zero Attachment (T Entity); IQueryable & LT; T & gt; get all(); Insert zero (T entity); Zero removal (t organization); Submit Zero (); } & Gt; (); delete zero & gt; T & gt; (T entity); Add zero; T & gt; (T Entity); Nonsecurity (); Bull IsisSpold (); The biggest difference is that IRAPSorporation irp consentor

Forcing Access 2007 to run Access 2000 app WITHOUT putting everything in tabs -

I have an old Access 2000 app (I do not have access to them very much these days) that try to run a client In Access 2007. It is running fine for the most part, except that they do not outline the forms in the form of / instinated etc., etc.: Access puts a new look inside the "tabs" of types 2007, thereby causing confusion Being a part of the end user (modal forms they can not "tab out," etc.), they seem like they are talking). It was designed as a special MDI app, and it was running fine for many years. Is Access 2007 a way to override for "handling" forming? Yes, to set the document window option to overlap the windows window, then save the database (which Runs later). From: By default, to use the documented documents as a Microsoft Office Access 2007 database display tabbed document, on the Microsoft Office Button Button image Click, and then click Access Options in the Access Options dialog box, click on the current database, and under

c++ - Compiling SDL on OS X with makefile -

I am trying to compile the Tetris program written with C ++ and SDL on OS X. First I tried to do this: `G ++ -O Tetris Main. Cpp` SDL-config - seaflag - lbs '-framework cocoa' < P> And found it: Undefined symbols: "Game :: startGame ()", referenced from: _main ccQMhbGx.o "Game :: Games ()", referenced from: _main in ccQMhbGx .o ld: Symbol (s) not found Collection 2: LD has returned 1 exit status Here is the main CPP file: # Include & lt; Iostream & gt; #include "game.h" int main (int argc, char * argv []) {game * game = new game (); Sports-> StartGame (); Return 0; } Game.h is a sports class where all other classes (board .h, IOH, Peace H, Piece H) are included and the main logic of the game Is contained. I would really like to be able to write a makefile for this or in some way to distribute friends easily. Edit: If someone is having the same problem, then here is the last mess file: cc = g ++ CFLAG

queue - Breadth First Binary Tree Traversal in Scheme -

I'm trying to implement a quarter tree level. I am very close, but I did not know how to get a duplicate. Any kind of help is highly appreciated. Thanks in advance. JR (define (atom? X) (not (pair? X)); work to manipulate a binary tree (define (leaf? Node)) (atom) node) ( Defined (left node) (cadre node) (defined) (right node) (CDADR node) (defined (label node) (if (lead node) node (car node));; First row width (defined width (node) (Q 'nQ! Node);; Encounted tree (Output' annex! (Label node);; Output root (helper node) (output 'Q-> list);; Output Elements in (Define (Auxiliary node) (if (not (Q 'empty?));; If the queue is not empty (start (if (not (leaf? Node)) (start (q' enque! ( Left node;) Left tree Q (Output enc! (Labels (left node);; Left tree (Q 'nuke!) Output Root; Enqueue right tree Q (output n); (Node);;; true root production of the tree;) (helper (Q 'deq!) ;; first element in dukes q ;; Again calls the assistant) (define (queue) ((fro

silverlight - How can I link to a MySQL Database in Expression Blend? -

Can anyone talk to me on a tutorial, or can I tell that, a Silverlight in the expression mix in the MySQL database Project? Is such an ODBC connection possible even in Silverlight? Thanks Sebastien Check this question :. Does not answer your question directly, but there may be some help.

c# - Save a ListView into Settings.settings? -

How can I save a ListView from multicolumns to Settings.settings and load them on run? I'm trying to save a ListView with 3 columns. How can i do Tie list view in some data structure. Using the SerialLaze xmlseriualizer - Then you can save the result in the settings. Restructuring is done using deserialize. Stringworter output = new string viver (new string builder ()); XmlSerializer s = new XmlSerializer (this.GetType ()); S.Serialize (production, this); Var result = output. Toaster ()

php - Are there performance issue of using while loop vs foreach/for loop? -

लूप v / s foreach / for while loop या vice-versa के उपयोग के प्रदर्शन के मुद्दे क्या हैं? < पी> आप के पास foreach loop v / s का उपयोग करना हमेशा बेहतर है? इसे "भाषा-अज्ञेयवादी" के रूप में सूचीबद्ध किया गया है, लेकिन इसका उत्तर भाषा (या, बजाय, कंपाइलर) -निर्दिष्ट होगा। सैद्धांतिक रूप से, foreach तेजी से, खासकर यदि लूप के लिए नियमित गिन की जांच करने के लिए एक महँगा ऑपरेशन कर रहा है। इसके अलावा, foreach एक आलसी लोड संग्रह के लिए काम करता है, अंत में, भले ही foreach आपके प्लेटफ़ॉर्म पर थोड़ा धीमा हो, यह बहुत ही उच्च है लूप के लिए एक नियमित के लिए आइटम की संख्या को पता होना चाहिए। संभावना नहीं है कि अंतर फर्क पड़ता है, और यह बहुत लूप के लिए से अधिक संधारणीय है। समय से पहले का अनुकूलन न करें (यह, संयोगवश, जबकि एनएटी के लिए मामला था, तब से उन्होंने गणक के प्रदर्शन को ऊपर से तब्दील कर दिया है।)

windows - shoes url not working in Ubuntu? -

I've been using shoes in windows for a few months and it was doing a great job, but now I want to do Ubuntu Installation My machine and I are trying to run shoes in it but it seems that the URL is not working ... ie when I click on it nothing happens. Has anyone seen this problem? Any help on this? Thanks Pradyumna By viewing the source code, it appears to be relevant bits: shoes_browser_open (char * url) {VALUE browser = Rb_street_en 2 ("/ etc / options / x-www-browser '"); Rb_str_cat2 (browser, url); Rb_str_cat2 (Browser, '' 2 & gt; / dev / null & amp; amp; Shoes_sys (RSTRING_PTR (Browser), 1); } is not much familiar with Ubuntu, but perhaps in your installation is / etc / options / x-www-browser pointing to the right place? Either, or should not shoes use this path?

What are the differences between Spring integration and JBoss jBPM? -

वसंत एकीकरण और जेबीस जेबीपीएम के बीच क्या अंतर हैं? धन्यवाद। < / Div> बीटीडब्ल्यू, यह जवाब तब से अधिक दिलचस्प हो गया है अब, एक्टिविटी है - जो कि ओपन सोर्स अपाचे लाइसेंस बीपीएमएन इंजन (वर्कफ़्लो, जैसे जेबीपीएम) है, जो कि लोग जेबीपीएम बनाए हैं, लेकिन बाद में छोड़ दिया गया है। इसलिए, आप वर्चफ्लो स्थितियों का समर्थन करने के लिए क्रियाशीलता का उपयोग कर सकते हैं जहां yuo को राज्य का प्रबंधन करने की आवश्यकता है और उस स्थिति को प्रबंधित करने के लिए वर्कफ्लो सिस्टम में थ्रेड करने का जोखिम उठा सकता है। इसलिए, एक्ट्रिटीटी मजबूत आर्केस्टेशन प्रदान करता है। वसंत एकीकरण एक एकीकरण ढांचे है - यह उन घटनाओं से अनुमानित स्थिति के लिए इस्तेमाल किया जा सकता है जो आवश्यक रूप से एक दूसरे से संबंधित नहीं हैं यह आम तौर पर मेटाडाटा - जैसे हेडर के साथ गुजरने के द्वारा किया जाता है - "भ्रम" प्रदान करने के लिए कहें कि ये कदम एक ही प्रक्रिया के सभी भाग हैं Becauee वसंत एकीकरण बहुत से विभिन्न प्रणालियों से कनेक्ट कर सकता है और उनके एपीआई के मामले में काम कर सकता है, साथ ही साथ विभिन्न

NSLog output to file, or external logging function for iOS -

I want to write the contents of N slog to the specified file, or I need the function That writes a log in a file, for example: WriteLog (@ "Some Activities by User"); WriteLog (@ "Some More Activity by User"); But I want to see the output like this: 12-25-2009 1:30:00 AM Some activity by user 12-25- 2009 1:35:00 PM Some other activity by user Does anyone know how I can do this? Note that I need a date and time at the beginning of the line In addition, for some reason, the freephone will not write any data in the file, this will make the file, There will be no output only! I wrote my log to record my file but I found out that in most cases debugger It was easy to copy the contents of the console, paste it into a file and use the edit or script if it is needed, process it, it works well for a very large dump, I also covered the tables on that side. It is incompatible, but by the way, files With faster and less error prone than futzing.

asp.net - Responce.redirect error -

In the login check of my personal webpage, I Redirect ("~ / ClientCenter / Default.aspx") and property evaluation failed error I suppose I set the overloaded option interval Should = wrong ... but for what reason? There is a solution to you

javascript - FBJS and Dom Ready -

I want to know how I can use $. or I tried a FBJS for some Facebook application. $ (document) .ready but it is not working except that I did not find any associated documents ... What are the first jQuery code included? & lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" & gt; & Lt; / Script & gt;

actionscript 3 - what is dispatchEvent in Flash AS3? -

Hi, I want to know what is sendmail in AS3 I did not get any idea while it was Goghal :( Please help me Edit 1: Public static console SET_VOLUME: string = "set volume"; Personal function onclick (EVT: MouseEvent): zero {soundClip.scaleX = 0; sending event (new event (SET_VOLUME)}} What does this mean ?? ( If you have Flash IDE, try it in your timeline: var ball: size =================== ================================================== ===== This code shows how a DdEventListener And sending events are equivalent to the MOUSE_MOVE event is sent internally, but you like sent events using MOUSE_MOVE Their own eve You can post it. Does this code have that MOUSE_MOVE detected from the forum, but instead of assuming it in mouseMoveListener , you sent it to another event (Which is myCustomEvemt ) which is instead controlled in myCustomEventListener It works just like the MOUSE_MOVE event, only you send the event instead of the Flash P

elements - jQuery How to Hide DIVs, they are Showing for a Split Second on page Load -

I have created a very quick jquery slideshow, and I'm using this to hide the HIV, which then It is clearly their turn not to show: $ (document) .ready (function () {// First hide from $ ('div # gall2') all div Except Hide (); $ ('("Div # gall3') Hide (); $ ('div # gall4'). Hide (); On doing this you can see the div2 gall3 and gall4 for a partition # gall2, # gall3, # gall4 {display: The CSS is okay to disable it, but without the JS users will never see them. To disable only users with JS, mark the body and appropriate CSS: & lt; body & gt; & lt; script type = "text / javascript t"> document.body.className + = "js"; & lt; / script & Gt; CSS: .js # gall2, .js # gall3, .js # gall4 {display: none; }

java - implementing kruskal's algorithm utilizing threads -

I am implementing cruisal algorithms and I want to use threads. Although I'm not sure I know enough about algorithms to do this. Do I feel that I will be sorted for different parts of the graph and finally connect. Can anyone point me in the right direction? Thank you. to Research focuses on resolving the minimum span The problem of tree in a highly parallel way is it possible to solve the problem in a linear number processor (Longan) time. A 2003 paper "Fast Shade-Memory Algorithm for Computing the Minimum Spanning Forure of Spares Graphs" David A. A practical algorithm by Badger and Guzing Kong shows that a compatible sequential algorithm can calculate MST 5 times faster than 8 processors. [9] Generally, parallel algorithms are based on Borovka's algorithm-prime, and in particular, cruisal algorithms do not even scale with additional processors. So, you can look at the algorithm described in that paper, but Cruscle probably will not benefit from man

pipe - Python popen wont work with block devices -

I have a small forensic app that looks like this import time, OS Print "file \ n" pipe = os.popen ("xxd" + filename), "sys def getter (): filename = sys.argv [1] print" file entered: "+ filename OSSystem ('file' , "R") print pipe.read () I input through a command line through a file and prints the file type and then from the terminal A pipe maker Go back to the Python app under the name "Pipe". Then I read a pipe named "Pipe" This works very well on small text files, but this will not work on block device even when I Run this user as a super user. In the end it will fix the file based on XXD output. Any tips, thanks If you just by xxd / What happens if dev / diskwhich runs ? Does this work, and how much information does it take? Thinking that as a superuser, you have read the permission, in the last line of your code, an attempt to read everything in the sip, where failure can be expected (beca

c# - Making a backup of an SQL Server database -

I am working on software that has been developed to support two SQL Server versions. We have a version that is running on SQL Server 2000 and the second is on 2005. Both are installed on client sites (two different clients) and I need to get a backup from both servers to test for the upgrade. Both customers will be used to make the final test back-up before the upgrade is sent. By testing on its actual data, the test results will be most reliable. But the problem is that both customers do not allow us to access any SQL Tools to run on those servers. All I have is an SSL connection string which uses C # as part of an ASP.NET application as part of i.I therefore need to make smart through C # / SQL statements through this connection I have a server But the file system does not have access rights, so I can not even make backups on some files on the server, then download it, then other options? This SMO or SQL DMO stuff looks promising through a backup programmatic performance o

version control - How to add and commit removals made with "rm" instead of "git rm"? -

I used a group of files and directories from a gecket store using rm , finder, etc. Has removed. I am looking for a GIT command that will record them on the index as marked for extract, as if I had called them git rm . I understand git add -u will do this with a group of other things. I want to take my order in the event of a special removal. without spaces in file names: $ git rm `Git ls-files -d` more robust: $ git ls-files -z -d | Xargs-0 git rm

Uploading Pictures Ruby on Rails -

I'm new to the rail, so sorry if it is easy to upload images and display them in Rails on Ruby I'm thinking the best way. I have a blog and have the option to attach a picture when creating a post. Paperclip is quite awesome There is an excellent train driver about this -

actionscript 3 - URLRequest not working in Cross domain in As3? -

URLRequest AS3 में क्रॉस डोमेन में काम नहीं कर रहा है? & lt;? Xml version = " 1.0 "एन्कोडिंग =" यूटीएफ -8 "? & Gt; & Lt; mx: अनुप्रयोग xmlns: mx = "http://www.adobe.com/2006/mxml" लेआउट = "पूर्ण" अनुप्रयोग समाप्ती = "init ()" & gt; & Lt; mx: बटन x = "35" y = "22" लेबल = "बटन" क्लिक = "परीक्षण ()" / & gt; & Lt; mx: टेक्स्टएरे x = "35" y = "65" चौड़ाई = "365" height = "254" id = "एएए" / & gt; & LT; mx: स्क्रिप्ट & gt; & Lt;! [CDATA [function init (): शून्य {Security.allowDomain ("*"); // स्थानीयहोस्ट, 192.168.0.19 सुरक्षा। लोडोपॉलिफ़ाइल ("http://abcomp01.thaifasthost.com/crossdomain.xml"); } फ़ंक्शन परीक्षण (): शून्य {var url: स्ट्रिंग = "http://bbs.pramool.com/webboard/view.php3?katoo=j530492"; Var अनुरोध: URLRequest = नया URLRequest (url); Var लोडर: यूआरएल लोडर = नया य

c# - Assigning ease in functions programatically only -

For unfortunate technical reasons with the software I use, easily add to Functon for my user control elements Is impossible. / P> If, for the exam, I have a UserControl (which does not come in a Silverlight 3 project), and I want to provide the Bouncingfine function only for a specific control via C # How can I do this? Thanks Create a new bounce is object and to facilitate its ease Assign Your Animation

c# - Silverlight Scrollable Content Problem -

I'm new tester for Silverlight and I have a problem. I have a grid on a page that is resizable when the user changes the size of their browser window. I want to display dynamically added content in one of the grid columns, which is a scroll, because available space There is more data than is currently I have a scroll weaver with a stack panel, which I programmatically add a user control and then many uses Control Rta control depends on the amount of content. My problem is that Scroll Weaver does not respect the available space and as there is more data than the space, as if it displays outside the viewable area. That is, it does not use, it is not a scrollable nature. Hope this is something that I have missed, but I am currently beating my head against the wall. Any help received by gratitude. With view of XML, I guess the problem may be with the stackpayell. StackPanels do not display the scrollbar, when their content is very large I would suggest adding your UserCo

sql - triggers in new and old columns -

Why can not we use: New and: trigger the old column in a statement level? Because this case may be that the statement is inserting / removing / updating more than one line There is no new or old column. Example: Update FOO set one = 12 where b = 9; Remove or: from FOO where b = 9; Or: Put in FOO (A, B) Select X to X, X to X; If a statement is triggered in the FOO table, then no one in these three sentences can tell whether you have a single, single or multiple lines Are working on

Data storage in PHP Frameworks -

Actually, I am looking for a framework that helps me to use the "data mapper" pattern. I have noticed that many PHP frameworks have proposed an "active record" implementation ... I find "active record" very poor to manage "functional data" ... Also it seems simple to handle "complex transactions" with this pattern, or to handle non-DBMS backends ... Do anyone know of a PHP framework that is called "data mapper" Pattern handles? Or a PHP framework that handles "transactions" independently from DBMS? Coupled, here's the integration to do two. The following section tries to explain where the principle stands in the world of ORM equipment. Dictree ORM is primarily built around active records, data mapers, and meta data mapping patterns. The Data Mapper functionality will be provided in the 2.x release. Model refactoring extended beyond the current "active" record Data Mapper desi

Recursive File Search (PHP) -

I am trying to return files to a specified directory by using recursive search. I successfully achieved it, however I would like to add some lines which allow me to specify certain extensions, which I want to return. For example, return .jpg files only to the directory. This is my code, & lt ;? Php $ it = new recurring directoryererator ("L: \ folder \ folder \ folder"); Foreign currency (new recursive iterator iterator ($$) as file $ {echo $ file " & quot; \ n"; }? & Gt; Please tell me what I can add to the above code to get it, thanks

vcl - TImageList component for Delphi 7 Wich supports PNG Images -

Anyone knows a component that descends from TImageList and supports PNG images, and is compatible with Delphi 7 . Thanks in advance. Bye. I am using PngComponents in TPngImageList Edit New Link:

architecture - Your thoughts on "Large Scale C++ Software Design" -

Reading and suggesting that John Lacos' book, large scale C ++ software design Maybe Rosetta Stone for modulation At the same time, the book is really rare: many have never read it, and no pirate electronic copies float around. What do you think? I have read it, and it has something to do with big C ++ projects Consider a very useful book on practical issues. If you have already read a lot about C ++, and know a bit about the physical design and its implications, then you will not find much "new" in this book. On the other hand, if your build takes 4 hours, and you do not know how to press it, get a copy, read it and take it all in. You will start writing code better physically. / P> [edit] If you want to start from anywhere, and can not grab the book immediately, then I found it useful even after reading the large scale C ++ design.

.net - Recommended approach for linq to sql serialization for simple json and mvc -

मेरे पास एक .net mvc दृश्य में ड्रॉप डाउन सूचियां हैं और I जेसन प्रतिक्रिया समस्या तब आती है जब linq को एसक्यूएल प्रतिक्रिया सेरिअलाइज़ करने का प्रयास करते समय आईआई को एक परिपत्र संदर्भ मिलता है। मैं समझता हूं कि यह क्यों हो रहा है, इसकी वजह यह है कि मेरे पास खरीदार -> ठेके और अनुबंध - खरीदार संबंध हैं जो क्रमवार होने पर परिपत्र होंगे। मैं सोच रहा हूं कि अनुशंसित समाधान क्या है क्या मुझे एक नया जेसन विशिष्ट ऑब्जेक्ट बनाना चाहिए और फ़ील्ड्स को मुझे प्रतिक्रिया के लिए चाहिए? क्या रिसावों को अनदेखा करने का एक तरीका है जब सीरियललाइज़ करना और बस इस तालिका को वापस कर रहा है (मुझे इसके रिश्तों की आवश्यकता नहीं है क्योंकि यह सिर्फ एक बूंद की सूची है)। मेरे समाप्त होने वाले समाधान (मेरे छोटे प्रोजेक्ट के लिए) को संदर्भित इकाई को क्रमबद्ध करने से पहले सेट करना था। यह बड़े प्रोजेक्ट्स के लिए बहुत पुराना हो सकता है, जहां पर मुझे लगता है कि जेसन। नेट काम में आएगा।

java - Unit test helper methods? -

I have classes that were previously large scale methods, so I divided the work of this method into 'subsidiary' methods. . To declare these supporting methods, private is declared - though I want the unit to test large public statutes. Is it good to test the supportive methods for the unit, as if any of them fails the public law, the caller will also fail, and in this way we can identify why this is unsuccessful? A fake object will need to keep my visibility protected from private, is it desirable? Leave the same path as private and test it in the same package Then the test can call internal methods, but any other (= outside the package) can do. In addition, failure of internal methods causes error messages to be generated which makes it easy to fix the problem. When you put the code into the production, you will see less than the tests and you will be under great pressure to fix the problems. I spent a minute here and an hour later your boss would sit in his

XML response of webservice call in C# -

I'm calling a webservice in C # and returning an array of objects. How to get an XML string instead? Change the return type of the webservice method in a string, and make your data serial before returning it . Besides, why do you want to do this? If you are getting an array of objects, then what is not included in XML / SOAP?

c++ - Optimizing a pinhole camera rendering system -

I am creating software registrars for school, and instead of using traditional matrix calculations, I am using an unusual rendering method. I <<> "post-text" itemprop = "text"> This one is based. I have some points in the 3D space, and I change them by taking the distance between the 2D screen and the camera between normal and normalizing it Vec3 ray_to_camera = (A_Point-plane_pos). Normal ( ); This gives me directional direction towards the camera. Then I change the direction of the ray on the direction of the ray by placing the original of the camera and an airliner with a plane to a ray. Vec3 plane_pos = m_Position + (m_Direction * m_ScreenDistance); Float dot = ray work GettoutProduct (MDIRAction); If (dot & lieutenant; 0) {float time = (-mc screendistance - plane_poz.getototproduct (MDIRaction)) / dot; // If time is smaller than 0 then either parallel to the plane or if (time> = 0) {// actual realization point is getting a_Point -

ruby on rails - Why doesn't MyModel.all.each{|m| m.destroy} work as expected? -

I want to clear the table without leaving the database in my railway and migrating ... MyModel.all.each {| M M.destroy} I hope to remove every record in this code my_model table, but this is not happening ... using Rail 2.3.4 + MySQL 5.1. P> Edit: This issue was based on the plugin better_nested_set which did not allow me to delete entries in that order MyModel.delete_all worked on the other side, Maybe because of this database (?) use MyModel.destroy_all Execute truncate on Confirms delete all records of your model.

save datetime in mysql using php -

I have the table in mysql database, which is the datetime with the datatype field From time to time, I use "now ()" for this minute, but this does not work, It only saves in 000000000000 database is. php , then the correct format is: date ("Ymd H : I: s) "post-text" itemprop = "text"> "); update: minutes are expressed as i not m

windows - Visual Studio C++ Implement Interface -

I know in Visual Studio, when programming is in C #, if I specify that a class interface implements , Then I can right click on the interface and the "Implementation Interface", which will magically populate my method with appropriate method signing. EDIT: I should apologize for the ambiguity of the original question. I am exploring a quick easy way of doing dirty work to implement more than one com interface to Visual Studio, i.e. generating method signing / stub in the implementation class. Thanks, Alex Interfaces C ++ Are not present in IDE support for languages ​​is one of the perks of C # Visual C ++ is actually a different animal.

javascript - Include XML inline in a HTML file -

I am trying to include some (impressive) static XML data in an HTML file, and then click it Parsing with Testing the test below works fine in Firefox, Opera and Chrome (I get the list of nodes and hopes expected), but fails in IE8 (all the nodes are in the same depth, and the end tag nodes are included in the list ). Q: How do I fix code to work in IE? Code & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transitional // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "en" lang = "en" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Oh IE behavior - test case & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function p (text) {var out = document.getElementById ("output"); Out.innerHT

iphone - How to unit tests functions which return results asyncronously in XCode? -

I have something like - (zero) getData: (SomeParameter *) param {// Remotely calls for data returned data via a remote method -} (zero) handleDataDidet method: (NSDT *) data {// handle data returned} I want to write a unit test for this, how can I do something better than data returned from NSData * = zero; - (zero) handleDateDataData: (NSDTA *) data {returnData = data; } - (zero) test {[obj getData: param]; While (returned!) {[Entrad gold: 1]; } // Tested on Returned Data Your object Get the getData: method to call a counterfeit and check that it calls correctly. Call HandleDeliget Method: Another test method with some ready-baked data and ensures that whatever data it has given Is done with.

C++ creating image -

I have not been programming in C ++ for a while, and now I have to write a simple thing, but this I'm driving crazy I need to create a bitmap from a table of colors: four images [200] [200] [3]; First coordinate width, second height, third color: RGB How to do this? Thanks for any help, Adam I'm sure you already Checked. With that information we can write a quick BMP in hand: // setup header structs bmpfile_header and bmp_dib_v3_header before (see wiki) // * note a If you want to have a negative height for window bitmap if you 're starting from above * / * otherwise the image data is expected to go below * FILE * fp = fopen ("file.bmp", "wb") is; Filitt (bmpfile_header, sizef (bmpfile_header), 1, fp); FILIT (bmp_dib_v3_header, sizeof (bmp_dib_v3_header_t), 1, FP); For (Int i = 0; i <200; i ++) {for (J. J.L.;; J & LT; 200; J ++) {EFrite (and image [J] [I] [2] ], 1, 1, FP); Filitt (and image [ja] [i] [1], 1, 1, fp); Filitt (and

java - Refactoring multiple actionListeners -

I am currently working on some Java code, which has many appellantists, including each JButton ) And approximately 60 buttons, all of which are defined as anonymous internal organs in the JButton.addActionListener method. I was thinking to think that it seems to be very crappy as a way to refocus the code to make the sensor. I thought that maybe the audience can be taken to a different class which essentially puts the load of stable methods to return to each listener. This would mean that something like code addActionListener (GetActionListener.addActionListener ()) will appear. Although this will make it a nipper, I think that this is not really a great solution. I thought that the listener has a stable final map with the KV couple in the name of the listener as well. Yet still it does not seem like a very beautiful solution. I was wondering if anyone had any ideas? I should also say that all caretakers are very different. I say that ActionListener If you do this then

Need currently selected tab ID for jQuery tabs -

I know that I can get an indicator of the currently selected tab, but I can somehow get the ID ( ui.panel.id if it was started by a tab event ... but is not currently in the selected tab)? I do not want to use the index because I can not use style markup because of changing tabs because they can turn into future releases. Is there any way to do this? If not, can I use the index to use it in some way (perhaps by accessing the panel object first)? Any other ideas? You can use to target visible panels: $ ("# tab .ui-tabs-panel: visible"). Attr ("id"); It is worth noting that you can retrieve the active tab from: $ ( "# Tabs"). Tabs ({active: function (Event, UI) {console.log (ui.newPanel [0] .id);}});

flash - WCF: Issued Token authentication over Basic HTTP -

I am trying to create a WCF service that will use token-based authentication (hence I need to send a user name And password with every request) but I would like to keep the interface simple, basic HTTP (s), because I should be able to call service from flash It seems that the issued token authentication mode is used in WS- Federation (as well as SAML God be with STS also other complications like). Is it possible to use token-based authentication Basic HTTP? If not, what is the best way to fulfill this scenario?

Access NFS share from Java program -

I want to read some data from NFS share with my Java program. I will need the program to authenticate with the NFS server for the first time, then I / O (NFS shares that are not mounted earlier). Therefore, I would like to provide this library Want functionality: Besides NFS, is such a thing already made in Java, or do I need a third party library? I'm also interested in whether it can be done in Pearl, Python, or Ruby. But mostly Java I am the author of the NFS client in Java described above. Sorry for the long answer, I still have a copy, though I do not believe it is compatible with Java 1.4+. If there is a real interest then I can work on it.

objective c - Cocoa: Any downside to using NSSet as key in NSMutableDictionary? -

What is the use of NSSet as the key in NSMutableDictionary There is no downside to any, should be aware of any pass, any big performance hits? I think the keys are copied in the containers of coco, what does it mean that there is a copy in the NSSET dictionary? Or is there some customization that maintains the NSSET in this case? related example code: NSMutableDictionary * dict = [NSMutableDictionary dictionary]; NSAT * set; Set = [NSSet set with object: @ "A", @ "b", @ "c", @ "d", zero]; [Dict set object: @ "1" for: set]; Set = [NSSet set with object: @ "b", @ "c", @ "d", @ "e", nil]; [Dict setObject: @ "2" forKey: set]; ID key; NSEnumerator * enumerator = [dict keyEnumerator]; While ((key = [next object] [enumerator])) NSLog (@ "% @:% @", key, [dict octforforkey: key]); Set = [NSSet set with object: @ "c", @ "b", @ "e", @ "d

How to convert an image to data in iphone -

Can anyone tell me how to convert an image (PNG) into data to iPhone > NSDTa * picturedata = UIImagePNG report (image); The image here is a UIImage object

javascript - manipulating local variable with a callback in JS -

यहां jquery के साथ मेरा कोड है: फ़ंक्शन check_hotel_exists (मान, कॉल) {var url = बेस_यूआरएल + 'एजेक्स / चेकइनिक्एहॉटल'; Var प्रतिक्रिया = गलत; $ .get (url, {hotelname: value}, फ़ंक्शन (डेटा) {यदि (डेटा === 'सच') प्रतिक्रिया = सच;}); चेतावनी ((प्रतिक्रिया)? 'होटल मौजूद नहीं है': 'होटल अस्तित्व'); वापसी [प्रतिक्रिया, "वह होटल पहले से मौजूद है"]; } प्रतिक्रिया का मान नहीं बदलता है। मैं प्राप्त समारोह से कॉलबैक के साथ प्रतिक्रिया के मूल्य को कैसे बदल सकता हूँ? मैं एक सर्वर प्रतिक्रिया से चर डेटा की अपेक्षा कर रहा हूं जो कि या तो 'सच्चे' या 'झूठी' है। किसी भी मदद की सराहना की जाएगी।) मान बदल नहीं रहा है क्योंकि एजेक्स कॉलबैक को एक्टिविंग को एसिंक्रोनस के लिए प्रतिक्रिया सेट करना है, जब check_hotel_exists फ़ंक्शन से बाहर हो गया। async विकल्प को false पर सेट करके एजेक्स अनुरोध को निष्पादित करने के लिए संभव समाधान होगा। $। Ajax ({url: Base_url + 'ajax / checkuniquehotel', async: गलत, डेटा: {hotelname:

Bash environment variables and finding installation directories -

I have a script which basically launches an application and sets the parameter one of these parameters The location is now when you install it, the OpenOffice does not set an environment variable. What is the best way to install an application's location and caching that information, so you do not have to do I / O next time? What I was thinking was searching on / usr / only for the OpenOffice directory, which contains a specific file when it stores the directory in an environment variable and is checked in this script If the environment variable is set and there is a directory, then if you use it, do not search again. This script will allow the user to work without user interaction, but the user also allows him to set the path (since it is an environment variable). It looks like a "bad practice," so I hope someone might give me general information about how to get information about setting up a software if it helps, then open Office will be installed using mos

c - Is there a cross platform version of window vista's slim reader writer locks? -

I'm completely blowing away from the quality of the Windows SRW implementation, its fast then important class and its only byte memory overhead Are there. Unfortunately this is only Windows Vista / Windows 7 Since it is a pure user land implementation, does anyone know that there is a cross-platform implementation for it? Anyone there reverse-engineered solution? And please do not want me to add stuff like boost just pull in a less then 100 log solution. After the you want some "portable" in the sense of conforming to some standard ... you are using POSIX's formula is and friends. These are not normally but rather unix-type OSes. Was on Windows but but what do you mean if "portable" means "portable for many versions of Windows ..." are making some non-documentary calls in Ntdll which implements RW lock RtlAcquireResourceShared () and RtlAcquireResourceExclusive () Here are some prototypes:. zero WINAPI RtlInitializeReso

Scalability of Oracle Forms -

What is your experience about the scalability of the oracle form? What is the maximum number of maximum users using Oracle Form for 100, 1000, 10000, 50000? I know that there is not much information to be well established in this question. However, I am interested in the intestines of experienced form developers. Thank you. You can find this Oracle white letter useful:. One thing to consider is that the form is a "stateful" system, so the connected users will actually maintain the Oracle session. On the contrary, I believe in contrast to a "stateless" system (but there is no evidence to prove it) that would be better than APEX forms (i.e. with less hardware) scale. I am currently involved in an APEX project which was to use the 2000 basic application Oracle Form Original User, but we did not change because Form 2000 users could not scale for users (can do this) There were other reasons to do this.

python imaging library - Having trouble installing PIL in Snow Leopard -

I followed these instructions: And everything described Went in the form. However, in the end, I tried: dragon selftest.py to verify that everything is okay I have been working from, but I get: ***_imaging C module is not installed I then run Python interpreter and tried: ", In line 1, ImportError: Dlopen (/Library/Python/2.6/site-packages/PIL/_imaging.so, 2): Symbol not found: _jpeg_re Referenced from: sync_to_restart: / library / python 2/6 / site-package / pil /_iming. Expected in: Flat is on my first mac, so apologize if I am not clear, but nobody is helping you . The rendering could be greatly appreciated Thanks! The problem occurs because the jpeglib is not available as part of the standard for Leopard and Snow Leopard Mac OS X distribution The solution is as follows: - comp jpg lib - Make sure libjpeg62.dylib is available on your DLLLLRRIAPATH (you want to place it in places like / usr / local / lib) Useful instructions are availa

PKI verification across Java and Python -

I am trying to implement a PKI verification plan, where a message is signed on the string server with the private key , The signature is stored on the client with the message string. The client then verifies the signature using the public key. There are restrictions on my environment, the server is Google App Engine and the client is Java program. I have played with Java only-and python-only solutions of PKI validation and went to work them, but While taking an action in Python and causing another issue in Java, mainly because of my understanding of key file format restrictions and cryptography vocabulary. Crypto support in GE is one of the biggest limitations. The only supported library is PyCrypto and this library can not read public / private keys stored in PEM, DER or X509 formats. As far as I know, only MCCRPT supports reading from these files, but it can not be used inside GAE because it is a wrapper around OpenSL, so there is no pure Python solution even If I can get a w