Posts

Showing posts from February, 2010

javascript - Building an Owl Carousel with photos pulled from Instafeed.js -

Image
I am currently trying to use an image carousel (owl handelcel) which dynamically pulls Instagram photos Is (using Instafeed.js). I am using Oval Carousel v2 in conjunction with some custom scripts so that my images can be split into two horizontal rows, such as the grid. My Instafeed.js has been set up properly to draw images based on the tag name I have. I have a problem synchronizing these two plugins so that my owl carousel pulls images from my Instafeed.js feed. For display purposes, I have separated the carousel and Instagram feed device so that you can work them as individual plugins (Please note that you need to enter your Customer ID to show Instagram images Will happen). HTML: & lt; Section id = "demos" & gt; & Lt; Div class = "row" & gt; & Lt; Div id = "owl2row-plugin" class = "owl-carousel" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Section & gt; & Lt; Div id = &qu

ios - Custom Input View in Swift -

How many hours have I spent learning how to get a custom create / > To work, I have a grid of TextInputs (Scrabble board looks) to work, when pressed, custom inputView to insert text. Should load. I've created a .xib file with the input element for UI elements . I was able to create a CustomInputViewController and looks at inputview , but is not able to get the actual TextInput , it's value / Is able to update the text . Apple documentation seemed to be light on how it worked and I have seen that many tutorials are using obje-c (which is that I think small things that are unable to be done fast is). What are the required pieces of multi-dimensional architecture and code that should be implemented to create customInputView for many codes (representative series, controller, .xibs, Thoughts etc.)? Set up a nib file with proper inputview layout and items in my case I have the input button button Suppressed . Each button is set for a button on th

javascript - Angular chosen is not binding Array of Objects -

Image
I am using the angular selection plugin to select an attribute on any selected element. My data will be in this format: $ scope.pets = [{id: '1', name: 'dog', desc: "something" }, {Id: '2', name: 'cat', desc: "something"}, {id: '3', name: 'rat', desc: "something"}]; And the angle selected to display the name using the ng-option is: & lt; Select multiple NG-model = "MyPets" ng-option = "R in pet as R" selected & gt; I am able to get the drop down using the ng-option for the above data like this, But if my NG model is bundled, then how do I get angles values ​​to input input The following object can be tied to the box: $ scope.myPets = {id: '6', name: 'pig', desc: "something"}, You can set default values ​​until you $ scope.myPets = [$ Scope.pets [0], $ scope.pets [5]]; You need to use an array [] than what you wer

angularjs - Using a meanJS application (running grunt in the Linux terminal), how can I possibly implement and use NgReactGrid? -

Has anyone been able to use NGREAPGrid to create a table? I'm pretty sure that I need to install npm in the command line to get ngReactGrid ( npm installed ngReactGrid --save ). I did this, but it still does not work. Can anyone take any action through this step, which is how to get it to use the midgies application framework? First of all, I was following the link given below, but it has not been quite useful. They are not using the meanJS application framework in that link, and I believe that due to them, they have lots of & lt; Script & gt; statement is in their source code. There is a link to try to understand that: However, what I really do not need is for example, npm install ngReactGrid --save After execution. I'm not sure how to use it to actually create a table, maybe I'm also setting it up incorrectly. Anyone can make any basic table, take any step by its steps. I'm not sure what to try at this point. I'm new to JS, and this is a p

amazon web services - AWS IAM: Using restricted policy while assuming role -

I have several components that have contact with the customer's AWS resources. The customer passes an application wide AWS role in which all components have all necessary permissions and these components consider the role of essential negotiation. The issue with this approach is that a particular component gets unnecessary permissions which are not necessary and are defined for other components. What I want to do is that a particular component should only have those permissions required by it. Before hand I know what permission is necessary for a particular component, an approach that I can think of, that my main application considers the role and passes an alternative policy document to restrict permissions for a particular component. And then passes the AWS credential to the role that the component holds. The outcome of this approach is believed to be that the role applicants sent from the main applicant to the ward seem unsafe. Is there no other way to pass credentia

deployment - python fabric run function once for all servers -

We have a deployment script that has 5 servers, we run the script and notify us once, though it is 5 Server. example code: env.hosts = ['web1', 'web2', 'web3', 'web4', 'web5'] < Code> def notify (): sendNotify () @task def deployment (): sendNotify () deploying deployment items deploying things deploying I think that Be informed will be asked only once, but because there are 5 servers, it is called 5 times. Maybe you < notify at code> @Runs_once Decorator. See:

objective c - Lag When Activating Text Field Inside iOS 8 Custom Keyboard -

