Posts

Showing posts from June, 2014

sql - Oracle Statement Missing Expression -

I am having trouble finding the missing expression from the following statement. What am I losing? Any help is greatly appreciated. Select c.first || '' || As "name", S. Start_data "pro start date", "end date" as sand_date, criminals from "frequency" as pc.con_freq, sentences, prob_contact pc WHERE c.criminal_id = s.criminal_id and p.low_amt and pc.high_amt Between s.violations; As far as JOIN goes, it will be: ( true statement ) SELECT c.first | | '' || C.last AS "name", s.start_date AS "PROB start date", s.end_date AS "PROB expiration date", pc.con_freq AS "Frequency" to include offenders on Jammu Sentence c.criminal_id = s.criminal_id Prob_contact pc ON s.violations between JOIN pc_low_amt and pc.high_amt; This is the first expression: choose c .first || '' || In the form of "name", . ------------------------- ^ Maybe you mean: In addition, yo...

c - error in fork and usleep -

मैं यह कोड लिखता हूं: #include & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; # शामिल करें & lt; unistd.h & gt; # शामिल करें & lt; signal.h & gt; शून्य साइनचल्ड (इंट सिग्नल) {fprintf (stderr, "[X] बच्चा से बाहर निकल गया \ n"); } Int main () {संकेत (SIGCHLD, signchld); Int i; के लिए (i = 0; i & lt; = 300; i ++) {pid_t f; च = कांटा (); अगर (च == 0) {// बच्चा नींद (3 * 1000000); Fprintf (stderr, "[C1]% d \ n", i); बाहर निकलने के (0); Fprintf (stderr, "[सी 2]% d \ n", i); } और अगर (एफ & gt; 0) {fprintf (stderr, "[P1]% d \ n", i); usleep (20000000); Fprintf (stderr, "[P2]% d \ n", i); }} वापसी 0; } लेकिन [p2] प्रत्येक 3 सेकंड चलाएं और फिर अगले लूप चलाएं मुझे यह आउटपुट देखने की उम्मीद है: [P1] 0 [C1] 0 [X] बच्चा से बाहर निकल गया 20 सेकंड [P2] 0 [P1 ] 1 [सी 1] 1 [एक्स] बच्चे से बाहर निकल यह संकेत हैंडलर साइनचल्ड () उस बिगड़ती नींद () माता-पिता में, जैसा कि हम प्रतिस...

How to use express.js as proxy in angularjs-seed app -

