Posts

Showing posts from June, 2014

java - need spring security ntlm source code 2.04 -

I can not get source code for spring security ntlm 2.04 ntlm.jar source code. In any thought, where can I get this old release? This Maven is also in central repository: You can either download it from there or add your IDE automatically if you are using Maven to create your IDE files (for example, using "MVN eclipse: eclipse" ). And of course, because it is an open source project, you can get it from the source repository: svn checkout https: //src.springsource. org / Swn / spring-security /tags/spring-sikyoriti-parent-2k0k4/

vb.net - VB6 Format function: analog in .NET -

string format function that is specified in the form of analog for in the documentation> The format is provided for the compatibility with the VB6 function and basically has the same powers as String.Format . There is also VisualBasic namespace from the Format function. Actually, these two formatting dates and numbers. But the VB6 function was able to format the string: ? Format $ ("Hi there", "& gt;") Hi there? Format $ ("hi you", "<") Hi there? Format $ ("Hi there", "& gt ;! @@@ ... no @@@@") HI ... is not string.format < / Code> is not able to do this, as far as I am worried, nor is the new format I can not find any mention in the compatibility format Some parts of the VB6 functionality have been lost, it seems that the feature was removed from "silently". Is there anything in this framework that can do this type of formatting? Another solution is to use Micros

android - WARN/SoundPool sample 2 not READY -

The acoustic works fine on Android 1.6, but when I run 2.1 in the emulator, I'm getting a "Sample 2 not ready" error. Every time I try to play a sound. How can I fix this? Works on Android 2.0 with high sound and OGG Vorbis files. If you are using mp3 or preference, they will not decode.

Default port number of CVS -

Can anyone help me with the default port number used for the CVS repository? is concerned, PK grep cvs / etc / services 2401 says both TCP and UDP Of course, instead of using it on SSH will use port 22.

How to enable the mouse in C++ program under DOS using DJGPP? -

I have recently used the DJGPP for the first time and appears to enable the mouse Can not support. What is the best way? Thanks for any help. God, I return it! You need the software to interrupt the 33H - see, and type a tutorial of type.

.net - What is the best way to get a path relative to the current address? -

Suppose I have a resource located in ~ / Resources / R1.png , this resource The URL relative to depends on the current address. For example: if I am at www.foo.com/A/B/C/D.aspx and www.foo.com/A is the root path including the virtual directory, then the current code is the path of the ~ / Resources / R1.png of ./../../ processing / R 1.png How do I get this relative path? Edit: I want a web path that I can use in a web page, not a server path. ResolveUrl ("~ / Resources / R1.png") ~ 'Is used to represent the root of the application in which the current page / control sits. Or if the resource is outside the current application but is still found within the virtual directory hierarchy, you can use ResolveUrl ("/ resource / R1.png") < / Div>

asp.net - Deploy MVC without having to take down the whole site -

Say that I want to make some changes to some of my content for my MVC project. Actually like taking a sentence or adding duration or something, what I see, I have to republish the whole site, then the whole site has to be taken down and it has to be replaced with the new published set. I was thinking that there was no way, if I make changes to the contents of a page, then I can change a page without changing the entire site. I remember in web forms if I make a change, can I change a page? Content is present in a visual directory that is none other than aspx files ASP.NET Encoded by server (IIS) and cached on server to fulfill more requests. So you can change the ASPX file (related to view folder) with new content and it will be compiled for later requests for the first time. >

Magento Ecommerce -

Does anyone know about expansions or how can the product price show for customer's entry? But if the customer is not logged in price then is it empty? In advance thanks Do you want to create a site that basically Does a user sign up once? Then I believe that you want to hide other ecommerce components like 'Add to Cart' button, checkout button, etc. You can hide the shop components in various places in your site design template / app / design / frontend / default / xyz / template (where 'xyz' is 'default' or your organization's design folder) . Although it is technically straight forward, there are many files to investigate in this way. What you need to do is let the HTML know that you do not want your guests to see it and attach it like this: & lt ;? Php if (Dana :: getSingleton ('customer / session') -> isLoggedIn ()) :? & Gt; The lines of HTML that you want to disable for guests & lt ;? Php endif? & Gt;

c# - Is there a way to retrieve the last character of a file without reading line by line? -

I need to retrieve the last character of a file. This can be a line break or one of several special characters. Can I recover this character without parsing it in the whole file? Or there is no way that I can read the whole file in the string without worrying about the line breaks? I will need to split the contents of the file based on the last character of the file. So if this is a line break then I'll split the strings by '\ n'. string s = file. Read all text ("test.txt"); String [] split = s.Split (s [s.Length - 1]);

java - Non-line dependent conditional breakpoints -

