Posts

Showing posts from July, 2010

php - How to provide Return URL Verification with OpenID? -

I am using PHP OpenID library from my site. However, I realized that I need to support return URL validation. How can I do this class? I posted through the documents but I could not find anything. EDIT: This forgot to mention a consumer application. There is a blog post here.

hosting - Can a website be hosted on 2 servers? -

I wanted to change my hosting company, but then I thought of hosting one of my servers in 2 servers, I know it is possible how can this be done? I need one of my hosting sites hosted by 2 servers (2 different hosting companies) Can it be any problem without any problems? If you are developing with asp.net, it basically supports the so-called web form And it is not difficult to establish although there are some warnings Local machine in-memory cache functionality does not work more clearly now, and any session state must be configured to manage by state server and session All the values ​​kept in the simple scaler Must take or at least must Sirijlaijh.

php - Break in Smarty's / Dwoo's foreach -

के बारे में break foreach ($ data as $ k = & Gt; $ v) {यदि ($ k == 4) {ब्रेक; }} हर कोई जानता है। क्या Smarty या Dwoo में समान है {foreach} फ़ंक्शन? आपको अपना तर्क php में रखना चाहिए, न कि टेम्पलेट में हालांकि, आप अपना स्वयं का कंपाइलर प्लग इन लिख सकते हैं: फ़ंक्शन smarty_compiler_break ($ ​​सामग्री, और $ smarty) {वापसी 'break;'; } और इसे अपने कोड के रूप में compiler.break.php में सहेजें। अब टेम्पलेट में आप { तोड़} ।

Can you get selective cut-down versions of jQuery and Sizzle? -

JQuery is progressively getting bigger and bigger but, 50% of my functionality is never used. For example, I never use wrap and I do not need live () . Besides, I have always used most of the selectors Do not I Are there any projects, which are small in the JPY Library Make cut-down packs? It is not that I am aware, and possibly for good reason. You can never explicitly use some of these things, but you can find that some functionality you use is not in vogue. JQuery functions call you. I suspect that the way you want, different aspects of jQuery and the interval is not really easy due to the implicit inter-dependence. There is an helpful support aspect too if we can get jQuery cut-down versions in this way, then this library can open up to unchanged bugs. Imagine that the jQuery team will support a library that could have been hundreds of thousands of people all over the world, possibly in thousands of physical editions, which could all have full size, minifid

Sinatra on Passenger always fails on first attempt -

I have a small sinaat app that I am running on a shared hosting account using passenger. However, after some time the app is accessed for the first time, I get a passenger error page, which states that the application could not be started. Generally because Sinatra could not be found. I assume that this is a new delay since a normal delay occurs. However, as long as the passenger is not fully loaded, then there is no way to delay trying to load Siantra? Resolved the problem by setting the GEMS_PATH environment variable in .htaccess file . I have not encountered the error again right now!

logging - Programmatically Log/Tail Browser Activity with Ruby to a File? -

How do I access this activity log information programmatically with Ruby? (This is the activity window from Safari)? Can I use mechanisms to impose all these information (duration, size, address, etc.) in XML, or is it stored anywhere on my computer in advance? If you talk about your ruby ​​on the log of rail Then they are located in RAILS_ROOT / log > and then broken by every environment, you will be able to create each for development, production etc. Must have a log. If you are on the windows then you want to see it sweeps Microsoft's log parser privately, what information I wanted, log out to exit to remove it and then Use high-level analysis and Ruby to display that data.

git - Why do I get a Windows file permission error (IO Error 13) with Android SDK when writing to files starting with a dot? -

