Posts

Showing posts from April, 2014

jquery - Assigning ajax response to a variable? -

इस सवाल का पहले से ही एक उत्तर है: 21 उत्तर मैं यहाँ क्या गलत कर रहा हूँ ? var देश = फ़ंक्शन () {var tmp = null; $ .एजेक्स ({'एसिंक': गलत, 'डेटा टाइप': 'जेएसएनपी', 'यूआरएल': "http://ipinfo.io", 'सफलता': फ़ंक्शन (डेटा) {tmp = data.country;}} ); वापसी टीएमपी; } (); console.log (देश); प्रिंट null async गलत पर सेट है, इसलिए इसे कार्य करना चाहिए? यदि मैं console.log (data.country) डालता हूं, तो सफलतापूर्वक कॉल करने पर BTW async: false jsonp अनुरोधों के साथ काम नहीं करेगा async सेटिंग के लिए देखें। लेकिन वास्तव में, आपको async: false वैसे भी से बचना चाहिए।

rfc - What is the purpose of the Root Delay field in the NTP protocol? -

About it, is specified. I understand that the area of ​​the root delay NTPV4 packet (or synchronizing distance field, as it has been named in previous versions NTPv3) The approximate roundtree indicates the delay in the primary / reference clock. However, Why is the protocol need to know the delay in the primary clock ? As used in the specification, it uses Origin , get and transmit timestamp field to calculate the correct time (server / Peer), and too does not do any direct or indirect communication with the primary clock in the time calculation "travel". That's because the server / coworker has been synchronized from the context clock in the past, and now wants to inform the client about the delay? By the way, what does the related root spread mean? Farm? Unfortunately, I did not understand the dispersion dispersion, which has not really been explained in detail. ntpd not only sets local clock but also acts as a time-server for other NTP c...

How to distinguish among nodes running on a same machine in a p2p network, socket in language C -

I want to create a full network (each node connects to the remaining nodes). There is a group of my colleagues who say that it includes P2P1, P2P2, P2P3 Assuming that all colleagues are running on the same machine (localhost), each colleague has a client side and server side that is written in the same file. The first P2P1 has been started as a "P2P name_off_group port_number_furrest_side". Then P2P2 is called "P2P name_off_greative port_number_forcerside port_number_off_p2p1". And then P2P3 is called "P2P name_off_great port_number_p_verver_side port_number_off_p2p2". P2P2's client side connects to server side of P2P1, connects P2P3's client side to server side P2P2. Now P2P1 connects to P2P3 (Automatically in code, not user). If there is a new coworker, say that P2P4, also would like to connect with P2P1 (by the user). How can I distinguish between P2P3 between a old coworker and P2P4 as a new counterpart, because the two have only conn...

Switch/Case not working PHP -

I'm trying to enter the habit of using the switch I have the following tidbit: switch ($ res ['perm']) {case '0': $ perm = "Invalid"; Case '1': $ perm = "operator"; Case '2': $ perm = "Team Lead"; Case '3': $ perm = "Admin"; Default: $ perm = "Unknown -". $ Res ['perm']; } Where $ res ['perm'] = (int) 3 .. I tried even without single quotation marks, but it is still "unknown "" .. what am I doing wrong? you break Required to be hit by switch or it will always kill default : switch ($ res ['perm']) {case ' Case '2': $ perm = "Team Lead"; breakdown; Case '3': $ perm = "$ ': $ perm =" invalid "; rupture; case' 1 ': $ perm =" operator "; Admin "; break; default: $ perm =" unknown - ". $ Res ['p erm '];}

c# - How do I find the library System.Numerics in the ADD reference? -

Image
इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मुझे सक्षम होना चाहिए BigInteger और Numerics का उपयोग करें लेकिन मुझे .NET संदर्भ सूची में उपयोग करने वाले System.Numerics संदर्भ नहीं मिल सकता है। प्रश्न: सिस्टम.न्यूमरिक संदर्भ कहाँ स्थित है? (मैं जानता हूँ कि क्षेत्र में कैसे जाना है, आप संदर्भ में जोड़ सकते हैं) कोड: सिस्टम का उपयोग कर; System.Collections.Generic का उपयोग कर; System.Text का उपयोग कर; System.Numerics का उपयोग कर; नेमस्पेस कंसोलअनुप्रयोग 1 {क्लास प्रोग्राम {स्थैतिक शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {बिगइन्टेजर बी 1 = नया बिगइंटेगर (); कॉम्प्लेक्स सी 1 = नया कॉम्प्लेक्स (0, 1); Console.WriteLine (बी 1); Console.WriteLine (C1); Console.ReadKey (); }}} असल में ऐसा दिखता था कि मैं .NET 3.0 ढांचे को लक्षित नहीं कर रहा था। आपको अपने प्रोजेक्ट में system.Numberics का उपयोग करने के लिए जोड़ना होगा और फिर उसे संकलन और चलाने चाहिए। संदर्भ पर राइट क्लिक करें (संदर्भ जोड़ें चुनें) .नेट का चयन करें नीचे स्क्रॉल करें और सिस्टम चुनें। न्यूमेरिक ध्य...

ios - Save some info in any external file? -

I am developing a guest list (NSMutableArray) and I would like to know whether I made this array anyway Can save more Any ideas to do this ?? Many thanks. External files like .txt .pdf (or other extensions)? NSArray (which derives from NSMutableArray) is a method The file takes the URL. Now, you should be fine. If you have some custom objects, you will need to write the collection / non-convertible codeer methods, which will allow the data of those custom objects to be written in a file and read from the file.

python - Django Templatetag, List index out of range -

I have found a simple template that gives a random fact. When there is no fact in the database, I am getting an exception value Out of range I skipped the query set except for leaving * and also checking that There is a fact in the template. You can see the code given below: fact.py import the facts.models from the template template django import template = register template. Library () def random_fact (): try: fact = fact (. ')' [0] except fact. Not Axis: Fact = Any Return {Facts}: Facts} register.inview_tag ('facts / fact.html') (random_fact) fact.html & lt ;! - Random Fact Start - & gt; & Lt; Div class = "panel panel-default sidebar" & gt; & Lt; div class = "panel-title" & gt; & Lt; H3 class = "panel-title" & gt; Do you know? & Lt; / H3 & gt; & Lt; / Div & gt; & Lt; Div class = "panel-body" & gt; {% If fact%} and lt; P class = "text-left" &...