Is it possible to set a breakpoint so that after the program has stopped execution, an instruction has some condition True ? In a class, there is a variable named currency and I want to create a breakpoint to stop the program on any line after currency == 20 . I do not know the line number where currency is changed, so it would be like putting a breakpoint in my class [ad's every line ]. <<> currency changes). Is there a way to accomplish this (in addition to adding a breakpack to each line)? I am using NetBen, but any other IDE solution is welcome. There is a link to setting conditional breakpoint in netbense: Related Text: In netbense, create a breakpoint, right click on the small pink square which is the symbol of the brake, click on "customize" when the customized dialog comes, check "condition" and position fill. The above is an example of this dialog in netbense. They also cover Eclipse and Jediwalier. Edit : In

php - How to encode to JSON encoded array from non sequential array -

Using CakePHP (on PHP 5.2.6) I query a list of tables that gives an array such as: array ( [0] = & gt; not [3] => value 1 [5] => value2 < / Pre> ) Since json_encode () does not encode an object instead of a JSR array, since it is not a sequential array, I need to fill the zodiacal selection. PHP 5.2.6 does not support any additional parameters, so I can not force it to create a JSON encoded array. My question, does anyone know how I can solve this problem in a clean way? see: array_values ​​() returns all returns and input array Array (0 = & gt; None ', 3 = & gt;' value 1 ', numerically for example ', 5 = & gt;' value2 '); $ X = array_values ​​($ a); Print_r ($ x); Echo json_encode ($ x); Array ([0] = & gt; none [1] => 1 value [2] => value 2) [" Edit: There may not be a difference in JavaScript arrays. You must fill the missing elements with the example zero. $ a = array (0 = & gt; &#

wpf - Converting 3D Max Model to XAML? -

Is there a free tool to convert a 3D Max model to a WPF XAML? Thank you. / P> Look for XML Explorer for 3D Max! The Microsoft Blog article explains it more:

email - How to send the mail from c# -

मेरे पास कोड है, सिस्टम। वेबमेल। मेलमैसेज ओमेल मेसेज = नया मेलमैसेज ( ); OMailMessage.From = strFromEmaild; OMailMessage.To = strToEmailId; OMailMessage.Subject = strSubject; OMailMessage.Body = strBody; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send (oMailMessage); (सभी चर के मान हैं) मैंने एसएमटीपी वर्चुअल सेवाओं को स्थापित किया है क्यों ईमेल भेजने में असमर्थ है क्यों यह काम नहीं कर रहा है ?? संपादित करें सार्वजनिक बूल भेजेंमेल (स्ट्रिंग स्ट्रटोइमेलआईडी, स्ट्रिंग स्ट्रफममेल मेल, स्ट्रिंग स्ट्रश, स्ट्रिंग स्ट्रोबी) {प्रयास करें {System.Web.Mail.MailMessage oMailMessage = नया मेलमैसेज (); OMailMessage.From = strFromEmaild; OMailMessage.To = strToEmailId; OMailMessage.Subject = strSubject; OMailMessage.Body = strBody; SmtpMail.SmtpServer = "SERVERNAME"; SmtpMail.Send (oMailMessage); वापस सच; } पकड़ (अपवाद पूर्व) {वापसी झूठी; }} मेरे पास यह कोड है यह ठीक निष्पादित कर रहा है और सच वापस कर रहा है, लेकिन मुझे इनबॉक्स में कोई ईमेल नहीं मिल रहा है।

python - GAE email me errors -

Is there an error when I can be configured to bust an email? I think the best you can do is in your main function Try some code like ...: Try: ... your body's main body goes here ... except: google.appengine.api import mail import sys mail.send_mail (sender = "Your GAE App"; yourappname@example.com> "," Your app engine app raised an exception:% s ""% sys.exc_info () [:] "", = "You & lt; bobobobo @ Example.com & gt; ", topic =" GAE app error ", body =" "2]) (Of course, you can get better information on exception information etc. Rupn can).

search - Wrap text - case insensitive with php -

If I search for Tom ARNDF and $ variable "Tom Arnfeld", I get likes as a great code in Mesecul (which is case-insensitive) To highlight which part of the search with the query I $ variable I need to maintain the original case of $ variable . $ TextToPrint = preg_replace ("/ ({$ variable}) / i", " $ 1 , $ text) this can help

MySQL GROUP BY performance issue -

This is the query that I am performing (without something that is not relevant): < Pre> select a. *, A B.I.G. from CD.I.D. = B.id_anunciante Join the left otier CID = Aid by B.ID./Rboro Group is connected to "B" from 1 to 5 rows of each row "A" . The problem is that there are performance problems in Group B (it does not use 10x or more using Group B). I need to get only one line of each member in "A". How can I do it fast? EDIT: I should be able to filter by AID / OR CID. The "valid" member of the result "a" I get is only 1 per line, which means that the rows that match the barriers that do not match the filter should not be returned. In my original query, this will be done like this: SELECT a. *, Join a left over from C.id at a.id = b.id_anunciante LEFT OUTER JOIN C ON .id = b.id_rubro WHERE c.id = 1 or a.id = 1 group by a.id a.id, b.id_anunciante, b.id_rubro, c.id are all indexes. SELECT a. *, (Select f

c++ - Statement reordering with locks -

Here are some C ++ code which is accessed from multiple threads in parallel. There is an important section in it: lock.Acquire (); Current_id = shared_id; // Less amount of other code shared_id = (shared_id + 1)% max_id; Lock.Release (); // do something with current_id The class of lock variable is wrapped around the POSIX mutation implementation. Due to module operations, it is not possible to use nuclear operations. Is it possible that a GCC compiler with the O3 flag optimizes the code so that the current_id's assignment can be transferred before lock? It is possible to compile from O3! Make a function call the compiler until the function is marked as pure using function-attributes. Mutex functions are not pure, so they are perfectly safe to use with O3.

c# - Generate multiplication table from a single for loop -

Whether a multiplication table (for example, from 1 to 9) to a single Loop? Yes, using something like this ... but why not use two nested loops going? for (int i = 0; i <9 * 9; ++ i) {int a = i / 9 + 1; Int b = i% 9 + 1; Console.light line ("{0} * {1} = {2}", A, B, A * B); }

java - javax.imageio.IIOException: Error 2 when printing a PDF that uses CCITTFaxDecode compression in PDFBox -

I am using PDF to use PDF and print (we are using Java's PDF renderer , But CCITFxDecoded compressed PDFs, so we switched). However, PDFs are all printing in the form of blank pages. When I step through the PDFBox code, I get this code in PDCcitt.java: Public BufferedImage getRGBImage () throws IOException {BufferedImage retval = null; InputStream tiff = new TiffWrapper (getPDStream (). GetPartiallyFilteredStream (FAX_FILTERS), getCOSStream ()); Try {retval = imageIO.read (TIFF); } Hold (exception e) {log. Terror (E, E); } Finally {if (quarrel! = Null) {tiff.close (); }} Return returns; } This happens during the call of imageIO.read () where this secret error is thrown: javax.imageio.IOIOException: Error 2 I do not know what this means, And what once did he try to find it online cat? Anyone tells about this function, what is the error? If you use Eclipse, you can use the Z + ZEclipse plugin to decompiled code To browse through the jar of image. This will give you an

c++ - Not using iterators into a resized vectors -

मैं सी ++ प्रोग्रामिंग भाषा में पढ़ा है: विशेष संस्करण इसे में iterators का उपयोग न करें एक आकार के वेक्टर इस उदाहरण पर विचार करें। vector & lt; Int & gt; :: इटरेटर यह = foo.begin (); जबकि (यह! = Foo.end ()) {if (// कुछ) {foo.push_back (// कुछ संख्या); } ++; } क्या इसमें कोई समस्या है? सदिश का आकार बदलने के बाद, क्या लूप की स्थिति में foo.end () आगे बढ़ेगा 1? पी.एस. इसके अलावा, यदि वेक्टर ने एक्स नंबर की संख्या ints के लिए आरक्षित किया था। अगर push_back ने इस स्थान का उल्लंघन नहीं किया है, तो क्या यह अभी भी एक मुद्दा होगा (मैं मान सकता हूँ कि यह if.end () एक वेक्टर में पिछले तत्व को पिछले एक बिंदु है जिसमें कुछ है)। < हां, इसके साथ कोई समस्या है। push_back पर कोई भी कॉल करने की क्षमता है सभी iterators को एक सदिश में अमान्य करने के लिए। foo.end () हमेशा वैध अंत इटरेटर को पुनर्प्राप्त करेगा (जो कि पिछले मान से भिन्न हो सकता है foo.end () ) द्वारा लौट आए, लेकिन यह अमान्य हो गया हो सकता है इसका अर्थ यह है कि इसे बढ़ाना या इसकी तुलना करना अपरिभ

haskell - Applicative functors other than monads and ZipList? -

Two famous examples of applications are Monads and Zipplists. Are there any other examples? Connor McBride: From the structure the police will note that < Code> D An application is another example of a fun, which is not a monad - by joining, things will be brought in the near future in the near future, and this will not be better though, however, where generally The heterogeneous ones only pull traceable panels (with so many elements with containers) If, D pulls through all the containers, then it is a little special. I wonder what this is. and D The brain represents a certain delay rather than an arbitrary one. I'm dividing time into discrete slices. In the next code, the type of DX a x is D (D x) , because of a x Slices occur at the time, and you can not turn it on anytime! Read the full post to answer the immediate question, the author's conclusion is Do not look! Okay, this implementation is a thief. New type DX = D X show - SS, d

constraints - SQLite: Table1.id <> Table2.id for each id in Table1, Table2 -

I need the primary key of 2 sqlite tables (say, id 1 and id 2) so that no id 1 is equal to someone Also for id2 and viceversa it is because i have to get the same type of xml element from these 2 tables, in which the unique feature is id in sqlite or sqlite in one way or so in my id fields by "classic" sql Expressing obstacles Is for Alternatively, I think I can create another table in terms of the second 2 unique ID, from which I take my data ... but I want to know that it is possible before any other way, and Which is the best practice in this case in your opinion. Thank you! XML IDs can not be technically priced anyway, hence storing in XML Join the text with the first ID. Again you do not have to worry about numerical duplicates. [4] NameChar :: = letter | Points | '.' | '-' | '_' | ':' | Mail | Extension: [5] Name :: = (letter | '_' | ':') (name-mark) * Validity barrier: ID value Type ID must match the

flash - Ask permission on f5 -

I'm just listening to music in the website and tried to refresh the page and then he gave me the message "do you really Want to refresh this page in? ". How is this done? window.onbeforeunload

silverlight - What is wrong with my dependency properties? -

I'm having trouble with my dependency property It seems that it does not want to work at all, and not me Find out why here is the code for my dependency property: Public static read-only DependencyProperty CheckBoxColumnVisibilityProperty = DependencyProperty.Register ("CheckBoxColumnVisibility", typeof (visibility), typeof (ComputersControl), tap ); Public Visibility Checkbox Column Visibility {Return Visibility} Gate Valley (Checkbox Column Visibility Property); } Set {set value (checkboxecomelability, property, value); }} Here's where I specify the value of my dependency asset: Here I am trying to force it to a column in a , so I can set that column to be visible or collapsed data grid : & lt; Data: Data Grid Columns & gt; & Lt; Data: DataGrade Template column x: name = "checkbox column" visibility = "{binding checkbox column visibility}" header = "selected" & gt; & Lt; Data: DataGridTemplateColu

What is the maximum limit for a dropdown box values in classic asp? -

In my application, I am convincing the dropdown box to get data from the database. Issue: The page response time is too high when the dropdown value increases. Is there a maximum limit for the dropdown box in ASP? Or we have to populate it in some other way? Please advise. Thanks Suman None imposed limit, but you Consider how much data the user should download on each page view. If the page is taking an undesignable long time to load, then you should initially think about bringing only one subset of data, and then either fast to use AJAX or to reach the next subset Need to think about providing any kind of magician. As an alternative, instead of using a text box and replacing the plug-in with a drop down, the user will be able to apply the plugin to return data in the form of the type Can understand more for

ASP.NET MVC Multiple Layout -

I have a website that has 2 types of layouts. No columns with 2 columns are similar to both headers, footers and many other parts, but Inside the main content, there are 2 different layouts and I want to choose between 2 site owners. How would I go about fulfilling it? I was thinking about building a main site master and with that there is one near the heir of 2 columns. If this is the right method, then what are the keywords for Google, or you are free to explain the Inheriting Site Masters here. Thank you, The master page, like any other page, Can be inside. Specify master's masterpage file directions in general: & lt;% @ master language = "c #" masterpagefile = "~ / view / share / app.master" inherits = "system .Web.Mvc .ViewMasterPage "%> Your ideas can be used as a master page or nested one as your master. Alternatively, you can dynamically set the master page of your thoughts in many ways. To specify the main p

iphone - Question regarding core data and the camera -

So I'm working on the app that uses the main data that stores the attributes of objects that users Can set. I'm mainly focusing on the first part, which was installing everything on the main data side, and now I'm ready to go to the next part which is related to the camera. I want to be able to connect a city, or other geographic location (this is the object) and then I would like to be able to take a picture of inside my app, ). For example, when I click on New York on my UTVWatch, I am able to see images in any number that I took in NY. When I click on Florida, I look at any photos in Florida. So, my question is whether it is a possibility or not? Sorry, that was a vague question. If I had to take a picture inside my app, would I be able to save them there too? And make a list of them in my app? I think I'm guessing a different core data-ask that seeing the utivate with place objects gives you the ability to manage images so that they can view directly like a sl

c# - Split an IObservable and then combine after processing? -

After experiment with IObservables, I decided to test them for the processing of messages sent just above a message. Have done I have to do the necessary tasks to answer the and request response at one point during processing ; Request & gt; Essentially I get a IObservable & lt. Deserize the data and change it from a command object into a convertor object in which it actually has to do. Order is not related to the request. After deserializing it, I have to change it in the proper response, although I need the original request object to send the feedback. While maintaining high code readability, I want to achieve and achieve it. So far, I've used expansion methods and lambda expressions to get the following (; Request & gt; where request IObservable & lt ): requestProcessor = requests .Deserialize & LT; IdentityRequest & gt; () .Where (idRequest => idRequest.Address = null!). Select (idRequest = & gt; New IdentityResponse () {identity

actionscript 3 - flex databinding with selectedItem property of the combobox update many times problem -

OK, I have a combo box, in which I have built my selected item property in a value object object, such as < & lt; Fx: binding source = "styles_cb.selectedItem.toString ()" destination = "_reserve.style" /> & Lt; Fx: Announcements & gt; & Lt; Fx: XML id = "config_xml" xmlns = "" source = "config.xml" /> & Lt ;! - Place non-visible elements (for example, services, value objects) - & gt; & Lt; / Fx: Announcements & gt; & Lt; Mx: combo box x = "66.15" y = "63.85" editable = "wrong" id = "styles_cb" datasaver = "{config_xml.styles.style}" /> Value object is a custom class with some sets and gesters, and I want to set a property based on the value of the selected item of the combo, so in the value object, The public function set style (value: string): zero {_style = value; Trace (value); } My problem is that every time I change the

c# - Is it possible to create a custom ASP.NET MVC strongly typed HTML Helper? -

I was wondering if it is possible to make a custom firmly typed HTML helper in ASP.NET MVC 2? Creating a regular (not helpful-vigorous type) helper is straightforward, but I'm having trouble making strongly typed versions. For example, I want to create a DatePickerFor HTML Assistant ... Any guides or snippets will be highly appreciated, thanks in advance! Jp OK, I understood it (and it was very straightforward ...). I am posting in case any other person is involved in this question. public static string date picturefront & lt; TModeel, TProperty & gt; (This HtmlHelper & lt; TModeel & gt; HTMLHelper, expression & lt; Func & lt; TModeel, TProperty & gt; & gt;; Expression) where TModel: class {var inputName = ExpressionHelper.GetExpressionText (expression); Return HTML Helper Dot Picture (Input); }

ajax - How to remove the handler in javascript -

I am adding some documents, where this script will execute on AJAX calls each time. But how can I remove the handler on the outcome of AJAX, where I tried to use Undanderer but its effect was affected for the first time. Is there any way to check that this event is alive? If you want to remove an event handler with javascript, you have to cancel it like this: < / Div> document.getElementById ("yourelement"). Remove Event Alisoner ("Your Event", Your Function);

asp.net - Is " SQL Helper Class " in Microsoft Application Blocks for .NET is excellent? -

Over the years, I use the "SQL Helper" class which is present in Microsoft application blocks .net and I 1 Years in many projects but after many seniors I have many problems in big projects and I would like to know in a new company that they want to use it in any project ... do not use I recommend it / And if it is excellent in the use of what are the problems before? Is there any other good solution than SQL Helper? I used the SQL Helper class and the new DAB / Enterprise Library before many projects. I would recommend that you use the right tool for the right job. Entity Framework Enterprise Library My Generation (and Addo .Net ... list becomes one

c++ - SIMD or not SIMD - cross platform -

I need some idea how to write some of the parallel issues to the C ++ cross-platform implementation so that I can take advantage of it If possible, SIM (SSE, SP, etc.), I want to be able to switch between CIDD at run time. No SIMD. How would you suggest me to face this problem (Of course I do not want to apply the problem several times for all possible options) I can see how this can not be very easy to work with C ++ but I believe I'm missing something so far my idea looks like this ... A class CSTrim same area The array of will be used by many CSTEs Chana) I can achieve. Then using some funcents, I can create a fake lambda function which I need to implement on whole CSTrim. For example, I'm not expecting this code to be compiled cStream A; // something like the boat [1024] Seismide B; Sea Cream C; Zero Fu (for_each (AssignSIMD (c, MulSIMD (ADSIMD (A, B), A))); } Where to increase the present indicator of e-mail streams, along with SIMD and without SIMD, it is res

oracle11g - what is the most lightweight oracle version? -

I want to install Oracle 11G on a very weak computer for learning. What is the most lightweight oracle version? Is this an express version? Thanks in advance I think it will depend on those things, Whom you want to learn. I am using personal / learning software development projects as a datastore. From Oracle's website: Oracle Database 10G Express Edition (Oracle Database XE) is an entry-level, small footprint database based on Oracle Database 10G Release 2 code base, which is developed , Is free to appoint, and distribute; Fast to download; And simple to administer I have used it quickly and easily, I need it.

how to add multiple records in mysql using php -

How to add multiple records using php in mysql, this problem is only using the solution array because I The array used to try, but the record that will be added to the database will look like this: In this way you can create such a statement from the record array $ Value = array (); Adds $ ($ record ['name']), adds ($ record ['email'])); $ Sql ​​= "Include user (name, email) values" Implode (",", $ values); Mysql_query ($ sql);

c# - regex for interval of years -

In C #, I want to write a regular expression that will accept years between 1900 and 2099 only. I tried ^ ([1] [9] \ d \ d | [2] [0] \ d \ d) $ , but it does not work . Any ideas? Then I have a class: [NotNullValidator (MessageTemplate = "Lipseasena little! Do not drink!")] // [Rangelavidetter (1900, rangeboundary type ), 2100, rangeboundary type. Unique, Message Template = "Ancel Trebui Sa Contina 4 Factors!") [Reggae Validate (@ "(19 | 20) \ D {2} $", MessageTemplate = "Anil Trebui Sa Efi Valid!", Rullet = "Valid_an")] Public Entrepreneurship {Received; Set; } and in a test method: public {anUnivBO} = {AnUnivBO} {anStart = 2009} }; Validation result vr = validation Validate & lt; AnUnivBO & gt; (Target, "valid_an"); Assert.IsTrue (vr.IsValid); } Why is this unsuccessful? String property for RegexValidator, not an integer, to do one thing: public string anStart {get; Set; } In your test

iphone - Trying to fix memory leak using AVAudioPlayer -

In an attempt to fix memory leak, I am trying to apply this code in my .m file: Aviideo Player * Audio Player; - (AviadioPlayer *) Audio PlayerWind contentoff file: (NSSTING *) path {NSDTA * Audioteta = [NSDATA data content content: path]; Aviideo player * player = [aviideo player]]; If ([player initWithData: audiotada error: NULL]) [[Player Autorequez]; } And {[Player release]; Player = zero; } Returning player; } Then try to call it via: [audio players audio playerwind contentofffile: [NSString stringWithFormat: @ "% @ / knock_knock. Wav ", [[NSBundle main bundle] resource path]]]; The header file contains: - (aviadio player) * audio playerwidgetofffile: (NSString *) path; Compiled with a warning: AVAudioPlayer can not respond to 'audio player content offfile' ('to return the message' id 'without matching signature and arguments will be accepted as' ...' Every time I am getting this language, I run the stuff like this that I

SQL Server Int or BigInt database table Ids -

I am writing a new program and it will need the database (SQL Server 2008). Now what I am running for the system is 64-bit, which brings me to this question. For all the ID columns in different tables, can I have them all INT or BIGINT? I suspect that the system will never cross the INT range, but it seems to me that there is a possibility within some big financial tables. It seems that INT is the standard though ... OK, let's quickly recapture an INT 32-bit and gives you basically 4 billion worth - if you only calculate values ​​greater than zero, then it's still 2 billion. Do you have many employees? Customers? Products in stock? Orders in the lifetime of your company? Actually? The Beginnum moves ahead of that path. Do you really need ?? Really ?? If you are an astronomer, or particle physics - perhaps an average line of business user? I suspect Imagine that you have a table - say - 10 million rows (order for your company). Let's say you have an order

javascript - How do I write selected jQuery DOM elements back out as XHTML snippets? -

I want to select some DOM elements using jQuery, modify some attributes, and then delete the DOM elements in XHTML Snippets for post processing I want the XHTML to be the result specified in the original page html and I want to get the amendments made with jQuery. Is there an existing JavaScript library or API that can help me fulfill this task? I think jQuery support for what you are asking for - given a given Getting the full HTML for the tag. But see - you can not rely on your user input on this. Any user can easily kidnap the data that you want to send for "post-processing" and call it whatever you want.

java - How to write text on a texture using java3D API? -

I'm thinking how can I write some text on a given texture (during execution)? I am using Java 3D API. Thank you! I believe that you can getImage or getImages methods to bring the image component of your texture , Put them in ImageComponent2D (if you can), call them the getImage method to gain access to the BufferedImage object, which eventually gives you access to a graphics object for text drawing. You have to do this for every MIP level, or every time you change it, then rebirth from the upper level to the lower level. Alternatively, if you are not updating the texture many times, every time you need to use TextureLoader, you can create and apply a new texture from the image. should be able.

flash - create a FlashBuilder4 mxml class instance using ActionScript? -

I have defined GUI interfaces using MXML. Considering these MXML objects, it has been compiled in my application, what is the procedure to instantiate these objects using the action script? myFoo: Mxml2ActionScriptClass ("FOO.mxml") = New AutomagicalMXMLFactory ("FOO .mxml"); MyFoo.addEventListener (etc etc) this.AddChild (myFoo); Yes that file name is for your MXML class, the class name that you use. Therefore, if you have an MXML document by the name of "Foo.mxml", then that file will be classified as "square" with the keyword "foo" in the action sequence of any class Can start. var myFoo: Foo = new Foo (); Whatever.addChild (myFoo);

Is there a way to update the dojo tree item id with the id come from database? -

I have a dojo tree that is temporarily created in its node memory. I have created a new node like this in a timestamp An ID is assigned: var newID = new date (). GetTime () This new node will be associated with a form to control its information. My hope is: When the form is stored, the new ID from the database will replace the timestamp ID above. How can I do this? Thanks !!!

asp.net - Calling Linq to SQL method in Web service with jQuery -

मेरे पास एक परीक्षण वेब सेवा है: MySimpleService.svc नामक विधि के साथ: GetUserNamesByInitials नीचे लिनक को एसक्यूएल कोड है: [ऑपरेशन कॉन्ट्रैक्ट] सार्वजनिक स्टेटिक स्ट्रिंग गेटयूसर नामों के साथ (स्ट्रिंग इनिशिएल्स) {string result = ""; // डेटा स्रोत var testDB प्राप्त करें = नया TestDBDataContext (); // query var query = c से testDB.TestTables बनाएँ जहां c.initials == आद्याक्षर चुनें c; // क्वेरी निष्पादित करें foreach (क्वेरी में var c) {result = result + c.full_name; } वापसी परिणाम; } मैंने उस कोड को पृष्ठ के पीछे प्रयोग किया है और यह अच्छी तरह से काम करता है। लेकिन जब मैं इसे jQuery का उपयोग करने की कोशिश करता हूं तो मुझे कोई परिणाम नहीं मिलता है, कोई त्रुटि नहीं है नीचे कोड है जो मैं jQuery में उपयोग करता हूं: $ ('# textbox3')। Live ('keydown', फ़ंक्शन (e) {var keycode = e.keyCode || e.wich; If (keycode == 9) {e.preventDefault (); // कॉल समारोह यहाँ $। एजेक्स ({प्रकार: "POST", url: "/MySimpleService.svc/GetUserNamesByInitials&quo

Do all other desktop and mobile browsers support application/xhtml+xml except IE's all version till 8 and IE mobile? -

सभी अन्य डेस्कटॉप और मोबाइल ब्राउज़र को application / xhtml + xml के रूप में प्रदत्त सामग्री का समर्थन करते हैं I संस्करण 8 और आईई मोबाइल तक मोबाइल डिवाइस और सामग्री के बारे में कहने के लिए कुछ अतिरिक्त है आवेदन / xhtml + xml । साइमन पीटर के अनुसार, केवल ओपेरा मिनी ने एक्सएचटीएलएल को सही ढंग से संभाला है अन्य सभी ब्राउज़रों "टैग सूप के रूप में सब कुछ खाते हैं"।

Understanding pointers with file i/o in c++ -

I'm trying to get a better understanding of the indicators. My class assignment prototype void OpenFile (const char * fileName, Ifstream and inFile had to create a function . Zero openfile (const char * filename, first and infix) {inFile.open (FILENAME, ios_base :: in); If (! InFile.is_open ()) {cerr & lt; & Lt; "Could not open file" & lt; & Lt; Filename & lt; & Lt; "\ N"; Exhaust (EXIT_FAILURE); } And {cout & lt; & Lt; "File Open Success"; }} // FILENAME is defined as: const char * const FILENAME = "file.txt"; // The function is said in the main: OpenFile (FILENAME, inFile); I think I do not understand const char * and & amp; For two arguments I am finding that the first argument is a const char * because the assignment defines FILENAME in this way but will I have to use an indicator in this case? I have just done const char FILENAME = "file.txt"; And to put the first parameter i

Cascade window programmatically using C# application -

I am programming C programming, I have parental forms and other children are I. My parents form How can I cascade windows or close all or reduce them? I mean the functionality for the hair window that can call the parent form. on an MDI form: of System.Windows.Forms Using; // Cascade it. Layout Medi (MDL Out Cascade); // Close all forms [] Children = this. MDI child; For (int i = 0; i & lt; children.Length; i ++) {children [i] Stop it (); } // Reduce all preferences (child in form. MdiChildren) {child.WindowState = FormWindowState.Minimized; }

hash assignment when (key => value) are stored in an array? (ruby) -

I have hash (@post) hash where I want to keep the order of hash I want to place the key (@ post_csv_order) and the relationship key => value in the array . I know that the final number of both elements are @ost hashes and key => values ​​in the array. I do not know how to specify a hash in a loop, for all the elements in the array one by one @ post_csv_order [0] [0] = & gt; @post_csv_order [0] [1] works well # requires 'pp' @ post = {} forum_id = 123 # sample value only .. To work this sample script, post_title = "test post" @post_csv_order = [["forum id", forum_id], ["post title", post_title]] if @post [forum_id] == neil @ post [ Forum_id] = {@post_csv_order [0] [0] = & gt; @post_csv_order [0] [1], @post_com_order [1] [0] = & gt; @post_csv_order [1] [1] #@post_csv_order.map {| Element | Element [0] = & gt; Element [1]} #@post_csv_order.each_index {| Index | @post_csv_order [index] [0] = & gt; @ Post_csv_or

visual c++ - event sink for web browser in C++ -

gud day !. I am developing a system that simply URL the URL with its response time is my likelihood that the alim is that this applying standalone program written in C ++ (plug- None) Every time the user browses, the program does so in a certain way. So it's similar, my program listens to browser incidents. I do not know about creating a reliable inconvenience for the above mentioned web browser in Internet Explorer, Mozilla Firefox and Google Chrome. Any suggestions, advice or ideas that enable me to start development should focus on studying in any field. Thank you for your time! Hope for your response !!) Best regards! The easiest way to get what you want is to block the network traffic and remove the URL from the HTTP packet . Modifying the LSP stack Stop the Winsock function call

c++ - Find out where PE file ends through PE header? -

I want to add some binary data at the end of my executable. This is to create your own program in just one file. I tried to use UpdateResource but I hit some bugs with my specific data, so I have to use another solution, so I should know the size of the original file to decide whether any data actually It has been added on. Is it possible to get this information from PE header? Thank you! I found my solution here

java me - Midlet wake up from bluetooth connection -

I'm trying to register a midlet for push registration to wake up from a Bluetooth connection. The requested behavior is that when a car kit (hands-free) will be in the range of the device, the app will wake up. Is this possible? If so, how should this be done? Thank you in advance, I can confirm that one of the Nokia devices The MIDlet is possible to open a registered service in the Pure-Registry. The registration can be defined in JAD (static registration) or can be dynamically defined in the code. Nokia phone S 60 3D & S and S40 3D should support this feature, on other phones (Sony, Samsung, Motorola etc.). I did not find this facility work. Google is the JAD feature: Midlet-push-1 Good luck!

c++ - gcc - significance of -pthread flag when compiling -

विभिन्न बहु थ्रेडेड सी और सी ++ परियोजनाओं में मैंने -पीथ्रेड ध्वज को दोनों पर लागू किया है संकलन और लिंकिंग चरण जबकि अन्य इसे बिल्कुल भी प्रयोग नहीं करते हैं और सिर्फ -lpthread को जोड़ने के चरण में पास करते हैं। क्या कोई भी संकलन नहीं है > -पीथ्रेड फ्लैग - यानी -पीथ्रेड क्या करता है? मुझे प्राथमिक रूप से लिनक्स प्लेटफार्मों में हस्तक्षेप रहा हूं। कोशिश करें: जीसीसी- dumpspecs | Grep pthread और % {pthread: । -D_REENTRANT , और -lpthread से लिंक किया गया है। अन्य प्लेटफार्मों पर, यह भिन्न हो सकता है अधिकांश पोर्टेबिलिटी के लिए -pthread का उपयोग करें। _REENTRANT का उपयोग करते हुए, जीएनयू लिबसी पर, कुछ लिबसी हेडर काम करते हैं। एक विशिष्ट उदाहरण के रूप में, यह त्रुटि वाला एक थ्रेड-स्थानीय स्थान लौटाए जाने वाले फ़ंक्शन को कॉल करता है।

java - Why widening beats both Boxing and var-args in Overloading of a method? -

I am preparing for a SCJP exam and when I am studying a wide area, it has been given that it is wide After being overloaded, there was no clear explanation of boxing and war - but tried to find a better answer. I got an answer because the compiler chooses the old style before choosing a new style. But I'm not sure. Edit: I know frameworks are preferrd compared to boxing and var-args. But why is my question from which I know one other reason. Yes, the compiler "chooses the old style on the new style", because compatibility requirements imagine some code Do, which was written before Java 5, when there was a sudden change when compiled under Java 5! It would be bad Conversions have been increasing since the beginning of Java, but AutoBoxing and Classes are new in Java 5.

php - Dynamic variable names in Smarty -

I want to use some variable dynamically assigned to PHP in Smarty, here's an example: $ content_name = 'body' $ smarty- & gt; Assign ('content_name', $ content_name); $ Smarty- & gt; Allocated ($ CONTENT_NAME. '_ Title', $ title); $ Smarty- & gt; Allocated ($ CONTENT_NAME.'_ body ', $ body); // fixed value // $ content_name = home // $ home_title = $ title // $ home_body = $ body The reason I want to use these dynamically because I have many versions Calling a task that includes the code above, they all use the same template and therefore do not want to use only $ heading, $ body because their value will conflict with each other. Given that I know that I want to use title and body variables based on set content_name, how can I achieve this in a sensible way? According to my comment on using an array instead of dynamic variable, here is an example of how to add war to the head: / P> php: $ vars = array (); Whatever the

flex - what get selected column value In Advanced data grid -

How to get the value of the selected column form Advanced Datagram, whose visitor property is incorrect. Any other such myDataGrid.selectedItem.column [- InvisibleColumnsIndex--] Where - Investigative column index - is the numeric index of the columns you want to assume. Or you can go for the price only in the datasaver. myDataGrid.selectedItem.InvisibleColumnsNameInDataProvider Should work in both ways, but I have only tested the other.

ruby / rails / mysql performance degraded on Snow Leopard -

I've burned it for a few hours. I do not have problems in making things, but I think my test suite runs at about 2x slower than when I was at OS X 10.5.x. I've spent a lot of time playing around with different customization settings (Learning to avoid homebrew llvm-gcc compilation). I have just learned that I need tweaks / Library / Preferences / SystemConfiguration / com.apple.Boot.plist to boot the kernel in 64 bit mode. However, my rail app is still running a bit slower than before, even after heating mysql server. So what performance tweaks might I need to see? At present, the stock is faster than 1.9.1 for some items compared to Rabbi 1.8.1, and I would really like to know if I should find anything. All of my Dev software has been compiled for x86_64, mysql-O2 optimization, using regular GCC (not llvm-gcc). I was stupid. I had added / modified some lines in my test suit, which had I had worn that performance which I was worried

c# - Refactoring Service Layer classes -

My company is on a unit test kick, and I'm having some difficulty with the refactoring service layer code. Here's an example of some code I wrote: Public class invoice Customer: IInvoiceCalculator {Public CalculateInvoice {Invoice Invoice} {foreach (invoiceIll in invoice.line) {UpdateLine (IL); } // Get tons of other stuff here;} Private Update Line (invoicing line) {line.Amount = line.Qty * line.Rate; // do a bunch of other stuff including calls for other personal methods}} In this simplified case (it has been reduced from 1,000 line squares which has 1 public method and ~ 30 Private people), my boss says that I should be able to check my CalculateInvoice and UpdateLine separately (UpdateLine actually calls 3 other personal methods, as well as calls the database). But how do I do this? Their suggested refactoring seemed a little complicated for me: Short code of the original code: Public class invoice: Clinicator: IInvoiceCalculator {public ILineUpdater _lineUpdat

c# - Key things to learn to be a senior developer under the MS platform -

मुझे निम्न पता है: asp.net वेबफॉर्म, एमवीसी, एसक्यूएल सर्वर 2005/2008, वेब सेवाओं, और खिड़कियां सेवाएं। मैं विस्तार करना चाहता हूं ताकि मैं थोड़ा अधिक बहुमुखी बना सकूंगा। मुझे किस चीज पर ध्यान देना चाहिए? (यह सामान्य मार्गदर्शन है, वेब फोकस के साथ) मैं सोच रहा हूं: SSIS विंडो वर्कफ़्लो शेयरपॉइंट मुझे जो अन्य सामान्य कौशल जानना चाहिए I क्या पहले से ही मुझे पता है के साथ अच्छी तरह से जाना? प्रौद्योगिकी लेकिन सिद्धांतों वास्तव में

ruby - How do I get an array of check boxes in haml? -

I have an array of stars in a regular form implemented as part of the Serrera server, which is called thethemodels. Models are options for selecting the user, and are received from the end of the back (the idea, as new models are added, then the front end code should not be changed). I am using Hamil to present HML. How can I tell each element in the list of @theModels, as each element is a checkbox? I think that simply inserting = @themodels and how can I obtain that user by receiving the checkbox Could? Let me list the stars contained in theModels, but not without spaceship or likes, and of course not in the checkbox. I think that sounds like it but my haml-fu is not good enough to change in what I need. Update: This option uploads the file, such as the code now: % form {: action = & gt; "/ Upload" ,: method = & gt; "Post" ,: enctype = & gt; "Multipart / form-data"} - @ theModelHash.each do | Key, value | % {{Type = &

php - foreach in class: I cannot return all the ele in arr -

Well, I am improving my form generation classes and are stuck in returning all the elements of the country_data array . Only the first two elements are displayed on dropdown options. Here is the dropdown category: // drop down form category class dropdown {function __construct ($ form, $ field_label, $ field_name, $ field_desk, $ dropdown_data, $ locale) { $ This-> form = $ form; $ The-> field_label = $ field_label; $ The-> field_name = $ field_name; $ The-> field_desc = $ field_desc; $ The-> dropdown_data = $ dropdown_data; $ The-> Locale = $ locale; } GetNotRequiredData () {global $ notReAkry; Return $ notReAkry [$ the-> Locale]; } GetValue function () {return $ _POST [$ this-> field_name]; } Function options () {foreach ($ this-> dropdown_data $ key => $ value) {$ options = sprintf ('% s', $ key, $ value); }; } Function dropdown () {return $ select_start = "field_name \"> $ this-> field_desc ". $ This-> option ().

asp.net mvc - How to use Html.RenderAction in SparkView Engine? -

When I use it like this I get an error ! {Html.RenderAction ("Action", "Controller")} I had to switch to the webform view engine and it was To make it work. The error I get is "Can not change zero in characters" & lt;% HTMLRender Action ("Action", "AV"); & Gt%; is identical # HTML Render Action ("Action", "Avi"); In spark syntax, {} expression is expected to return the results and be written in the stream; RenderAction does not return anything, it writes the stream itself, this is the reason why you have to call it in the code block and can not do it inside the expression.

Problem wiht wrong file format (gif insted of jpg) when saving images from server - PHP -

I am using the peace of PHP code to save some images and rename. foreach ($ & amp; $ value as phone $) {$ link_img = $ handle = @fopen ($ link_img, "r"); If ($ handle) {while ((handle $ FIFF) ($ buffer. = Fgets ($ handle, 4096);} Fclose ($ handle); $ filename = "files / Nokia _". $ Phone_model. " $ .jpg "; $ Mystring = fopen ($ filename," wb "); $ handle = fopen ($ filename," wb "); $ numbytes = fwrite ($ handle, $ buffer); fclose ($ handle); set Most images are JPGs, I think the extension is .jpg in all the files, but I have a collision in an image, it has a .jpg extension, But its GIF (I think) ... And then my foreach stops: ( A How to handle it? Thank you for your help, I've learned a lot here on Stackevelopeflow, and this is my first question. You only need to update the following line: $ filename =" files / nokia_ ". $ Phone_model." .jpg "; < / Code> to: I do not think th

php - Wordpress not using correct comments file? -

Any experience that uses Wordpress knows that it uses my comments.php file Why not in a theme folder? I had to work now, I had to change & Lt ;? Php comments_template (); ? & Gt; In this & lt ;? Php comments_template ('', is true); ? & Gt; Instead, weird but it fixed my problem

hidden field - Keep locale in session or send along with form? -

I am creating CMS. CMS has the ability to edit pages based on the selected locale. I place this selected place in a session, while the CMS user browses through the pages they want to edit. Now, my question is: If a user is editing the page and wants to make changes, do you think that I would like to include the locale as a hidden field in that place What should be presented? Just to be on the safe side? Or should I just rely on the place that is present in the session? Yes, you must post exactly this happens all the time, because the user while editing the page The result could have changed the result that one page is overwritten with content from another location. If a user does not have permission to edit pages outside their locales, then you will have to check addition to whether the user has permission to edit or not specified page / locale combination (because they are a fake When it comes through a session).

Text and Image on SWT Button -

Does a view have a SWT buuton with both image and text? I have tried to embed the SWIT in SWT and this view looks exactly as I want, but when an operation is in progress, this view does not load until the load is loaded. This makes my approach seem unstable. help please. Are you using OS? You can set text and image only on Windows XP / Vista / Windows 7, GTK + and OSX. E.g. increases the public square ButtonView frontend {Private button m_button; Creating Public Zero PartControl (Composite Parent) {m_button = New Button (Parent, SWT.NONE); M_button.setText ("My Button"); M_button.setImage (JFaceResources.getImage (Dialog.DLG_IMG_MESSAGE_ERROR)); } Public Zero Set Focus () {m_button.setFocus (); }}

javascript - how to efficiently append content with JQuery -

I am using JQuery to add large amounts of text inside a tag. Currently I get more text within the tag, there is a slow cover, and in large quantities the text is very slow. Is there a more efficient way to add text? For example, instead of creating dummy hair tags and setting the content instead of adding them to parents? See it and also: and in general: No. Do not include directly in the domain Create a string and add it or use the document Do not include directly in the dom < / Li>

html - xslt grab value from other node -

I have two xslt dynamic drop-down boxes and a test statement is required which will test if another is used . & lt; Xsl: template match = "cat" & gt; & Lt; XSL: Select & gt; & Lt; Xsl: when exam = (if the dog has already been selected) & lt; Select ID = "Select Cat" & gt; & Lt; Option value = "" onchange = "submitCAT ()" & gt; & Lt; Option value = "shorthair" & gt; & Lt; / Select & gt; & Lt; / XSL: When & gt; & Lt; XSL: otherwise & gt; & Lt; Select id = "selectCAT" & gt; & Lt; Option value = "" & gt; & Lt; Option value = "long time" & gt; & Lt; / Select & gt; & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt; & Lt; / XSL: Templates & gt; & Lt; Xsl: template match = "dog" & gt; & Lt; XSL: Select & gt; & Lt; Xsl: when test = (if cat has already be

Add a property to already created Type at runtime C# ASP.NET -

I needed to prepare squares and items on runtime. Therefore, I made it look like this < P> I am storing all the built-in types in a list. But now the other requirements are to add properties of the type already prepared. This reason, if I want to use Class A as a property type in class B and both say in class C. I have read a lot of articles on it, but have not yet resolved Any help would be appreciated. Thank you Actually, I'm in the process of developing a Multitenant application such as LiterwHRR by Microsoft. This will be a system where the administrator can do all the sites with the same growth management functionality (such as MS SharePoint) Everything is done in addition to the workflow! In the table to store the data, I am storing it in XML format .. Example: Web Parts are created on the runtime by using XSLT for everything from control of events with events for web parts. Here, the challenge occurs when I need to use an expression ev

linux - Kill/Yank (cut/paste) in ZSH -

I use zsh and I'm setting up Emacs keybindings for this. I would love to repeat the orders for manipulating my regular MACS text to all which I miss is the kill / yank keys. It would be good if I can select the text ( C-SPC - this works) and then kill-area ( cw - it just removes the previous word). Yank ( Cy ) works fine and I can cycle through them using my too. Is anyone working like this one setup? A simple "\ cw": kill-region my In the .inputrc, the file binds the function keys that I want. Update: speaks very soon. The above is for applications that use readline libraries. Zsh uses its own zle How to configure a similar behavior such as the bindkey "\ c-w" kill-zone to your .zshrc < / Code>

c++ - How to get Shared Object in Shared Memory -

Our app depends on external, third party-supplied configuration (including custom driving / decision-making tasks). . Independently, it cooperates with external CGI modules, a part of shared memory, where almost all instability states are kept, so that external modules can read it and modify it wherever applicable. Able to do The problem is that the CGI module requires many types of permanent config data. Additionally, to provide main app data, it completes unnecessary duplication between two memory areas. The idea is to load the shared object in shared memory, and to make the CGI directly available. The problem is how? To specify where to load the SO file, the deluxe and DSLSM do not provide any facilities. We tried shmat () It works only unless some external CGI actually does not try to reach the shared memory then the area pointed towards being privately as That was never shared. Maybe we're doing something wrong? Loading. Therefore it is needed in every script, i

jquery ui - Why can't I get the icons when I use jQueryUI with Google Ajax API within Jetpack? -

When I try to use jQueryUI through the Google Ajax API, I showed on any modal dialog box I can not appear icons, but when I click on those places where they have relevant functions (like I can change the size of the modal dialog box and close). Here is my code for problematic screenshots and jetpack: function testJQ () {var doc = jetpack.tabs.focused.contentDocument; Var win = jetpack.tabs.focused.contentWindow; $ .get ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js", function (js) {var script = doc.createElement ("script"); script .innerHTML = js; doc.getElementsByTagName ('HEAD') [0] .appendChild (script); $ .get ("http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui .min.js ", function (js) {var script = doc.createElement (" script "); script.http: builderHTML = js; doc.getElementsByTagName ('HEAD') [0] .appendChild (script); $ .get ("Http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/t

How does rspec work with Rails 3 for integration tests? -

What am I thinking about Integration testing with webrat in Rail 3 as it does the minute With test unit in 34 An example: describe some apps "this index page should be shown" "travel" / "body.should = ~ / hello world / end and Does anyone know a way to do this? RSPC-RAIL has tried to use: This is a repository for RSPC 2.0 (install instructions in readmeem) which will work with Rail 3.

Filtering out values from a C# Generic Dictionary -

मेरे पास सी # डिक्शनरी, डिक्शनरी & lt; Guid, MyObject & gt; है कि मुझे फ़िल्टर्ड आधारित MyObject की एक संपत्ति पर। उदाहरण के लिए, मैं शब्दकोश से सभी रिकॉर्ड्स को निकालना चाहता हूं जहां MyObject.BooleanProperty = false । इसको स्वीकार करने का सबसे अच्छा तरीका क्या है? "post-text" itemprop = "text"> चूंकि शब्दकोश क्रियान्वयन IEnumerable & lt; keyvaluePair & lt; key, मान & gt; & gt; , आप जहां उपयोग कर सकते हैं: var matches = dictionary.Where (kvp = & gt;! Kvp.Value.BooleanProperty); यदि आपको इसकी आवश्यकता है तो एक नया शब्दकोश बनाने के लिए, ToDictionary विधि का उपयोग करें।

java - Jetty mysql connection-pool configuration error: javax.naming.NameNotFoundException; remaining name 'env/jdbc/---(mysql 5.0+jetty 7.0.1) -

मेरी कॉन्फ़िगरेशन फ़ाइलें project / WEB-INF / web.xml : & lt; संसाधन-रेफरी & gt; & Lt; विवरण & gt; कनेक्शनपूल डेटा स्रोत संदर्भ & lt; / description & gt; & LT; रेस-रेफरी-नाम & gt; JDBC / mysql & lt; / रेस-रेफरी-नाम & gt; & LT; रेस प्रकार & gt; javax.sql.DataSource & lt; / रेस प्रकार & gt; & LT; रेस लेखन & gt; कंटेनर & lt; / रेस लेखन & gt; & Lt; / संसाधन रेफरी & gt; परियोजना / वेब-INF / घाट-env.xml: & lt; नई आईडी = "mysql" class = "org.eclipse.jetty। plus.jndi.Resource "& gt; & LT; Arg & gt; & lt; / Arg & gt; & LT; Arg & gt; JDBC / mysql & lt; / Arg & gt; & LT; Arg & gt; & Lt; नई कक्षा = "org.apache.commons.dbcp.BasicDataSource" & gt; & Lt; सेट नाम = "driverClassName" & gt; com.mysql.jdbc.Driver & lt; / सेट & gt; & Lt; सेट नाम = "url" & gt; jdbc: mysql: // localho

java - Checking if two strings are permutations of each other -

To determine whether two strings are permutations of each other < Div class = Compare the results to see if they are the same. Edit: The above method is quite efficient - O (n * log (n)) and, as shown by others Is the standard java API Even more efficient (but more than that) the calculation and comparison of the occurrence of each character, will be used as an index of values ​​in the form of an index. I do not think this is an effective way of doing this recursively If both strings meet the same character, then the correct return Otherwise: < Remove a letter from the first letter View the second string for the occurrence of this character If it does not exist then False return Otherwise, delete the deleted character and apply the rearranged algorithm to those who have two strings Please.

datetime - Custom date format cannot be parsed. (Java) -

I have to use a custom date format in Java, because it has microseconds, though Java does not provide support for microseconds due to it I filled the time pattern with zero, which works fine during formatting, but I can not parse the date string with that pattern. Is there any simple solution or self-microswond string functions?) @Test Public Zero TestDataformats () ParseException throws {DateFormat format = New SimpleDateFormat ("yyyy-MM-dd-HH.mm.ss.SSS000"); String theDate = format.format (new date ()); // it will fail: format.parse (theDate); } java.text.ParseException: ineffective date: "2010-01-25-12.40.35.769000" Your problem is that the patterns used in SimpleDateFormat differ from unfortunately, its basis is whether it is used as a parser or as a formater or not. As a formatter, your pattern is expected, the output will end up with three-digit formatted millisecond value as three digits, such as: 2010-01-25-14.17. 47.307000 is used as a