Posts

Showing posts from August, 2015

iis - Why Server header in not getting removed from the response in 500 error? -

I recently scanned my application for vulnerability, minor improvements were received, but for one of them I have not tried hard to work yet, unable to recover My site throws a 500 error for some action and when I check the headers of that error, it names the server header named IIS 7.5. I have already used the URL rewrite rule, fix the registry, the URL scan thing, but it seems that nothing is working. How to fix it? If you mean the server HTTP header, which may be Microsoft-IIS / 7.5 will be set to something on the line, so the easiest way is to overwrite it with empty or custom values ​​in IIS. You can completely delete it by creating your own HTTP modules. The following link discusses several times the methods that you can try:

java - Maven : Missing artifact com.sun:tools:jar:1.6.0 compile time exception in POM.xml -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मुझे एक अजीब समस्या मिल रही है और जब मैं उपकरण के लिए निर्भरता जोड़ने की कोशिश कर रहा हूं तो मेरी pom.xml में संकलन समय अपवाद प्राप्त करना। जार नीचे के रूप में प्रदर्शित किया गया ( लापता विरूपण साक्ष्य com.sun: उपकरण: जार: 1.6.0 ) JAVA_HOME : सी: \ प्रोग्राम फ़ाइलें \ जावा \ Jdk1.6.0_34 जब मैं इसे JDK1.6 के वास्तविक पथ पर हार्डकोड करता हूं तो मुझे नीचे कोई त्रुटि नहीं मिलती। & lt; निर्भरता & gt; & LT; ग्रुप & gt; com.sun & lt; / ग्रुप & gt; & LT; artifactId & gt; उपकरण & lt; / artifactId & gt; & LT; संस्करण & gt; 1.6.0 & lt; / संस्करण & gt; & LT; गुंजाइश & gt; प्रणाली & lt; / गुंजाइश & gt; & Lt; systemPath & gt; सी: \ प्रोग्राम फ़ाइलें \ Java \ jdk1.6.0_34 \ lib \ tools.jar & lt; / systemPath & gt; & Lt; / निर्भरता & gt; लेकिन मुझे इसकी कोई अच्छी पद्धति नहीं पता है इस त्रुटि को हल करने के लिए मार्गदर्शन का अनुरोध करें। ...

javascript - Adhering to a max length setting with jshint -

I get several recommendations to compile a maximum of 80 characters when writing javascript, e.g. Google, NPM, Node. JS, Crockford In some cases, though, I do not think how best to do this. MongoClient.connect ('mongodb: // localhost: 27017 / sampleDatabase', function (mistake, database) {if (err)} {throw error;} db = database;}); This will throw a jshint warning because it exceeds 80 characters. Now, do you choose to ignore the warning in this example, or instead choose an option for a solution like MongoClient.connect ('mongodb: // localhost: 27017 / sampleDatabase' , Function (err, database) {if (err) {throw error;} db = database;}); If you can reuse the url variable So, great option if this is a shot, as is often such a call, I would probably do something like this ... / * jslint sloppy: true, white: true, browser: True, maxlen: 80 * / / * global mongo client * / var dbarhh, db; DbErrHand = function (mistake, database) {if (err) {throw error; } ...

javascript - primefaces codeMirror doesn't load his own css and js -

I want to use codeMirror from primeface-extension with sql syntax. I have a 404 error when the page that contains this component loads. CSS and JavaScript components were not found. My code is similar to the example from the showcase-extract code mirror. Using PrimFace 5.1 and PrimefaceAut 2.1.0. Does anyone have this problem? Thanks in advance. Edit: My JSF: & lt; Pe: codeMirror id = "codeMirror" value = "# {sandboxBean.content}" line number = "true" /> & lt; P: Command button Action Listener = "# {Sandbox Bean} changeMode}" Update = "Code Mirror" value = "Change mode with AJAX" style = "margin-top: 10px;" /> My Bean: Private string content; Private string mode = "javascript"; Public zero change mode () {if (mode.equals ("css")) {mode = "javascript"; } And {mode = "CSS"; }} Public listing & lt; String & gt; Complete (Last Full E...

php - Page view counters not working with W3 Total Cache -

I am using this function to display popular posts by views in WordPress Then I added w3 total cache and counter do not get updated as often. I have attempted caching for pieces and other sources But it is not updating the counter teat (or any of the other) does not specify whether the line is in PHP tags or HTML. I have tried both of them. This page breaks into PHP tags, it does not count in regular HTML outside PHP tags and when you see the source, it is only sent in the form of comments. Has anyone else had this problem? How did you solve In advance, case this is PHP Tags, but you will not use the exact code surrounded by PHP tags (I'm just telling you if you are doing this - I'm unsure of your question). You will do this & lt ;? Php mfunc wpb_set_post_views ($ post_id) ;? & Gt;

python - exceptions raised from within a urlfetch callback -

When an async urlfetch callsback and calls within a tasklet, it seems that Do not promote the wrapping work within the exception callback. Example code: def cb (): Increase exception, 'just one test' rpc = urlfetch.create_rpc (callback = CB) @ ndb.tasklet def t ( ): Try: feedback = yield except urlfetch.make_fetch_call (rpc, 'http: // ...'): print 'an error occurred' raise nndb.Return t () .get_result () In the code above, executed by the dev server, "just a test" does not get caught in the exceptions of the workplace; To wit. Instead of an error message, the output is being given to the console as a "me one exam" exception. If there is a general urlfetch exception related to make_fetch_call (such as in the case of a bad URL DownloadError ), It is being handled properly. Is there a way to capture callback-exception exceptions inside the taskless like this? Or maybe this behavior should be considered a bug? Thank you....

db2 luw - Using a variable to reference a schema and table in DB2 stored procedure -

I am storing schema names in the table column (e.g., SOURCE_SCHEMA , TARGET_SCHEMA ) and retrieving the schema name, I want to work with a variable in the DB2 stored procedure (e.g., vSchema ). How can I then use variables in an SQL statement, for example: SELECT * to vSchema.TABLE_NAME Is there a better way of doing this? Thanks in advance. UTIILET Pat = TU_LBRIAA, OTA_LBRAIA

javascript - Sitecore - WebMethod is not being called -

I have seen a lot of solutions to see if a user has disabled the Java server in C # (and I mean Disabled, no, if the browser does not already support JavaScript in trying) Here are two articles: I currently present the first approach from Nuno Freetas I'm trying because this query appears to be clean without playing with string parameters, but the session variable is never set and SetJavascript is never enabled. I have added ScriptManager on my ASPX page like this and the startup script is being registered in the article (on the participant event) but it is not visible in the page. BTW This is a website that uses Sitkor. Any help? In fact, are these articles viewing if any Ajax call is being run from the client side to the server side? If the AJAX ($ .jax) code is written then the javascript is disabled, it is an indirect method of checking

What do the red telephone and blue telephone mean in iOS Xcode Instruments? -

Image
I tried to find a legend for these graphics and colors, but I did not find anything that would definitely be the tool Was referring to does anybody know? In particular, black line with blue and red telephone, red lollipops and red bars. What do they all mean? It appears that red and blue telephone icons are kernel event messages, and other icons are red alarm bells that indicate kernel interrupts if you click on those icons You will see a popup with specific details. I checked in my project and the red telephone was always consistent with BSCI * programs, while blue phones matched the MSC_ * event. The event list for the XNU / MacOS kernel is listed here: I do not know what BSc vs. MSC (Maybe someone else can answer?) But I It seems that the MSC is a generic low-level event message network, such as MSc_match_msg_trap, while BSc offers more specialized high-level events such as BCC_Get Timefide.

performance - C time difference between two functions -

I have two simple code functions that compare two strings. The strategy is to compare a short string with a long string respectively. For example, string1 = "ABCDABCDEFGAHAD", string 2 = "ABCD" then compare By the end of string1 and string2 by zero compare1 (char * src, char * target, int src_size, int target_size, int * score) has been used I) {int i, j; For (i = 0; i & lt; src_size - target_size; i ++) {for (j = 0; j & lt; target_size; j ++) {if (src [i + j] == target ]) {Score [i] ++; } And {continue; }}}} and the other zero compare2 (char * src, char * target, int src_size, int target_size, int * score)) {Int i, j; Char * dest = (four *) molk (size) * (target_size)); {Strncpy (dest, src, target_size) for (i = 0; i & lt; src_size - target_size; i ++); (J = 0; j and lt; src_size; j ++) {if (dest [j] == target [j]) {scores [i] ++; } And {continue; }}} Free (dest); These two give me different times, which compare 83...