I want to add a search field inside my custom keyboard that lets the user search for content that is then input The main text document for which the keyboard is being displayed. However, calling -becomeFirstResponder to the UIT ext file object during which there is a gap of 3-4 seconds, no input is accepted if I So, if I call -resignFirstResponder . I can fix the property of the text of the text field, but it means that no one cares, and the text has been shortened to fit. When calling on (first responder , I receive the following message in the log: 2014-10-28 13: 39: 50.920 Giffy KB [2073: 514844] Received 0 Images 2014-10-28 13: 39: 57.942 Giffey KB [2073: 514745] & lt; _UIRemoteInputViewController: 0x14762a030> Waiting for time to bar the fence Com.theappical.giffage.giffagekb 2014-10-28 13: 3:39: 58.446 Gaffi Kebi [2073: 514745] See 'Fencing' with 'end' messages within the 'second' service 'The message was not left; Timing

javascript - How to stop Razors automatic encode of \n? -

मेरे पास कुछ स्ट्रिंग हैं जिसमें \ n , उदाहरण के लिए: ViewBag.stringTest = "नमस्ते \ n वर्ल्ड! \ N चक्री"; मैं मेरे विचार में उपयोग करना चाहते हैं यही कारण है कि और मेरी जावास्क्रिप्ट में अधिक विशिष्ट $ (document) .ready (function () {var howItShouldBe = " हैलो \ Nworld \ nBreakrow! "; var stringTest1 =" @ ViewBag.stringTest "; var stringTest2 =" @ Html.Encode (ViewBag.stringTest) "; var stringTest3 =" @ (नई HtmlString (ViewBag.stringTest)) "; var stringTest4 = "@ Html.Raw (ViewBag.stringTest)"; var stringTest5 = "@ MvcHtmlString.Create (ViewBag.stringTest)"; var stringTest6 = "@ ViewBag.stringTest.ToString ()";}); लेकिन जब @ रेजर का उपयोग कर यह जगह वास्तविक breakrows / लाइनब्रेक साथ \ n (जैसे कि यह थोड़े चाहिए) मेरे मामले में यह जावास्क्रिप्ट टूट जाता है लेकिन और मैं चाहता हूँ यह वास्तव में लाइनबैक करने के बजाय \ n प्रदर्शित करता है। क्या इसको रोकना है? आमतौर पर @ एचटीएमएल। रॉ ज्यादातर

SQL Server calculate running total value with query -

I use SQL Server 2012 and there is a table like the following: DE TALLET @ TABLE (value INT, [type] CHAR (1), quantity INT, value money, unit price value (value / quantity) @ value (1, 'i', 30, 1500), (2, 'o' 5, null), (3, 'o', 20, faucet), (4, 'o', 2, null), (5, 'i', 10, 2500), (6, 'i', 8, 1000), (7, 'o', 3, null), (8, 'o', 10, ft), (9, 'i', 12, 3600) In the table, I have the unit value for the record type of 'I' and 'O' with ('I' and 'O') with the price column Use R's record to calculate the last 'I' type record value I RunningTotalPrice (the sum of the quantities * unit part of each row). The following code is calculated by running the Calcutta: < Pre> SELECT *, SUM (in case [type] = 'I' then the volume is calculated on the ELSE -Quantity END (ID as per order) AS QuantityRunningTotal @t and The result of this query is: ID type volume

getting the last field of a string separated by a particular delimiter in bash -

I am writing a script that uses a set of files to bash scripting in a directory. The file I am trying to copy may already be present in the directory, so I have to rename the file to avoid changing the original file For example, if I were to "abc. Dd.java "and a file with the same name already exists, then I have to rename the file as" abc.dd1.java "and copy it. If the destination is "abc.dd.java" and "abc.dd1.java" then the file name must be "abc.dd2.java" I a code snippet Written by: # $ is the absolute path to the original file in the file # $ path is the full path for the copied file in Copypath = "$ path" echo "$ Path "count = 1 while [-f" $ path "] part1 =` counterpart '$ copypath ". ("I (NF-1)))}} END {} "part2 =" countercurrent "$ copypath" | "$" "$ Count" "$ part1" count = 'expr "$" "{{FTS =" "

ios - How to Zoom CollectionviewCell Image when it was Selected? -

I have UICollectionview conatin and each cell is an application that CustumCell images I want to make when you choose any image so while it was zoomed in mind, and when the zoom view touch collectionview was shown as a URBMediaFocusViewController Libraray link Library here I said it many times But please give me the solution. This is not very elegant, but how do I do it. Basically frame location and its source UICollectionView cell size, frame and where you can get for this case it (I'd like to appear in fill view), animate between two sizes. Hope it helps. - (void) Collection see: (UICollectionView *) See collection Thascilaitmatindpath: (NSIndexPath *) Suckankpth {[collectionView selectItemAtIndexPath: Animated Index: Yes scrollPosition: UICollectionViewScrollPositionCenteredHorizontally]; [Self zoomed image: index]; } - (void) zoomToSelectedImage: (NSIndexPath *) indexPath {UIImageView * zoomImage = [[UIImageView alloc] initWithImage: [self.myPictures objectAtInd

.net - Stream reading variations in C#? -

I have seen - reads from one stream in a buffer: byte [] Buffer = new byte [1024 * 32]; Int bytes read; While looking at the second parameter of ({bytesread = stream.read (buffer, 0, buffer lang)), {// ...} Stream Read (.., 0, ..) which is . Is this offset every time 0? Who said that he does not overwrite the data on those indexes? Contrast: I also saw: int read, offset = 0; While calculating (calculation & gt; 0 & amp; amp; (read = source. Read (buffer, offset, count)) gt; 0) {offset + = reading; Calculation - = reading; } Then offset is offset after each reading (which seems more logical for me) But I should be missing something: Was my observation correct? When should I use every case? NB, my POV network stream is: sending the file. Both code samples are useful, just select your first example to add some code in different scenarios. socket socket = ...; Byte [] buffer = new byte [1024 * 32]; Int bytes read; While ((BytesRed = stream.read (b

ios - xcode 6 asset catalog iphone 6 -

This problem has not yet been answered. When using the property catalog, device specific (not universal), option 1x, 2x, r2x, 3x 1x is unnecessary because it is not retina 2x is well for ip4 with a res 640x960 R2x is well for ip5 with a res 640x1136 IP6plus is well with a race of 3x 1242x2208 Now when I run the simulator for Ip6 (not ip6plus!), It uses 2x image (640x960 resolution for ip4) and also do not increase the fill the screen ( Which is not fit in any way as is not the ratio) Has anyone got the proper guidance to install background images for the new phone? This does not mean how different size shapes are scaling, it is clear, but how to work around the apparent inequality between the Xset image @ 2x is the shares of IP4 and IP6? Thanks! Edit: The same question, but not really solved, using a universal instead of device specific, only one solution to any sort of solution is known to a person better? I've reported a bug about Apple since November 2014 just abo

jquery - How to auto refresh jqgrid in c# mvc -

Is it possible to update jqgrid without loading the page? I mean live updates For example, I want to show the grid online visitors on my site, but I want to see the new users every time Do not want to refresh, does it support? code> $ ('# grid'). Trigger ('reload grid'); Option 2: Make changes while making changes such as a new line added by using the visitor.

Here JavaScript 3.0 API - decent color scheme -

I'm adding a website here as a full screen interactive background. Now I am looking for a way to change the color scheme to more subtitles. I know that the map tile is API - but I really want to interrupt the map, not just an image. I think there was a way for a gray color scheme with API 2.5? At the moment I change the CSS opacity, but it is not optimal, as it also shows the button (zoom, ...) less. The JS API combines very smoothly with the map tile API in the background and in the default layer (platform.createDefaultLayers This is exactly what was received by the call for (): They use the map tile API if you do not want to use any default ones, you can add custom map tiles, pointing to any available map plans. Can create layer: // step 1 : Start with communication platform platform platform = new H. service platform ({app_id: 'demo id 01082013 GAL', APCcode: 'AJKNXV 84 FJRB 0 KIHATTT', CIT: true}); // Using default layers Instead of ... // var

javascript - callback function for Google Geocode API not executing immediately -

I see this behavior when I move through this code: Response handler code is skipped when The rest of the function is finished, and then executes the handler code. It's definitely not what I want, because the code that comes after the response depends on the code in the response handle. var geocoder = new google.maps.Geocoder (); Functional Initialize Place () {var Destination_Letleng; Var destination = document.getElementById ("destination_address"). value; Geocoder.geocode ({'address': destination}, function (result, status) {if (position == google.maps.GeocoderStatus.OK) {destination_LatLng = results [0] .geometry.location;} and if (position = = Google.maps.GeocoderStatus.ZERO_RESULTS) {Warning ("Bad Destination Address.");} And {Warning ("Error calling Google Geocode API.");}}); What is the reason for this behavior, and to ensure that I run the callback before the code given below, how can I change my code? Geocode runs with

c# - Query base entity to retrieve all derived entity's data using Linq to Entities -

मेरे मॉडल में निम्नलिखित वर्ग हैं: सार्वजनिक वर्ग पार्टी {सार्वजनिक इन्ट आईडी { प्राप्त; सेट;}} [तालिका ("व्यक्ति")] सार्वजनिक वर्ग व्यक्ति: पार्टी {सार्वजनिक स्ट्रिंग प्रथम नाम {प्राप्त; सेट;} सार्वजनिक स्ट्रिंग LastName {get; सेट;}} [तालिका ("संगठन")] सार्वजनिक वर्ग संगठन: पार्टी {सार्वजनिक स्ट्रिंग नाम {get; सेट करें;}} मैं पार्टियों से अधिक कैसे पूछ सकता हूं और परिणाम को PartyViewModel के रूप में, linq-to-entity फ्लुअन्ट एपीआई ? सार्वजनिक पक्ष VivModel {सार्वजनिक इन्ट आईडी (get; set;} सार्वजनिक स्ट्रिंग प्रथम नाम {get; set;} सार्वजनिक स्ट्रिंग अंतिम नाम {get; set;} सार्वजनिक स्ट्रिंग नाम {get; set;}} उदाहरण के लिए यदि मेरे पास रिकॉर्ड हैं: व्यक्ति तालिका -------------------- ---- आईडी प्रथम नाम अंतिम नाम 0 जॉन स्मिथ संगठन तालिका ------------------------ आईडी का नाम 1 माइक्रोसॉफ्ट मैं चाहता हूं, क्वेरी रिटर्न: पार्टीव्यूमोडेल ------------------------------ --- आईडी प्रथम नाम अंतिम नाम 0 जॉन स्मिथ नल 1 रिक्त माइक्रोसॉफ्ट एसक्यूएल क

qt creator - Qt On screen keyboard, How to get selected Text Edit -

I have to do a GUI for touch screen software, it is on the same window as text edits, I am thinking It was something simple with limited set of characters, (I have to make a pin pad for other windows later) The approach that I am thinking about is hard-coding of text modifications made by every button, problem I textedit is really focus (user's S chosen by the cursor) So I would like to know how can I find out if text editing is currently on or not? Besides this Edit: This is my new code, what's wrong with it? #include "settings2.h" #include "Ui_settings2.h" Settings 2 :: Settings 2 (QWidget * Basic): QWidget (parent), UI (new UI :: settings 2) {Ui- & gt; Setup UI (this); } Settings 2 :: ~ Settings2 () {Delete UI; } Zero Settings 2 :: on_q_btn_clicked () {QTextEdit * textedit = qobject_cast & lt; QTextEdit * & gt; (QApplication :: focusWidget ()); If (text edit) {textedit-> Settext ("aze");}} the way you think Try

pygame - Controlling USB web camera photo capture time on Raspberry Pi and Python -

I am taking pictures using a USB webcam and pygame at my Raspberry Pi. These images will be used to track movement of the object, then rotate the motor. Therefore, a stable framerate would be good, unfortunately, taking pictures of dark objects takes about 4x more time with a bright object. I suspect that this is the result of long exposure. If this is really a problem, is there a way to determine the exact time of exposure? If not, what else can I do? The result of the code given below: Dark: (The purpose of the black wall): Duration: 14213 ms - Minimum: 12 ms - Maximum: 387 ms - average: 142 ms Bright: (purpose of a white wall) Duration: 3550 ms online - minimum: 12 ms Max: 67 ms - Avg: 35 ms Print "Import." Import Import Time Import PGM Import pygame.Comera to pygame.locals * # INITIALIZE CAMERA PRINT \ "Start \ N "Pygame.init () pygame.camera.init () camlist = pygame.camera.list_cameras () cam = pyg Ame.camera.Camera ("/ dev / video0&quo

perl - Filtering the directory out with Devel::Cover -

I wanted to get coverage of my perl based application in CentOS with Apache web server, and it's gone to get it Gaya. After some initial conflicts, it was established to me Since PERL5OPT env variable did not help me get coverage, I tried to include code in the code using the Devel :: Cover <(I know it's a Bad idea, but it works in my purpose). After restarting the webserver, I am generating the run / structures of cover_db , but the data seems to reduce the total coverage score along with transactions done with CPAN generic modules. For example: If I use a method from net :: FTP , then considering the total number of lines in that module reduces the total score. Similar to all modules of CPANn. What do I need to choose to exclude files from a specific directory for coverage and ignoring all else From the description, it seems that + inc and - The inc option is designed for this, but when I try to use them, I get the following error <<> < P&g

jquery - How to avoid to fetch remote response each time in tab -

I'm getting the response from the remote source for the tab I am using the bootstreap tab, every time I click on the remote Data content is received every time a remote source is called. I want that remote sources to be called for the first time only. My link is $ (document) .ready (function () {$ ('[data-toggle =' Tablet "] '). Click (function (E) {var $ this = $ (this), loadurl = $ this.attr ('href'), targ = $ this.attr ('data-target'); $ .get (loader, function) { $ (Tarrug) .html (data);}); $ thistab ('show'); return;});}) How to get it After loading, you can add some data to the target the first time, and test it: if (! $ (Targ) .data ('loaded')) {console.log ('data not loaded first happened'); $ .get (loadurl, function) {// Here you make the "loaded" state $ (targu) .html (data) targets "flag." Data ('filled', true);} ); } Else {console.log ('The data was already loade

database mirroring - How to find exact time of last received transaction on asynchronous mirror (SQL Server 2005)? -

I think I can get to the previous LSN using: [Master] from SELECT [mirroring_failover_lsn]. [Sys]. [Database_mirroring] But it will not give me the right time. read. You will notice that LOP_BEGIN_XACT contains a timestamp, looking at an LSN, you can correct the log and get all pending transactions (these are all Xact_ads which have no committed or rollback logs before the given LSN is). All pending changes will be brought back in case of failover Data will be lost if this incorrect failover The number of pending transactions will be pending, and these different transactions have started several times. If you want to attach the 'right time of data integrity' you can say that any data loss will not occur before the earliest pending lop_begin_xact. for example. The following log streams: + ----- + ----------- + --------- + ----- - ------ + | Lsn Operation | Xact_id | Timestamp | + ----- + ----------- + --------- + ------------ + | 1 | INSERT

list - Java containers- adding objects more efficiently and how to return using Identifier -

The code is finally attached. So this is my first attempt in the Java normal box. I need to collect the object in the class product. Java which is a random class I have several other classes that extend to the product category. I've added them to a container in a product that uses an orllist, but I suspect that besides its efficient addition, I do not know how to call cheese examples. Is there any way that I can specify an identifier for all instances? Import java.util. *; Public class generic order {public static zero main (string [] args) {ArrayList & lt; Products & gt; Product = new arreelist & lt; Products & gt; (); Product.add (new fruit (123)); Product.add (new computerpart (65)); Product.add (new cheese (123)); Product.add (new service (65)); Product.add (new perimeter (123)); Println (product); }}

grails - How do I use service methods inside an @Secured expression? -

मैं Grails से spring-security-core: 2.0-RC4 < / Code> मैं अपने @ सुरक्षित अभिव्यक्ति के अंदर कुछ कस्टम सुरक्षा जांच करने की कोशिश कर रहा हूं, जैसे: import grails.plugin.springsecurity.annotation.Secured; क्लास AdminController {def myCustomSecService; @ सुरक्षित ("@ myCustomSecService.customCheck ()") डीईएफ़ इंडेक्स () {रेंडर (देखें: "इंडेक्स")}} यह बिल्कुल भी काम नहीं करता है। मैंने @PreAuthorize के साथ समान देखा है, लेकिन उस (जाहिरा तौर पर) को spring-security-acl प्लगइन की आवश्यकता है जिसे मैं उपयोग करने से बचाना चाहता हूं (जब तक कि वास्तव में नहीं है) । अजीब तरह से, वसंत-सुरक्षा-कोर प्लग इन में जार दोनों @PreAuthorize और @PostAuthorize एनोटेशन। मैं यह करने के बारे में कैसे करूँ? < पी> बहुत अधिक खुदाई करने के बाद मुझे लगता है कि मुझे एक समाधान मिला है। मैंने कहीं देखा है कि अगर मुझे स्प्रिंग का उपयोग करते हुए कक्षाओं और विधियों को ओवरराइड करना पड़ा तो शायद मैं कुछ गलत कर रहा था। All मुझे अपनी सेवा में @Component जो

filter an xml / datagridview vb.net -

is an XML file to me that I read in a Detagrid, as follows: dim author as datasets string as new dataSet dim filePath = "C: \ test \ courses.xml" AuthorsDataSet.ReadXml (Failpth) DataGridView1.DataSource = AuthorsDataSet DataGridView1.DataMember = "Lesson" this works fine, but I am looking forward to completing my Datagrid scene 1, which is a text box is typed in 4, based on but I completely I am lost and that I should do. I found the site, but now I prefer to deal with tables and I do not like. Can anyone help me?

c# - DataGridview, How to get some value from second level of an item and show it in a new column? -

I am using c # asp.net and building a windows application. I created a datagrid view and set up the data source. Everything is working fine. But I would like to add a new column to my DataGridView and set some values. This value is not available at the first level, but the second level of the item See the example below: Var searchResponse = Wait for the customer. Search Async (Search Parameters); & Lt; AuctionInfo & gt; DataSource = searchResponse.AuctionInfo; DataGridView1.DataSource = Data Source; Now I'd like to add the value "fullname" to a new column: foreach (var in auction search Search.resolution.AuctionInfo) {var item = wait client.GetItemAsync (Auction insights); String fullname = string Format ("{0} {1}", Item. First name, Item. Listname); } How can I apply it? If you set it "NewRowNeeded" you can put your value in the method: P> Another way to count the rows in the table is to call the event "dgv1.Ro

javascript - How to display a dynamic sub field in angular -

I am writing a dynamic form application in angular.js and how can I use all the objects in the list. I have a collection of items, and there is a collection of list columns, depending on which columns I am specifying, I want to display the fields from each record in the archive. The code listed below works for some objects, but not others. In the example, the root is displayed, but not the sub-start. I understand why this does not happen, but I am thinking how I can work it. var collection = [[root: 'b', sub: {start: 't'}}]; Var column = [{field: 'root'}, {field: "sub. Start"},]; & Lt; Tr ng-repeat = "items in the collection" & gt; & Lt; Td ng-repeat = "column in columns" & gt; {{Items [column.Field]}} & lt; / Td> & Lt; / TR & gt; This will not work because the item does not "[all start."] Your collection must be structured like this: {root: "b", "subtart"

java - Replace string containing " with \"? -

मैं " के साथ \" युक्त स्ट्रिंग को कैसे बदल सकता हूँ? को बदलने के लिए ("" "," \ "") मेरे लिए काम नहीं कर रहा है। सार्वजनिक स्थिर स्ट्रिंग की जगहविशेषचरोंफ़ोरजसन (स्ट्रिंग str) { ("" "", "\" "।" ("", "\" "।" \ R ") .replace (" \ n "," \\ n "); } आप इसके साथ प्रयास कर सकते हैं: replace ("\" "," \\\ "") चूंकि दोनों " और \ metacharacters , आपको उन्हें \ से बचाना होगा

java - Spring Security filters out every case -

मेरे पास दो पृष्ठ मूल वेबसाइट पर निम्न सुरक्षा कॉन्फ़िगरेशन है। & lt; http का उपयोग-भाव = "true" & gt; & Lt; intercept-url pattern = "/ login *" access = "permitAll" / & gt; & Lt; intercept-url पैटर्न = "/ संसाधन / **" access = "permitAll" / & gt; & Lt; intercept-url पैटर्न = "/ **" access = "हैरोल ('ROLE_ADMIN')" / & gt; & Lt; form-login login-page = '/ login.jsp' default-target-url = "/ index.jsp" उपयोक्ता-पैरामीटर = "नाम" पासवर्ड-पैरामीटर = "पासवर्ड" / & gt; & Lt; / http & gt; & LT; प्रमाणीकरण-प्रबंधक & gt; & LT; प्रमाणीकरण प्रदाता & gt; & LT; उपयोगकर्ता के सेवा & gt; & Lt; उपयोगकर्ता नाम = "व्यवस्थापक" पासवर्ड = "व्यवस्थापक" प्राधिकरण = "ROLE_USER, ROLE_ADMIN" / & gt; & Lt; उपयोगकर्ता नाम = "उपयोगकर्ता" पासवर्ड = "उपयोगकर्ता" अधि

asp.net mvc 5 - How to save Rotativa PDF on server -

I am using Rotativa to create a PDF in my "MVC" application. How can I save Rotativa PDF? After all the process is completed, I need to save the document on the server. Code below: public function PRVRequestPdf (string refund, string emid) {var prv = Functions.getprvrequest (refnum, emid); See Return (PRV); } PRVREXEx model as public functioning PDFPRVRequest () {var PRV = session ["PRV"]; Byte [] pdfByteArray = Rotativa.WkhtmltopdfDriver.ConvertHtml ("Rotativa", "Approver", "PRVRequestPdf"); Return to the new rotativia. ViewAsPdf ("PRVREXPDF", new {refnum = prv.rheader.request.Referenceno}); } You can try it Var Action Result = New ActionApPDF ("PRVREXPDF", New {Ref. = PRVR .. Requested, EMID = "Whatever"}); Var Bitere = Action Result .Build PDF (Controller Context); Var filestream = new filestream (write fullpath, flamemod.creative, file essay); FileStream.Write (Bytere, 0, Bytere Lang);

c# - Using Process.Start to clean a solution - devenv.exe keeps .pdb file open -

मैं एक समाधान कार्यक्रम का उपयोग कर सफाई कर रहा हूं: var cleanProcess = Process.start (@ "ई: \ प्रोग्राम फ़ाइलें (x86) \ विज़ुअल स्टूडियो \ कॉमन 7 \ आईडीई \ devenv.exe", स्ट्रिंग.फॉर्मेट (@ "{0} \ {1} .sln / clean", _solutionFolder, _solutionName)); cleanProcess.WaitForExit (); लेकिन यह बिन फ़ोल्डर से सभी फाइलों को नहीं हटाता है (यह कुछ समाधानों के लिए होता है, लेकिन दूसरों के लिए नहीं), इसके बाद मैं बिन फ़ोल्डर में सभी फ़ाइलों को हटाने की कोशिश कर रहा हूं, लेकिन यह काम नहीं करता है क्योंकि devenv.exe में अभी भी .pdb फ़ाइल खुला है। मैंने उन्हें मैन्युअल रूप से हटाने की भी कोशिश की है, इसलिए यह विलोपन कोड के साथ नहीं करना है। मैंने भी को साफ करने की कोशिश की है। प्रसंस्करण। (); बाद में और इसमें कोई फर्क नहीं पड़ता मैंने cleanProcess.Kill (); की कोशिश की है, लेकिन यह काम नहीं करता क्योंकि यह प्रक्रिया पहले से ही बंद है। प्रक्रिया के बाद भी मैं फाइल कैसे बंद कर सकता हूं रोका हुआ? या फिर यह सुनिश्चित करने का एक और तरीका है कि / साफ सभी फाइलों को नि

image - Average Picture of float Pictures Python -

I want to do something like this post: I have given the code given to work How can I change? Float pictures in "Tiff" - format? This is what I have tried: Importing OS, Oval, PIL import from PIL image # All PNG files in the directory. Os.chdir ("c: // users // Student /// Desktop // Builder // "Print" is working:% s "% os.getcwd () allfiles = os.listdir (os.getcwd ()) Imlist = [in all files File name for file name if file name [-5:] [".tiff", ". Tiff"]] # imlist = [file name for file name in all files] # All images have similar sizes assuming , Get the dimension First Image W, H = Image.Open (IMlist [0]) Size N = len (ISL) # RGB images (RGB images value) arr = numpy.zeros ((H, W, 1), numpy.float ) # Average pixel intensities, cast each image as an array of float for IM in ISL: imarr = numpy.array (Image.open (im), dtype = numpy.float) arr + = imarr / n # Enter the round value and the 8-bit integer array = numpy.array in the a

Adding subreports to master report at runtime (java) -

OK, I did not get an answer to my question with Google ... Currently I I am using JSPPR Ramps and Dynamic Jasks to create and print my reports. When I just use a Jasper-file or jrxml-files, all the work is fine. I have a piece of code that merged all Jasper print files in one if I need to combine the report Ho. However, it is not really optimal ... Can I use a .jasper or .jrxml-file as a master report (this includes a header, a footer and an empty description- Band) and fill it with its extension-band with 1-N subreports (currently .jasper or .jxrml)? Currently only one uses my demographic datasheet (tablemodel) and receives its data from other general criteria parameters. I have found many different ways to do something that can eliminate a result which I want but no success yet ... Which builders / managers / What do I need? It is a little frustrating because there is not enough information about different classes, methods and their criteria, why they are and what is nece

c# - Textbox, search without accents (ignore accents) -

In my Windows Phone app, there is a ListBox (populated from a JSON) and a textbox that searches for items in the list box. This code works fine, but I need to be able to find "lapis" and find "lapis". Therefore, I need to ignore the tone on my search. How to do this? Private zeros txtSearch_TextChanged (Object Sender, TextChangedEventArgs e) {if (Items! = Null) {it.list 1. Item Source = Item Where (w = & gt; w.descricao.ToUpper (). (SearchTextBox.Text.ToUpper ())); }} Private Zero WatermarkTB_GotFocus (Object Sender, RoutedEventArgs E) {If (SearchTextBox.Text == "Pesquisar Produto ...") {SearchTextBox.Text = ""; Solid Caller Brush Brush 1 = New Solid Collar Brush (); Brush 1 Color = color SearchTextBox.Foreground = Brush 1; }} change w.descricao ToUpper (). In this (SearchTextBox.Text.ToUpper ()) To CultureInfo.CurrentCulture.CompareInfo.IndexOf (w.descricao, SearchTextBox. unknown The meaning of non-space indic

language agnostic - Regex match all the words outside quotation marks? -

Is it possible to match text outside the quotation marks by using the standard regex parser? I have seen this answer, but it is done using PCR: This is not a pure solution due to using Perl. I know that it uses the programming language It can also be solved by using, but this idea is to use the pure Regedx Parser. I did something like that, but it is not working properly [^] (? = (?: ([']] + ( . *? \ 1)) | ([^ ''] * $)) Thank you in advance. UPD1 : This idea is to match any type of text to quotation marks; the solution should not depend on the input. & lt; Yourtext & gt; (? = =? (?: [^ "] *" [^ "] *") * [^ "] * $) Yes, you can use it positively But it assumes that you have balanced " and there is no stray " somewhere lying. See the demo.

angularjs - ngAnimate throwing an error at line 992 -

Image
I am currently trying to figure out who broke my script, me or angular-animate.js . This is my html code: & lt; Body Data - I'm sure it's me, but hey, there may be a miracle and I can be innocent at this time. ng-app = "applications" & gt; & Lt; Divdata-ng controller = "Ctrl" & gt; & Lt; Label & gt; & Lt; Input type = "checkbox" data-ng-model = "check" & gt; Me & lt; / Labels & gt; Click & lt; Div data-ng-show = "check" & gt; Boo! & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "js / angular.1.3.0.me.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "js / angular-animate.1.2.26.money.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "js / ui-bootstrap-tplus-0.9.0.man.js" &am

php - How to implement a concat KDF for use with JOSE/JWE/JWT -

text after "itemprop =" text "> I try to write the code to decrypt a JWE token in PHP, as I do not support existing libraries algorithm I am doing ( A128CBC + HS256 , this is a excluded algorithm). My problem is that I can not understand how to generate the content encryption key which uses the "Concatenation Key Derivation Function" (see Section 5.8.1 here). I am based on my values. So far, the relevant part of my code looks like this: P> // Darey CBC encryption and episode; Integrity key $ shaSize = 256; $ Encryption size = $ shaSize / 2; $ IntegrityKisiz = $ shaSize; // Content // encryption key for $ encryptionSegments using Concat KDF = [$ masterkey key to derive the derivation, // z $ encryptionKeySize, // keydatalen $ this- & gt; PackInt32sBe ($ encryptionKeySize). Utf8_encode ('A128CBC + HS256'), // AlgorithmID $ this- & gt; PackInt32sBe (0), // PartyUInfo $ this-> PackInt32sBe (0), // PartyUInfo 'Encryption&#

javascript - icecast audio.js play without buffering -

I have an ISEAC setup running on one server, those clients who are connecting to it are tagged in web pages. , Either via HTML5 or Flash. I am currently using audio.js to get it (in particular, flash fallback). The problem is that the audio is played together but with a stream of different images. (This is a 10-FPS JPEG stream.) I need audio to match as many matches as possible. Unfortunately, there is a delay of 7 seconds sometimes before playing audio. Some information: Audio streams do not have to be delayed to match images, audio must be sharpened to match images. In the Icecast Server config & lt; Explode-On-Connect & gt; is set to 0 to minimize latency. There is not necessarily any interval when playing through VLC (maybe a few hundred MS, which is acceptable). Put on the other side, on seeing the images and playing audio through VLC, everything is allocated enough, unfortunately, VLC is not an option in EndGame. Since VLC has no interval, it tells m

jQuery show() function display inline block. How? -

I have some such code function switch_tabs (obj) {$ ('. Hide tab-content ') (); $ ('Tabs A'). RemoveClass ("Selected"); Var id = obj.attr ("rel"); $ ('#' + ID) .show (); Obj.addClass ("selected"); } The function shows the display: block but I want to add the display: inline block instead of block Can anyone help me? Thanks instead of showing , using CSS to hide and show Try Content function switch_tabs (obj) {$ ('tab-content'). CSS ('display', 'none'); // You can still use `.hide () '$ $ ('. Tab A '). RemoveClass ("Selected"); Var id = obj.attr ("rel"); $ ('#' + ID). CSS ('display', 'inline-block'); Obj.addClass ("selected"); }

c# - Locking on property without copying data -

I want to use the property which can be modified by other code and make sure that its access thread Of course, this question was already done. However, in my special circumstances, I have different, specific concerns. First of all, the multi-threaded access / modification scenario is probably a rare opportunity, and I do not care about performance on this occasion. Apart from this, this property is very large - it's a zarded array that can be acquired in size up to 4096 by 4096, and I would like to copy it to as much as possible. And, finally, I want the class interface to be easy to use - which is not, because this requires the user to lock a particular SyncRoot. Is there a solution that will not require my property thread-safe, extra copy and will not allow the subscriber to use the recipient (setter is private) without remembering anything lock? If you are going to ease of use, then provide the .NET built-in thread-safe storage class Does that lock for you You c

Substracting time values in Excel XML -

I am trying to subtract twice and get value in hours. Obstacles: It appears that I need to specify a complete date, that I can not just use one time? In the second example, if I use a full date (i.e., 2014-08-22, tit 08: 30: 00), then in Excel, I look at the cell instead of the date of "41875.35" This is my current markup: & lt ;? XML version = "1.0"? & Gt; & Lt; Ss: workbook xmlns: ss = "vase: schema-microsoft-com: office: spreadsheet" & gt; & Lt; Ss: worksheet ss: name = "sheet 1" & gt; & Lt; SS: Table & gt; & Lt; Ss: line & gt; & Lt; SS: Cell & gt; & Lt; Ss: data ss: type = "date time" & gt; 08: 30: 00 & lt; / Ss: Data & gt; & Lt; / SS: Cell & gt; & Lt; / Ss: row & gt; & Lt; Ss: line & gt; & Lt; SS: Cell & gt; & Lt; Ss: data ss: type = "date time" & gt; 17: 30: 00 & lt; / Ss: Data & gt; & Lt;

avfoundation - Getting and setting playback position AVAudioEngine -

वापस जब AVAudioPlayer का उपयोग किया गया था, तो currentPosition का उपयोग किया जाता था & amp; स्थिति सेट करें, लेकिन जब AVAudioEngine & amp; AVAudioPlayerNode का उपयोग किया जाता है? AVAudioEngine AVAudioPlayer से अधिक जटिल है। इसलिए मौजूदा स्थिति को जानने के लिए आपको नमूना टाइम / नमूना का उपयोग करना चाहिए नमूना टाइम AVAudioPlayerNode के अंतिम रेन्डरटाइम में पाया जाता है और sampleRate AVAudioFile की फ़ाइल स्वरूप में पाया जाता है। इसके अलावा, यदि आप वर्तमान स्थिति को सेट करना चाहते हैं, तो आपको प्लेयर में डेटा स्ट्रीम करने के लिए एवाडियओपीसीबीफ़ेर का उपयोग करना होगा। फिर फ़ाइल सूचक को आगे बढ़ने के लिए AVAudioFile की फ्रेम रचना संपत्ति सेट करें का उपयोग करें। संपादित करें: GitHub से हटाए जाने के कारण हटाए गए लिंक संपादित करें।

java - Map primary key composed of two foreign keys? hibernate -

I have 3 class player (PK id_player), match (pk id_match) and inscription (pk to id-player and id_match) should be there). One player has one and only one inscription (1 player-> 1 record), and one match can be in many inscriptions (1 match -> many reminders), hence the inscriptions in the table have two primary key ID id players and ID_match The problem is, how can I not say in hibernation that both foremost keys must have a textured key for inscription table. This is my code: @inti @Table (name = "player") public class player {@Id @GeneratedValue Private Long ID_player; @OneToOne @JoinColumn (name = "Pair_ID") inscription recording;} @ Entity @Table (name = "match") public class matching {@Id @GeneratedValue Private Long Id_match; @OneToMany @JoinColumn (name = "id_match") list & lt; Inscription & gt; Inscription = New Arrestist & lt; & Gt; (); What should I write to become a PP of FK? Thank you Check this:

Global delaration of variables in JavaScript -

वैश्विक दोहराव के दो कोड उदाहरण हैं: var globalVariable = 'something'; और वैश्विक वैरिएबल = 'कुछ'; उन समाधानों के बीच अंतर क्या है या इसके पास एक भी है? कौन सा बेहतर समाधान है? क्या मुझे उन समाधानों में से एक से बचने चाहिए? और यदि हां, क्यों? संपादित करें: उनमें से दोनों को एक वैश्विक स्तर पर परिभाषित किया गया है। जब आप कीवर्ड var को छोड़ देते हैं, तो यह स्वचालित रूप से वैश्विक रूप से परिवर्तनीय बनाता है, भले ही इसे परिभाषित नहीं किया गया हो इसलिए, भले ही इसे फ़ंक्शन के भीतर परिभाषित किया गया हो, यह हर जगह दिखाई देगा तो, दूसरा विकल्प globalVariable = 'something'; इसे वैश्विक बनाता है। जहां पहला विकल्प var वैश्विक वैरिएबल = 'कुछ' है, वैश्विक स्तर पर होगा यदि यह वैश्विक स्तर पर परिभाषित किया गया हो उदाहरण के लिए यदि यह एक फ़ंक्शन के भीतर परिभाषित किया गया है, तो वह उस फ़ंक्शन के लिए केवल दृश्यमान होगा। जब तक आवश्यक हो तो वैश्विक वैरिएबल को घोषित करने से बचने के लिए सलाह दी जाती है। यहां स्क्रॉप करने के बारे में अधिक -

java - passing password using process builder not working for "net use" command -

I'm trying to apply the "net use" command to the process builder by using it. As I pass the password in the output stream using PrintWriter, it fails with the following error: The system error is 1219. Do not allow multiple connections from one server or shared resources by the same user, use more than one username, disconnect all previous connections for the server or shared resource and try again. I have checked the user name, password and order manually by running. Its work is fine Code snippet: processbilder PB = new process builder ("net", "use", "\\\\ & lt; SERVERNAME & gt; \\ & lt; SharedLocation & gt; "," / User: & lt; username & gt; "," * "); Process p = pb.start (); Output Stream Out = p.getOutputStream (); Printer author = new printer (out); Author.println ("& lt; pwd>". ToCharArray ()); Int exitCode = p.waitFor (); System.out.println ("Exit Code:"

asp.net - FederationMetadata.xml Publish Process -

We are updating an ASP.NET web site project that has a click for "publish a web site" deployment The process uses ADFS 2.0 authentication to use. We currently have three different federation matadata.exml files for each environment (dev, test, prod). How do we publish these files in each environment? We use the web configuration conversion file for the web.config file. But I do not believe it can be used for XML files? What I have done from those searches, I have found two potential responses, it does not look great, firstly a federation matadata file is removed and ADFS 2.0 (for manually configuring). We can do this but it seems that one step is on the back side, creating a dummy federation file in the second, and adding it to the global .asax.cs file. (). This approach is very laughing and hardly recommended approach. Is there a recommended approach to this? Is anything clear that I am not seeing? Any thoughts on this will be highly appreciated! If you actually

angularjs - angular 1.3 bind once doesn't work -

I have this simple code and I do not know why I am typing in the input text, it updates two & lt; H1 & gt; instead of the other? & lt; H1 & gt; {{:: person.name}} & lt; / H1> & Lt; H1 & gt; {{Person.name}} & lt; / H1> & Lt; Input type = "text" ng-model = "person.name" /> It happened to us too, Angulioz 1.3 dam - once not working Butter extension is enabled. Disable wallpaper and everything will be fine

doctrine2 - MySQL: ignore constraint within SQL transaction -

For a collection, I want to update the order of items. I have an obstacle in MySQL (Order + Archive_ID) unique, therefore, you can not have two items in sequence 1 in the same collection. However, now I want to update the sequence of items "atomically". For my ORM, I updated all the entities with the new order and flushed to write them in the database. The ORM converts them into many questions and it violates an obstacle directly from MySQL. Example: I have the items A, B, C So A = 1, B = 2 and C = 3 then I update with C, B, A. So C = 1, B = 2, A = 1 are two questions, and the first update runs in direct obligation violation. In proxy: UPDATE item SET order = 1 WHERE id = C My thoughts Is it possible to start a transaction, remove the obstacle, then apply all the changes and then enable the barrier? If failing to enable, rollback will ensure that everything will be set back. Optional One option is to completely eliminate the barrier, but I am very

css - Moving search menu top right of page to left (Wordpress) -

Image
I'm working on a WP site where I carried up the search menu in the top menu in the menu on the right although the search bar to try am pages all the way to the left to engage in a grid and I is transmitted only to the grid, which can be the only left. Presently all of them are taken to the left side of the grid which can be maximized. The grid is also attached to a container. How can I extract it from the grid? Or to reach it left? Website: Search Bar CSS: .gbtr_tools_search_trigger, .gbtr_tools_search_trigger_mobile, .gbtr_tools_search_inputbutton {padding: 0 ! Important; Background: Nobody! Important; Margin-top: 0 pixels; Width: 40px; Height: 30px; Border: 0; Border-left: 1 px solid RGBA (255, 255, 255, .2)! Important; Border-right: 1 px solid RGBA (255, 255, 255, 2)! Important; Cursor: indicator; Color: #fff; float right; } Container & amp; Grid: .container_12 .grid_6 {text-align: left; Swim left; } .container_12 .grid_6 {width: 460px; } .grid_1, .grid_2,

c++ - how can i save an unknow number integers from a .txt file into an array -

How can I generate a data.txt file contains a large number of integers in two columns. How can I save these integers in arrays? is that if you can find it helps sample: 600000 523887 283708 231749 419866 293707 273512 296065 215334 233447 207124 264381 460210 374915 262848 449017 329022 374111 151212 2933 496,970 I'm not doing this but it is tried for some reason .. #include & lt; Iostream & gt; # Include & lt; Fstream & gt; using namespace std; Int main () {fstream input ("data-of-union-search .txt"); Int i = 0; Float A; Int size = 0; Size = I / 2; While (Input>> One) {i ++; } Int * x = new int [size]; Int * y = new int [size + 1]; For (Int J = 0; J & lt; (size + 1); j ++) {input> gt; X [j]; Input & gt; & Gt; Y [ja]; The court's & lt; & Lt; X [J] K & lt; & Lt; "" & Lt; & Lt; Y [j]'s & lt; & Lt; "" & Lt; & Lt; J & lt; & Lt; Endl; Return 0; }}

c# - Using RESTapi to connect to TFS online from code -

I'm trying to get access to your C # code to your projects in TFS line to build all data About, work with restapi, projects etc. I follow the online documentation available to it (though), I would like to get Jason response URL, I always get: http code 203: non-official information, and so I get Jesnsn data I'm not able. If I try to get feedback using POSTMAN (Chrome extension) so I get a HTTP code 200 and I need that data. This is my code: public static void async GetBuilds () {try {var username = "userTest"; Var Password = "Passast"; (HTTP Client client = new HTTP client ()) (client.DefaultRequestHeaders.Accept.Add (New System.Net.Http.Headers.MediaTypeWithQualityHeaderValue ( "application / JSON")); Client.DefaultRequestHeaders.Authorization = new authentication header value ( "Basic" convert. ToBase64String (System.Text.ASCIIEncoding.ASCII.GetBytes (string.Format ( "{0}: {1}", username, password)))); (HttpResponseMe

asp.net mvc 4 - Why does my web application run smooth in only Firefox? -

I see that my web episode is running very slowly in all web browsers except Firefox. Does anyone tell me in the right direction how to check this issue? Are there some clear differences between Firefox and the rest that I can focus on finding and finding criminals? What is the best practice method of display related problems in the MVC web application? Go ahead.

chef - Adding role to node does not work -

I'm following the exact syntax, but looking at some strange behavior by adding a role to one of my nodes I But instead it should run the following command that ideally works - the web server should be added to the do_node Run list: recipe [roles]: Knife node run_list add_node ' Mikaan: My workstation Win7 Machine & amp; Using hosted chef several times tried but only one thing was tried verbose output which does not appear completely! What's happening is that role [webserver] is defined as a globe and it is completing the 'roles' directory in your chef directory. Thus, from the perspective of the knife, you have entered: knife node run_list add_node roles for the 'recipe [roles]' Generally, single quotes evoke such type of globing, but I have seen the issue of problem with Mingav. You can confirm that this is a problem trying to add a role that does not match any folder in your current directory: Add knife node run_

php - From GET queries to WebSockets -

My program is getting an array of data using GET requests. I have to type it again for the use of webcats. if ($ _ server ['REQUEST_METHOD'] === 'GET') {header ('content-type: text / html; charset = UTF-8'); If (! Array_key_exists ('method', $ _GET) ||! Array_key_exists ('Login', $ _GET)) Dead (""); $ Params = Bar ($ _ GET); Switch ($ params ['method']) {case 'method1': {// ...} case 'method2': {// ...} case 'method3': {// ...}}} < / <>

makefile - Fail in make (gmake) -

I have a bunch of variables in my GNU makefile, and users can change their values ​​if some values ​​mean any If not, then I want to fail the makefile before executing. For example: FOODIR = foo BARDIR = bar OK, but if the user has it < Sets up for> FOODIR = foo BARDIR = foo , I'm looking for the right syntax to do the makefile to fail. Something like this: ifeq ($ (food), $ (bardir)) exit 1; Endiff But this does not work What is the best way to do this? The makefile shell script is not; You can not use shell commands like exit . A GNU make function is $ (error ...) you can use (if you have recently enough to make your GNU): < Pre> ifeq ($ (edible), $ (boder)) $ (error food is similar to bankrupt bird: $ (edible)) endif

SQL Server : column alias accessing -

I have a question that looks like this: choose (numberLateOrders / numberOf Order) percent Now I wanted to be able to add a where section and reach the column nickname percentFailed though it seems the nickname The query is not being recognized until it is completed. Is this true and / or has any work for it? Thank you! to add to existing replies or Select it with a sub-query Select percentage (select number wave-rollers / number of orders), fail with percentage orders) where the percentage is & gt; 0

email - Create and mail temporary pdf in php -

When a button is clicked, a PDF is generated and pdf opens in a web browser. I would like to temporarily store the PDF in one variable and when clicked on the button, it was included as an attachment in the mail. How am I struggling with saving and enclosing the file? & lt; One class = "button" href = "http://mydomian.com/pdf001.php" & gt; Send PDF & lt; / A & gt; & Lt ;? From Php $ = 'nobody@example.com'; $ Theme = 'subject'; $ Message = 'hello'; $ Headers = 'From: webmaster@example.com' "\ r \ n" 'Answer: webmaster@example.com' "\ r \ n" 'X-Mailer: PHP /' phpversion (); Mail ($ $ $ $ theme, $ message, $ headers); ? & Gt; Like a comment under your original post PHPMailer's Use & lt ;? Php require_once ('../ class.phpmailer.php'); $ Mail = new PHPMailer (); // php "mail ()" to use the default $ mail-> AddReplyTo ("name@you

java - is default handler mapping is overridden when we create custom handler mapping in spring mvc? -

Image
I want to know that we have been created by custom handler mapping spring MVC framework override if we make our custom handler mapping. I suspect because I have created custom handler mapping in two projects in the same Binnamehandler Mapping SimpleUrlHandlerMapping has been injected into the Dispatcher Servlet but in each other the dispatcher Not registered in servlet I am using different versions of the Spring 3 framework for these two projects because of the version change in Spring 3 me The default handler mapping is not found in Saint 3.0, but the higher version is getting in the thanks your custom handler mapping so that it has other registered handler mapping. Explanation Detect handler mapping available in the web context DispatcherServlet is a part of initialization: < P> this way, all registered handler mapping and as you can see that they have been sorted by their determined order Otherwise, Mapping is falling back to the defa