Titanium accessor running 0.8.1 on the Windows XP Virtual Machine with Android SDK 2.1 To get the following error, to get the following error, create / install applications: [trace] f = open (os.path.join (dest, dest_file), "w ") [TRACE] IOError: [Erro 13] Permission denied: 'C: \\ Documents and Settings \\ First Name \\ Desktop \\ MyApp \\ Build \\ Android \\ Classpath ' Removing Classpath Results. The square path is being created, but the error runs only on the next file that he has to write. The files are in a GIT repository, checked out via the messaging, but only one error occurs when the files are copied directly from the GIT server to the Windows machine. Unfortunately, the Titanium Dev app will not rebuild the Android package for any existing app if the build \ Android files are disappearing, so it is not possible to check it in git only. Correct Permissions - Written by the current user account, the read-only flag is not set (checked through &

What would cause MSMQ to place messages destined for queues on the local system into the "Outgoing Queues"? -

MSMQ maintains a type of queue called "Outgoing Cues" The queue messages destined for the server by MSMQ service When used to keep it, it can not be contacted when the message is generated. These special, temporary queues that are different from the general public and private queues. I have recently encountered a situation where some messages are set for the local system (i.e. the computer that generates the message) in one of the "outgoing quoices" Ends when drilling in outgoing cues with management console can see that the destination has the right path information for local systems and queue. In this special scenario, the messages organized in these "outgoing quotes" are never distributed in the correct queue. Staying there, effectively lost. Few messages destined for queues on local systems are included for the same queues listed in "outgoing quizzes", are delivered exactly. When messages end in "Outgoing Cues", they seem

sql - Selecting data from two mysql tables in one query -

I have two tables, landlords and properties are my property table; ID, address, postcode, lease, and landlord ID The problem I have is: If I want to find all the qualities that Mr.Spina is in the form of their landlord then I would like to find the names of the landlords to find the name "spin" Which is saved in the property's database, from which I can remove the details details. I thought it would work, but it's not right: & gt; Select property property.ID, property.address, property.postcode, property. Please, landlords. First name, landlords. Join landlords from property properties in INNER landlords. First name '% spina%' or '% spina%' like landlords.lastName I have attached images of table structures. Landlords: Permission of only one link Properties: Entering "Spina" in the field The result should be: Only one link permission Here is my removed code ... pre> & gt; If ($ Field == "Landlord&quo

c - How to Use LLIST *mylist[N]; -

मुझे यह मिलता है: लिस्ट * मेरीलिस्ट [एन]; जहां एन इनपुट फ़ाइल की पंक्तियों की संख्या है। फिर mylist [i] I लिंक्ड सूची में एक सूचक है। मैं एक फ़ंक्शन कॉल करता हूँ LLIST * list_add (LLIST ** p , Int i) {LLIST * n; N = (LLIST *) मॉलोक (आकारफ (एलआईएलआईएसटी)); अगर (n == नल) वापसी नल; N- & gt; अगले = * p; / * पिछले तत्व (* p) अब "अगला" तत्व बन जाता है * / * p = n; / * सूची के सामने (हेड) में नए खाली तत्व जोड़ें * / n- & gt; डेटा = i; वापसी पी; } तो मेरे मुख्य में मैं कुछ ऐसा कहता हूं लिस्ट * मेरीलिस्ट [एन]; list_add (& amp; MyList [0], 1); list_add (& amp; MyList [0], 2); List_add (& mylist [1], 3) list_add (और मेरीलिस्ट [1], 4); list_print (MyList [0]); // मेरीलिस्ट प्रिंट करें [0] सूची_प्रिंट (मेरीलिस्ट [1]); // प्रिंट मेरीलिस्ट [1] मेरा प्रिंट_सूची कार्य है: शून्य * list_print (लिस्ट * n) {if (n == NULL) { Printf ("सूची खाली है \ n"); } जबकि (n! = NULL) {printf ("% d", n- & gt; डेटा); N = n- & gt; अगला;

c++builder - c++ builder, label.caption, std::string to unicode conversion -

Just need to set lbl.caption (inside a loop), but the problem is that I thought that is big. I have also tried with vector vector, but there is no such thing as I've read some pages, tried some functions like widescreen (), UnicodeString (), I know that I am using Unicode C ++ Builder Can not stop or not in 2010 std :: vector & lt; Std :: string & gt; Mystrynwek (20, ""); MyStringVec.at (0) = "Some Text"; Std :: string s = "something"; // This works .. Form 2- & gt; LL.LTDTTE1- & gt; Caption = "some simple text"; // Both lines have the same error in Form 2-> gt; LblTxtPytanie1- & gt; Caption = myStringVec.at (0); Form 2- & gt; LL.LTDTTE1- & gt; Captions = s; Error: [BCC32 error] myFile.cpp (12 9): E2034 'std :: string' can not be converted to 'UnicodeString' This I ate for a few hours. Is there a "quick and dirty" solution? It's just a matter of working ... UPDATE

c# - Temporarily save Word document changes -

I am using Interop to create a "custom word editor", basically I have MS Word And I allow users to edit a document and insert a custom field from the predefined list. I provide a "preview" option to see how the document will appear when the document is added. Users can start editing a template on my application, and they can hit preview at any time and the preview should appear with the latest changes. I want the user to be able to preview the document without saving the changes. The problem is that when I call SaveAs () on the document (to create a temporary file that I can use as the input for the preview generator), the editor opens the template document. Is the way to edit a copy of a document being edited, but keep the original (open) document without saving your changes? Thank you very much I know that this may be pre-2007 In ver, in ne, as described. Unfortunately, this solution does not work in Word 2007. How about using a temp file fr

java - How can I get an existing JMS queue? -

I think this is probably a very simple question, but this is my first one in JMS, so I'm a bit unsure . I am trying to write the existing JMS queue (and then read from the second line), for which I know the queue name, host, queue manager and channel. How do I get the reference of this line as an javax.jms.Destination object? All the examples I've found include calling javax.jms.Session.createQueue , but since this queue is already present, I do not have anyone else Want to make it, right? If it matters, then I am using the com.ibm.msg.client.jms driver. Thank you! Normally, the container in which your application runs is named after the queue will be bound. An application in container can see it with JNDI and can use it.

xul - using popupNode in a javascript firefox extension -

I'm trying to use Popapadod in a slightly javascript-based Firefox extension. So if a user right-clicks a link and then clicks on additional menu item, a new tab opens with a link (like "Open in a new tab"): `var foo = {OnLoad: function () {// initialization code this.initialized = true; }, onMenuItemCommand: function () { var tBrowser = document.getElementById ("content"); Var target = document.popupNode; Tbrowser.selectedTab = Tab; Var tab = tabroauzer.editab (target); }}; window.addEventListener ("load", function (e) {foo.onLoad (e);}, incorrect); ` It mostly works, but I am thinking that it is the right use. The problem is that I want to change some characters on var target, but do not work in any way partdoes will cause some problems like Target.replace () so I'm guessing target is not a string. Most of all I would like to know is what popappode really does ... thanks Peter I really do not use "poppadod" But

linked list - Referring to "C - Help understanding how to write a function within a function (list_map)" -

I have only one professor: I've read the forum: It is very useful in understanding the function, but I am not sure that I am using it right ... This is my code. Tell me if I am on the right path. . Let me assume that I have an array of 10 linked lists in which linked lists are present Now I would like to sort the list that calls list_map (); Function So my main looks like this: int x = 10; List * MyList [x]; Barzowo (Marylest, Psychof (LIIST *) * X); . . {// Segfalt list_map for (I = 0; i & lt; 10; i ++) (my list [i], sort); Map My list_map looks like this: zero list_map (list * list, zero (* f) (zero *)) { Printf ("sort"); F (list); } and sort: zero type (list * n) {// sequence code} Error me when segmentation is a mistake when I run it. Please excuse the lack of code, I work my sorting function, I have already tested it and it prints each list. If you need to see something in more detail then let me know that I will provide it.

sql - mysql wildcard (ignore one/two characters in search) -

I am trying to update the tables in my WordPress MU database, I want to update all the wp_options tables, this table The following are: wp_1_options wp_2_options ... and so on. How do I affect all tables with wp_any-character-here_options? I tried to query for: UPDATE wp _% _ option SET option_value = replace (according to option_and 'http://www.old-domain.com', 'http : //www.new- Domain.com ') WHERE option_name =' home 'or option_name =' siteurl '; ... but mysql complains that I have an error in syntax ... You can not make a wildcard UPDATE statement - You must type a UPDATE statement for each table. Unchecked: Start the cleaning process () I def DEFAULT 1; Prepare STMT before "Update" SET option_value = REPLACE (option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name IN ('home' , 'Cyclical') "WHILE i & lt; = 10 EXCUTE STMT USING CONCAT

How malleable are the conventions in ASP.NET MVC? -

Specifically, the name of a controller class should have a controller suffix, and you change it If you want you to structure the folder in your project without breaking things? Is there any other conference that can be overridden, and how? Most conventions are made abusive, provided you know how the structure is running. To deal with the biggest conventions: "Admin" / {action} / "Magic Search Li> The way you create it is associated with an example. By default, a MvcRouteHandler object is used when dealing with incoming requests, as mentioned here. MvcHandler's ProcessRequest looks like: Protected Virtual Virtual Zero ProcessRequest (HttpContextBase HttpContext) {this.AddVersionHeader (HttpContext); String required string = this.RequestContext.RouteData.GetRequiredString ("controller"); IControllerFactory Controller Factory = this.ControllerBuilder.GetControllerFactory (); ICController Controller = ControllerFeature Composit

detect color space with openCV -

How can I see the color space of my image with openCV? I'm sure that it is RGB before converting it to another using CVVTTlor () function thanks Unfortunately, OpenCV does not provide any indication of any color sign in the IplImage structure, so if you blindly lift an IplImage from anywhere There is no way to find out how it was encoded. In addition, no algorithm can definitely tell you that the image should be defined as HSV vs. RGB - this machine is just a bunch of bytes (should be HSV or RGB?) I tracked you I recommend wrapping your IplImages in any other structure (or template with a C ++ class!) To help you keep it in. If you are really desperate and you only need one If you are working with some types of images (external view, office, face, etc.) then you can try to calculate some figures on your images (like creating histogram figures for natural RGB images and some natural HSV images ), And then try to classify your completely weird image, which is close to yo

CSS: Problems with selecting html elements from CSS -

I want a form style in html using CSS This is a very simple form, so I was not expected to get any problems with the CSS selectors. But still, when I'm trying to add something like this: #Mententant # with left_action #comments {margin: 100px; } or #comments {margin: 100px; } I do not see any effect. Sorry, I think I'm not very descriptive, but it's not sure how to describe the problem ... maybe you have a look at the demo URL here: And tell me how to fix the form to fix my CSS? (Well I really need to reach it first) Thank you in advance You forgot to close : div.pagination span.disabled {padding: 2px 5px 2px 5px; Margin-right: 2px; Border: 1 px solid # f3f3f3; Color: #ccc; display none; Change To do this: div.pagination span.disabled {padding: 2px 5px 2px 5px; Margin-right: 2px; Border: 1 px solid # f3f3f3; Color: #ccc; display none; } } But I think if you add something like this: form label {width: 100px; Display area; Sw

regex - javascript regular expression to remove trailing numbers in parenthesis -

How do I some (22) string to some I can change it, it is not always used to use any type of expression that is in any form, but the part (integer) is always the same. Cheers Edit I think this is a little confusing (even for me) Here is what I mean. I have a string - a word in which alpha expression (a word, any word) is to open a single space and inside the paranthesis and the interior, I now change the spaces, paranithesis and integer with nothing to change And just want to leave the alpha part of the string. Ex: java (77) javascript (22) car (11) carpet (15) after Regex Look like this: java javascript car carpet Note that each word is rejeked individually, I have written some examples So that things can be more clear in reading and understanding. Thanks Here it is: var text = "Java ( 77) Javascript (22) car (11) carpet (15) "; Text.replace (/ (\ w +) \ (\ d + \) / g, "$ 1"); // Returns the returns of "java javascript car c

c# - Random access and BinaryWriter? -

I am working on a project where I am creating a byte array which is almost like the order of the object graph is. Each class is responsible for writing their data, so I'm thinking of using a binarywriter and I pass that object to my children's objects and make them temporary buffers (byte arrays) and make them Rather than merging them, they are serialized in themselves. However, I have to fill each childhood with a byte which specifies the size of the lower block, but unless the child has not written all the data, then it is not known, and at that time As far as the author is located at that place, the end of the childbender I can definitely make a temporary buffer and the child can pass a temporary binderer and after this I want to write the data to the "main" binary writer, Ekin it seems like a Hashis solution. Is there any alternative solution? Is it possibly a bad idea to tamper with the situation of binarywriter? I would probably like to avoid creating te

Jquery Width / Height Calculator based on aspect ratio? -

I have a small form with some text boxes on it and in the end there is a button that is with a specified aspect The ratio (in the hidden text box) enables the user to type values ​​in the width box, and when the user changes the value, the height text box will also change .. Also, when you type in height box the width will change . I do not want anyone to do this to me, but I'll need some help which to run to install jquery functions when I change the text into a lateral text box. Any help, guidance will be great .. Thank you very much Chris Welcome to Stakeoverflow. You can do something like this: $ ('# widthboxId'). FocusAut (function () (var height = $ (this) based calculation '#hiddenRatioId' based on .val () // $ $ ('# heightBoxId'). Val (height);}); You can reverse with the height box.

permissions - ACL on field level in Grails -

In our new software project, we have the following requirements: A webpage will show a set of data. This data is editable by some users (assigned to roles, i.e. manager) and will be viewable only by others. This difficult part has been described by an example: The user page contains address data and account information. Adenas data will be editable by the user and the manager and will be viewable by all users, while the account information can only be viewed by the real user and the manager. I have read a lot of information about Spring Security. It provides a great framework to allow URLs and methods and even on domain classes. But I need field level ACL. So, the question is how to solve this problem using Grails? Thank you very much, <<> itemproc = "Text"> Spring Protection (Asegi Plugin) is definitely a way to go with Grails. You can use one that will allow a page to isolate for different roles such as:

c# - Using generic types with an asp.net user control -

The second day I created a user control that dynamically creates a data display from a custom custom object. It works well, but I would like to use control in other applications and the way in which it is currently explained, it is all equal. In my custom user control, there are just basic HTML controls and some internal properties so I can use them from my second class. In the same assembly, I have a class data manager - it has a reference to an IMEmable and its related user control. The problem is that I have to handle the details of the implementation such as printing the page on the page_ant by calling the page, because there is no knowledge of T in the real user control. Is there a way for the user to control a common type of things, or to specify the data, to store the context of the datamigrator object? Thank you for your help! Here are some ideas, ideas: But the challenges are facing because you have tightly connected data access (presentation of data) and

python - Pretty printing a list of list of floats? -

Actually I have to dump the series of temperature readings in a text file. It's a delimited list of elements, where each line represents something (I do not know, and it just forces Fortune model, shudder ) to get it from our group I'm handling more or less, which is removing those temperature readings and dumping them into a text file. Basically a quick example I have such a list (but with a lot more elements): temperature_type = [[1.343, 348.222, 484844.3333] , [12349.000002, in the past we have put it in a file, unfortunately there are some people who want to appear directly on the text file, and want to select something. Columns and some things are changing (for testing .. I really do not know ..) but they always complain about the column that they are not properly upstairs, they print the list above Are: 1.343 348.222 484844.333 12349.000002 -2.433333 So the line above those wonderful decades is an easy way to do this? You can do the right pad like thi

Why am I getting dups with random.shuffle in Python? -

Image
For a list of 10 ints, there are 10! Why possible order or permutation is random after only 5000 attempts? Does Schlämt duplicate? & gt; & Gt; & Gt; L = class (10) & gt; & Gt; & Gt; RL = list ()> & Gt; & Gt; In the I category (5000): ... random. Shuffle (L) ... RL.Append (L [:]) ... & gt; & Gt; & Gt; RL = [tl (e)]> gt; & Gt; & Gt; Lane (Set (RL)) 4997 & gt; & Gt; & Gt; I, for EN enumerate (RL) t: ... if RL Cotet (T)> 1: ... printed, t ... 102 (7, 5, 2, 4, 0, 6, 9, 3, 1, 8) 258 (1, 4, 0, 2, 7, 3, 5, 9, 6, 8) 892 (1, 4, 0, 2, 7, 3, 5, 9, 6, 8) 2878 (7, 5, 2, 4, 0, 6, 9, 3, 1, 8) 4123 (5, 8, 0, 1, 7, 3, 2, 4, 6, 9) 4633 (5, 8, 0, 1, 7, 3, 2, 4, 6, 9) & gt; & Gt; & Gt; 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 3628800 & gt; & Gt; & Gt; 2 ** 19937 - 1 431542479738816264805523551633791983905393 [snip]> gt; & Gt; L = list ()> & Gt; & Gt; In the I category (5000): ... el.appand (r

subset - Subsetting in R using OR condition with strings -

I have a data frame with 40 columns, the second column, the data in the [[2]] company name is the remaining row data Description of. However, the names of companies vary depending on the year (nothing behind 09 for data, 2010 for 2010) I would like to be able to minimize those data, which That I can pull together in two years. Here's an example of what I'm trying to do ... subset (data, data [2] == "company name 09" | "company name", drop = T) Basically, I'm having difficulty using the subset function or operator. However, I have tried other options: subtitle (data, data [2]] == grep ("company name", data [2]])) Perhaps this is a string function An easy way to use? Any ideas will be appreciated. First of all (commentary made in Jonathan) In the context of the second column, The data should use [[2]] or data [2] . But if you are using a subset, you can use the column name: subset (data, company name == ...) . And

How, using jQuery, might I obtain the src attribute of a HTML img element? -

The mouse cursor runs on an image, I would like to display a warning () that image The value of the src attribute of You can use this event. If you have & lt; Img src = 'foo.jpg' id = 'bar' & gt; You may have some jQuery code such as $ ('# bar'). Mouseover (function () {warning ($ (this) .attr ('src'));}); (If this fails, you would replace $ (this) in place of $ ('# bar') Try it, but as noted, it is very ugly in the comment) EDIT: missed the need to show the src attribute for the first time ..

operator overloading - c++ overloaded method in derived class -

मेरे पास निम्न प्रश्न है: विधि के साथ आधार वर्ग ए मान: & amp; ऑपरेटर + (ए और ए) {...} मेरे पास एक व्युत्पन्न वर्ग बी भी है जो अधिभार (या कम से कम ऐसा करना चाहिए) इस विधि: < कोड> & amp; ऑपरेटर + (बी एंड बी) {...} समस्या यह है कि अगर मैं ऐसा कुछ करना चाहता हूं: b + a (जहां बी टाइप बी और प्रकार A का है) मुझे एक संकलन त्रुटि मिलती है (त्रुटि C2679: बाइनरी '+': कोई ऑपरेटर नहीं मिला जो कि 'ए' (या कोई स्वीकार्य रूपांतरण नहीं है) का दायां हाथ प्रचालन करता है)। उस आधार क्लास पद्धति को कॉल नहीं करना चाहिए? (ऐसा लगता है कि यह विधि को ओवरराइड करता है ..) यदि नहीं, तो क्यों? यह ठीक करने का एक तरीका है (मुझे ए के साथ बी में विधि अधिभारित करने के लिए मत कहो); क्षमा करें मैं प्रारूपित पाठ में उदाहरण नहीं देता, लेकिन मैं इसे प्रारूपित करने के बारे में नहीं जानता। अग्रिम धन्यवाद! PS I का उपयोग Visual Studio 2010 बीटा। नहीं, यह नहीं होगा बेस क्लास फ़ंक्शन को कॉल करें। कक्षा बी में एक ऑपरेटर + है, यह सही पैरामीटर, कहानी का अंत नहीं लेता है। आ

Eclipse (on Ubuntu) do not have jsp, html and other web-files template -

I have assumed the eclipse using the Synaptic Package Manager (Ubuntu 9.10). However, there are no HTML templates (in the new dialog) or JSP templates in my eclipse. How can I fix this so that I will replace some HTML and JSP templates? Receive from the eclipse plugin and select web developments to solve the problem.

Javascript: how to change form fields value with single click -

I am trying to set the value of three different input text fields with an onclick function. I have an image with this image ... & lt; Img src = "images / delete_row.png" width = "25" onClick = "clear (0);" / & Gt; And I have three input text fields in which everyone has the ID of "0". When I click on my image, I want to set the value of all the three fields Thanks! First, you should have your own id values ​​separated by . You should never be on the same page twice on the same ID Use it as an example HTML: & lt; Input type = "text" id = "name_0" name = "name" /> & Lt; Input type = "text" id = "phone_0" name = "phone" /> & Lt; Input type = "text" id = "email_0" name = "email" /> You can use this JavaScript function: & lt; Script type = 'text / javascript' & gt; Function empty row (id)

WPG browser text size or zoom -

Is it possible to adjust the "size" adjusted output of the browser, ie text size or zoom out? I want to make a small browser visible on a form, such that an HTML page will preview that way as an HTML page. So such an ID is as small as possible Any ideas on doing this? not exclude

mysql - What is the SQL query for finding the name of manager who supervises maximum number of employees? -

person_id | Manager_id | नाम | | | | ------------------------------- प्रबंधक का नाम ढूंढने की कसौटी जो पर्यवेक्षण करता है अधिकतम कर्मचारियों की संख्या? जोड़ा गया: यह एकमात्र तालिका है हाँ स्वयं संदर्भित डीबी है mysql पुनरावर्ती प्रश्न भी करेंगे। यह आपके लिए पूरी तरह स्पष्ट नहीं है कि आप क्या चाहते हैं, यदि आप चाहते हैं तो कृपया अपने प्रश्न को स्पष्ट करें। यदि कोई टाई है तो यह क्वेरी केवल एक प्रबंधक को देता है: SELECT T2.name (सेलेक्ट प्रबंधक_आईडी से तालिका 1 WHERE प्रबंधक_आईडी नॉन ग्रुप द्वारा नॉन ग्रुप द्वारा गिनती (*) डीईएससी लिमिट 1) एटी टी 1 जॉइन टेबल 1 एएस टी 2 ऑन टी 1। मैनेजर_आईड = टी 2 पीसरन_आईडी क्वेरी का परिणाम: यहाँ एक ऐसी क्वेरी है जो सभी प्रबंधकों को बंधे हुए अधिकतम गिनती के मामले में प्राप्त करती है, जहां टाई होती है: से चुनें नाम (चयन प्रबंधक_आईडी, COUNT (*) व्यक्ति से सी के रूप में WHERE प्रबंधक_आईडी प्रबंधक नं। द्वारा नल ग्रुप नहीं है) के रूप में शामिल करें (चयन करें COUNT (*) व्यक्ति से सी के रूप में WHERE प्रबंधक_आईडी नॉन ग्रुप द्वारा प्

javascript add prototype method to all functions? -

Is there any way to add a method to all Javascript functions without using the prototype library? On the lines of something: function.protipipip.mpp name = function () {returns dowhetto (this)}; This is yet to me, but it did not work. Maybe it's a bad idea too, if you please tell me why? If this is the case, then I can add it to a set of tasks that I choose. Something like this: MyFunctions.prototype.methodName = function () {Returns dowetto (this)}; Where my function is an array named function thanks Surely the functions are: var foo = function () {}; Function.prototype.bar = function () {warning ("bar"); }; Foo.bar (); "bar" will warn

algorithm - How to separate object from background in an image? -

I have a block image, looks like this: // Posting pictures to me Is not allowed because I am a new member, so only the link: // I can not post two hyperlinks, so I am only posting the link to the map file. > Edit: I believe I can now post images: I have a map There is also a file which clearly shows segments: Now, what I need to do is to create a binary image file that only deer white paint in the center, the rest are painted Is black colored What methods do you suggest for merging? There is something like this in my mind: Calculate the color average for each segment. Compare them and merge the most common sections. If I do this, then I end up with 3 sections: floors (white part), wall (black and light brown part joint) and object (gray part). What could be done at this point to get the object properly? Note that the object does not have to be in the center, it can also be partially off-screen. (I also thought about counting the area takes each s

Double not (!!) operator in PHP -

डबल नहीं ऑपरेटर PHP में क्या करता है? उदाहरण के लिए : वापसी! $ पंक्ति; ऊपर कोड क्या होगा? यह नहीं है "डबल ऑपरेटर नहीं", यह नहीं ऑपरेटर दो बार लागू हुआ है सही ! एक बूलियन का परिणाम होगा, चाहे ऑपरेंड की फिर बाईं ! उस बूलियन को नकार देगा इसका अर्थ है कि किसी भी सच्चे मान (शून्य से शून्य, गैर-खाली स्ट्रिंग्स और एरेज़ आदि) के लिए आपको बूलियन मान TRUE मिलेगा, और किसी भी गलत मान के लिए (0, 0.0, NULL , खाली स्ट्रिंग्स या खाली एरेज़) आपको बूलियन मान FALSE प्राप्त होगा। यह एक कलाकार के लिए कार्यात्मक रूप से समतुल्य है बूलियन : रिटर्न (बूल) $ पंक्ति;

sql - Oracle 10g Float format -

How can I return the float / decimal value with the following: SELECT 210 FROM DUAL ... To get: 210.00 ... instead of < Code> 210 ? pl / sql oracle 10g select TO_CHAR (210 , '99 9. 9 ') with double; More to_char related formats.

math - How can I generate random samples from bivariate normal and student T distibutions in C++? -

What is the best way to generate random samples from normal BitTech normal and student T distribution? In both cases, Sigma is one, 0 mean - therefore only the only parameter that I am really interested in is a correlation (and degree of independence for the student) I should have a solution in C ++, so I unfortunately already implemented Can not use functions from MatLab or Mathematica You can use the GNU GSL libraries for general reasons here: < P> And the student's T-distribution is here: They are straight forward to use.

c# - How can I calculate individual point masses? -

Image
I am working on the C # 2D soft body physics engine and I need to give the collectors of the object: The total mass for the list object, and the center of the mass. The center of mass is given as: Where, r = center of mass m = total mass mj = peak jr j the mass = peak j's position I need an algorithm that is available for every M.J. Can be given R, M, and RJ. Edit: I just want to make it clear that I know that there is an endless set of solutions. I am searching for a quick algorithm that finds a set of MJ (As if they are close to each MJ = M / [corner number] and where "enough" is defined as some small temporary point boundary). In addition, each object will contain approximately 5 to 35 digits. You can calculate the chief minister of an equally dense polygon as follows: 0 .. N-1 to N, and cyclically treat them, so that the top n is wrapped for the top. total_area = sum [i = 0 ... n -1 ] (X [P] [i] P (I + 1)) / 2) CM = equal [i = 0 .. N-1]

c - How to get opencv include work in kubuntu? (Includes solution to how to include and link in netbeans 6.7.1) -

I have installed opencv c libraries from package management in my kbantu 9.10. I have written a small image modification program which uses those libraries, but I can not compile it, because every time I try to compile, I get an error message that the OpenCV library does not work Can get it. Those header files are in the folder / usr / include / opencv / but still the compiler says that the function is not available. I have tried to include them basically #include & lt; Highgui.h & gt; # Include & lt; Cv.h & gt; In Netbeans, command (and I have set Netbeen to search header files from that specific directory) and also tried to include them with full path. Add # & lt; /usr/include/opencv/highgui.h> Include # and //// Besides this, I tried to compile my source file in the console (with full path), but then I got the same error message that those libraries could not get the job done. Edit: I get the error message Undefined context for 'f

objective c - Reusing NSMutableArray -

While trying to reuse existing liters (to save memory), I need some leaks (obsolete by device ) Are getting. Actually I am creating an NSMutableArray, filling it with objects (UIImages) and pass it on to another object which retains it. However, now I need to use an NSMutableArray again, I thought I would clear all of my items, empty it, and everything would be fine, but the device reports that calair leak object (??) That's what looks like: NSString * file name; NSMutableArray * arrayOfImages = [[NSMutableArray alloc] init]; // fill the array with images (int i = 0; i & lt; = 7; i ++) {fileName = [NSString stringWithFormat: @ "myImage_% d.png", ii] ;; [ArrayOfImages addObject: [UIImage imageNamed: fileName]]; } // Create a button with array AButton = [[with customButtonClass button type UIButtonTypeCustom] initWithFrame: someFrame imageArray: arrayOfImages]; // Release for your objects (Int ii = 0; I & lt; [ARROIFIge count]; I ++) [[ARROIF images] Object

Tomcat6 in Debian? -

Can someone explain me the status of Tomcat 6 in Debian? My confusion arises from the fact that I can get a "normal" (?) Package in a "source" package and under the preservation (trial release) in the (stable release) release. Applicable link: What is the difference between the source package and the 'normal' package? Does this mean that I have to compile a tanker from the source in Landy, but will it be squeezed directly to set it right? I am also a bit confused as to why Java has a sub-section in its package list in Squeeze but I do not think it can be a new plan for the new version only? I hope this programming is related to SO good enough, it did not seem that it was applicable to ServerFault. Thanks in advance for coming up with my Debian Nubienes: P A piece of software (like Tomcat, Apache 2, GTK +, Kernel) has been converted to a source package. A source package adds the original script code (as you will download it from the project&#

uidatepicker - Simple jQuery UI DatePicker question -

Maybe I'm really asking stupid questions here, but how can I update an input field with a date if Datepicker is attached, do not want to use the AltField function for a div because I want to use it to display a user-friendly output to the site user. Thanks You can use altField for hidden input and some And to tie the event of this hidden change (aka show user-friendly output). $ ('selector'). Dadepeker ({altField: '#actualDate'}); $ ('# Actual date') Change (function () {...}); Or use the event. $ ('. Selector'). Datepicker ({on select: function (dateText, inst) {...}});

javascript - click-event doesn't fire if blur changes layout -

I have a field in which there are bound to be bound to the required fields. I then have a "cancel" button Which just calls the URL (button has an image with click-event). When you leave one of the required fields, then a warning is written on the page that area xy is required. -> This causes a layout change, which means that the buttons take a little down because of all the fields and the text given above. The hard thing is: when the focus is empty but the field is required and you click the cancel button, the required warning is written on the screen, but the click-on-click fire on the cancel button I do not think this layout is due to shift because the mouse cursor is no longer on the button, because the button has been scrolled down. Is there any good idea how can I solve it? Warning before changing / blurring events by voting you a setInterval function You can try to display so that until you have already done the 'Cancel' button, the RFU has a

windows - What is a windowless control? -

विंडोज के अंतर्गत उनकी कुछ को विंडोलेस कंट्रोल कहा जाता है। एक विंडोलेस कंट्रोल क्या है और इसके फायदे क्या हैं? एक विंडोलेस नियंत्रण एक है ऑब्जेक्ट जो आपको एक विंडो बनाने की आवश्यकता के बिना नियंत्रण का व्यवहार देता है यह तब उपयोगी होता है जब आप व्यवहार को संशोधित करना या विस्तार करना चाहते हैं, या जब आप उन स्थानों में व्यवहार का उपयोग करना चाहते हैं जहां एक खिड़की बनाने में अजीब या मुश्किल होगा। कहो उदाहरण के लिए, यदि आप प्रत्येक विंडो होते हैं, तो आप एक पृष्ठ पर सैकड़ों अमीर संपादन नियंत्रणों को छिपाना चाहते हैं, तो प्रत्येक को उपयोगकर्ता इनपुट प्राप्त करने के लिए फ़ोकस करना होगा, और प्रत्येक व्यक्तिगत रूप से पेंट करेगा आदि। < P> लेकिन अगर आप खिड़कीहीन नियंत्रण के स्थानों का ट्रैक रखने के लिए तैयार हैं और कुछ अन्य हाउसकीपिंग करते हैं जिसे आप सामान्य रूप से एक खिड़की (अर्थात रूटिंग कीबोर्ड संदेश) बनाकर मुक्त कर लेते हैं, तो आप निम्न ओवरहेड के साथ बेहतर परिणाम प्राप्त कर सकते हैं विंडोलेस नियंत्रण का उपयोग करना

Batch getting many bitmap resources on Android -

मेरे पास ग्राफिक्स की एक लंबी श्रृंखला है - icon1_0.png, icon1_1.png, icon1_2.png ..., icon12_0 Png, icon12_1.png, icon12_2.png - और मैं उन्हें अपने एंड्रॉइड एप्लिकेशन के साथ पैकेज करना चाहता हूं। आदर्श रूप से मुझे लगता है कि मुझे संसाधनों के रूप में उन्हें लोड करने में सक्षम होना चाहिए लेकिन संसाधन आईडी जावा आइडेंटिफ़ायर के रूप में स्थापित की गई हैं। बेशक, जावा आइडेंटिफ़ायर रनटाइम पर इकट्ठा नहीं किए जा सकते हैं। मुझे R.Drawable.icon12_00 के लिए पूछना है, इसलिए मैं (इन्ट फ़्रेम = 0; फ्रेम & lt; 3) के लिए (आईओसीएल & lt; 12; आइकन ++) के लिए एक लूप सेट नहीं कर सकता ; फ्रेम ++) / वाक्यविन्यास त्रुटि जाहिर है, बिटमैपफ़ैक्टर। डीकोड रिसोर्स (getResources (), आरड्रॉवेबल। "आइकन" + आइकन + "_" + फ्रेम + ".पीएनजी"); तो क्या उनके नाम से संसाधन प्राप्त करने का कोई तरीका है? बेहतर अभी तक, क्या संसाधनों के बाहर एक ऐड्रॉइड एप्लिकेशन पैकेज में पैक करने के लिए संसाधन प्रणाली के बाहर कोई वैधानिक तरीका है, ताकि मैं उन पर प्राप्त कर सकूं? मैं प्रतिबिंब के बा

Ruby on Rails Rake Error -

संपादित करें: समस्या का हल, इस मंच पोस्ट के लिए धन्यवाद:। सभी को धन्यवाद! मैंने आरओआर सीखना शुरू कर दिया है और rake डीबी: माइग्रेट का उपयोग करने की कोशिश कर रही है, लेकिन मैं उसी त्रुटि को जारी रखता हूं। मैं सी: \ dev \ railslist & gt; mysql -u रूट railslist_development -p का उपयोग करके MySQL डाटाबेस से कनेक्ट कर सकता हूं। रेक db: विस्थापित --trace पैदा करता है निम्नलिखित: C: \ देव \ railslist & gt; रेक db: --trace विस्थापित (C: / dev / railslist ) ** आह्वान करें डीबी: माइग्रेट करें (पहले_टाइम) ** पर्यावरण (पहले_टाइम) को आह्वान करें ** वातावरण निष्पादित करें ** डीबीआई निष्पादित करें: रैक को रद्द करें! Mysql :: त्रुटि: कनेक्ट नहीं: क्वेरी CREATE TABLE 'schema_migrations' ( 'संस्करण' varchar (255) नहीं NULL) इंजन = InnoDB सी: /Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3। 5 / lib / active_record / connecti on_adapters / abstract_adapter.rb: 219: में सी 'बचाव लॉग में': /Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_recor

EBNF to BNF Conversion -

इस सवाल का पहले से ही एक उत्तर है: < / P> 1 उत्तर मेरे पास एक होमवर्क समस्या है मैं कुछ मदद के लिए इस्तेमाल कर सकता हूँ मुझे निम्नलिखित ईएनबीएफ़ स्टेटमेंट को बीएनएफ के लिए परिवर्तित करना होगा & lt; S & gt; - & gt; & Lt; ए & gt; {बी & lt; ए & gt;} & lt; ए & gt; - & gt; एक [ख] & lt; a & gt; यही वह है जो मैं अभी तक आया हूं; & lt; S & gt; - & gt; & Lt; a & gt; | & Lt; a & gt; & lt; एस & gt; | ख & lt; a & gt; & Lt; a & gt; - & gt; & lt; एक & gt; | अब & lt; a & gt; यह सही नहीं लगता है, मुख्यतः क्योंकि यह एक WAG है मेरी किताब (प्रोग्रामिंग भाषाओं की अवधारणाओं, सेबेस्टा) का उदाहरण मुझे बिल्कुल भी मदद नहीं कर रहा है। इसलिए अगर किसी के पास कोई अंतर्दृष्टि है, तो इसकी सराहना की जाएगी। धन्यवाद! पहला व्याकरण छोटी गाड़ी लगता है, या कम से कम बेकार बेकार है लेकिन ईबीएनएफ को BNF में परिवर्तित करने के लिए एक यांत्रिक तरीके के लिए यहां एक नज़र डालें:

MySQL Basic about relationship -

I doubt how to treat the following: I have a system where the user Belongs to a company, and this user has his own customer. How is the correct way to get the list of all company customers and follow the username? In the client table There is a field with this company: Company_ID ??? Something else ... Tkz Roberto Tables Relationships: Client (FK_companyID, FK_UserID) "If you have multiple companies, use FK_companyId" User (FK_companyId). Company (no foreign keys for customer or user). If there is only one company in the system, you do not have to include it in the relationship: Open the client from the client where userId = userSessionId; If you have multiple companies: Quit leaving a client's client, client.clientInfo, client.companyId, company.companyInfo (client.companyId = company.Id) Leave the customer at, where userId = userSessionId; Note: The left join is used to obtain "company information", but if all the user cli

visual studio - C# populating treeview and getting errors on directories that I do not have permission to read -

I am creating a Tree View Control, C # Visual Studio 8 using this code: Private TreeNode Traverse Directory (String Path) {TriNode Results = New Triode (Path); Foreign currency (sub subdirectory in directory .gate directory (path)) {result.Nodes.Add (TraverseDirectory (subdirectory)); } Return results; } The problem is that if I click on it, then c: / drive gets an error on the directory that I do not have permission to read. My question is, How would I avoid showing the directories to which I do not have permission? How do I test for it and then ask the app to ignore them? Thanks R. for a simplified approach: triode results; Try {string [] subdirs = Directory.GetDirectories (path); Result = New tree node (path); Foreign (subdirs in string subdirectory) {TreeNode children = TraverseDirectory (subdir); If (child! = Null) {result.Nodes.Add (child); }} Return result; } Hold (search obvious exception) {// undiscovered DIR result = null; } Return results; Individuall

ruby on rails - how to rest my app to support mobile phone -

Now I am going to develop a mobile website, both support general HTML format pages and wml format pages (because now General web browsers can view HTML pages on mobile and some older mobile can only support WLL) First step: wml page config / initializer / mime_times.rb :: Mime :: Type.register_alias "text / vnd.wap.wml" ,: wml Second: two formats for an action form Create ge: class WelcomeController & lt; ApplicationController def index @latest_on_sale_auctions = Auction.latest (15) response_to do | Format | Format.html format.wml End End This works well as I see: but found: routing error is not matching "/welcome.wml" With {: method =>: get} as I have seen: And it works well as I see: My config / routes Rb Like this: ActionController :: routing :: Routes.draw do | Map | Map.root: Admin = & gt; "Welcome" map.connect ': Controller /: Action /: ID' map.connect ': Controller /: Action / ID: Format' End My Rai

iphone - documentation references from xcode -

For someone else to develop C and iPhone, I am using a lot of documentation. However, sometimes when I highlight the text in my source - like "sqrt", click OK, and "Find Text" Do I have some configuration settings wrong? ? Thanks, I have some configuration settings wrong? Thanks, This is not actually a doc. Use this to go to Edit: Announcement to see such things (like M_PI ) are usually very self Connotation The Tmk.

See if a ruby string has whitespace in it -

I have to check whether there is any white space in the string or not. What is the most effective way to do this in Ruby? Thank you If by "white space" you mean in the regular expression sense Any space alphabet, tab, newline, carriage return or (I think) form-feed, if any, any given answer will work: s.match (/ Code> s [/ \ s /] If you are interested in checking only one space character, then your primary Try it s.match ("") s.index ("") s = ~ / / s ["] IRB ( Ruby 1.8.6) to: s = "ab" puts s.match (/ \ s /)? "Yes": "no" # -> Yes s.index "Yes": "no": "no" # - & gt; yes say s = ~ / \ s /? "Yes": "no" # - & gt; yes it puts [/ \ "Yes": "no": "no": - Yes s = "abc" s.match (/ \ s /)? "Yes": "no" # - & gt; not s.index (/ \ S /)? "Yes": "No" # - & g

.net - Unable to generate a temporary class (result=1). error CS0009 -

I have a .NET 3.5 Winform exe. After applying security using PC Guard, I received the following message while launching it. "Unable to generate a temporary class (result = 1). Error CS0009: Metadata file" T: \ xxx \ winform.exe "could not be opened - 'Attempted to load a program Was wrong with the format. '" After clicking" OK ", the program will start successfully. What could be the problem?

ASP.NET Drop Down List error with null values in SqlDataSource -

I have a drop down list on the form view that is bound to both different data sources. Getting 'ddlFieldName' when I try to run the program is a selected value that is invalid because it does not exist in the list of items. Parameter Name: Value. I think this is because the field associated with the drop down list contains zero values ​​which are not in the reference table. I have tried to round it by adding an empty object to this list but it starts working: <lt; Asp: dropdown list id = "ddlAgency" runat = "server" DataSourceID = "DsAgency" DataTextField = "Agency" DataValueField = "AgencyID" selected value = '& lt;% # bind ("agency")%> & Gt; & Lt; ASP: ListItem & gt; & Lt; / ASP: ListItem & gt; & Lt; / ASP: DropDownList & gt; </ P> <p> </ p> </ p> </ p> <div> <div> "post-text" itemprop = "text"> <p

sql server - Best way to store emails for historical/review purposes -

I have a service that processes the email in the mailbox and once processed, something in the database in the database The schematic stores the information in minutes: ID Sender Topic Body (Parsed The result of being / The date I am creating a web front-end for the database and the main purpose of archiving email Provide convenience for users, look back and see what they sent. However, another reason is for my auditing purposes at the end. Currently the email is being moved to specific mailbox folders. So what I'm planning to start, once processed on email, record it in the database and record delete instead of deleting the email from the mailbox. Switch to. Question delete ... 1) the actual email you exchange is a good idea? Is it better in the case of buses ? 2) To keep the size of the field I was removing HTML out of email, is it a bad idea? Should I just store e-mail because it has been received? Any other advice / suggestions would be great.

regex - modify regular expression to ignore underscores after question marks -

(. [^ _] +) Correctly matching There is no underscore account, how can I modify this regex when there is no underscore before a question mark? Meaning This will only allow underscores after the question mark: (. [^ _] * (\ ?. *)?)

groovy - Making Grails form development DRYer -

When using Grails, the GPP code looks like this to render each form field: & lt; Tr class = "prop" & gt; & Lt; Td valign = "top" class = "name" & gt; & Lt; Label = "username" & gt; Login name: & lt; / Label & gt; & Lt; / Td> & Lt; Td valign = "top" class = "value $ {is the order (bean: person, area: 'username', 'errors')} & gt; & Lt; Input type = "text" id = "user name" name = "username" value = "$ {person.username .encodeAsHTML ()}" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr class = "prop" & gt; & Lt; Td valign = "top" class = "name" & gt; & Lt; Label = "userRealName" & gt; Full name: & lt; / Label & gt; & Lt; / Td> & Lt; Td valign = "top" class = "value $ {is errors (bean: person, area: 'userReal

ASP.NET MVC Controller design -

चलो इस तरह एक ओक्ड संरचना है: कंपनी -> विभाग -> व्यक्ति -> का मतलब 1: एम संबंध क्या मुझे एक वसा नियंत्रक होना चाहिए जो इस ऑब्जेक्ट या हर वस्तु के प्रति एक नियंत्रक के लिए सभी अनुरोध करता है? सामान्य सीआरयूडी प्रत्येक वस्तु के लिए संचालन विवरण (विभाग, व्यक्ति) एक पृष्ठ पर ग्रिड के द्वारा प्रदर्शित किया जाएगा। मुझे नहीं लगता कि आपके डेटा मॉडल और आपके नियंत्रकों के बीच एक सीधा संबंध है। मैं नियंत्रकों को आवेदन की प्रैक्टिस से संबंधित कार्यक्षमता के समूह के रूप में देखता हूं। मेरा क्या मतलब है कि मैं आम तौर पर कार्यक्षमता के प्रत्येक बड़े तार्किक तुल्यकालन के लिए एक नियंत्रक बना देता हूं। इसलिए यदि मैं एक संपर्क एमवीसी वेब ऐप बना रहा था, तो हो सकता है: खाताकंट्रोलर ( प्रमाणीकरण / प्राधिकरण के लिए ) संपर्कसंक्रमणकर्ता ( असली व्यापार के मामले में, संपर्क ) व्यवस्थापक नियंत्रक ( सुपर एप्लिकेशन को संशोधित करने के लिए ) द्वारा में मेरे डेटा मॉडल में मेरे पास तालिकाओं, उपयोगकर्ता, संपर्क, पता, फोन, आदि हो सकते हैं।

objective c - How to work with several objects in OpenGL-ES -

I'm trying to learn how to add many objects and work with them in my 3D-world. I am developing for the iPhone below. I did not get good information about my question below while Googling I have a function that works with all the corners - Makes the array. There is no problem connecting it as an object only. The problem is that the data for the area is not aware of any other thing that I have created and added in the world. Of course, I think I am with arrays I can merge in the corner and add it at the same time and the world will look at me as I want with my items. But then, how can I do glTranslatef (,) , glScalef , and glRotatef (,,,) ? It will affect the whole world, and maybe I will just rotate the area. When I want to move the area, how do I change the position of the corner of the field and nothing else? So, I really want to ask this question: what are the strategies / patterns to use when working with many things to be able to work with them as single institutions

windows - Ordinal 12345 could not be located in dynamic link library -

When running my refined application, I get the following error message: Ordinal 12345 can not be located in the dynamic link library mfc90u.dll Apparently, my app calls a function that is not present in the given DLL. Update : I think. This can be an invaluable tool for problems.

.net - How to create multiple directories from a single full path in C#? -

If you have the full path: "C: \ dir0 \ dir1 \ dir2 \ dir3 \ dir4 \" < / Code> How do you implement it so that all directories are present? Is there a method for this in BCL? If not, what is the most beautiful way to do this? I will call Directory.CreateDirectory (@ "C: \ dir0 \ dir1 \ dir2 \ Dir3 \ dir4 \ ") . Unlike popular belief, whatever the original directories are not present will automatically create. The MSDN word, creates all the directories and subdirectories specified by the path. If the entire path is already present, then it will not do anything (this will not throw an exception)

sql server - Why can't indexed views have a MAX() aggregate? -

I am trying to get some index ideas and impress, but I almost always need maximum or a minute and Can not understand why this is not working with them, can anyone explain why? I know that they are not allowed, I do not understand why !!! Calculation etc. Why are not MIN / MAX, I am looking for explanation ... < P> This set is not allowed because they can not be solely based on changed values. Certain aggregates, such as COUNT_BIG () or SUM () , should be changed again, looking at the data that has changed. This is allowed in a indexed view because, if an underlying value changes, then the effect of that change can be directly calculated other aggregates such as MIN () And MAX () , can not be recomputed simply by viewing the data which is being changed. If you remove the value that is currently maximal or minimum, new maximum or minimum searches should be performed and the entire table will be found in. The same principle applies to another set, like avg (

payment gateway - What is causing my PayPal IPN script to fail? -

I received the following from a PayPal IPN script. Is it clear from the following that why IPN transactions are failing? If not, how can I investigate the problem further [2010/01/25 07:49] - fail: IPN Validation failed. IPN $ _POST variables PayPal: mc_gross = 25.00 protection_eligibility = unqualified address_status = unconfirmed payer_id = AEVB83JZKDRCL tax = 0.00 address_street = 1 main roof PAYMENT_DATE = 10: 49: 52 January 25, 2010 PST payment_status = Cancel charset = windows-1252 address_zip = W12 4LQ first_name = Test address_country_code = GB ADDRESS_NAME = test user notify_version: 2.9 custom = payer_status = unverified address_country = United Kingdom address_city = Wolverhampton quantity = 1 verify_sign = A0I1KzEZadt6mIDXxQkkIQCQKPTMAGvCuZ8RKXsOCujIi.RoMxAnbZXi payer_email=test1_1263505944_per@mcbwebdesign.co.uk txn_id = 38A45069EV5838100 payment_type = immediate last_name = User address_state = Westmin Dells Receiver_Email = Western MACBEBCNKKUK pending_Rezan = Exx

Clojure- why doesn't this piece of code work in clojure, is there some lazy evaluation gotcha I am missing? -

Working through SCP is new to learning and learning. I can not find this code to work from SCIP 1.3.1. What am I missing? (defn sum [term a next b] (if (> ab) 0 (+ (word A) (symmetrical post (next one) next b)))) (def- Cubes-new [ab] ((Some cube an inc B))) Here is the error message: java.lang.Integer clojure.lang .IFn [throwing class java.lang.ClassCastException] can not be molded to restart: 0: [abortion] Return to the top level of mud. Backtrace: 0: user $ sum_cubes_new__2868.invoke (summation.clj: 33) 1: user $ eval__2874.invoke (NO_SOURCE_FILE: 1) 2: clojure.lang.Compiler.eval (Compiler.java:4642) 3: clojure. core $ Avl__5236kinvoke (Korkclj 2017) 4: Swankkcommandskbesik $ Avl_rijn__9l0kinvoke (Besikkclj: 40) 5: Swankkcommandskbesik $ Avl_rijn__9l0kinvoke (Besikkclj: 31) 6: Swank. commands.basic $ eval__930 $ listener_eval__932.invoke (basic.clj: 54) 7: clojure.lang.Var.invoke (Var.java:359) 8: user $ eval__2871.invoke (NO_SOURCE_FILE) 9: clojure.lang.Compiler.