c++ - QFileSystemWatcher::files() doesn't return a list of files -

I am using QFileSystemWatcher which is looking for a change in a directory I have Watcher-> AddPath ("mypath") method When I call watch-> directory () then see mypath . But when I watch-> I call the file () , I do not see anything. I thought I would see the file in the directory while using this method. What should I do to see the file in a directory? QFileSystemWatcher is to see changes in the file system. Example: QString files = QDir ("c: \\") to get a list of files in a directory. . Entry list (QDir :: NoDotAndDotDot); If you need to see a change in a directory (file added / renamed or deleted event) you use the addPath directory and directoryChanged signal. If you need to see a change in the contents of the file, then use addPath with a full path in the file and listen to the fileChanged prompt. Accordingly, directory returns a list of directories you have added and returns files the list of files you...

CSS Margin not working properly in IE and Safari -

Image
I am creating a CSS menu and for different reasons the sub menu's difference looks different in iOS and IE 11. Billy is a few photos & amp; CSS code how it looks and how it looks in Chrome. In this way, IE & amp; The iOS Safari shows, the margins should be higher than the lower and should be lower on the left side. Here is the code header. Left li .mega-menu {background-color: # 31342a; Status: Completed; Limit-Radius: 0 px 0 px3px3px; Margin: -50px 0px 0px 0px; Visibility: hidden; Box-Shadow: 0 pixels 2px 3px RGBA (0, 0, 0, 0.4); -WebKit-box-shadow: 0 pixels 2px 3px RGBA (0, 0, 0, 0.4); -Moz-box-shadow: 0 pixels 2 pixels 3 pixels RGBA (0, 0, 0, 0.4); / ** Firefox * / -O-Box-Shadow: 0 pixels 2 px 3px rgba (0, 0, 0, 0.4); // Opacity / Opacity: 0; Transition: visibility 0.1 s linear 0.1 s, ambiguity 0.5 s linear, margin 0.5 s; Z-index: -1; } Header Left li: Hover & gt; .mega-menu {visibility: visible; Opacity: 1; Margin: 15px 0px 0px 0px; Transition delay...

html - Make image center aligned -

Image
I want to align images at the center of the page I have tried the solution below but it does not work in my case. Please Guide Password: Inspurate123 Solution: Display: Block; Margin-left: auto; Margin-right: auto; My code: & lt; Div class = "title_area" style = "float: left;" & Gt; & Lt; H1 class = "post_title" & gt; & Lt; A href = "& lt ;? php the_permalink () ;? & gt;" Title = "& lt ;? php the_title_attribute () ;? & gt;" & Gt; & Lt ;? Php the_title (); ? & Gt; & Lt; / A & gt; & Lt; / H1> & Lt; Br> & Lt ;? Php the_content (); ? & Gt; & Lt; / Div & gt; & Lt; / Article & gt; & Lt ;? Php get_template_part ('share_this') ;? & Gt; & Lt; / Div & gt; Try this: - .wp-caption.alignnone {margin: 0 auto} .title_area img {Display area; Margin: 0 auto; Width: 90%; } Hope this works for you. ...

c# - Stored procedure has no parameters and arguments were supplied -