spring - @Resource becomes null when Java Config implements AsyncConfigurer -

I have a very strange problem. I'm using Spring 3.2.4 and there is a Spring Java Config Class which is Java and XML configuration is part of a large mix of files. Uses 6 resources defined in other config files to use the file @ async bean when I add "async config implementer" in the file, then some @resource fields in the form of zero , But when I stop implementing, they are populated. This is confusing because asynchronous configurator should only be used to configure your asynchronous executor, nothing should look like your configuration load asynchronous. When I set the debugger on the construction method, I can see that beans are really null. This appears to be the race situation of any kind, because of the 6 beans, the fourth was once a goat, and then the next time it was populated. My file appears: Public class userbackhoundprocessor configuration async configurrer {@resources (name = "bean 1") MyBan Bean 1; // In reality, 6 @ resources have b...

sql - Make ODBC Linked Access Table Available to Users -

I have a SQL database with MS Access front-end. The link I added is only available to me and some Not others I need other users of the domain to be able to open this linked table. When they open the table, they receive an error message that says that the connection to the database is unsuccessful. What am I doing, where other users (apart from themselves) linked MS Access linked table? If you are connecting to the SQL database using an ODBC connection, then end users It is necessary that the ODBC connection has been installed on the machine so that they are also joining.

audio - Loop sound in java directory -

I need some explanation with sound class, so I made a voice object class So that I can get permission to call any sound later on. My file is in the same directory as a Java file in a voice folder, so it ~ \ game \ sounds \ music.wav now every time I get this code Executes the main square, then invokes the object and calls it, it does not file me, I am pointing incorrectly to the file? Currently my filename only "music.wav" How can I just point it in the sounds directory without code coding so that it does work On any CPU possible public sound (string filename) {try {file file = new file (fileName); If (file.exists ()) {myClip = (AudioClip) applet.nuoudo clip (file.toURI () .toURL ()); } And {new runtime expiry ("sound: file not found:" + fileName); }} Hold (Malformedlexception E) {New Runtime Expansion ("Sound: Distorted URL:" + E); }} Public Zero Play () {myClip.play (); } I hope this code will help you. I created a package unde...

Regex to Get SWF/Flash Value - VB.NET -

मैं "regex rule" लिखना चाहता हूं / पाने के लिए वेबपेज से swf value मैं बस करो "* .swf" लेकिन हमारे पास दो समस्याएं हैं: हम चर टैग से & amp; swf प्राप्त कर सकते हैं; एम्बेड टैग अद्यतन करें: 07/03/2016 सभी के बारे में कैसे हो (* .swf) param और amp के मूल्यों सहित ; एम्बेड करें धन्यवाद आप का उपयोग कर सकते हैं > http: // [a-zA-Z0-9]।: /] +? \। Swf + इसका अर्थ है " एक या अधिक बार ", और ? का मतलब" अनिच्छा से " तो मध्य भाग के लिए, यह [] मापदंड से मेल खाता किसी भी पात्र को हथियाने वाला है, लेकिन जैसे ही यह .swf पाता है, रुक जाता है क्योंकि यह अनिच्छुक है, और \ .swf इसके बजाय मेल करें। इस दृष्टिकोण में एक खतरा है यदि आपके पास http: // के साथ शुरू होता है लेकिन .swf में एक लिंक नहीं है, तो क्या होगा? तब [] मापदंड, लिंक के अंत से पहले मिलान करना जारी रखेगा, जब तक कि [] मापदंड विफल नहीं हो जाता, या जब तक यह कुछ .swf तक नहीं पहुंचता है। यदि आप इस बारे में सुपर सावधान रहना चाहते हैं, तो आप एक लिंक के अंत के ल...

Is there a d-lang equivalent of Ruby's attr_accessor -

In Ruby I can easily read / write properties on a square like this: class bar attr_accessor: foo ,: bizz,: buzz end this will be the same class bar def foo @foo end def foo = (Foo ) @fu = EFU and DEF buzz @ FU and DEF BIS = (Bizz) @ BIS = Biz and DEF buzz @ Buzz and Diff buzz = (buzz) @ Buzz = Buzz End End The same code D is very much workbook, and I repeat things to all the places myself: class bar {free G {string _foo, _bizz, _buzz; } @property {string foo () {return _fu; } String biz () {return_bizz; } String buzz () {return _buzz; } Zero foo (string foo) {_foo = foo; } Zero biz (string biz) {_bizz = bizz; } Zero buzz (string buzz) {_buzz = buzz; }}} Is there a short way to do this? Yes: public string foo; The insignificant property accessory time is a waste of IMO. Ruby forces you to do them but D does not. If you want them anyway, a mixin template can do the job: mixin template attr_accessor (type, string name) {static string code generation h...

ibm midrange - Need to add 1 pos. to the substring in this SQL -

This SQL is working but the second object is the order number. For this we have to add '0' to the end, 8 to create the situation. Not sure how to do this in SQL. Select CODE1 as SUBSTR (UANOTL, 1,4), SUBSTR (UANOTL, 5, 7) as the order #, UAATHN, ANTTDA from UINET. Note H1T101 where Esbbart (UANOTL, 1,4) = 'REM' You need The: CODE1, SUBSTR (UANOTL, 5,7) as SELECT ALL SUBSTR (UANOTL, 1,4) || ASTDTA.Not 1H1T 001 from #, UAATHN, UNOTD as '0', where Asbart (UANOTL, 1,4) = 'REM'

php - Convert date into timestamp where strtotime has already been used -

I am trying to convert to the timestamp on the date of the next 7 days so that I compare the database with my date timestamp $ next_date = date ("d / m / y", stratetime ("7 days")) Output 30/04/2014 Now I'm running strtotime () again on $ next_date variable which keeps the next 7days And changes the timestamp. echo strtotime ($ next_date); This is not working, I followed this reply and some others. As an alternative suggestion, you should have PHP internal date time () And the dateInterwALL () classes makes it a little easier to convert between formats and does addition and subtraction to the emo. The date-interval requires at least PHP version 5.3. Example: // Make Current Date Time $ currDate = New DateTime (); // Copy the existing datetime and add an interval of 7 days nextdate = clone $ currDate; $ Next day - & gt; Add (New Date Interval ('P7D')); // Both objects are easily converted into timestamps echo ...

regex - Any Characters Replace Increment Number -

Image
क्या यह संभव है जब स्तंभ संरेखित न हों? var [x]; वर [x]; वर [x]; वर [x]; .. बदलें var [0]; वर [1]; वर [2]; वर [3]; सीज़र, यह नोटपैड में करने का एक आसान तरीका है ++ खोज: (^ \ w + \ [(\ d +) \] = [बदलें] बदलें टैब में, सुनिश्चित करें कि आप नीचे बाईं ओर "नियमित अभिव्यक्ति" ^;] +; \ W + \ [] [^]] + बदलें: \ 1 \ 2 या $ 1 $ 2 ( अपने लोकेल के आधार पर, आपको एक या दूसरे को चुनना पड़ सकता है।) "सभी को बदलें" दबाएं ध्यान दें कि यह उसी पर दो चर के लिए काम करेगा उदाहरण के लिए, उनके नाम की परवाह किए बिना, प्रथम वर्ष [10] = "एएसएफए"; कुछ [x] = "asdfas"; यदि आप केवल तभी बदलना चाहते हैं जब पहले वेरिएबल को केलीमिलेटर कहा जाता है, खोज को निम्न में बदलें: (^ kelimeler \ [(\ d +) \] = [^;] +; \ w + \ [] [^]] + यदि आप केवल तभी बदलना चाहते हैं जब पहले वैरिएबल को केलीमिलेटर कहा जाता है और दूसरी वैरिएबल को विशेषकर कहा जाता है, तो इसका प्रयोग करें: (^ kelimeler \ [(\ d + ) \] = [^;] + + विशेषकर \ [] [^]] +