कोणीयर्ज़ न्यूबी चेतावनी !!! मुझे एक प्रॉक्सी की आवश्यकता है कॉरस से बचें; मैं लागू करने के लिए देख रहा हूँ मुझे यह समाधान मिला लेकिन मुझे यकीन नहीं है कि कोड कहां रखा जाए। मुझे एक विशिष्ट कोणीय-बीज ऐप के संदर्भ में जानकारी की आवश्यकता है कृपया मदद करे। धन्यवाद! ex: मैं कोड में कहां रखता हूं & amp; मैं प्रॉक्सी सर्वर कैसे शुरू करू var एक्सप्रेस = अपेक्षित ('एक्सप्रेस'), httpProxy = require ('http-proxy'), ऐप = express (); Var प्रॉक्सी = नया httpProxy.RoutingProxy (); फ़ंक्शन एपीप्रोक्सी (होस्ट, बंदरगाह) {रिटर्न फ़ंक्शन (रिक, रेस, अगली) {if (req.url.match (नया RegExp ('^ \ / api / /))) {प्रॉक्सी.proxyRequest (req, res, होस्ट: होस्ट, पोर्ट: पोर्ट}); } Else {next (); }}}}}}} एप। कॉन्फ़िग्यूअर (फ़ंक्शन () (ऐप। यूज (एक्सप्रेस। स्टैटिक (प्रोसेस.cwd () + "/ जेनरेट"); एप। यूज (एपीप्रोक्सी ('लोकलहोस्ट', 3000)); एप। यूज ( Express.body पार्सर ()); एप। यूज (express.errorHandler ());}); Module.exports = ऐप; मुझे यकीन नहीं है कि आपका सटीक ...

c++ - undefined reference to 'vtable for class' constructor -

इस सवाल का पहले से ही एक उत्तर है: 6 जवाब मुझे एक अनिर्धारित संदर्भ मिल रहा है निम्न शीर्ष लेख फ़ाइल संकलित करते समय `छात्र के लिए वीटेल 'के लिए: student.h वर्ग के छात्र {निजी: स्ट्रिंग नाम; स्ट्रिंग एड्रेस; स्ट्रिंग प्रकार; संरक्षित: फ्लोट के निशान; इंट क्रेडिट; सार्वजनिक: छात्र (); छात्र (स्ट्रिंग एन, स्ट्रिंग ए, स्ट्रिंग टी, फ्लोट एम); ~ छात्र (); स्ट्रिंग मिलाना (); स्ट्रिंग मिलएड्रेस (); स्ट्रिंग getType (); फ्लोट मिल मार्क्स (); आभासी शून्य गणना क्रेडिट (); int getCredits (); }; छात्र :: छात्र () {} छात्र :: छात्र (स्ट्रिंग एन, स्ट्रिंग ए, स्ट्रिंग टी, फ्लोट एम) {names = n; पता = ए; अंक = एम; } छात्र :: ~ छात्र () {} मुझे इस में गलत क्या नहीं मिल रहा .. आप एक वर्चुअल फ़ंक्शन को घोषित कर रहे हैं और इसे परिभाषित नहीं कर रहे हैं: वर्चुअल शून्य गणना क्रेडिट (); या तो इसे परिभाषित करें या इसे घोषित करें: वर्चुअल शून्य गणना करें क्रेडिट () = 0; या बस: आभासी शून्य गणना क्रेडिट () {}; और पढ़ें vftable के बारे में:

java - How to rename submenu items? -

I have submenu of population with some actions, even though names that appear on them are not desirable "copy" and "paste "Instead, I get less desirable: copy-to-clipboard, paste-to-clipboard. I need to change it. // submenu submenu = new gmailine ("paste"); MenuOptions.add (submenu); Action LessonCopy = New DefaultEditorKit.CopyAction (); Action Lesson Paste = New DefaultEditorKit.PasteAction (); // Copy SubMenu.add (textActionCopy); // Paste submenu.ed (TextActionPaste); Add more actions about how to create a MenuItem, then add it to the menu. Sample: // submenu submenu = new gemen ("paste"); MenuOptions.add (submenu); Jenemitum cut = new gemenuitem (new default editor.cut action) ()); Jenemytim copy = new jmuiteum (new default editor.capaigne ()); Gemmenitum Paste = new gemenuitem (new default editor.pet action); Submenu Ed (cut); paste.setText ("Paste"); Cut.setText ("cut"); copy.setText ("Copy")...

Powershell: Trying to combine two arrays that don't use the same columns -

I have two arrays imported from a CSV file, from here I will refer to the master array and the update array . / P> There are three additional columns on the front of the master array and three additional columns on the back. Every day I get a new update array, which I have to do with two things. / P> A) Remove any rows on the master which do not appear in the update b) Add any rows that appear in the update, but the master does not master I am still quite new in the powershell, and in general (mostly self-taught) the script and how to find out this can not know I know that there is a comparison-object command, Can get a list of I am the one who gets the lines very easily, but I am not sure how to combine them the way I want them. Edit: Master array entries have this information: ef: true ea: true rem: true accountname: example1 enabled Gone: Set the correct password password: 01/08/2002 13: 14:19 When did: 01/08/2002 13:14:19 Description: Owner Email: johns...

javascript - Determine direction of change in array -

Looking at a sorted array, such as [1,2,3,4,5] and a variation of this array, where an item was moved to a different position (not sorted now). [1,2,5,3,4] or [2,3,4,1,5] to define the "direction" of this step as trustworthy Required - ( 5 moved first left in the first example, 1 At the moment I have a solution that runs from arrays (from left) and their values ​​are compared to index i - as they are not identical (to define anomalies point) So it compares prices on i + 1 if Old [i + 1] & gt; New [i + 1] was omitted, otherwise correct // pseudocode: function (old, now) {for (old I [i] 1] & gt; now [i + 1]? "Left": "right"}}} / Pre> edit Is there a more reliable (and potentially more efficient) solution to that problem? At this time in some situations does it give "false positives" Need First Array? Its always sorted and sequential A. There really is no room for improvement in your solution - Th...

c# - SignalR polling not always returning accurate database results -

In my app, I start an import process by uploading an XML file. After uploading it, a series of stored procedures run and the XML file is parsed, and the data is inserted into many different tables. As soon as its progress, a statistics table is updated to reflect the inclusive progress. The statistics table has 4 columns: batch id , batchcount , processcode , and errorCount . Batch count All records are counted if the records are properly inserted without any problems, then process count is increased by 1, if it fails then ErrorCount increases with 1. (These two columns are always changing during the import process) My main goal is to display import progress using signal R. I have a hub method which is okay for voting, I am seeing the updated timestamps in the UI. However, this problem is that counting is always 0 (initial value), or sometimes it is sometimes read and looks like random 985. If it reads any value, it only does once and will not change it again. Here...

Iterator.continually vs while(..) in Scala -

def कार्य () {Thread.sleep (60 * 1000) // update lru cache हर मिनट // do नया थ्रेड {ओवरराइड डेफ रन = जबकि (सच) कार्य ()}। बनाम P> Iterator.continually (कार्य ())। DropWhile (_ = & gt; सच) सटीक एक ही व्यवहार है क्या वे हुड के समान भी हैं? इटरेटर.continually उपयोगी है एक इट्टरेटर प्राप्त करने के लिए कि आप एक छद्म संग्रह की तरह प्रयोग कर सकते हैं, गैर-साइड प्रभाव परिणाम के लिए यहां आप एक println कर रहे हैं, इसलिए लगातार एक अच्छी चीनी है, लेकिन यह वास्तव में आपको कुछ नहीं देता। यदि आपके पास ऐसा कुछ होता है: def कार्य () {थ्रेड.sleep (60 * 1000) // अपडेट लारु कैश हर मिनट // यहां कुछ गणना-गहन कार्य करना है जो कि लारु कैश को पॉप्युलेट करने के लिए " एलआरयू अद्यतन! " } एक साइड इफेक्ट लागू करने के लिए, आप अभी धागा का उपयोग कर सकते हैं, लेकिन आप अधिक (अधिक जटिल कोड के बिना) करने में सक्षम नहीं होंगे। new thread {override def run = while (true) println (task ())} .start यदि आप आउटपुट को बदलना चाहते हैं, या इसे किसी अन्य कॉल में धक्का, या लिखे...

java - How to obtain "X-Forwarded-Proto" header in REST application? -

I have a REST application running on Tomcat. I am sending http requests to https using the server.xml redirectPort parameter. Now, on the server side, I request that the requests be redirected to the X-Forwarded-Proto header. My code looks like this: @Context UriInfo uriInfo; @contact request request; Protected Response Check Security (security content sc) {string forwarded protocol} ((containeraver request)) .getHeaderValue ("X-Forward-Proto"); } However, it does not work. It seems that the request object only gives access to free free HTM headers. Can someone please recommend me the best way to get the header value? thank you in advanced. You need a tom to pay attention.

How can I create a performant, immutable array in JavaScript? -

Say I have an array which is very much used, like an identity matrix, which I want to make sure that it has not been modified. By mistake. How can I create a JavaScript array that can not be modified? Object.freeze Maybe what I want, but. EDIT: Title is a requirement for specifying the display. We need to call a lot of WebGL calls! Edit More: More specifically, this is for browser-based WebGL games (hence the need for performance), so whatever the features are Chrome and Firefox's current JavaScript Translators are in. Regarding the social pressure with the review of the code, of course! But we are still humans who make mistakes and sometimes write on the wrong variable. You can set manually the mutation methods of the array: var mutatorMethods [['fill', 'pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift']; Function preventMutation () {new type error ('array is irreversible'); } F...

ios - Dynamic Multiple NSMutableArray -

I have a scenario that I will do a query in SQLite and I need to declare a multiple array based on that number My problem is so basic to the groups: 1.) How to declare multiple arrays Example NSMutableArray * first = [NSMutableArray new]; NSMutableArray * Second = [NSMutableArray new]; NSMutableArray * Third = [NSMutableArray new]; I need to do this dynamically NSMutableArray * based on dynamic = groupCount Question Sample: Select group group, name from sample if (groupNumber == 0) {[first addObject: name]; } Else if (groupNumber == 1) {[second addObject: name]; } Definitely what you are trying to do, in fact, but Obviously [I, at least] must use ARM containing ARR, then you can drag the index you want from: NSMutableArray * bigArray = [[NSMutableArray alloc] In this ]; ... if (group name number & lt; [large counting]) {NSMutableArray * workArray = [bigger object atxax: groupname]; [Work add object: name]; } And {NSMutableArray * newArray...

boost - Is there an analog for std::lock/std::try_lock for try_lock_for and try_lock_until? -

When receiving multiple mutues (or with an boost, an Iterator range of mutecus), we lock the deadlock order There are similar std :: try_lock and boost :: try_lock functions using the lockable concept. There is also the concept, which combines methods like Try_lock_for and try_lock_until add timeout words to try_lock . What are the plans for analog, which provide convenience to avoid deadlock and timeout semantic (possibly std :: try_lock_for (Lockable1 & lock1, Lockable2 and lock2, LockableN & amp; lockn ...) and std:: Try_lock_until (Lockable1 & Lock1, Lockable2 & lock2, LockableN & lockkn ...) ) Similarly, there are Execution actions avoided planned for lock_shared , try_lock_shared , try_lock_shared_for , and try_lock_shared_until ? No, I have no proposal to add those functions. I believe there is no past proposal, but maybe I've missed for a year before the C ++ 0x process. I think the use of those functions will be very les...

c# - Is there a way to control spatial/memory locality when using Parallel.For -

I have a large array of unstable floats - the array length is 40,000,000 to measure this array, I thought it To use Parallel.For () would be more demonstrative. Here is the sequential version of the loop for the scales of data: + offset; } here parallel. Foro () has been changed for example: Parallel.For (0, rawData length, i = & gt; {scaladata [i] = roradata [i] * Scale + offset;}); But the performance is bad! My guess is, seeing the index / thread combinations, it is that is parallel FO () In this way memory is being accessed due to additional paging, to test this principle, I have the parallel. Tried to use as invoke () : Parallel.Invoke ((=) => {for (int i = 0; i & lt; 10000000; I ++) {dst [i] = src [i] * scale + offset;}}, () = & gt; (for int i = 10000000; i & lt; 20000000; i ++) {DST [ I] = src [i] * scale + offset;}}, () = & gt; {(int i = 20000000; i & lt; 30000000; i ++) {dst [i] = src [i] * scale + Offset;}}, () = & gt; {...

angularjs - Why does this Javascript code to play audio needs to have alert() in front to work? -

I would like to play a .wav file on my browser using javascript. The following code does not work; var audio = new audio ("alert.wav"); audio.play (); However, to make it work, I can do a simple trick by adding a dummy warning () further. alert ("dummy"); var audio = new audio ("alert.wav"); audio.play (); I do not know why this works. My first question is, how can I get the audio to play without that dummy alert ? The second question is that dummy alert () got to do some work? This code was run inside an angulars controller, not sure that this is the case. OK I think I've discovered the problem I used to do a separate .wav file Tested your code This works fine without the alert box Maybe its either: a) the name of the .wav file is alert (rename the file?) B) This file may be just maybe it is not working, it may be download again (although you can get it Have been) or try a similar sound .wav file? Hope it helps!

ruby - Rails Secure Login with Open VPN -

I have a website running on the linode server, so far this website has an authentication system, which Is built on top of Users can log in, create their own stuff and stay happy. For admin area (still programming), I have to create a secure VPN connection to access data, because the administrator has to send all types of information to users about the direct connection between my computer to the website was thinking. The problem is that I did not find any way to integrate VPN in a rail application and I do not know how it works outside of a rail app. Please, I really have to do this. Open VPN is a setup that should be done on the server, and nothing to do with rail AFAIK You can not restrict a portion of the web app to VPNs on VPN only, unless there is no curriculum, for this type of admin area you have a separate web app, bind it / it is a separate IP Run on, which is only accessible through VPN is an ideal setup Will xxxx: 80 - The public web-app used by users. yyy...

wordpress shortcode for tab -

I added it to a custom post type but I want to create it with a short statement with a shortcut method. how to do this ? Please answer anyone? & lt ;? Php $ args = array ('posts_per_page' => 4, 'post_type' = & gt; 'tab-item'); $ Myposts = get_posts ($ Args); ? & Gt; & Lt ;! - nab section date material area - & gt; & Lt; Div class = "date_section_area" & gt; & Lt ;! - Navigation tab - & gt; & Lt; div class = "date_section_list" & gt; & Lt; Ul & gt; & Lt ;? Php foreach ($ myposts $ as post): setup_postdata ($ post); ? & Gt; & Lt; Li & gt; & Lt; a href = "# & lt ;? php the_ID ();? & gt; Data-Toggle = "Tab" & gt; & Lt ;? Php the_title (); ? & Gt; & Lt; / A & gt; & Lt; / li & gt; & Lt ;? php endforeach; wp_reset_postdata (); ? & Gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt ;! - Tab Pains - ...

Manage "window-local" buffers in Vim -

स्पष्टीकरण : इस संदर्भ में "विंडो-लोकल बफर" का अर्थ सिर्फ एक बार बफर में लोड होता है एक विशिष्ट विंडो, किसी भी अन्य बफर को कभी भी उस विंडो में लोड नहीं किया जाता है, वह "विंडो-लोकल बफर" नहीं है। मुझे पहले बफ़र्स प्रबंधित करने के तरीकों पर कुछ गड़बड़ी थी और मुझे लगता है कि "विंडो-स्थानीय" बफर सूची बफ़र्स प्रबंध करने के लिए अतिरिक्त तरीके प्रदान करेगी यह कहकर, मैं पहले से ही विम द्वारा प्रदान की गई बफ़र्स के प्रबंधन में कोई दिलचस्पी नहीं कर रहा हूं। और ऐसा लगता है कि समाधान "विंडो-स्थानीय" बफ़र्स मैन्युअल रूप से autocmd BufWinEnter * call add (डब्ल्यू: बफ़र्स, विस्तार ('%')) और "विंडो-लोकल" बफ़र सूची w: बफ़र्स से संबंधित इंटरफेस प्रदान करें। क्या आपको लगता है यह उपयोगी है? और किसी भी सुझाव की सराहना की जाएगी। सभी खुली बफ़र्स की सूची इस का उपयोग करें: : बफ़र्स बफर # 5 को खोलने के लिए इसका उपयोग करें: : बफर 5 आप दो कमांडों को गठबंधन करने के लिए निम्न मानचित्रण का उपयोग कर सकते हैं: : nnoremap & lt...

css - Margin sometimes work sometimes don't under different doctype -

निम्न HTML कोड पर विचार करें: & lt; शैली & gt; Td {padding: 5px; } & Lt; / style & gt; & Lt; p & gt; 1233 & lt; / p & gt; & LT; तालिका & gt; & LT; टीआर & gt; & LT; टीडी & gt; & Lt; h3 & gt; कुछ पाठ & lt; / h3 & gt; & Lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; / तालिका & gt; अगर मैं & lt;! DOCTYPE HTML PUBLIC का उपयोग करता हूं - - // W3C // DTD एचटीएमएल 4.0 ट्रांस्क्रिप्शन / एन "& gt; , मार्जिन & lt; p & gt; और & lt; h3 & gt; का काम नहीं करता है, लेकिन अगर मैं & lt;! DOCTYPE HTML & gt; का उपयोग करता हूं, मार्जिन काम करता है। क्या अधिक है, जब मैं जोड़ता हूँ h3 {मार्जिन: 25px 0; } शैली में, उनमें से मार्जिन अचानक HTML 4.0 doctype का उपयोग करके भी काम करता है! क्यों क्या यह अजीब व्यवहार होता है? IE और क्रोम इस मुद्दे पर एक ही व्यवहार करते हैं, यह डिजाइन या कुछ और है, यह वास्तव में मुझे भ्रमित करता है। मेरे पास बहुत सारे पेज ...

Firefox addon to call javascript functions loaded from a server, is it feasible? -

I am evaluating the feasibility of automating the entries of the bets submitted on one server, lots of bets for entry It will be very slow before the race starts and press the "submit" button (label it "add to slip"), so automatic entry is better. Manual method: The web page that is coming from the server is "". Clicking the entries of the bet consists of clicking on the banker and the SL column, and Javascript stores them in some variables, due to the one click on the "add to slap" button the reason to store in some other variables in the other IFrame on the right side of the entry screen Can become. After the betset set, a click on the "Send Beat" button will send the stake to the server. Intended Automation: The betting entities will be available from one of the Java programs on PC, and can be made available to Firefox for a file through a file. The Addon reads the file and then puts entries inside the recurrent and calls...

Initialization of a static data member of a C++ template -

मैंने निम्नलिखित फ़ंक्शन ऑब्जेक्ट टेम्प्लेट क्लास लिखा है: टेम्पलेट & lt; typename P = double , टाइपनाम सी = डबल & gt; वर्ग वैट {सार्वजनिक: वैट (पी पी): प्रतिशतता (पी) {}; पी ऑपरेटर () (सी मुद्रा) {मुद्रा = मुद्रा + मुद्रा * (प्रतिशतता / 100); वापसी मुद्रा; } निजी: पी प्रतिशतता; }; जो एक मानक कंटेनर पर कार्य करेगा और उसके मूल्यों को बदल देगा, जैसे: std :: transform (prices.begin (), कीमतें अंत (), prices.begin (), std :: बाँध (वैट को & lt; डबल, डबल & gt; (25), std :: प्लेसहोल्डर :: _ 1)); मैं क्या हासिल करना चाहता हूं, यह एक sum होना चाहिए जो कीमतों में बदलाव के रूप में अपडेट हो जाएगा। इसलिए मैंने एक स्थिर डेटा सदस्य माना है, इसलिए मैं स्थिर सी राशि = 0 और पी ऑपरेटर () (सी मुद्रा) {मुद्रा सहित टेम्पलेट को दोबारा लिखना चाहता हूं} = मुद्रा + मुद्रा * (प्रतिशतता / 100); योग = योग + मुद्रा; वापसी मुद्रा; } लेकिन यह सही नहीं है। क्या वैसे भी हासिल करने के लिए क्या करना है जो मैं करना चाहता हूं? आप अपनी कक्षा के लिए थोड़ा सा बदलाव कर सकते हैं और...

PHP - Method For Sorting Array By Nested Arrays Value -

इस सवाल का पहले से ही एक उत्तर है: 7 जवाब मेरे पास एक php फ़ंक्शन है जैसे कि श्रेणी डेटा के साथ एक सरणी बनाता है: $ categories = array (); विदेशी मुद्रा ($ catIds $ catId) {$ category = Mage :: getModel ('कैटलॉग / श्रेणी') - & gt; लोड ($ catId); $ श्रेणियां [$ वर्ग- & gt; getName ()] = सरणी ('url' = & gt; $ श्रेणी- & gt; getUrl (), 'आईएमजी' = & gt; $ category- & gt; getImageUrl (), 'अंगूठे' = & gt ; संभोग :: getBaseUrl ('मीडिया')। 'सूची'। डी एस 'श्रेणी'। डी एस $ श्रेणी- gtTThumbnail (), 'स्थिति' = & gt; $ category- & gt; getPosition ()); } मैं 'स्थिति' मान से $ श्रेणियों की सरणी को सॉर्ट करना चाहता हूं। मैंने ksort और array_multisort के कुछ भिन्नरूपों की कोशिश की है लेकिन समाधान खोजने में असमर्थ हैं। ए???? उपयोगकर्ता परिभाषित तुलना फ़ंक्शन का उपयोग करके मानों के आधार पर एक सरणी को व्यवस्थित करें usort ($ श्रेणियां, फ़ंक्शन ($ a, $ b) {$ a = $ a ['p...

shell - How to read from file *and* stdin in bash -

This is my job: read some data from the file line from the line, for each row, if it satisfies some condition , Ask the user to input some and proceed according to user input. I know how to read a line-by-line content from a shell script: line while reading; Echo $ line $ & lt; File.txt However, if I want to interact with the user inside loop body, conceptually, what I want is: while reading; Do echo "This is what you want: $ line [y] es / [n] o" # This problem is: # I want to read from some standard input here. # However, inside the loop body, the standard input is redirected to file.txt INPUT if [[INPUT == "Y"]]; Then fixed the $ line & lt; File.txt Should I use another way of reading files? Or open the file on a file descriptor except for standard reading? "post-text" itemprop = "text"> For example: read -u 3 line; Read from FD3 read # -P "Y or N:" read the INPUT # standard input if [[INPUT == ...

python - Nginx stream headers -

I have a simple HTTP server and I want to send some headers before the client, because the generation of content is really long Time (more than N seconds) For example: HTTP 200 OK header- & gt; Some custom headers- & gt; Some lengthy operation - & gt; Content-length- & gt; \ N \ n- & gt; If there is no response to the server, some client devices are shutting down after 5 or more seconds. The source code contains an object "wfile" (socket descriptor, a file such as a file) ) Wfile.flush () sends the content to the customer in the standstate case all works fine The HTTP connection works on the nginx server and is waiting for the full response from the NJNEX backend. Is there a way to "flush" backend outout data? Config: space / {# proxy_set_header X-real-IP $ remote_addr; #sendfile_max_chunk 0; Proxy_buffering off; Send file off; Proxy_pass srv; } # Server_tokens off; } & lt ;! - Language: lang-python - & gt; SocketServer ...

reflection - Access code file and line number from Scala macro? -

How can I get the name of the code file and the line number in Scala macro? I saw and it says that it can be easily implemented using macros ... EDIT: To clarify, I want the caller's code file and line number I already have Is the same one and I want to modify it to print the line number and file name, whichever is the debug You should be c.macroApplication.pos , where c is context . For example, if your macro has F "% p: $ c.enclosingPosition finds the adjacent macro in which the position is searched (see other answers.) Msg " , but if the situation does not specify, the F macro will be positionless. Example string interpolator with macro, F "% p" : / * Convert extended conversions in some formats like it . *% C for quote,% p for position,% pf for file,% pn line number, *% p% column% p offset. * / Private def downConvert (parts: list [tree]): list [tree] = {df fix up (t: tree): tree = {val little (constant (s: string)) = t wall r =...

wordpress 3.8.1 and wp-db-abstraction -

Clean WP installation on the Santos 5.8 platform using the WP-DB-Abstracter plugin to interact with SQL Server 2008 Am trying to do r2 database I have also updated PHP with version 5.4.27 where msssql module is enabled. In addition, I have fixed the WP-db-abstractconction plugin with those signals, which I found on the internet such as the Pattern variable and some stuff like the correct path ... this once I wp-admin / install Call php to install in database, message on page: Strict criteria: / var / www / html / wp-content / plugins / wp-db-abstraction / translations / Redefining the already defined constructor for sqlsrv / fields_map in the square fields_map .fp on line 36 strict mother Nand: mssql_wpdb :: declaration () should be consistent with wpdb :: ready ($ query, $ args) in the / var / www / html / wp-content / plugins / wp-db-intact / w /% > If I am ignoring the messages, then the WP NAP t works well to miss some information that can not be written in the database o...

MySQL/PHP ordering Danish letters -

How do I direct the list? I have done this like this (tagname field is set to utf8_danish_ci): tag ordained tag name from SELECT * tag name COLLATE utf8_danish_ci ASC me Get the result: one ?? Konomi download graphic transfer But the correct way to order is: download graphic transfer one ?? Konomi Thanks! This is happening in the ASCII order, because "0konomi" alphabetically after "download" is.

c# - Error occured While writing to the file -

I am creating the file for the first time after creating the file, I am going to open a file immediately, but this error shows up : "Process" C: \ Project Works \ Websites 3 \ logs error \ error log \ error_Log_24_4_2014.txt 'because it is being used by any other process. " What does this mean? For more writing work, how can I open a file? I have tried it with the following code. FileName = String.Concat ("Error_Log_", DateTimeStamp + ext); If (file.exis (server.mappath ("~ / logs / error / error logs /" + filename)) (file (create server.mappath ("~ / logs error / error logs /" + filename));} // Here is an error, bottom line streamwire tw = new streamer (server.mappath ("~ / logs error / error logs /" + filename) is true); tw.WriteLine (""); Tw.Write ("\" "+ Tw.Write ("\" "Error Message +" \ ","); tw.Write ("\" \ ", \" \ "," "...

Ruby on Rails: loops and index in object array brackets -

Why is it that my index is not working properly in a loop (in the object array bracket)? should not be # {i} 1, 2, 3, .... 7 in this loop? & lt;% = select_tag 'hour [day] [1]', options_for_select (days_hours)%> & Lt;% = select_tag 'Hour [days] [2]', options_for_select (days_hours)%> & Lt;% = select_tag 'Hour [days] [3]', options_for_select (days_hours)%> ... & lt;% = select_tag 'hour [day] [7]', for option__description (day_hor)%> When I check my HTML, it only remains # ii . Try using " (double quote) instead of " & lt;% (1..7). Ic | I | & gt; & lt;% = select_tag "hours [days] [# {i}]", for option__description (Day_Hor)%>

slider - jssor width and height in percentages -

Slide and caption and all elemetns in the jssor slider get malfunction in pixels As a result, the sliders look stricter on a larger resolution screen. How can I mention the heights and widows of jssor sliders in percentages? You can use $ scale width) The method to scale the slider to any size . & lt; Script & gt; // Scale jssor slider to the original container of 70% width jssor_slider1. $ Scale Width (parentWidth * 0.7); & Lt; / Script & gt;

java - Unnecessary double quotes added to rows of CVS file when opening with notepad/notepad++ -

I am creating a CSV file using the open CSV jar, if I open the CSV file in the spreadsheet it's OK But if I open with Notepad / Notepad ++, then each row has to add an additional double inverted comma. Any help how can I fix this? This is not a bug, which is going to avoid quotes.

function - Refering to Database Error -

I'm new to Visual Basic so please forgive me already I'm trying to refer to the data table from a module And I get a reference, a shared member does not need an object. Error. I can not understand why. Lotto_rows.Count lotto = Int ((counter-1 + 1) * Rnd () + 1) Dim nameq = Database11DataSet.Tbl_names.AsEnumerable in n () where n.ID = lotto select n for each n Nameq first = n.first next lotto = Int ((counter - 1 + 1) * rnd () + 1) one ?? | This is the same as for the previous name full name return function As you have said, your problems were on the lines that were used: Database11DataSet.Tbl_names Within, Database11DataSet appears to be of a type rather than an object; The only methods can be said in a way that is shared (or, depending on language, stable): Static methods neither require a frequency of class nor They can enter into an example of such an example (or it, self, me, etc.). In your case, you should be able to...

How to set an Image in the Listview dynamically in the Listview using SimpleAdapter in Android? -

I have generated a list view using the SimpleAdapter I separated for each row of the ListView I want to set different pictures. I have made the following coding, but my image is only set to the first line, how to set the picture for the remaining line, please tell me step by step. My codes are given below: Increases contact fragments ArrayList & lt; Hashmap & lt; String, string & gt; & Gt; Val = New Arrestist & lt; Hashmap & lt; String, string & gt; & Gt; (); Val = db.getTaskSent (name); ListAdapter k = new simple adapter (getActivity (), val, R.layout.senttaskdata, new string [] { "rname", "heading", "desc", "id", "path", "receiver", "Sender "}, new Int [] (RID. Tekstuwu 1, Arkdktekst View 2, Arkaikdik Tekstuwu 3, Arkaikdi.acaidi 1, Arkaid. HID 2, Arkaidiacaidi 3 , Arkaid HID 4}) see {@ override public getView (int position, Knhwartwu View, ViewGroup Mother) {// TODO auto...

image - Combining 2 histogram data for a new Data in OpenCV -

I want to compare 2 images and if they are equal to placing 2 images. I will use the HSV histogram I calculate and compare the distance between the histogram. Now when the third image is received, I have to compare it to image 1 and image 2 (already stored in an identical type of image). The problem of comparing the above comparison is that the increase in images also increases computational cost So what do I want to do it, if 2 images are equal I want to cluster, so the same features will be compared to the clustering features of similar images in the future. > Option 1 If I merge 2 histograms then this would be correct? I do not think so, but I'm not sure? Option 2 How to use 2 image feature distribution, I calculate 2 new additions from histogram as a combined distribution of both. ? Is this sound right? I should take this step by step: Functions: Comparison Do 2 pictures if they are the same then keep both, then merge in some way Feature Space: HSV H...

java - Get custom user attributes from AD in weblogic -

Has anyone described how to obtain additional user attributes from AD using Weblogic Security? I have configured the security provider and tried to get certified in my JEE application. HTTP request (=) () callback handler handler = new simple callback handler (username, password); Try {topic subject = authentication.login (handler); ServletAuthentication.runAs (subject, request); } Hold (exception e) {e.printStackTrace (); Return "failed"; } Everything is fine. But from the topic, I can only take the user login and role, but I need a user phone and employee number. How can I do this? Once you have withdrawn the user name from the topic / code> To obtain, you must issue an LDAP query. It will look something like the following: properties.put (reference INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); Properties.put (context.PROVIDER_URL, "LDAP: // Your Land: 38 9"); Properties.put (reference. SECURITY_PRINCIPAL, ldapqueryu...

c++ - Where should I reimplement QAbstractItemModel::supportedDragActions()? -

I am moving the project from QT 4.x to 5, and the next function is obsolete: model & gt; SetSupportedDragActions (QT :: MoveAction); I have researched and apparently I had the same problem with the function to recompile / support the virtual one supported dragging () function and solve it. My newbie is a question, how should I change this kind of work again? In Qabstractitemmodel.h / cpp? Thank you: Edit: I have implemented the function in my CPP, which is set just above the function, which call set up supported drawings (), From: mapmodulelist.cpp: Zero QAbstractItemModel :: setSupportedDragActions (Qt :: DropActions verb) {Q_D (QAbstractItemModel); d-> Supported dragaction = verbs; } Zero MapModuleList :: setupModel () {if (mapLayersModel == faucet) {mapLayersModel = New QStandardItemModel (0); MapLayersModel - & gt; Set Supported Dractions (Qt :: MoveAction); }} mapLayersModel is a member of this class, this is its announcement: Fixed QStandardItemMode...

Why do I get js execution errors with angular.dart 0.10 and ng-view? -

I have migrated so far. Expected works in darts , but dart2js via JS I get unproved error in web console: 'Ctrl '. STACKTRACE: Error on dart.wrapException at the StaticClosureMap.lookupGetter $ 1 (http: // localhost: 8080 / app / main.dart.js (http: // localhost: 8080 / app / main.dart.js: 2390: 15) 8926: 17) Dynamic Pursarback.NEEVESHScope $ 1 (http: // localhost: 8080 / app / main.dart.js: 7177: 21) on DynamicParserImpl.parseAccessOrCallScope $ 0 (http: // localhost: 8080 / app / main. Dart Dynamic Percer Implements.DynamicParserImpl.parseAccessOrCallMember at $ 0 (http: // localhost: 8080 / app / main) on primary $ 0 (http: // localhost: 8080 / app / main.dart.js: 7507: 21) DynamicParserImpl.parsePrefix $ 0 (http: // localhost: 8080 / app / main.dart.js: 7460: 21) at DynamicParserImpl.parseMultiplicative at $ 0 (http: // localhost: 8080 / app / dart.js: 7464: 21) DynamicParserImpl.parseRelational at $ 0 (http: // localhost: 808 0 / $) on DynamicParserImpl.parseAddi...

Automated Deployment with svn,ssh and plsql -

Image
The process we are now following is: 1. The path of code in the developer Sends mail (SVN path) 2. We check the amendments in the source code folder and copy the modified files to my local machine. 3. Play the backend component (.sql, .pck, .prg) in pl-sql developer. 4. Transfer the front path to the specified path in the remote server through SSH. 5. Mail logs and developer to step 3 and 4. Is there a way to automate the whole process I would suggest the following Sending files via mail and compilation is too old You can use Hudson or Jenkins to automate it when Hudson runs, it will update modified or added files in its working directory. In case of backend consolidation, you must first export the files to some temporary location. You can use their ANT to compile backend files in Schema. Transfer to the application server for front end files, you can use the deployment options available with "Execute Shell" or Hudson / Jenkins. You can use something to export ...

python - Exclude URLs from Django REST Swagger -

I have some URLs that I want to exclude from my other API documents. I'm using Django REST Swagger and only one documentation can be found () does not really tell me a lot. SWAGGER_SETTINGS has a "excluded_name location" section in Settings.py, but any real explanation or example is not. Simply put, I want to exclude any URL from the docs which / api / jobs / status / / api / jobs / parameters / How can I go about doing this? Thanks in advance for any help offered: P to exclude Namespace for one is defined in your urls.py. For example, in your case: urls.py: internal_apis = pattern ('', url (r '^ / api) / Jobs / status / ', ...), url (r' ^ / api / jobs / parameters / ', ...),) urlpatterns = urlpatterns + patterns (' ', url (r' ^ ', included ( and in your settings SWAGGER_SETTINGS = { This is well described

jsp - Java calling one servlet from two sources -

I am creating a Java web-application with a user profile. I have a profile that is responsible for surrender two pages: profile.jsp and editProfile.jsp The first source, whose profile is being called Savelt, is a menu link at the top of the page, and so on See: & lt; A href = "profile sarlet? Super = profile" & gt; Profile & lt; / A & gt; The second source profile has an "edit" button. Jsp: & lt; Form Name = "Edit Profile" method = "Receive" Action = "ProfileServlet Ultimate = EditProp" & gt; Input type = "submit" value = "edit" & gt; & Lt; / Form & gt; Now, in profiles, I want to either redirect the profile either to edit.profile.jsp or to redirect. Here is the code: if (request.getParameter ("param"). Equals ("profile")) {response.sendRedirect ("profile.jsp"); } Else if (request.getParameter ("param"). Equals ("editpr...

r - Generating random numbers from a truncated Gaussian -

Like most physical problems, facing the limitations of my case, I want to generate random numbers (with R) in this way as a small Gaussian distribution. The idea is that these numbers should not depend on the value range. I have already found the package trunkrom, but this does not work: For example, here a Gaussian meaning is 0.1 and width is 0.1, but it is constrained between 0 and 1: install.packages ("truncnorm") library (truncnorm) vec = rtruncnorm (n = 100000, a = 0, b = 1, mean = 0.1, sd = 0.1) [1] 0.1289061 As you can see, the final means is not the given one as input, I can have the same result by using the standard rnorm function and on subseting Consequence I do not want to change the wheel again, so any ideas or suggestions of more packages will be welcomed! Thanks! Therefore we may have to differentiate between the original values ​​before and after the transaction, and you may be exposed In order to control sample specimens, the estimated values ​...

javascript - Toggle menu not working on smartphones -

I have a responsive website that shows a dropdown menu on small resolutions. Or, it should display a toggle button, which jumps at 479 px resolution, but for some reason it does not have to be opened when clicking on it. I am very bad with JS, so I was thinking that someone could help me. If I understood it properly, there is no JS function that will "make" it ... Again, sorry, I'm not really familiar with JS, I'm still learning. Thank you to a bunch Should: & lt; Script & gt; $ (document) .ready (function () {$ ('menu_trigger'). ('click', function () {$ ('nav') toggle ();});}); & Lt; / Script & gt; Just put it in your section.

Python 3.x BaseHTTPServer or http.server -

I am trying to create a BaseHttps server program. I prefer to use Python 3.3 or 3.2 for this. To understand the importation, I get a hard dock but try to change the import from: HTTP For : Import http.server from BaseHTTPRequestHandler, HTTPServer and then the import works and the program starts and GET requests But a request exception is raised when: The file "C: \ Python33 \ lib \ socket.py", line 317, l Self._sock.send (b) TypeError: 'Str' does not support the buffer interface Question: Is there a version of the BaseHttpSaer or http sir Works with 3.x or am I doing something wrong? This is my "" program that I try to run in Python 3.3 and 3.2: #! Import from / usr / bin / python # to BaseHttpServer from BaseHTTPRequestHandler, HTTPServer http. Server Import BaseHTTPRequestHandler, HTTPServer PORT_NUMBER = 8080 # This class # handles any incoming request from a browser class myHandler (BaseHTTPRequestHandler): # Handler Def DO_GET ...

css - Selecting multiple divs in html -

How can we hover over multiple divs in html at the same time? I have two devices, different posts in an html page. I want to hover to select any divs and this, and other div. How can I accomplish this by using the preferences of CSS properties? At present, it is not going from parent to child, on the contrary, I tried all different combinations, even ~ and + properties. HTML Code: & lt; Div id = one1 & gt; & Lt; Div id = two2 & gt; & Lt; / Div & gt; & Lt; / Div & gt; CSS: # one1: hover {background-color: yellow;} # two2: hover {background-color: yellow;} Would you like to do something like #one: hover ~ #two, #one: hover ~ #three {background-color: yellow; }

How can i implement auto scale feature in nifty-gui? -

As I can see in the Vimeo video, there is a nice feature to scale the whole interface but I have anywhere Can not find the document I can do it (nor in the 1.3.2 manual). You use this "Nifty Instance" Base Resolution ". This" Base Resolution "is used by your GII Size and when it is enabled, the actual guinea will be automatically scaled to the actual screen resolution: Nifty. Enabled Autoscrolling (1024, 768); Another way to use it is to set the "base resolution" and to provide scale factors for width and height directly: Nifty. Enabledautoscrolling (1024, 768, 2.0, 2.0); See the category for reference and is also available there.

Sum different columns in R dataframe -

I have a data frame with 144 columns and 1000 rows. There are 36 different variables in it, there are always 4 values ​​for the value - it seems that: 1a-1d \ t 2a-2d \ t 3a-3D ..... ..... 36a-36d 2 1 4 5 \ t 3 4 5 3 \ t 32 1 3 1 ....... 3 12 4 1. 4 5 2 6 \ t 4 5 2 6 \ t 23 5 2 5 ...... 3 1 5 6 What do I have to do to make another yoga for ever Name the output with the elements of a vector, eg names = c ("AC_syn", "AC_non", ...) . I think the command should be in some way: ddply (a.,), Abbreviation, name [1] = a [, 1] + one [, 2] + one [, 3] + one [, 4], ...) But should there be any more elegant way? Too many copy paste without work? I am happy for every thought and a little help! Sorry I did not clarify this. Actually, I wanted to add the column after every fourth step (1-4, 5-8 .... 141-144) and wanted to rename the new dataframe with the variable given in the vector. Then for input: 2 1 4 5 \ t 3 4 5 3 \ t 32 1 3 1 ....... 3 12 4 1 It s...

uitableview - Why always viewWithTag is nil in tableview rowAtindexpath? -

मैं tableview सेल से UILabel प्राप्त करने की कोशिश कर रहा हूँ I viewWithTag: लेकिन UILabel मैंने हमेशा शून्य में tableview: cellFroRowAtIndexPath: दिखाया गया। UILabel * myLabel = (UILabel *) [तालिका दृश्य दृश्य साथ टैग: 25]; myLabel लौट रहा है शून्य मेरी टिप्पणी के अनुसार, यदि लेबल सेल का हिस्सा है, तो विधि के लिए रिसीवर के रूप में सेल का उपयोग करें। Uilabel * MyLabel = (UILabel *) [सेल दृश्यविवरणः 25]; यदि आपने सेल का myLabel जोड़ा है - जिसे आप चाहिए - इसके बजाय प्राप्तकर्ता के रूप में इसका उपयोग करें। यूआईएलबल * मायलाबेल = (यूआईएलबल *) [सेल। कॉन्टेंट दृश्य देखेंथैटाटैग: 25];

flash builder - Flashbuilder 4.7 Not linking or indexing folders in a linked source path -

Then recently closed the machines in a MacBook Air, OSX 10.9.2 All settings meet other team members with other functionality setup but for some reason, this project is not linking or indexing folders in a linked source path. The specific problem is that when in a non-linked source folder, everything works fine, but when editing a file located within a link source folder the program will not declare, content support Does not work, etc. like this: src | - & gt; File AS linked folder | Source | - & gt; Other file Everything works 100% from the file, so it can view, interact and reference other files (with autocompletion and the rest), as well as all other files. Linked_folder and other linked folders. From other files, when opened in FlashBuilder, it does not seem to be open even as a file. When you open autocompletion (Ctrl + Space), it does not show any of the general suggestion windows, no "templates", no "variables", no "classes and...

osx - Daemon to know when a user logs into the MAC -

I have a daemon (written in obje c), and I do some action when some users log in Is it possible to know this for a daemon when a specific user logs in or out of OSX? Are any notifications thrown when logged in? I would like to avoid using logging items or launch agents. And I would like to avoid voting on the timer to check the logging user. Use SCDynamicStoreCopyConsoleUser to get the console user name. CFFRing console console username = zero; UID_TUID; Gid_t gid; consoleUserName = SCDynamicStoreCopyConsoleUser (NULL, & amp; uid, & amp; gid); store consoleUserName in a member variable now SCDynamicStoreCreate system configuration using SCDynamicStoreRef Store Creates a session to interact with the dynamic store created by the server; CFStringRef key; CFArrayRef key; CFRunLoopSourceRef rls; store = SCDynamicStoreCreate (NULL, CFSTR ("com.apple.dts.ConsoleUser"), callback function, NULL); // Set up this to inform us when the console changes the user ...

java - How to modify map lookup in log4j -

I need to define some properties in log-in; So can I modify and add some properties in map lookup? Any guide or suggestion would be commendable thank you! mainmap lookup.Setime integration ("key", "value"); and get the value from xml: $ {main: key}

python - How to combine two sine waves without cracks -

I am using Python, pyudio and scipy and I would like to add two sine waves (two tons) in a way A tone is played after one (make melody), assuming I have two arrays: tone 1 and tone 2, with the sound frequency, with the frequency of 350 Hz (vowel 1) and the frequency is 440 Hz (tone 2) There is a sound with. My question is how to combine these two arrays into an array that will create a rage without the cracks between the sounds? "post-text" itemprop = "text"> Add them together and apply a fourier conversion lube filter. In areas with one voice, Fourier will have only one component in conversion, and the filter will do nothing; Whereas in the transition area you will find both components (plus nonsense coming from the jump), that the filter is expected to be smooth.

javascript - Angular object array to column array -

मेरे पास वस्तु है, जिसमें फ़ील्ड id और text और संभवत: अधिक अन्य फ़ील्ड। अरै में बहुत सारे ऑब्जेक्ट हैं, और मैं उसे एक टेक्स्ट एरे में परिवर्तित करना चाहता हूं। यह इस समय मेरे पास है। किसी भी सुंदर समाधान, संभव कुछ LINQ की तरह? var ईमेल = नए सरणी (); Angular.forEach (this.form.Emails, फ़ंक्शन (ईमेल) {emails.push (email.text);}); @ निक्स की तरह आपने उत्तर दिया, आप का उपयोग कर सकते हैं अंडरस्कोर लाइब्रेरी। संपत्ति मूल्यों की एक सूची को निकालने उदाहरण: this.form.Emails = [{text: 'moe', id: 1}, {text: 'larry', id: 2}, {text: 'curly', id: 3}]; Var ईमेल = _.प्लक (this.form.Emails, 'text'); // ouput ["मो", "लारी", "घुंघराले"] वैसे भी मैं आपको अपना कोड संस्करण छोड़ने का सुझाव देता हूं (उर्फ angular.forEach )। क्योंकि अन्य प्रोग्रामर जो आपके कोड को बनाए रखता है, उन्हें पता होना चाहिए कि pluck क्या करता है अपना कोड सरल बनाओ

wordpress - How to provide a local fallback for Font Awesome if CDN fails? -

I am trying to develop a Wordpress theme and the CDN fails or I if ($ CDN_IS_AVAILABLE) {wp_enqueue_style} ('font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css ', wrong); } Else {wp_enqueue_style ('font-awesome', get_template_directory_uri (). '/css/font-awesome/css/font-awesome.min.css', false, '4.0.3'); } Thanks. How about this? & lt ;? Php $ test_url = @fopen ('https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css','r'); If ($ test_url! == incorrect) {// use the CDN function load_external () (wp_enqueue_style ('font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font- Use the 'add_action' ('wp_enqueue_scripts', 'load_external');} Else {// local if the URL is not available function load_local () {wp_enqueue_style ('font-awesome', get_template_directory_uri () '/css/font-awesome/css/font-aw...

c# - Connection String Trouble MetaDataException -

In my project, I will get two models when I added other models, I found this error in all the account pages: System.Data.MetadataException: The specified schema is not valid. Errors: (8.6): Error 0040: nclob type is not eligible with namespace or nickname Only the primitive type can be used without qualification lign 33: {lign 34: if (! Context.Database.Exists ()) lign 35: In line 34 of the 'Early Simili Ambership Entity CCT' using the {lign 36: // Make Simple Mailbish} Entity Framework Migration Schema Without Database and those My Connection String: & lt; connectionStrings & gt; & Lt; Add name = "DefaultConnection" connectionString = "user id = devart; password = 1234; data source = localhost: 1521" provider name = "devarart.data oracle" /> & Lt; Add name = "body" connection string = "metadata = ridge: //*/Models.ModelMAE.csdl | res: //*/Models.ModelMAE.ssdl | res: //*/Models.ModelMAE.msl; provider =...

spring Security + save information about connected user -

I am trying to develop a web project, I log in to the user in my application (ipad, log on disconnected Information about how to do this will be Savvardment. Use of Spring Security. Someone has a problem with this problem and thank you in advance. In one option, the user profile must load a Spring Session left from Bean, for example: @Component ("Profile") @ Clear (value = "session", Proxy MOD = SCOPPROXMODA. TARGET_CLASS) Implementes the public category profile Serializable {Private Long ID; Private string first name; Private string IP; ......} Spring security can also control session management during logout. For example: & lt; Sec: http & gt; & Lt; Sec: Logout Success-Handler-Ref = "Logout" Invalid-session = "True" Delete-Cookies = "JSACIID" /> & Lt; / Sec: http & gt;

iOS In-App Purchases Multiple In-App Stores -

I have an app with 2 different modes. I want each mode to get its own shop for the purchase of in-app. I get any policy information or information about more than one in-app store inside a single app (this can be because it is not a problem at all). If "2" stores are not okay, then is it OK to make the same shop and then it is okay to filter those people, which should not be available in that special mode? To show two different sets of in-app purchases for the user, Use the. You are free to show or hide in-app purchases according to your liking, however you can clarify the user about any previous purchase!

android - Null Pointer Exception after importing data from csv to sqlite -

I am getting a zero pointer exception when trying to import some lines from a CSV file into a SQLite database is. I'm getting a method when I call a method db.addProduct (...) This is my code: Public class increases ImportDataHandler activity Is {secure file file; Protected DatabasesSandler DB; Private Arrestist and Lieutenant; Hashmap & lt; String, Object & gt; & Gt; My list; See protected list view list; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.importer); import data(); ListView = (ListView) findViewById (R.id.allProdList); Mylist = New Arrestist & lt; Hashmap & lt; String, Object & gt; & Gt; (); DB = new database scanner (this); If (db.getAllProducts (). IsEmpty ()) {Log.i (tap, "this is empty"); } If (! Db.getAllProducts () .isEmpty ()) {Log.i (db.getAllProducts (.) ToString (), "Products"); (Product P: DB.actualproduct ()) {Hashmap Database Assist...