मेरे पास एक फ़ंक्शन है जो डेटाबेस से रिकॉर्ड प्राप्त करेगा। सार्वजनिक सूची & lt; मुद्दा & gt; Load_Issues () {SqlDataReader Sdr; सूची के & lt; मुद्दा & gt; ObjList = नई सूची & lt; अंक & gt; (); Cmd.CommandText = "Get_All_Issue"; कोशिश {cmd.Connection = con; Cmd.CommandType = CommandType.StoredProcedure; con.Open (); Sdr = cmd.ExecuteReader (); जबकि (एसडीआर। (रीड ()) {// यहां मैं डेटाबेस से रिकॉर्ड खींचता हूं ..}} पकड़ (अपवाद पूर्व) {पूर्व; } अंत में {con.Close (); } वापसी ObjList; } ग्रिडव्यू को बाइंड करने के लिए मैं इस प्रकार कार्य करता हूं: public void Bind_Issues () {gdIssues.DataSource = Bl.Load_Issues () () ); gdIssues.DataBind (); } मेरी संग्रहीत प्रक्रिया में कोई तर्क नहीं है I जबकि पेज लोड पहली बार होता है, यह ठीक काम कर रहा है और रिकॉर्ड को ग्रिडव्यू में बाध्य कर रहा है। हमारे पास रिकॉर्ड को भी संपादित करने का विकल्प है, इसलिए रिकॉर्ड्स अद्यतन करने के बाद क्या हो रहा है मुझे फिर से रिकॉर्ड ग्रिडव्यू के लिए इसलिए मैं फिर से अप...

c - Remove last node of linked list by passing it in to a void? -

This removes the head of the code linked list when the list is used as a parameter to zero. Zero Exit Node (node ​​** major) {(* head) = null; } Is To set up the last item of the list I used as an argument to the code to change the will that NULL to? Note: I would like the list to be used in this method the main void and I as a "head" parameter to be used as the last node to node. void left removed (node ​​** head) {if (! Head ||! (* Head) ||! (* Head-> Next)) return; Node * tmp = * head; Node * new_last; // (; tmp- & gt; next;); access the last node; {New_last = tmp; Tmp = tmp- & gt; next; } Free node (TMP); Tmp = NULL; New_last- & gt; Next = null; }

rest - In a RESTful HTTP request for search results, if there are no results, should I return an empty array or a 404 error code? -

In a lush HTTP request for search results, if there are no results, then I should return an empty table or error code ? You should return an empty array, because the resource (result store) is present, but it is empty .

ajax - How i can get user name? -

I have a WCF rest service and I need to get the name of the user within this service if I ask a question with the console app, then I can get the name. Agreement Public Interface IService1 {[OperationContract ()] [WebInvoke (method = "post", ResponseFormat = WebMessageFormat. Jason, Request format = WebMessageJason)] List & lt; Data Test & gt; GetTestData (); [OperationContract] [WebInvoke (method = "post", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)] Zero AddTestData (Data.Test value); } Service ajax query function getdata () {$ .ajax ({type: 'post', url: "http: // localhost: 50,711 /Service1.svc/GetTestData ", datatype: 'json', success: function (data) {showData (data);}, error: function (e) {console.log (e.message);}}); }; The best way to do this is to create sessions, call it easy for you What would that be? Use session

linux - Unable to use "-prune" option from find command -

I do not want to find "passwd" under the "/ etc" directory, but I have to find out the rest "passwd" , I am trying the following, sudo find / -name '/ etc' -prune -o -name 'passwd' -print this I get the output, /home/previous_cache/1_0_59/httpd-2.4.7/srclib/apr/passwd/home/1_0_59/httpd-2.4.7/srclib/apr/ Passwd / Etc / pam.d / passwd / etc / passwd /etc/cron.daily/passwd/user/share/bash-free/fix/passwd/usr/show/intian/override/passwood/usr/share/doc/passwd/ Usr / bin / passwd This is the output that I expect, /home/previous_cache/1_0_59/httpd-2.4.7/srclib/ Apr / passwd /home/1_0_59/httpd-2.4.7/srclib/apr/passwd/usr/share/bash - full / close / passwd / usr / share / linentian / override / passwd / usr / share / doc / passwd / usr / bin / passwd Try it out: Find / path / etc '-pr Une -o -name' passwd '-print

ios - How to jump to desired UIViewController using RESideMenu or REFrostedViewController -

This question is about a very popular Github SidMenController project named. I started coding an application and it is working very well. However, by the arrival of iOS8, I think that looks more modern and is a better option for me. I have a small problem that I can no longer figure out for days - (zero) jumpToPlayVCversion1 {UIViewController * viewController = [self. Storyboard Instant Viewer Vithadityfire: @ "PlayCentron"]; UINavigationController * navCon = [[UINavigationController alloc] initWithRootViewController: viewController]; [Swayman Menu Visual Controller Set Content Vic Controller: Animacam Animated: Yes]; [Self. Left controller hidden controller]; } It changes to a PLAY visual controller with a good transition, but the view of "PlayCentron" is found below the height of the navigation bar (about 64 pixels) for some reason. Instead, when I use the code given below to change the VC, then the "PlayCentroler" is similar thou...

php - Throwing Errors When User Try's To Modify -

I have installed a permission group system for a user group where a user can be, or the controllers can not access or modify them Could. / P> Problem: If I modify all of my permissions to an arbitrary array for a particular user group and if that user group tries to modify the controller, Throwing is uncontrolled when modifying permissions. How can I create it so that permissions can be uncontrolled, even if it does work. And if the user tries to modify that user group It will not throw these two errors. Error one There was a serious error of PHP error: Notification Message: Undefined Index: Modified File Name: Library / User Php line number: 206 error two There was a serious error of PHP error: warning message: in_array () Hopefully parameter 2 array, taped file name: libraries / User.php line number: 206 User Library function Public function is displaying () {$ user_id = $ this- & gt; CI- & gt; Session-> User data ('user_id'); $ ...

iis express - Process with an ID #### is not running in visual studio professional 2013 update 3 -

I am trying to run any program on Visual Studio 2013 Update 3 and I get the following warning box: / P> The process with an id #### is not running. // is showing each time that there is a different ID number and in the error window I get this error: program '[3148] iisexpress Exe 'has exited the code -1073741816 (0xc0000008)' An invalid handle was specified '. Sometimes it runs and I get the following message in the browser: The webpage is not available. I have looked around and have tried almost everything and I can not fix this problem. Please help someone first error The process is running with an ID #### It worked for me: Turn off all instances of Visual Studio Rename the ISExpress folder (C: \ users \ jmelosegui \ Documents in my PC) Add the _CSRUN_DISABLE_WORKAROUNDS environment system variable with the value of 1 Administrators Start Visual Studio in mode of another error New This webpage is not available In my...

tcl - Connecting to switches using SSH and Expect -

I'm a newbie to expect (though many are opening programs). I'm trying to connect to a switch which is expected to be able to dump the ongoing configuration. But somehow my order to send is not sent on the switch. Script: #! / Usr / bin / expect-f proc connect {passw} {hope {"intent:" {send "$ passw \ r" expectation {"prompt & gt;" {Return}}}}} # time-bound return 1 set user [Lindex $ argv 0] Set Paso [Lindex $ argv 1] Host set [lindex $ argv 2] ​​# Check if all were provided {$ user = = "" || $ Passw == "" || $ Host == ""} {say "Uses: & lt; user & gt; & lt; passw & gt; & lt; host & gt; \ n" exit 1} egg ssh -oStrictHostKeyChecking = no -oCheckHostIP = A user $ $ $ host set rez [connect $ passw] if {$ rez ==}} send {send {enable {r} {send running \ r} exit 0} to send "\ \" to connect to switch Error in: $ host, user: $ user! \ N "exit 1" When I run the...

c# - Keep HttpContext.Current.Session in WCF service to service call -

I have a WCF service (WCFSERVICE_1), which calls the second WCF service (WCFSERVICE_2). In the first call I want to put some variables in HTTPTNTX. Present. WCFSERVICE_2 session. But when I am calling for the second time, the HTTP Contex Current ASS (WCFSCRICI2) is empty Finally I got the answer. If you have the same problem, please read this article.

java - How to set the principal of a MessageDriven bean using annotations? -

I'm running on glassfish v4 and I use the messierian bean. Currently I am defining the principal under which the bean resembles glassfish-ejb-jar.xml : & lt; Enterprise-Beans & gt; & Lt; EJB & gt; & Lt; EJB-Name & gt; MessageConsumerBean & lt; / EJB-name & gt; & Lt; Principal & gt; & Lt; Name & gt; MDBPrincipal & lt; / Name & gt; & Lt; / Principal & gt; Is it possible to use annotations eg? @MessageDriven ? According to section 5.4.14 page 133, a principal may be in Promoted security reference but details are not controlled by EJB specs. In other words it is a platform based feature. One can use @RunAs, if MDB should be given a specific role to run some protected @ RollAlver method. If you need a principal for some application logic, then I am afraid that your platform dependent solution like RunAsPrincipal (JBoss) or glassfish-ejb-jar.xml is only in your case.

problems with the multi condition in C -

+ , - , कोड> * , / , तथ्यात्मक और अन्य। समस्या यह है कि मेरा कोड एक समय के लिए अच्छा काम करता है यह प्रदर्शित करता है: ज़ेडजेट ओपेरासीयू इसका अर्थ है "लिखना जो आप करना चाहते हैं" लेकिन पहली बार जब चक्र खत्म हो जाता है यह प्रदर्शित करता है: जेडजेट ओपेरेसीः: जेडजेट ओपेरासीयू: दो बार और मुझे पता नहीं क्यों यहां मेरा कोड है: #include & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; # शामिल करें & lt; math.h & gt; Int main () {int a, b, vysledok; चार एस; करना {printf ("जेडजेट ऑपेरेसीयू:"); एस = getchar (); यदि (एस == '+' || एस == '-' || एस == '*' || एस == '/' || एस == '^') {डालता है ("ओपेरािया जे बिनना। NZadaj प्राइवी ऑपरेंड: "); scanf ( "% d", & amp; एक); डालता है ("ज़ादज साहू ऑपरेंड:"); scanf ( "% d", एंड बी); स्विच (एस) {case '+': printf ("Vysledok je% d। \ N", a + b); टूटना; मामले '-': printf ("विस्...

operating system - Lync does not start on OSX Yosemite (keeps rebooting) -

Since I updated my Mac to OSX Yosemite, I can not log in to Microsoft links (14.0.9). The program is trying to connect, then adds to each other and disconnects back. It's doing an infinite loop. Changing the language on "English" on my computer solves the problem (similar to this solution, but only the first step :) but since my computer's language is Dutch (Netherlands), then he has to work too! Any thoughts? Microsoft has released a fix for the now, described and downloadable. It fixed a problem for me, no reboot or language change needed.

How to execute " Select * from Table_name" using procedure in SAP HANA -

I am trying to execute the following code in SAP HANA by using the processes I I'm not able to get syntax. "Pro-Tasting" to create a process Vasta ("name_14_Percentile" in table_name "pro-tasting", Rha "Pro Testing". "Jan_14_Percentile") LANGUAGE SQLSCRIPT "Pro-prostasting" with SQL data view results. Start as a ProView = Select * To table_name =: _; End; Can you please tell me that SAP HANA

sql - Using EXCEPT operator on MySql 5.1 version -

MySQL version is 5.1 on my server. I am trying to do this query: SELECT FIX_Name to Word_DB WHERE Word_Name = ". $ Element." Choose File from Out of File_Name Files_DB = 0 I am getting an error: Error: There is an error in your SQL syntax; Can anyone tell me how can I do this query? I alternative form? Thanks, Max. As far as I know MySQL EXCEPT does not support the operator. Try it instead: SELECT FIX_Name FROM Word_DB WHERE Word_Name = ". $ Element." And file_Name (select Files_N from Files_B, where display = 0) you either have a correlated not exist or LEFT JOIN You can use. As I have not used the MySQL, I can not say that what works best.

parsing - Python Beautifulsoup. Parse <p></p> -

Image
I'm learning how to parse beautifully, someone can tell me that & lt; P & gt; & Lt; / P & gt; How to pars in element div class = "article-content" I only want to see content information after the script launch. Show me what I want: I can parse div class = "article-content" , but & lt; P & gt; & Lt; / P & gt; Can not require information in . My code looks like this: Import the import from the BeautifulSoup HTML = urllib2.urlopen urllib2 ('http://www.engadget.com/2014/10/17/local- Multiplayer- is-to-and-play / ') parsed_html = BeautifulSoup (html) print parsed_html.body.find (' div ', attrs = {' class': 'article-content'}.) Text But I also get a lot of junk: $ dragon engadget_parser.py Ever wish that you simply whip out your android device and play games Passer-one can bother with you? It's such a thing that for example, Nintendo DS users are using Thanks for the company...

python - Reading lines from a text file into a variable -

मेरे डेस्कटॉप पर एक टेक्स्ट फाइल मिली है, lines.txt : लाइन सामग्री सामान लाइनों नौकाओं नौकाओं लाइनों और सभी मैं करने की कोशिश कर रहा हूँ यह एक चर में पढ़ा है, लेकिन हर बार मैं इसे प्रिंट, मैं एक खाली सूची यहाँ मेरा कोड है: INF = 'C: /Users/me/Desktop/text.txt' def repeatWords (inF): आयात स्ट्रिंग infile = open (inF, 'r') text = जब मैं प्रिंट (पाठ) infil.readlines () infile.close () प्रिंट (पाठ) repeatWords (inF) , मुझे जो भी मिलता है वह एक खाली सूची है। क्या मैं गलत कर रहा हूं? आपके कोड में कई समस्याएं हैं I मुझे नहीं पता है कि आप print (text) कहां कॉल करते हैं, लेकिन इसे के बाद को असाइन किया जाता है। यहाँ एक सही संस्करण है: def repeat_words (in_f, out_f): खोलने के साथ (in_f, 'r') infile के रूप में: text = infile.readlines () प्रिंट (टेक्स्ट)

jquery - How to attach click event on a specific DIV which is nested much -

I have a child div that is a nested lot I want to be alerted when someone clicks on that div I want to show, but if someone clicks outside my specific nested diva, my click event will not be there. My specific device I try to solve it like this, but no luck was found $ ('div'). Click (function (ev) {var class_name = $ (this) .attr ('class'); if (class_name = 'arrange_collection_today') {warning ('test ...');}}); So please guide me how to get everyone. You can. Click (function (eve) {if ($ (this) .hasClass ('arrange_collection_today')) {Warning ('test ...'}}}}); Click or Recommended $ (". Arrange_collection_today") (function () {});

css - on hover for icon-caret-down -

Is it possible to increase the effect on icon-care-down? I used CSS for Icon-Carat Down My code is as follows: .inon-caret-down: {content: "before \ f0d7"; Font-family: 'fontawesome alloy'; Talk: None; Font-style: normal; Font-weight: normal; Font-version: general; Change the text: none; Line-height: 1; -webkit-font -Tracking: Antialias; Vertical-line: baseline; Background-position: 0; Repeat Background: Repeat; Margin-top: 0; } I tried to add some effects to the hover, but did not work .inon-caret-down: before: hover {color: Red; } is HTML: thanks Why are you using First: This does not seem relevant just add : hover .inon-caret-down: {content: before "▼"; Font-family: 'Ariel'; Talk: None; Font-style: normal; Font-weight: normal; Font-version: general; Change the text: none; Line-height: 1; -webkit-font -Tracking: Antialias; Vertical-line: baseline; Background-position: 0; Repeat Background: Repeat; Margin-top: 0; } ....

linux - Python subprocess and os.system both not working when sourcing a file -

So, I'm trying to execute the following command on the python: project = "7.0" cmd = ". EnvVerSettingFile% s; $ RELEASE to resonate"% project os.system (cmd) This is my dilemma. EnvVarSettingFile is a script which is a logic (this In the case of the project) and the environment variable sets "release" and exports it However, when I try to execute the above order, then Azhathan says this A complaint that was my argument was not passed. And it does not hide anything to touch $ RELEASE . I tried to check it on the UNIX command line and it works perfectly. It sets the variable variable and prints the "Release" variable. However, for some reason, it does not work in dragon Note that I have tried to use subprocess.col (CMD, shell = tru) and it does nothing. Also, while executing this dragon script involving this code, it basically gets corrected on ossystem (cmd) and I have to kill the manual process.

Laravel Eloquent - many to many with where for the pivot table -

I am trying to see what is the best way to do the following: My There are 3 tables: users, items, and item_j Users and items in the table contain generic, id and some columns that hold data. The item_using table has the following structure id- item_id user_id user_type [1 - owner | 2 - Followers | 3 - Something else] Relationships: Each item has 1 owner (user type) - each item has many followers - Each user can do many items themselves Each user follows several items I want the owner and followers to be the user table, so I do not have to repeat the user data. I created a pivot table of item_id, user_id and user_type to capture these relationships. So the question is how am I doing this in Laravel Eloquent? The item looks like a model: public function user () {return $ this- & gt; Affiliation ('user'); // This is not true right because it is related to only one user, but it is not certain how to specify that user_type = 1; // Return $ - THIS- & g...

python 2.7 - Open file when path contain folder which name starts with double underscore -

I can not open a file if its path contains a folder that starts with the name double underscore. For example: file = open ('C: \ user \ __ foldername \ file.txt') This works if the folder's The name starts only with an underscore, but unfortunately I can not change its name. Is there a solution? The reason is not to open the file, because there is no double underscore, that's because an escape character in the string is. Windows paths should be defined using a raw string - from the back side, by avoiding the slash or by using the forward slash, by entering r , file = Open file (r'C: \ user \ __ foldername \ file.txt ') file = open (' C: \\ user \\ __ folder name \\ file.txt ') file = open (' C: / user / __ foldername / file Something in the path should not be affected by double underscores, it is still a valid path name.

python - QtConse in Spyder cannot use multiprocessing.Manager -

If I open the IPython QtConsole standalone and run the following: Multiprocessing import Manager Manager () This worked fine however, if I use the IPython console inside the Spider, then that specific console stopped responding. I am using Windows 64 bit, Python 3.3.5 64bit, Spider 2.3.1. Can anyone help me with this?

Is it possible to create a computed column in a Visual Studio database project? -

Is it possible to create a computed column in the Visual Studio 2012 database project? 'Compute column specification -> formula' is a property, but it has gone deeper and it is not possible to enter the value in it. Edit Computing column is also VS Depth in 2013 The only way to add a calculated column is to add it to t -SQL pane for example: Make Table [DBO]. [Person] ([first name] is not VARCHAR (50), [last name] is VARCHAR (50), [full name] AS ([FirstName] + '' + [last name]); After defining the column in T-SQL, the "Formula" option in properties will be editable. An option for "Ins Persist" will also be visible.

puppet - Using defined type to build array? -

I currently have a class that looks like this: class mymodule ($ Files = [],) {File {'/ my / file': Ensure = & gt; File, content = & gt; Template (mymodule / mytemplate.erb)}} and one template: files: & lt;% @ files.each do | File | -% & gt; - & lt;% = file% & gt; & Lt;% end -% & gt; I would like to move the files parameter to my definition so that I can add the square closer to the base more easily and the differen't files are close Can be defined by Like node definitions: mymodule :: file {'/ my / file':} mymodule :: file {'/ my / other_file':} files array using P> defined types? Using templates is very difficult to obtain. By using the Conkat module module, you can create your file in conjunction with the closure of the wise snippets. class mymodule {concat {'/ my / file': make sure = & gt; Current}} defined mymodule :: file ($ content) {concat :: fragment {target = & ...

ruby - Chef recipe: syntax error,unexpected tIDENTIFIER, expecting ':' -

What can take a look at a below code block and tell me what's wrong with it % w "# {zookeeper_ensemble}". In_In IP, index | If the node ['ipadress']? ( "# {Ip}") "# {zookeeper_data} / myid" "myid.erb" source of the source owner zookeeper_user group zookeeper_user variable (: myid = & gt; "# {index}") end end end end I can find the following error SyntaxError ----------- /root/.chef/local-mode -kas / cache / cookbooks / zookeeper / recipes / default.rb: 69: syntax error, unexpected tIDENTIFIER, ':' template "# {zookeeper_data} / myid" do ^ /root/.chef/local-mode-cache/ cache / cookbooks / zookeeper / recipes / default.rb: 78: syntax error, unexpected keyword_end, hoping to end the input What do you mean: Zookeeper_ensemble.each_with_index do Ip, index | If the node [ 'Aipadres'] == IP template "# {Jhukiper_deta} / Mayid" source "Mayeed. ARB" owner Jhukiper...

ios - didRangeBeacon called without any beacons found -

Image
I am registering my own Location Manager for the monitoring and range of some beacons: [Self .locationManager startsmonitoringForreagian: region]; [Self.locationManager startup beacons setting: area]; I understand, when one or more beacons are found, then it is called representative method: - (zero) location manager: (CLLocationManager *) The manager did the Tharac Beacons: (NSERRE *) Region in Beacon: (CLBEKONERGREEN *) Area This representative method is actually called when I turned on my beacon, but beacon array is empty Is there any reason why my beacons are not listed in that array? There is a screenshot here to explain this situation: Keep in mind the other things: I used to transmit my beacon signal. I will try to use a real beacon later, but MacBeCon is working fine for me in iOS 7. I tried to be late until I called didErterRegion: or didDetermineState: , but it's still the same thing The result is. I have requested location permission from...

php - Magento "getCategories()" returns empty array -

I am trying to list all the categories of the site using the following code: Public Function ShowConcation Actions () {var_dump ($ this-> getCategories ()); } However, this empty array is returning. I have several sites that are using the above code and they are returning category lists without any problems. I do not think so for this two special site. Their systems have categories and they are visible. Not sure what is wrong or how can I fix it. Additionally, in other sites the system & gt; Configuration is there list , but what is not working is system & gt; Configuration & gt; List . I'm not sure there is a difference between these two. Try it to get all the categories, $ categories = Mage :: MillModel ('Catalog / Category') - & gt; GetCollection () - & gt; Add attitudes select ('*') - & gt; Add Efficient Filter ();

mdx - Using a custom member from [Date] dimension within Descendants function -

1. यह काम करता है: सदस्य [उपाय]। [DaysComplete] AS Descendants ( [तिथि - कैलेंडर महीना] [दिनांक - कैलेंडर महीना]। [कैलेंडर महीना]) आइटम (0), [दिनांक]। [दिनांक - कैलेंडर महीना]। [कैलेंडर दिवस], स्व) .काउंट 1-16 अक्टूबर के रूप में अपेक्षित 16 के रूप में हमारे क्यूब में हैं 2. यह काम नहीं करता है: सदस्य [दिनांक]। [दिनांक [दिन] [महीना] एएस टेल ([दिनांक]। [दिनांक - कैलेंडर महीने]। [कैलेंडर महीना]। आइटम (0) सदस्य [उपाय] [दिन के अंत] [वंशज] AS वंशज ([दिनांक]। [दिनांक - कैलेंडर महीने] [महीना], [दिनांक]। [दिनांक - कैलेंडर महीना]। [कैलेंडर दिवस], एसईएलएफ) .काउंट पूर्णांक 0 देता है आपके द्वितीय दृष्टिकोण में, आप एक नया दिनांक [दिनांक - कैलेंडर महीना] पदानुक्रम, आप मौजूदा सदस्य का एक संदर्भ नहीं बनाते हैं । यह नया सदस्य - सभी गणना वाले सदस्यों की तरह - कोई वंश नहीं है। यदि आपको मूल सदस्य की ज़रूरत है, न कि कोई नया, आपकी गणना में, तो आप इसके आसपास नामित सेट के साथ मिल सकते हैं यह सदस्य सेट - भले ही यह एक नया ऑब्जेक्ट है - मूल सदस्य को शामिल किया जाएगा, न कि एक नया। [दिना...

linux - How to view uploaded files using git -

I have a remote server that I am using to store GIT repositories for website content and projects. I want to know that there is a way to use GIT, but for example, see examples of these websites on remote servers / opt / git / current website or something like this ...

Share mysql database -

I see two servers in a server from the share server, for the sample that a mysql database server is related to shopping Two shopping websites from Hostgator.com and other hosting companies not hosting the hostgator company are the server, my question is that it is possible to enter another company, using the other two databases from the shopping site server to the other company Do it! If possible, how can we use it! What we call it! Use: $ con = new mysqli ("SERVER_IP "," Db_user "," db_pass "," db "); Instead of $ con = new mysqli ("localhost", ...); You need to create a user for the database with host% permissions and you need to allow remote access to the database, see here: Hope you wanted this

resteasy - JAX-RS client returns entity of null -

मेरे पास इस तरह परिभाषित एक JAX-RS सेवा है: @Produces (MediaType APPLICATION_JSON) @GET @ पैट ("/ नामटेस्ट्सविहीन") सार्वजनिक सूची & gt; उत्पादब्रांड & gt; NameStartsWith (@QueryParam ("name") स्ट्रिंग का नाम) {सूची & lt; ProductBrand & gt; उत्पादब्रांडलिस्ट = उत्पाद ब्रांडसेवायरफिडबायनामस्टर्ट्स (नाम); System.out.println ("उत्पादब्रांड लिस्ट:" + उत्पाद ब्रैंडलिस्ट); वापसी उत्पादब्रांड लिस्ट; } निम्न यूआरएल जारी कर रहा है: http: // localhost: 1 9 1 1 1 / उत्पादब्रांड / नामटेस्ट के साथ? नाम = एफ उत्पादन: {"ब्रांड ब्रांडेड": [{"ब्रांड इमेज": "एफएफआईआरएंडआरडीएडीपीएन", "विवरण": "एफएफ नामक ब्रांड", "आईडी": "1" "नाम": "ffbrand"}, { "brandImage": "flfl.png", "description": "flfl" "id": "6", "नाम": "flfl"}, { "brandImage" : "Ffbran.png", ...

installation - How to Install JSSOR Slider? -

Of course, I am not that I do something wrong I normally add JS script code, both Kjes those files Added to the directory. Added HTML to the specified location Two images are visible at the same time under each other, so HTML is OK I know. There is something wrong with the input of the code, either with an error or installation problem. There should be anything modified ** HTML needed: ** & LT; + Div id = "slider1_container" style = "position: relative; top left 0px;: 0px; width: 600px; height: 300px;" & gt; & Lt ;! - Slide Container - & gt; & Lt; div u = "slide" style = "cursor: move; position: absolute; overflow: hidden; left: 0px; top: 0px; width: 600px; height: 300px;" & Gt; & Lt; Div & gt; & Lt; Img u = "image" src = "image1.jpg" /> & Lt; / Div & gt; & Lt; Div & gt; & Lt; Img u = "image" src = "image2.jpg" /> & Lt; / Div & gt;...

javascript - How facebook auth by js? -

I need apps where a user can login & amp; Some information will be shown after being recorded but I have to face many problems many times, please help me improve it. SOmetime shows FB unrecognized, sometimes showing GET file: //connect.facebook.net/en_US/all.js net :: ERR_FILE_NOT_FOUND. & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Facebook & lt; / Title & gt; & Lt; Script src = "jquery.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; A href = "#" onClick = "FB.getLoginStatus ()" & gt; Login & lt; / A & gt; & Lt; Script & gt; // Additional JS function here window.fbAsyncInit = function () {FB.init ({appId: 'xxxxxxxx', // app ID status: true, // check login status cookie: true, // allow server Enable cookies to access the session xfbml: true // parse XFBML}); // Additional init code here FB.getLoginStatus {function (respon...

ios - UIButton with rounded rects and custom backgroundImage when highlighted -

The problem is that my button is highlighted when displayed correctly. I should have background image blue, not opaque The code I use is presented below. Selfkbtnkleyrkbordavidth = 1.0 Selfkbtnkleyrkboardaersolor = Selfkbtnktintklor? .CGColor self.button.layer.cornerRadius = 5.0 self.button.layer. masksToBounds = true self.button.setTitleColor (UIColor.whiteColor (), forState: UIControlState.Highlighted) self.button.setBackgroundImage (self.imageWithColor (self.button.tintColor!, size: self.button.bounds.size), forState : UIControlState.Highlighted) and method for obtaining an image with a color. function imageWithColor (color: UIColor, size: CGSize) - & gt; UIImage {UIGraphicsBeginImageContextWithOptions (size, really, 1.0) color.setFill () var frame = CGRectMake (0, 0, size.width, size.height) UIRectFill (border) to image = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext () Return Image; }

c# - Resourses.LoadAll not working -

Image
I'm trying to load in the Sprite Array Sprite, using the code, the editor is cut into the editor, 0 gives. A folder named "Sprites" is in the folder of properties and a cut image is in Sprites, why is not it working? Sprite [] sprites = resources.LoadAll & lt; Sprite & gt; ("Sprites"); The Spirits folder should be in the Resources folder. Like this: Also Is to indicate that your code is Sprite . Is looking for files marked as. Sprite [] sprites = Resources.LoadAll & lt; Sprite & gt; ("Sprites"); This means that your images should be in this format or they will not be added to the array. Or you can just add them all Can load as a type of object: object [] Sprites = resource Load ("Sprites");

Parameter passing from one XMLview(list) to another XMLview(list) on SAPUI5 -

I'm new to SAPUI5 to ask for your advice to solve a problem, my requirement is like this: The first page shows a list on the XMLview on the product page. The page shows the list on the XMLView on the storage bin for this product in the warehouse on the third page then show the details of the storage bin I Created an odata, two types of entities: both the product and the bin have a gatement set set applied, I Deficit is the result of Odata OK. My problem is on the second XMLview page, where I have a hard time setting the item on sap.m.list ... My XML looks like this, the problem is that all the hard and hard, which I tried to achieve Was it worth passing by 1 page on the product / plant / warehouse ... Please advise how can I resolve this dynamic value assignment. much appreciated. & lt; Page title = "warehouse storage bin list" showNavButton = "true" navButtonPress = "handleNavButtonPress" & gt; & Lt; List item = "{/ bin? ...

Pages/Posts aren't showing up in WordPress backend after move to new server? -

Yes, the database is properly imported into phpmyadmin & amp; Yes, it is connected to the correct database in wp-config.php ... everything is in phpmyadmin in database but it is not visible in WP admin? Can you fix this? Have you tried going to settings and refreshing permalinks again? Edit later: In fact, you should check for the first time if the posts were imported into the database and then see if you have the old domain. If not too many posts, then manually change to a new domain or do a query to do this ...

xamarin - given url is not allowed by the application configuration.facebook login error -

I'm developing an Android app using xamarin studio and this is my first mobile app. I am trying to integrate with Facebook login as per pre-requisite I have created an app in the developers page in Facebook and also included the app_id in my code. But when I try to connect with Facebook login, I get this error. I have also installed the Facebook SDK in my emulator. The given URL is not allowed by the application configuration: One or more given URLs are not allowed by the app's settings This website must match the url or canvas URL, or the domain One of the domains of the app should have a subdomain. Please provide your suggestions. I suggest that if you are not already, then use the component. Then press Facebook Android Sample project? Good luck. You can use the sample code as a reference reference to what you are trying to achieve.

sql - mysql adding total price of certain products -

Image
Hello I am having trouble in querying a product table at this time: Let me show it to The total cost of all HP and Tashiba products is required .. In this way I have tried so far SELECT * products with WHERE prod_id '__hp%' and SELECT SUM value) Total from products; Any help would be appreciated This is a picture of the table of products - >> Thanks; If you are making clear that the third and fourth characters of Prod_ID are a manufacturer code, then you May help themselves a lot. HP and TA for Toshiba. SELECT SUBSTRING (prod_id, 3,2), SUM (value * on_hand) WHERE SUBSTRING (prod_id, 2,1) IN ('TA', 'HP') Assembling by group (prod_id) , 3,2)

Excel VBA Code - OELDB Connection -

I am trying to get data from an Excel file with the code below, and when it comes to the GetData macro Goes through automatically after the rsData.Open command goes out, then it never drops off data from the workbook closed in the open workbook. as as Public Sub GetData (Sourcefile version, SourceSheet String, _ SourceRange string range as TargetRange, _ Header Boolean, UseHeaderRow Boolean) as dim rsCon As the object dims in the form of RSData, the object dims szConnect string as the slow szSQL string as long as the 'lCount' string make connections as as. If the header = is false, then the application.Version & lt; 12 then szConnect = "provider = Microsoft.Jet.OLEDB.4.0;" & Amp; _ "Data source =" & amp; SourceFile & amp; "," & Amp; _ "Extended Properties =" "Excel 8.0; HDR =" ";" Other szConnect = "Provider = Microsoft.ACE.OLEDB.12.0;" & Amp; _ "Data source =" & a...

Parsing Flags in Python -

I am trying to parse the given arguments and flags manually to the string. For example, if I "- flag 1 'is the argument" " I am hoping to get back for any arbitrary number of flags in the string ['- flag1', 'this argument is]] . I find out For example, if I come from ( parser argparse ) Code> parser.parse_args ("- flag1 'This argument is" ". Partition ()) " - flag1' This argument is "". Partition () " becomes ['flag1', '' it '', '' '' '' '' '' '' logic ''] Which I do not expect. Is there an easy way to do this? You are in luck; There is an easy way to do this Use the. As you would like & gt; & Gt; & Gt; Import Shells & gt; & Gt; & Gt; Shlex.split ("- flag1 'this argument is" ") [' - flag1 ',' this argument ']

How to find all subtrees, given a Linked binary tree in java, or even a regular binary tree? -

I had to face an interview question, for which I find a method to find all the sub-bits within a binary tree Needless to say I was unable to understand it, how would I have to answer this question? Is it an easy way to use repetition? Should I go to the list? public class node & lieutenant; Object & gt; Any advice is highly appreciated! {Private Object Data; Private node & lieutenant; Object & gt; Left ; Private node & lieutenant; Object & gt; right ; Public node () {this (empty, empty, empty); } Public Node (Object D, Node & Lt; Object & gt; L, Node & L; Object & gt; R) {Data = D; Left = L; True = r; } Public object getData () {return data; } Public Zero Set Data (Object D) {Data = D; } Public node & lieutenant; Object & gt; GetLeft () {return left; } Public node & lieutenant; Object & gt; GetRight () {Return correct; } Public Zero Set Lift (node ​​node) {left = node; } Public Zero setRight (node ​​node) {true = node; }...

Not able to access a website in windows azure after publishing. Being redirected -

I have published a web site in Windows Azure and I get an address Http: //xyxmydomain.azurewebsites.net/ But when I try to access it, I'm redirected to www.xyzmydomain.com ... I do not know why ... I want to test the site and I have not configured any domains.

Perl does not have a simple #include, OK, but WHY? -

The C-style preprocessor level in "Perl" is not "included" function. That's it, and there are many such sites that explain how to emulate the same kind of behavior. I can not find any of these sites, so there is an explanation why Pearl does not have this functionality, seeing that Pearl is often going to meet many different things Provides methods, it is an eager lapse. Can anyone explain why decision was made to exclude such functionality? In Pearl already requires , do , eval and here among other things. It does not require a Biltine Preprocessor, if you need one, then Filter by Bullet Normally, no one wants to #include , even here Fast compiled Clear module system P> #include inheritance, duration if any mainstream language designer announced yesterday that they were adding #include Ndida language), you're probably mass hysteria, laugh, and were looking for a loss of confidence in the designer. Language designers d...

cmake - CMAKE_SYSTEM_NAME blank? -

I am trying to compile Linux (with the generator Eclipse CDT4 - Ninja ), But when I check for $ {CMAKE_SYSTEM_NAME} for CMakeLists.txt , whatever I get is empty. In which scenario is this variable valid? Use cmake 3.02 from the demo test. You must keep after command: Message ("CMAKE_SYSTEM_NAME : $ {CMAKE_SYSTEM_NAME} ") project (Foo) message (" CMAKE_SYSTEM_NAME: $ {CMAKE_SYSTEM_NAME} ") Result: CMAKE_SYSTEM_NAME: - C compiler The identity is GNU 4.9.1 ... - The CEF compiler ABI information has been detected - CMAKE_SYSTEM_NAME: Linux

bash script execute commands after ssh -

I am trying to execute some commands through my first script but it is not working. #! / Bin / bash #connect Join the server "Connecting to server ..." ssh -t root @ ip '#switch Deploying user to deploy #Smart path echo "Path switching" CD / var / www / Deploys / bin / app / config #run hypothesis script echo "run deployment script" / usr / local / bin / cap -s env = prod deploy #restart apache sudo / bin / systemctl restart httpd.service bash -l ' What's going on? I am successfully connected to the server, the user changes and then I do not see anything. When I press ctrl + c in the terminal, some output should be executed with the command, but there are some errors. I do not see everything happening in the terminal script? Am I doing it wrong? BTW: When I try to connect myself manually and run commands, then everything is working well. Using CentOS 7. The way to log in through ssh and removing a set of commands is ssh ...

Send HTML input to PHP Twilio Script -

I'm trying to do, it does not seem that the PHP script is receiving input data from the HTML form. & lt; Form action = "sendsms.php" method = "post" & gt; & Lt; Div id = "space" & gt; Cell: & lt; Div & gt; & Lt; Input type = "number" name = "phone" id = "number" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "space" & gt; & Lt; Div & gt; Message & lt; / Div & gt; & Lt; Div & gt; & Lt; Input type = "text" name = "message" id = "message" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "button" & gt; Input type = "submit" name = "send" value = "send" id = "button" & gt; & Lt; / Div & gt; & Lt; / Form & gt; This is my PHP file sendsms.php Message-> Create (Arr...

c++ - Using template parameter in a generic lambda -

allows the following extension as an extension: // a functional Object that will add two types of types of objects auto plus = [] & lt; Typename T & gt; (TA, TB) {return a + b; }; 2012 Proposal for Normal Lambda, we see the syntax which allows the above: overload ([] T> However, since it is a The extension is clear, so the syntax is clearly absent (or not allowed). In what situations will be useful when we have auto, and why the syntax is absent (or not allowed)? It seems that C + 14 polymos Fact lambdas are only more compressed. You can reproduce the effect of your sample position like the following: struct A {}; struct B {} ; Int operator + (A, A) {return1;} int operator + (b, b) {return2;} int operator + (a, b) {return 3;} int operator + (b, a) {return 4}} int main () {auto add = [] (Auto A, Deletytype (A) B) Return to {A + B;} Auto Flexible_and = [] (Auto A, Auto B) {A + B;} ; (A {}, a {}); // work add (b {}, b {}); // work add (a {}, b {}); // Eks d...

kubernetes - Not able to connect to cluster. Facing Certificate signed by unknown authority -

I'm not sure what I'm trying to do is either possible or the right way. My partner Spinup Cubanets, Gisees Cluster (with 1 Master and 4 Minion.) In a project that is shared with my employer. After the setup they have. / .kubernetes_auth shared with .kubecfg.crt, .kubecfg.ca.crt and .kubecfg.key. I copied everything into my home folder and set up the Cuburnates workspace. I have also set the name of project as a default project in geconfig and now I can connect master and slaves using by 'gccil ssh --zone us-central1-b kubernetes-master' But when I try to use the list of existing pods, I am looking for 'cluster / kubecfg.sh list fonds'. "F1017 21: 05: 31.037148 18021 kubecfg.go: 422] Request error: Receive https: / / 107.178.208.109/api/v1beta1/pods?namespace=default: x509: Unknown Authority Door I try to debug on my behalf while trying to verify the signed certificate (potentially due to "crypto / rsa: verification error" of the...

Only solr or with Mysql -

I want to use solr for my search index. Am I confused, should I put the data field in the solr, or search for the ID only, then get data from MySQL, please help. Which is faster, better I only had one question in 2010 that as a search index only In order to take Solar, it was decided to get the list of IDs in the first phase, which reads MySQL data related to ID in the second phase. It works well in the environment with 20 million docks. During the reconstruction of the entire application in 2014, we decided to store the data in the solar (not just indexing) a search throughout the docs, so that MySQL connect is no longer necessary. We are talking about a web - only application with maximum 1-3 thousand parallel users and there is absolutely no difference in the application speed between 2010 and 2014. But if you take a document from Solar, MySQL is not P> The application code is a bit cleaner. You only need to be connected to get the data .... But: The main reas...