How to use a Hash before defining it in Ruby -

I have a Ruby script that has a very long hash with more than 300 organizations. The script looks like this: #! / Usr / bin / env ruby ​​Array_A = [] myHash = {"x1" => "2", "x2" => "0", "x3" => "1",. . "X350" = & gt; "1"} myHash.keys.each do | Z | Array_A & lt; & Lt; "This key is" + z finally puts myHash.values.join ("|") Array_A.join ("|") But since hash is too large, the purpose of reading I will put a hash at the end of the script and puts each loop and command first, something like this: array_a = [] myHash .keys.each do | Z | Array_A & lt; & Lt; "This key is" + z end myHash.values.join ("|") puts Array_A.join ("|") myHash = {"x1" => "2", "x2" => "0", "x3" => "1",. . "X 350" = & gt; "1"} Is there any way t...

javascript - Angularjs $http.get returning JSON data as a string with escaped quotes instead of json -

Interesting problem here. I have the comfort backend that gives JSON when I use the API through the browser, it returns a valid JSON array with a JSON object. [{"GUID_Auth": null, "Email_Address": "abc @ aol," Measure_Id ": 1," title ":" prop 41 "}] But when I make a $ http.get request through the helpers, I get a string back with quoted citations instead. Success: [{\ "GUID_Auth \": null, \ "email_directory \": \ "abc @ aol \", \ "Measure_Id \": 1, \ "title \": \ "proposal 41 \"}] " Here is a snippet of my angle control code .controller ('MainCtrl', function ($ radius, $ http) {$ Sc Ope.GetData = function () {var response light = $ http.get ('http: //backend.api'); responsePromise.success (function (data, position, header, config) {console.log ('found (data) , Status, header, config) {Warning ('Ajax Fail');}); ';}, ...

php - Styling PDF's with multiple text columns -

This is a PDF or HTML styling question: I need several text columns in my pdf. I have a custom modification in PDFMaker's PDF export tool for Vtiger, but at the moment it seems like I can inline the style only in style style tags, which is generated from the PHP export module. When using text / code editor in the browser, my style works fine. I am able to create text columns and everything looks great! (Thanks to this genius!) ... I am using this exact code, only inline. .cols {-moz-column-count: 3; -Moz-column-difference: 3%; -Moz-column-width: 30%; -webkit-column count: 3; -Vibit-column-gap: 3%; -WebKit-column-width: 30%; Column-count: 3; Column-difference: 3%; Column width: 30%; } But when I export to PDF, this column will not render..My child's heap of notex * Note: I had changed all the percentages for a fixed percentage (pdf Do not like percentages ... believe it, but it seems) So, there is something special about styling to create PDF, does this column reco...

php - Converting and Comparing Date -

I have a problem that when I give a date of strtotime The value that is not equal is what I have in the database Example: In the database I have this value 1398308880 which is equal to this date 24/04/2014 So what I did Is $ date = date ('24 / 04/2014 '); $ Date = strotom ($ date); Who gives me 1398297600 I do not understand, the difference between the two Why should they have the same value right while they? What's wrong here Consider the following: $ time = '1398308880' ; Echo date ("Y-M-DH: I: S", $ time); // Output 2014-04-23 22:08:00 Echo '& lt; Br / & gt; '; Echo amtimes (22, 8, 0, 4, 24, 2014); // output 1398395280 The timestamp is still different when you eat for hours, minutes and seconds. I am in the Chicago timezone, at what time are you in the field? Or more importantly, is your database running in the same timezilla as your PHP server?

titanium iOS navbar styling -

Image
I have acquired a project for a customer, and in the code given to me, a broken nova, or at least The little style is not right Button works, they are not styling properly. I am unsure about this where it is starting to try the style in the right way .. Will take me out to eat if they can tell me in the right direction May include'm mad!

c# - Passing complex type to windows service with WCF -

I have a Windows service and winoff front end app, in order to call and pass data roundtrip for services I need to be enabled. I have completed it by defining an interface and can overcome the string without any problems. [ServiceContract] Public Interface Rating Ruler [[DataContract Formatted] [OperationContract] String Reverse String (String Value); } Now I am trying to return a complex data type and changed the code like this: [ServiceContract] public Interface IStringReverser {[DataContractFormat] [Operation Contract] DTO reverse string (string value); } [Serialable] public class dto {public id id}; Set; } Public string name {get; Set; }} My implementation is as follows: public class string reverser: optimizing reverser {public DTO reverse string (string value) {char [] retVal = value ToCharArray (); int idx = 0; For (int i = value.Length - 1; i> = 0; i--) Rated [idx ++] = value [i]; Var DTO = new DTO (); Dto.Name = retVal.ToString (); Dto.Id = 122; Return DTO...

javascript - Getting the index of an object in an ordered list in Firebase -

I am creating a leaderboard using Firebase. In the leaderboard the player's position is tracked using the firebase preference system. At some point in the performance of my program, I need to know what is the position of the user given in the leaderboard. I have thousands of users, so to find something with a single ID, running through them all (thus giving me an indication) is not really an option. Is there any definite method edit : I am trying to find out the following: / - --- Leaderboard -------- user4 {...} -------- user1 {...} -------- user3 {...} & lt; - Is there a snapshot of User3's index, user 3? --------... If you process tens Whether there are hundreds of elements and there is no objection to taking any bandwidth hits, look for the answer to BUT . If you are processing the resources of the records, then you have to follow the stated approach, the answer to the peperin in theory. Description of the following answer. Step 1: Setup flash...

calculator - Python - If more inputs return error (How to do) -

Initial programmer, I am creating a function that class routs counts, here's my job: The input is a tube that i really want to be like ("sqrt", number) def calculator: if input [0 ] == "Sqrt": If the input [1] & lt; Error for negative input of number #: "No square root for negative number" and: ans = (input [1]) ** (0.5) return AN but problem here Comes, I also want that if a user inserts ("sqrt", number 1, number 2) more than an input, then this error says "code only" Input " Here's what I thought if input [1] == anything at all: return" please only one click here Put " Part anything me what function ?? Actually I tried if input [1]! Of course, I have a big mistake ... Use the built in len () function to ensure that the length is not high: DF calculator (input): if the lane ( Input) & gt; 2: print "please only break one input": # # rest of the code in your...

node.js - Error: getaddrinfo ENOTFOUND in nodejs for get call -

I am running a web server on the node for which the code below var Restify = requires ('restify'); Var server = restify.createServer (); Var descendant = [[Author: 'Audrey Hepburn', lesson: "Nothing is impossible, the word itself says 'I am possible!'), {Author: 'Walt Disney', text:" You can not understand it then When this happens, but a kick in the teeth can be the best thing in the world for you "}, {author: 'unknown', lesson:" Even the biggest beginning was once. . "}, {Authors: 'Neil Donald Walsh', text:" You are afraid to die, and you are afraid to live. What is a way server.get ('/ quote / random', function (req, res) {var id = Math.floor (Math.random (*) * quotes.length); var q = quotes [id]; res.json (q);}); server.get ('/ quote /: id', function (req, Res) {if (quotes.length & lt; = req.params.id || req.params.id & lt; 0) {res.statusCode = 404; return res.send ('Err...

sql server - Strategy for rolling back an altered table using liquibase -

I want to migrate my database from v1.0 to v1.1 and there are updates on some of the changes In Table 1, I know that for INSERT, I can easily add a rollback command to remove the added values, but how about a table change? Is there any way to store the current price and use this information for the rollback process (in the future)? Thank you. In your changes to describe how you can roll back the changes, & lt; Rollback & gt; Can specify blocks (). Within your rollback tag, you can use raw SQL or & lt; CreateTable & gt; tag, which looks like a table while changing it. You can also specify changeSetId and changeSetAuthor in the rollback tag to reproduce the table to point to an existing changeSet. This approach can be easy if there is no other change since the creation of the object, but it is not working properly, if there have been many changes, which modify the object because it was created for the first time I went.

javascript - Animating a box in Jquery -

I'm trying to animate a box in Jquery, in fact I just try to move the box to the square path I am doing I can get it to move right, and then down, but after that nothing does that. Any suggestions? $ (document) .ready (function () {$ ('# box'). CSS ({'height': '100px', 'width': '100px', 'background '' 'Black', 'position': 'full', 'marginopt': '70px'}); $ ('# box'). Chetan ({'left': '1000px'}, 3000, 'swing' Cheat ({'top': '500px'}, 3000, 'swing', function () {$ ('# box'). 'Right': '1000px '}, 3000,' swing ')})})}); instead of 'left': '0px' Use 'right': '1000px' . Try it: $ (document) .ready (function () {$ ('# box'). CSS ({'height': '100px', 'width': '100px ',' 'Black', 'position': 'absolute...

c++ - Overload an operator twice -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब यह वही अधिभार संभव है ऑपरेटर को सी ++ पर दो बार? जब मैं एक प्रकार के रूप में वापसी प्रकार का उपयोग करके ऑपरेटर को ओवरलोड करने का प्रयास करता हूं, तो कंपाइलर मुझे एक त्रुटि दिखाता है। bigint.h: 41 : 9: त्रुटि: एक स्टड :: स्ट्रिंग बिगइंट :: ऑपरेटर + (बिगइंंट) एक ???? अतिभारित नहीं हो सकता bigint.h: 40: 9: त्रुटि: बिगइंट बिगइंट :: ऑपरेटर + (बिगइंंट) के साथ :? यह मेरा कोड है: .h: बिगइंत ऑपरेटर + (बिगइंंट); स्ट्रिंग ऑपरेटर + (बिगइंंट); .cc: बिगइंत बिगइंट :: ऑपरेटर + (बिगइंट एम) {if (this-> ;.s.size ()! = M. नंबर.size ()) तयलेैम्बन (यह- & gt; संख्या, एम.एनम्बर); // कॉल योग; यह- & gt; संख्या = योग (यह- & gt; संख्या, एम। संख्या); वापसी (* यह); } स्ट्रिंग बिगइंट :: ऑपरेटर + (बिगइंट एम) {// कॉल बिगइंट अधिभार +; } संपादित करें: जाहिरा तौर पर मैं एक ही ऑपरेटर को एक आधार के रूप में दो प्रकार की वापसी प्रकार का उपयोग नहीं कर सकता। सुझाव: जैसा कि बताया गया है, आप अकेले वापसी प्रकार पर अधिभार नहीं बढ़ा सक...

javascript - Jquerymobile select menu disable options -

Hi, I'm getting a hard time doing this job, in my jquery mobile app, I have 3 option menus There are general options in the menu, the code is below & lt; Select class = "mySelect4" data-corner = "wrong" id = "objective1" & gt; & Lt; Option value = 1> Select & lt; / Options & gt; & Lt; Option value = 2> Generated & lt; / Options & gt; & Lt; Option value = 3> Increase & lt; / Options & gt; & Lt; Option value = 4> Increasing customer engagement & lt; / Options & gt; & Lt; / Select & gt; & Lt; Select class = "mySelect5" data-corners = "wrong" id = "objective2" & gt; & Lt; Option value = 1> Select & lt; / Options & gt; & Lt; Option value = 2> Generated & lt; / Options & gt; & Lt; Option value = 3> Increase & lt; / Options & gt; & Lt; Option value = 4> Increasing & lt; / Options &...

php - how to load my default controller in codeigniter using bootstrap? -

I have a view with a bootstrap template that is available on my view / reportlist.php (localhost / project / index.fp) Is embedded. The problem is that every time I do CRUD, the codeigner has rewrote me for the defiant Yuri. For example, when I edit a report from my list, I will be redirected to my view / reportlist.php (/Project/index.php/report/edit). So my bootstrap template has been ruined, I will have to go back to the project / index.php to load everything back. Please, if you know, post some thoughts that are in this way today, I can not get a relevant answer. There is no connection between the codeigniter path and the bootstrap. You can set the default controller in line 41: Application & gt; Config & gt; Route.php file On the other hand you can set base_url in line 17: Application & gt; Config & gt; Config.php: $ config ['base_url'] = "http: //". $ _ Server ['HTTP_HOST']; $ Config ['base_url']. = Preg_replace (...

php - sql add another searchable item -

I am trying to add another field 'Field 2' which can be searched and returned in search results. $ extraSQL = 'And a.' $ Db- & gt; Name quote ('field 1'). ' like ' . $ Db- & gt; Excerpt ('%'. $ 'Search'%). ''; If I change 'field1' in 'Code 2' in the above code then Field 2 works, but I'm having trouble adding both of the above code. Thanks Thank you. $ extraSQL. = 'AND (a.' $ Db - & gt; nameQuote () 'Field 1'). 'Choice'. $ Db-> Excerpt ('%'. $ Search '%'). 'Or A'. $ Db-> Name Field ( 'Field2'). 'Choice' $ db- & quot; Quote ('%'. $ Search '%))'; If you want to match both fields, So you want to match one of the fields, or you can change or to and .

c - Get line of FILE * -

I'm trying to learn C (which is hard ...) so I wanted to write a regular one File Line I created this function: int c; Intel Buffalo = 100; If ((* buffer = molok (size (four) * bufflanes) == faucet () (DXLogWarn ("not enough memory"); return;} char * dst = * buffer; char * end = * buffer + buflen - 1; while ((c = getc (fp))! = EOF) {if (c == '\ n') {brake;} if (dst and lt; end) {* dst ++ = c;}} * Dst = '\ 0'; Which works! But now I thought that instead of cutting the last part of the string I can reload buffer and '\ n' So I changed it to: zero fget_line (FILE * fp, char ** buffer) {int c; int bufflan = 10; if ((* buffer = molok (size (four) * bufflanes) == faucet () (DXLogWarn ("not enough memory"); return;} char * dst = * buffer; char * end = * buffer + buflen - 1; while ((c = getc (fp))! = EOF) {if (c == '\ n') {brake;} if (DST & lt; end) {* dst ++ = c;} Other {buflen * = 2; * buffer = reel (* buffer, buffron *...

android - Fragment Back Button Navigation -

Suppose i have 3 pieces: a, b, c I Go to - & gt; B B -> C C -> B (without pressing the back button) B -> C (without pressing the back button) C -> B (without pressing the back button) B -> C (without pressing the back button) Now by pressing the Back Button, Navigation C-> B-> A-> should be there. In other words, B-> Regardless of the number of navigation between C and C-> B (without pressing the back button) back to the navigation order should be in C-> B - & gt; A assuming that all allowed transit A ​​& lt; - & gt; B & lt; - & gt; C, you can use C-> B using the FragmentManager.popBackStack () method, and whenever you add the transition to return stacks while navigating the B-> C How to make changes here: Public Zero Infection FROMATOB () {getSupportFragmentManager () BeginTransaction () .replace (R.id.fragment_container, new fragmentB ()) .addToBackStack (null) .commit (); } Public Zero I...

php - does querying mysql by using function takes more time to load? -

I was thinking that to query a specific row by using the function, each row calls the function userinfo ($ table, $ line, $ data, where $) {/ p> query from a normal mysql query at least once. Global $ db; $ Users_sql = $ db- & gt; Query ("SELECT $ row FROM $ table $ WHERE $ where = '$ data'"); $ users_row = $ db- & gt; Fetch_assoc ($ users_sql); Return $ Users_row [$ row]; } Echo userinfo ('user', 'first name', $ _SESSION ['username'], 'username'); Echo userinfo ('user', 'avatar', $ _SESSION ['username'], 'username'); Or do the same without the function $ users_sql = $ db- & gt; Query ("SELECT $ row FROM $ table WHERE $ where = '$ data'"); $ Users_row = $ db- & gt; fetch_assoc ($ users_sql); Echo $ users_row ['firstname']; Resonate $ users_row ['avatar']; I think the other way would be better, but I have to check only twice. Change ...

c# - DataGridView listing selected item from ListBox -

There is a list list from the database on my form1 (bindsourceed). On my form, I have kept a datagrid view and would like to show data from the list selected on the Form 1. Binding source binding source 1 = new binding resource (); BindingSource1.DataSource = s to db.Filmek where s.Filmcim == (string) select f.lBfilmlista.SelectedValue s; DataGridView1.DataSource = Binding Source 1; The problem above my code is that it lists my first movie for the first time, whether I select another film or not from the list box on my form 1. How should I always show selected items from the catalog? index change event list of selected list list ...... The reason for this data source will be called for only one time (in the beginning) If you use the selected index change event list box every time the data source will bind and you will receive whatever you want .... All the best

php - CakePHP DebugKit causes an error -

I want to apply my project to the server, so I have to disable the debugkit. I removed cakeplugin :: load ('debugkit') from bootstrap.php and disabled it in AppController. After this I get the error 'a serious error:' class ascension 'was not found in /vagrant/lib/Cake/Controller/Component/SessionComponent.php on line 69. How can I solve my problem? The error indicates that your cake installation is incomplete, make sure that you have the entire structure in your document root. For debugkit, you do not need to explicitly remove it, because when you enter the debug level in your app, config / core.php file 0 (their debug settings as live applications Should be set).

php - Installation of joomla 3 on offline linux server doesn't get completed -

We have an offline Linux server that has some problem installing Joomla 3 on it to download the Joomla installation package and remove it And after starting the installation process, the first page of the installation has a process stack (Configuration tab) and the next button does not work !! However there is no problem installing Joomla 2.5 or lower version on this server What could be the reason? Thank you. Check PHP version on your server and compare it. The same goes for MySQL version.

AngularJS filter on date, display only time if year/month/day the same -

I'm new to Angular JS, for the item I have the start date and end date if year / month / day I want to display only the time (HHMM) to finish the date. If they are different then I want to show everything. Like this: {{item.bDate | Date: 'dd.m.m.yyy hh: mm'}} - {{item.eDate | Date: 'DDMMYY HH: MM'}} Any sign on how to do this? Change your HTML: {{item.bDate | Date: getDateFormat (item.bDate, item.eDate)}} - {{item.eDate | Date: getDateFormat (item.bDate, item.eDate)}} and creates this function in your controller: $ scope.getDateFormat = Function (bDate, eDate) {var startDate = new date (BDT); Var Enddate = New Date (EDT); If (beginDate.getDate () == endDate.getDate ()) 'HH: mm' return; Second return 'DD. MMY HH: MM '; }

dll - Extracting cab file with 32 bit CabExtract library in 64bit C# application -

हाल ही में, मैं 64 bit C # application । पुस्तकालय 32 बिट अनुप्रयोग में चलने पर ठीक काम करता है, लेकिन जब 64 बिट अनुप्रयोग में प्रयोग किया गया एक ही लाइब्रेरी, यह निम्नलिखित अपवाद फेंकता है: cabExtract.dll से आयात निम्नलिखित तरीके से लागू किया गया है: [DllImport ("cabExtract.dll", एंट्रीपॉईंट = "एक्स्ट्रेक्टकैबइजिन", चार्सेट = चार्ससेट। यूनिकोड, सटीक स्पेलिंग = सच)) आंतरिक स्थैतिक एक्सटेन इंट एक्स्ट्रेककैबबेजिन (); अपवाद: System.BadImageFormatException संदेश: एक प्रयास था & gt; एक गलत प्रारूप के साथ एक प्रोग्राम को लोड करने के लिए बनाया। (HRESULT: 0x8007000B से अपवाद) मुझे कैबएक्सट्रैक्ट पुस्तकालय 32 बिट के लिए समर्थन करता है। लेकिन मुझे 64 बिट के लिए कोई भी कैबएक्ट्रैक्ट लाइब्रेरी नहीं मिली है। तो, मेरा प्रश्न: क्या यह 64 बिट प्रबंधित अनुप्रयोग से 32 बिट अप्रबंधित लाइब्रेरी का उपयोग करने में सक्षम होगा? यदि हां, तो यह कैसे किया जा सकता है? क्या यह 32 बिट अप्रबंधित लाइब्रेरी 64 बिट प्रबंधित अनुप्रयोग से? यदि हां, तो यह कैसे किया जा सकत...

sql - What is the difference between COUNT(*) and COUNT(table.ColumnName)? -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब 9 (जवाब) COUNT (*) और COUNT (table.ColumnName) के बीच क्या अंतर है? मैंने हमेशा सोचा कि यह COUNT के लिए एक पैरामीटर के रूप में एक स्तंभ का नाम डालने के लिए तेज़ है, लेकिन अब जब मैं इसके बारे में सोचता हूं तो मुझे वाकई पता नहीं है क्योंकि * इसका अर्थ है कि फ़ंक्शन पंक्तियों की गिनती करता है, इसलिए शायद कोई अंतर नहीं है? या हो सकता है कि एक विशिष्ट स्तंभ नाम देकर भी प्रक्रिया को धीमा कर दे? इन दोनों के बीच अंतर नहीं है (मुख्यतः ) प्रदर्शन। वे अलग-अलग चीज़ों की गणना करते हैं: COUNT (*) आपकी तालिका में पंक्तियों की गणना करता है। COUNT (कॉलम) एक कॉलम में प्रविष्टियां - null मानों की अनदेखी कर रही हैं। बेशक इन दोनों के बीच प्रदर्शन अंतर होगा, लेकिन ये उम्मीद की जानी चाहिए कि वे अलग-अलग चीज़ें कर रहे हैं विशेषकर जब कॉलम null -values ​​की अनुमति देता है, तो क्वेरी उस कॉलम पर से अधिक समय लगेगी जो (या COUNT (*) )।

java - How to rename the element of SOAP respond in CXF? -

I use CXF for web services, and I want to rename return element. node type Jxb class is generated from the xsd schema, how can any idea change it? I have: & lt; Soaps: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Soaps: Body & gt; & Lt; GetNodesRespond & gt; & Lt; Return & gt; & Lt; IdNode & gt; 1 & lt; / IdNode & gt; ... & lt; / Return & gt; ... & lt; / GetNodesRespond & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt; I want to: & lt; Soap: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Soaps: Body & gt; & Lt; GetNodesRespond & gt; & Lt; Node & gt; & Lt; IdNode & gt; 1 & lt; / idNode & gt; ... & lt; / Node & gt; ... & lt; / GetNodesRespond & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt; Apply XML el...

c# - Which design pattern allows to get this architecture -

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

ruby on rails - Disable friendly_id on specific action -

I am using friendly_id gem (Rails 3.2) and I want to make a specific action (edit) Do not use Slug How can I do this? Example: for show action: "site.com/object/friendly_id" for editing operation: "site.com/object/id / edit" Is this possible? Thanks object send id Instead of edit_user_path (@ user.id) to show, ex> user_path (@ user)

java - remove tab chars from the string -

I have a problem when the string is mixed between Arabic and English, so that I \ t again or \ u0009 But this is another problem because when the text appears to the customer, between the word "due to tab" and not able to appear, no idea how this Fix the problem? You can remove any string / string from the string. This allows you to specify the string that you want to change, and the value that you want to change it. When you want to "delete", you can use the empty space as the empty value as empty value. Div>

javascript - JSON Highcharts to draw multiple lines -

I have been completely lost with high charts! I have to draw a graph with several lines, I need a JSON output like this: [{"name": "2", "data": [1398333600000,1], [1398333600000,1], ....}, {"name": "16", "data": [1398333600000,1], [1398333600000,1] ...}, {.... .... }] ... However, I get only one flawed JSON response from the PHP file. How can some altruistic soul light the way? Thank you very much in advance. Sorry, I'm a super-novice: ( My BD table Mysql: I can not upload a picture with table BD on the post, sorry! ... I need at least 10 reputation! ... link ... Javascript code: chart = new highchart. Chart ({chart: {rendereTo: 'DivStatsGrupo', plotBackgroundColor: Zero, conspiracy borderline: empty, plot shadow: false}, title: {text: titulo}, tooltip: {enable: false}}, exxis: {type: 'date time ', Date: Time Label: Format: {hour:'% H:% M ', label: {style: {width:' 200px '...

sap - Cleanest way to flip a Boolean -

Are there any current methods or function modules that flip the boolean values ​​efficiently? I have come up with a simple implementation that should define my utility method, but I am thinking that this is the most efficient approach: IF iv_bool = Abap_true Rt_bool = abap_false ELSEIF iv_bool = abap_false rt_bool = abap_true Other Rt_bool = abap_undefined if end. Edit: As described by Smigs, this implementation flips three valuable booleans or "trileans" rt_bool = boolc (iv_bool ) However a Boolean will flip, it will not deal with abap_undefined. From 740 SP08, you can use the xsdbool () instead of boolc () to get the same result given examples There is no difference to, but xsdbool () is

CSS Dropdown menu: How to make absolute positioned sub nav line up perfectly -

I am creating a pure CSS drop down menu using the full position, but the main navigation. The color of the sub-nav background is a bit dark red that matches the background color for the main navigation list item, when they become more. The problem is that the sub-nav is not growing up correctly. I have created a simple JSfield with this code that I am using to explain what I mean. The entire code is in Bella but it is mandatory how I am doing it. Neowal ul li (float: left; padding: 21.5 px 1%; / * 10 pixels; * / position: relative;} NUL ul ul {display: none; position: complete; Top 100%; Background Color: # B91428;} When the main navigation list item is placed in its background, the sub-navigation list should be exactly above the background of the item, But I can not seem to do this work, any help would be appreciated. add left: 0 to nav ul ul Neowal ul ul {display: none; position: full; top 100%; background color: # B91428; left: 0;}

Where to find the Library for ActionBarSherlock in Android -

I am learning ActionBarSherlock in Android and I saw that there is a library that we need ActionBarSherlock feature, add it to our existing project. Am I surprised that I have downloaded the .zip library website "actionbarsherlock.com" but when I With no other "library" folder found in "again", " samples with the other two folders" and " website ". Where can I find the Library folder that I can add to my project? Can anyone help me on this please! Thank you, Darshan 1 - Download Dr. Lib and Unzip. 2 - Eclipse Import-> In Current Vertical & gt; Where in the current project, and then browse to that place. Slackpath and Project files are present in the Sherlock project. 3- Right-click on your project - & gt; Properties, click Add to Android-> Library section. Choose Sherlock 4 - Enjoy.

linux - mounting fs with errors, running e2fsck is recommended -

I am using CentOS version 5.10 with 64 bit, unfortunately when the special file under the root directory The error was given below, odd: ** EXT3-fs Warning: Increasing fs with error, running e2fsck is recommended, rm: `/ var / lock / subsys / xinetd ': Read-Only File System ** This has changed to a read-only file system, how to fix it ??? If / is in read only mode, then try it again: Mount-O Remount, rw / You still need to check the partitions for errors if you have physical access to the server or a KVM-it Boot into single mode - Unmount all partitions and run fsck If you do not have physical access, then try

c - redeclared as different kind of symbol error -

मेरे पास निम्न घोषणाओं के साथ एक .h फ़ाइल है: typedef SetElement (* copySetElements ) (SetElement); टाइपफीफ शून्य (* नि: शुल्कसमिति) (सेट एलेमेंट); टाइपएफ़एफ़ इंट (* तुलनासेट एलेमेंट्स) (सेट एलेमेंट, सेट एलेमेंट); और निम्नलिखित delarations के साथ एक और .h फ़ाइल: SetElement copySetElements (SetElement element); शून्य मुक्तसेटलेट (सेट एलेमेंट तत्व); इंट तुलनासेटल एलेमेंट्स (सेट एलेमेंट तत्व 1, सेट एलेमेंट एलिमेंट 2); और मुझे त्रुटि मिलती है: दूसरी तरह के प्रतीक के रूप में प्रतिलिपि किया गया दूसरी .h फ़ाइल में (जहां मैं फ़ंक्शन का निर्धारण करता हूं) एक बार जब मैं उनके नामों को बदलता हूं तो यह गायब हो जाता है। टाइप किए गए फ़ंक्शंस और वैश्विक वैरिएबल के समान नाम स्थान साझा करते हैं। जब आप दो अलग अलग चीजों के लिए एक ही नाम का उपयोग करते हैं, तो संकलक को यह नहीं पता होगा कि आप किसका मतलब है इसलिए यह इसके बजाय एक त्रुटि देता है।

ember.js - Ember Data 'find' with parameters prevent new record from displaying -

I am trying to add a new record to the amber data store, and it is expected to show up immediately in the amber data store The parameter was spent a few hours trying to figure out how to pass it. Then this code works: app.flags root = amber Route.product ({model: function (params) {this return.store.find ('flag');}}); App.FlagsController = Ember.ArrayController.extend ({init: function () {this.store.createRecord ('flag');}}); JSBin: At the bottom of the table is a new record, as expected. And the only thing I'm adding is the parameter for the 'search' query, it stops working. This code therefore displays the new record: App.FlagsRoute = Ember.Route.extend ({Model: Functions (Params) {this return.store. Find ('flag', params);}}); JSBin: The new record has actually been added to the amber data store, but not shown in the table. Your problem is that you have a record in your controller's init The hook is called the ...

azure - WAStorageEmulator.exe start failure -

I have just installed Windows Ezur SDK, it came with version 3.0 of Windows Azure Storage Emulator. When I try to launch the emulator it starts successfully (after getting the signal for the system admin password), but this system administrator fails to resume me for the password. The exception that I get: Unchecked exception: System. Timeout Expedition: Unable to open the wait handle. Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessController.InternalWaitForStorageEmulator (Int32 timeoutInMilliseconds) My current user is not a system administrator, but I have a system administrator The password for the account is. Anyone walked into this? The storage emulator needs to run initially with a different user to over altute with high privileges By using, it seems that the emulator can only be started for that user, you need to run the initialization as the current user but with high privileges. Once the user starts the emulator, you will not need high pr...

android - Permission Denial: receiving Intent -

I have created an air native extension for Android push notifications, but I get an exception like this when I run the app Is: Permission denied: Get the intent {act = com.google.android.c2dm.intent.REGISTRATION cat = [air.com.test.mobile] (additional)} to air.com.test .mobile Air.com.test.mobile.permission.C2D_MESSAGE is required for debug com.google.android.gsf (uid 10019) Manifest: & lt; android & gt; & Lt; colordepth & gt; 16bit & lt; / Colordepth & gt; & Lt; manifestAdditions & gt; & Lt ;! [CDATA [& lt; Manifest Android: installLocation = "auto" & gt; & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.DISABLE_KEYGUARD" /> & Lt; Use-permission Android: name = "android.permission.WAKE_LOCK" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /...

ios - how to join line with round corder -

Image
I have three points, code A, B and C, the code to link the following points // Override Direct: If you do a custom drawing // An empty implementation adversely affects performance during animation - (zero) direct: (CGRact) rect {// drawing code CGCTXTIF reference = UigrexgateCertact Contact (); NSArray * points = @ [[NSValue valueWithCGPoint: CGPointMake (10.0f, 15.0f)], [NSV Value Videocon's Point: CGPWantmec (100.0F, 170.0F)], [NSW Value VCTGNT: CGPWantmec (190.0F, 100.0F)], ]; CGContextSetStrokeColorWithColor (Reference, [UIColor redColor] .CGColor); CGContextSetLineWidth (Reference, 2.0F); CGContextSetLineJoin (reference, KCGLineJoinRound); CGContextSetLineCap (Reference, KCG LyncapRound); For (int i = 0; i However, the junction of the two rows is an angle, I should be in point B. with a rounded cedar. Like the following image: How to do You have 2 straight lines, which are asking for you (possibly 2 Try using or CGPathAddCurveToPoint or CGPathAddQ...

java - Slick2D: getTileProperty returns true when it shouldn't -

I am trying to find some collisions for a test game which I am doing. I have used tilepad for management and have determined to block the property on one of the tiles = true. This tile has been dragged back to 0. Then I check whether the tile is present in the direction player is moving forward using the following code if (input.isKeyDown (input. KEY_DOWN)) { sprite = down; Sprite.update (delta); Int tileID = map.map.getTileId ((int) x / map.map.getTileWidth (), (int) y / map.map.getTileHeight () + 1, 0); String value = map.map.getTileProperty (Tile ID, "Blocked", "Wrong"); If (value.equals ("true")) {y + = delta * 0.1f; System.out.println ("tile id:" + (int) (x / map.map.getTileWidth ()) + "," + (int) (y / map.map.getTileHeight () + 1) + "try Do the bottom tile value for the player to run below: "+ value"; }} This is repeated for each direction. The problem I'm running is picking up the blocked property...

java - automatically separate mm:ss in editText? -

I would like the user to input a few minutes and a second at a time after input of the input I will automatically create a " : "How do I add? Use of Eclipse with Java. So far I have this: EditText editTextT; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.activity_main); EditTextT = (Editing Text) SearchVBIID (RIDE Identity); editTextT.setOnKeyListener (New EditText.OnKeyListener) {Public Boolean ON (see V, Int kikod, Key Event Event) {if (editTextT.getText (). length () == 2) {editTextT.setText (editTextT.getText () + ":"); EditTextT.setSelection (editTextT.getText (). Length ());} return false;}}); You have to add KeyListener to your TextField . Then for example you can respond to a key that is released. You check the text for length in your text and add a : at the end of the string. Take a look at this: Textfield addKeyListener (New KeyListener) {@Override public void keyTyp...

oracle adf - programmatically set validator message in entity object in adf -

Image
The sample code is shown below in the implementation of the Oracle Form in the "when-valid item" trigger in the ADF. Announce the date sysdate1; Start by choosing sysdate from double to sysdate1; If to_char (: xdate, 'cc') & lt; '20' message ('Confirm Century Please'); Message ('Confirm Century', NO_ACKNOWLEDGE); Increase form_trigger_failure; end if; If x_date> Sysdate1 then message ('You can not enter future date'); Message ('You can not enter future date', NO_ACKNOWLEDGE); Increase form_trigger_failure; end if; Dp_date (); End; Is it possible to change the verifier message in a unit objectively programmable? Because I am implementing Oracle forms "when valid-item-triggers", where the error message based on the situation has been changed as above. [In ADF we can create more than one message] I give this statement "Script Expression Verifier allows you to enter more than one error message. This i...

numpy - Python: Normalize multidimensional array -

I have code to create and export 12 stereo WAVs I'm just doing this : for i category (0,12): filename = "out_% d.wav"% il = ... list of float between some -1 and +1.0 .. R =. ..so ... exportWAV (file name, L, R) but the volume is very quiet. What do I need to do to maximize all L & amp; R, and all L & amp; By this quantity r. Then all my values ​​will be between -1 and 1. This is not a difficult task, and I can exclude some ugly code to do this. But how to do it properly? I should be able to do this in just a few lines: all_LR = '' all_file = '' i (0,12): file name = .. L, R = ... all_LR + = (L, R) all_file + = filename maxVal = max (abs (all_LR)) for all_LR / = maxVal file, zip in L, R (all_file, all_LR): exportWAV File name l, r) But I can not see how to turn this pseudocode into actual valid Python. Abs and Max do not work on an array of Tuples, where each element in the tuple is an array of float itself. I think I...

ios - Initiating outlets when there is no xib file -

मैंने RPM वर्ग को परिभाषित किया है जो UIView कोड> @ प्रॉपर्टी (नॉनैटोमिक, असाइन करें) आईबीओटललेट एनालॉग * आउटलेटऑन; @ प्रॉपर्टी (नॉनैटोमिक, असाइन करें) आईबीओटललेट एनालॉग * आउटलेट दो; जहां एनालॉग UIView से एक वर्ग विरासत में मिला है। जैसा कि मैंने अनुप्रयोग चलाते हैं, दो आउटलेट शून्य जब मैं awakeFromNib विधि क्योंकि कोई xib फाइल नहीं है, मैं यहां सुझाई गई विधियों का उपयोग नहीं कर सकता (अर्थात आउटलेट को देखने के लिए खींचें): मैं आउटलेट आरंभ करने के लिए कक्षा को कैसे बताना चाहिए? अपने गुणों को initWithFrame में प्रारंभ करें। आप आईबीओटलेट कीवर्ड को हटा सकते हैं।