Posts

Showing posts from August, 2013

Inserting rows in existing Google Spreadsheet with pure PHP -

I have an existing Google spreadsheet with a fixed ID (seen in the URL). Like wanting to add rows from PHP scripts with simple code. I do not like to add large libraries to do this. Is it possible to use only curls or some small library? What is the easiest way to do this? option: 1) To create a web app that contains a line Use Google Apps Script (Java Script) To enter a line again, use the url. You can pass the parameter to the app in the url. 2) Zend is, see: I think there is an app line function instead of an inserted row, but I could be wrong. (I would like to know that you get an inserted line). This (GDAT) uses the spreadsheet API (there is an open problem for the insert line at this time, you can only add rows at this time) Note, to put a line, I suspect Option 1 minimize work 2 options.

android - Put TextView inside EditText -

Please tell me, how can I put text inside an EditText of this kind to And only the right text can be edited. In TextView inside a relative layout and EditText and adjust them. According to your requirement Example: & lt; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: Layout_width = "match_parent" Android: layout_height = "match_parent" & gt; & Lt; Android: layout_alignParentLeft = "true" Android: layout_alignParentTop = "true" Android: layout_marginTop = "20dp" Android: EMS: EditText Android: id = "@ + id / Edittext" android: layout_width = "match_parent" Android: layout_height = "wrap_content" = "10" Android: Hint = "My first character" & gt; & Lt; Requestfocus / & gt; & Lt; / EditText> & Lt; TextView android: id = "@ + id / text_view" Android: layout_width = "wrap_conten...

android - Dalvik - local variable type mismatch when adding java file to project - Without proguard -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मेरा एंड्रॉइड प्रोजेक्ट संकलित करता है और बनाता है ठीक है, हालांकि, जब मैं नैनो एचटीटीपीडी जावा फाइल (एक शुद्ध जावा 1 फाइल एचटीटीपी सर्वर) जोड़ रहा हूं, तो मुझे लॉन्च करते समय निम्नलिखित त्रुटि मिलती है (बिना प्रोगूआर्ड)। [2013-03-20 23:28:56 - टेस्ट] सिग्नलेशन से डीएक्स एक्सपैशन: [2013-03-20 23:28:56 - टेस्ट] डीएक्स स्थानीय वैरिएबल टाइप बेमेल: सेट जावा का एक प्रकार .io.ByteArrayInputStream। यह स्थानीय परिवर्तनशील जानकारी को अनदेखा करने वाले क्लास रूपांतरण उपकरण का प्रतीक है। [2013-03-20 23:28:56 - परीक्षा] डीएक्स ... बायटेक ऑफसेट 0000009 डी स्थानीय लोगों पर [0000]: एलओएम / मेरा / एंड्रॉइड / टेस्ट / नैनो एचटीटीपीडी $ HTTpsession; स्थानीय लोग [0001]: लाजावा / io / InputStream; स्थानीय लोग [0002]: [स्थानीय लोगों [0003]: [स्थानीय लोगों [0004]: मैं स्थानीय लोगों [0005]: स्थानीय लोग [0006]: स्थानीय लोग [0007]: स्थानीय लोग [0008]: स्थानीय लोग [0009]: स्थानीय लोग [000] स्थानीय लोगों [000d]: स्थानीय लोगों [000d]: स्थानीय लोगों [000e]: ...

jquery - Json phonegap return result -

I am making a phonegap app for iPhone and Android. My code works fine in the browser, but when I try with phonegap, the phone displays the JSON result and does not provoke the code in the submit fonts, here is a picture that I have received when I click on submit button I get: $ ajax () and json.eval () but I got the same result, form.onsubmit = function () {var formData = new formData (form); $ Ajax ({Type: 'Post', Data: FormData, url: 'http://server.com', Success: Function (Data) {console.log ("wa3 1"); Alert ('Your comment was successfully added ');}, Error: Work () {console.log ("wa3 2"); Warning (' There was an error adding your comment ')}}}); } I think Ajax calls are not executed. Submit button sends the form but not with AJAX You are redirected to the server script page. To stop this behavior, return ; Submit to your event. This code can send Ajax function datas so to send your HTML page form.

php - Joomla application interaction with mobile application -

I am currently working on a Joomla app and a project related to mobile applications. I have created both applications so far and now I want to link the mobile application to the same database as used within the Joomla app. I have done some research and it seems that connecting directly to the database due to security reasons is not the best option ... recommend using a web service. > This is my understanding, for example, I have a "player" table in my database, in which the players asked to output these players through the Joomla app in an XML or JSN format. Which can be accessed and parsed by the mobile application. How am I curious about creating this webservice within the Joomla app / framework? There are so many things about integrating it in some way in the Joomla world. There is also a web service work group, so it is becoming easier in the future. In the case of working with someone, the best code I have seen is still very rare, but it can be a good...

php - Replace Invalid UTF-8, Not Replace -

Evening, I have HTML files that I am cleaning in. There are some invalid unicode characters Those that appear in my text editor like: / B7 I want to replace them with either their character, or the replacement character of my choice. For example, the / B7 character is a midode, but I want to replace it with full-stop. Function here: Removes invalid characters, but I am not enough to do anything else with it to be encoded adequately on encoding. Your file is Windows-1252 (where 0xB7 decode to One · ) and GEDT is decoding it as UTF-8 and invalid UTF-8 bytes (invalid outside a specific sequence in 0xB7 UTF-8) directly to their value As I think you can fix the file in many ways, in PHP, you can do the following: & lt ;? Php $ file_contents = file_get_contents ("brokenfile.txt"); $ File_contents = mb_convert_encoding ($ file_contents, "UTF-8", "Windows-1252"); File_put_contents ("brokenfile.txt", $ file_contents); Th...

java - Need to use "new" when adding to a List? -

I am new to Java and am trying to know if I need to pass new instances of class Is a list entry, such as: CCustEntry entry = new CCustEntry (); & Lt; CCustEntry & gt; Castlist = New Arrestist & lt; CCustEntry & gt; (); Do {// enter all entry fields entry.id = [...]; [Fill in other areas of entry from DB] // Ent Entry (Constructor Copy Entry) CustList.add (new secytree); } While (C.moveToNext () == true); Or ... I can remove new entry and bus entry in this way: CustList.add (entry) ; I'm reading about lists, but I'm more confused than before. Coming from Delphi and C ++, I'm fine with syntax, but some "grammar" of Java is still scratching my head. Thanks for any help. It depends whether the entry will be modified or not It seems that you have a bean Which makes the shallow copy of the entry, so if the field of entry will be modified, then you should add a copy otherwise it will be ruining the memory just to create a new on...

ios - navigation controller doesn't show up the view -

Image
PS: Please do not advise me to go with an app representative as I would use between my app views. Thanx. I try to use the UINavigationController to display the UITableView such as settings app. So I'm trying to start step by step so far, I try to show a scene in a view controller in the navigation stack. But I'm missing something else. This is my relevant code: .h file: @interface ViewController: UINavigationController {UINavigationController * Navigation Controller; UIViewController * viewController; } @protecti (nanatomic, strong) IBotlate UIUV controller * navigation controller; @protecti (nonatic, strong) IBOutlet UIViewController * viewController; @end . M file: @implementation ViewController @ synthesis navigation controller; Modify the ViewController; - (zero) viewDidoadload [[Super Viewedload]; // Setup an additional after loading the view, usually from a nibb. Self.viewController = [[UIViewController alloc] init]; Self.navigationController...

c# WCF LDAP Login Authentication -

I have seen some threads about LDAP but nothing is helping. I'm looking for the most basic thing. I have a DoubleCF (C #) service and it is necessary that whoever calls that service should be a certified Windows user. If the user is already locked (example: connecting to the desktop on the network), then the app lets him call, if he is not logged (remote connection) Window window or something like this should pop up and request your username and password. To clarify this, when he is remotely calling the WCF service from the web application I do not need any information on the user or any setting, the rule is , If it is a Windows network user, then it can be used. I got an LDAP sample and this is what I found about: LdapConnection connection = new LdapConnection (host); Connection.AuthType = AuthType.Basic; Connection.Bind (); Now if the dam works, the user is authorized if the exception is thrown, then it is not. Now I am pretty sure that I am wrong track, so ...

html - CSS Transition Making Weird Effects? -

I'm trying to create something similar to a bootstrap input. When the user clicks on the input then it will play a good transition and shine. I have got all the styling down but the transition looks strange, but all the other sites are keeping an eye on it correctly. My box shadow looks very fast, then dims, but everything works right here It is doing, but here http://67.184.73.19/Website/Login/ is animating it differently from its first link. I have some code. CSS Input .field {-webkit-transition: all 0.30s easy-out; -MOZ-Transition: all 0.30 seconds less-in-out; -MMS transition: all 0.30s ease-in-out; -O-Infection: less than 0.30 seconds-in-out; Minute-height: 34px; Padding: 7px 8px; Profile: None; Color: # 333; Background color: #fff; Background repeat: do not repeat; Background-position: right center; Limit: 1px solid # ccc; Border-radius: 3px; Box-shadow: Inset 0 1px 2px RGBA (0,0,0,0,0,0.075); -moz box-size: border box; Box-Size: Boundary Box; Vertical-align: mediu...

iphone - Inverse UIlabel text color when its frame intersects an UIView -

Image
Hello, when UILL label is labeled then the UILLabel's text is trying to change the color, there is a property or I You can use something like below: Good puzzle! Here's what I'll do: Let the two UIViews call a background and second progress. Standing at the top of the background with the same original on your normal supervision towards progress. They have a dark color backgroundcolor in both backgrounds on both sides of the background, according to a UILball sub-user, both of both and their parents. And its label has light textcolor and there are some more things in the progress scene. The width of a narrower on the side of progress is background and is a two-bounce clip == Yes This trick, the origin of ideas The original of the label is the same, and the clip is a two-bounce on top view - (zero) set progress: (Float Progress) progress is the number between 0.0 and 1.0. The progress of the method progress and width of both labels...

ack - grep: repetition-operator operand invalid -

Let me express it regularly (? & Lt; = heads) / () *. *?) (? = \ N) and you can see it working here I need this regex to work in the grep command but I am getting this error. $ grep -Eo '(? & Lt; = heads / \) (. *?) (? = \ N)' text.txt grep: recurrence operator opera and invalid It works great in the ack, but I do not have an ank on the machine on which I need to run it. ack text.txt -o --match '(? & Lt; = heads) / () *. ? = \ N) ' text.txt 74f3649af36984e1b784e46502fe318e91d29570 major 06d4463ab47a6246e6bd94dc3b9267d59fc16c2e refs / heads / ARC 0597e13c22b6397a1b260951f9d064f668b26f08 refs / heads / LocationAge e7e1ed942d15efb387c878b9d0335b37560c8807 refs / heads / feature / 311-312-breaking banner updates d0b2632b465702d840a358d0b192198ae505011c riffs / head / Gulf-News 509173 Iafsi 6792739787787de0d23b0c804d4593 refs / heads / jbb-new-applicationdidfinishlaunching 1e7b03ce75b1a7ba47ff4fb5128bc0bf43a7393b re-FS / head / locationdebu...

.net - visual studio 2012 build error namespace -

I am a full newbie in visual studios, so perhaps this is a very rude question. I'm a user experience designer, so programming is not really my character. I am currently trying to create an app that we created and did some Q & A testing. When I try to build an application and I get many errors, I do not know what the errors are or how to solve them? I get 27 errors which look less or more like this but with a different 'items' type or name space name 'BindableBase' can not be found (Do not you have access instructions or an assembly reference?) C: \ WindowsApps \ Win8_Enterprise_Studio \ WestJet \ WestJetTablet \ Easyjet.FlightTracker.W8App \ Model \ FeedData.cs Oltiva.FlightTracker.W8App Any problem please give me some perspective make sure that whatever Assembly which Bindable Base, was able to create it. If it does not build, other projects may complain about it, as you have seen.

mysql - does BIT fill unused space past 1 byte? -

My tables may have a very large line length, if I am reading correctly, then BIGINT Will carry 8 full bytes with the value of 1 . It seems extremely incomprehensible. Does a bit work in the same way, or is it a variable length hybrid? I know that using less than 1 full byte will still use 1 byte of disk space, whereas other BIT s, for example, 8 BIT 1 column Only if I am reading correctly, take 1 byte. In other words, if I do not have the BIT 41 any other BIT column, then a line will be 0 Also, in that column, the use of 1 byte or full 6 bytes is opposite to 2 ^ 41-1, which will definitely take full 41 bits? , it seems that you are out of luck: a bit always the size you specify In fact, you might consider sorting your bits into a Blob field, because they are and variable lengths.

arrays - c++ rand() % 100 -

I am trying to fill an array with random 200 numbers which can be very much 0-100. I get this population that the last two numbers are very weird. Here's my code. for (int i = 0; i My output comes in this way Original Array: 41 67 34 0 69 24 78 58 62 64 5 45 81 27 61 91 95 42 27 36 91 4 2 53 92 82 21 16 18 95 47 26 71 38 69 12 67 99 35 94 3 11 22 33 73 64 41 11 53 68 47 44 62 57 37 59 23 41 29 78 16 35 90 42 88 6 40 42 64 48 46 5 90 29 70 50 6 1 93 48 29 23 84 54 56 40 66 76 31 8 44 39 26 23 37 38 18 82 29 41 33 15 39 58 4 30 77 6 73 86 21 45 24 72 70 29 77 73 97 12 86 90 61 36 55 67 55 74 31 52 50 50 41 24 66 30 7 91 7 37 57 87 53 83 45 9 58 21 88 22 46 6 30 13 68 91 62 55 10 59 24 37 48 83 95 41 2 50 91 36 74 20 96 21 48 99 68 84 81 34 53 99 18 38 88 88 67 28 93 48 83 7 21 10 17 13 14-858 993460 9 16 35 51 49 49 56 98 3 24 8 44 9 89 2 95 85 93 43 23 87 14 3 48 0 58 18 80 96 98 81 89 98 57 57 22 38 92 38 79 90 57 58 91 15 88 56 11 2 34 72 55 28 46 62 86 75 33 69 4...

haskell - Uncurried functions -

I'm having trouble understanding the curried and uncurried tasks. In one example I found them saying that maximum 4 5 (max 4) 5 is similar, but I do not know what they are doing. When you can require a maximum of 2 parameters, how can you do a function (max 4) I'm completely lost. The move with Haskell is that the task only takes one argument. It seems completely crazy but it really works. A hascal function: foo :: int -> Int - & gt; In fact it means: A logic that takes 1 argument, and then gives another task which takes an argument It is called curry. Therefore, we can actually write this function definition as follows: foo :: int -> (Int -> int) - speak in mathematics: correct associative And actually the same thing means. This is really super useful because now we can write short codes like: foo1 :: int -> IT foo1 = foo 1 Since the headcount in the action is Haskell is just whitespace, most of the time when you show...

java - TimeOut for SFTP Connection -

Iam trying to download a file from server using sftp. But I have no way to determine the schedule to come to the API at any time. I have tried to use the Zahon-File-Transfer Library for this and I have also seen some pieces of code (each where this is what is not intended to set the timeout). Why are not we defining timeout for SFTP? Whether you are referring to the time required to connect to the server or to obtain the necessary Time response to server? Both JSCAPE are defined in the API. please look . Documents may be located

Check if Safari block cookies "From third parties and advertisers" is enabled using javascript/php -

I am facing a problem that in my website payment gateway (MiGs) as an iframe in the Safari Browser Using the default cookie block is "by third parties and advertisers", so the gateway (migs) response is receiving a "cookie not enabled error" error. I would like to detect such a cookie block by using php / javascript to show this cookie block problem. - Edit: I am facing a single problem, since the IOS7 "Block cookies from third parties" is disabled Stopping my LinkedIn social login button to work. In the lack of a solution, I'd love to know how they are enabled with Javascript or PHP + Lisovaccaro I think one way of doing this is to have a script on another domain (no subdomain, but I have not tested it), which sets a cookie, and then the script can return JSONP so that You can use it on other domains with Javascript Can. So something like this: PHP (cookie.php) & lt; Php header ("content-type: app / javascript"); Head...

How to save the values of checkbox to the register setting of wordpress? -

& lt; php फ़ंक्शन default_menu () {& lt; form action = "options.php" method = "post "& gt; & Lt;? Php settings_fields ('sample_check');? & Gt; & Lt; इनपुट प्रकार = "चेकबॉक्स" नाम = "नमूना" मान = "nofollow" / & gt; & Lt; / प्रपत्र & gt; फ़ंक्शन reg_setting () {register_setting ('sample_check', '???'); } हाय सब, मैं दिन के लिए रजिस्टर सेटिंग में चेक बॉक्स मूल्यों को संगृहीत करने के लिए संघर्ष करता हूं। टेक्स्ट बॉक्स के लिए मैं सीधे & lt; इनपुट प्रकार = "टेक्स्ट" नाम = "सैम" मान = "& lt; php get_option ('samip');? & Gt; / & Gt; इसके अलावा मैं पंजीकरण सेटिंग जैसे register_setting ('sample_check', 'samip') के लिए मूल्यों को पंजीकृत करता हूं; लेकिन मुझे यह नहीं पता कि चेकबॉक्स के लिए यह कैसे करें किसी को भी मुझे यह करने के लिए कोई सुझाव देना बहुत अच्छा है। धन्यवाद, विकी आपका प्रश्न / कोड पता न...

javascript - extend scope of inner var into another function -

I'm sure you've gone a long way, but I can not understand a thread witch really fit My needs How do I get the external to work in the outside? function externally () {/ * some * / var internal = function () {back true}; Inner (); }; External () function external (two) () (if (internal == true) / * do something; outerTwo (); Please note, I know that this It is possible that it should be made universal to exclude X but what I want to achieve is to get this work out of the scope inside Did you try: var x; function external () {/ * some * / var internal = function () {x = 5 Console.log (x + "works in internal (");}; inner (); console.log (Ex + "works in the external");}; outerOne (); function outerTwo () {console.log (ex + "works in the outer");}; outerTwo (); Functions only share scope with the declared variable in their parent scope. Edit Completion I do not have anything to add to that you make your work with the returni...

android - adb push fails with Invalid argument -

Hello, what do I do to push an APK extension file on my phone so that I can execute: C: \ user \ dogfaces \ appadata \ local Android Android SDK platform platforms & gt; ADB.XE push c: \ main.1.com.redcricket.Audiobook.obb / mnt / sdcard / Android / OBB / com .redcricket.Audiobook \ main.1.com.redcricket.Audiobook.obb but failed with this error: failed to copy 'c: \ Main.1.com.redcricket.Audiobook.obb' to '/ mnt / sdcard / android / Obb / com.redcricket.Audiobook \ main.1.com.redcricket .Audiobook.obb ': Invalid argument So am I doing wrong here? please try Make any folder in the C drive and then the APK Insert it and try it. Change the name of the main package and try again. For example: adb push foo.txt /sdcard/foo.txt

c# - Getting sql connection string from web.config file -

I'm learning to write from a textbox into a database with the click of a button. I have specified the connection string in my NorthWind Database in my web.config file. Although I am not able to use the connection string behind my code. This is what I have tried to do. Protected Zero Bottom_click (Object Sender, EventArgse E) {System.configuration.Configuration rootwebconfig = System.Web.Configuration.WebConfigurationManager OpenWebConfiguration ("/ Mohtisham"); System Configuration. Connecting string setting; Constring = rootwebconfig.ConnectionStrings.ConnectionStrings ["northwindconnect"]; SqlConnection sql = new SqlConnection (constring); Sql.Open (); SqlCommand comm = new SqlCommand ("Insert values ​​in the categories (category name) ('+ + tb_database.Text +"' '' ', sql); comm.ExecuteNonQuery (); sql.Close ();} I get tooltip error for SqlConnection sql = new SqlConnection (constring); As P> There are som...

c++ dynamical array in class -

I am programming a hotel program that includes an array // the size of the array of rooms The number is that in the hotel // array [i] in the room are people I max 3 people everything works perfectly (constructor, copy maker, destructor) I It prints the print (this array prints the material) - As long as I have a few numbers from that position function (defined in the class) Automatically loads Arty content with! Zero position (const Hotel & O) {for (int i = 0; i & lt; o monoform; i ++) {if (ORRPSE = I) = 0 ) COAT & LT; & Lt; "Room Number" & lt; & Lt; I & lt; & Lt; "Available" & lt; & Lt; Endl; And cout & lt; & Lt; "Room Number" & lt; & Lt; I & lt; & Lt; "Unavailable" & lt; & Lt; Endl; }} Print all rooms are unavailable! Who is: D change if (o.arapper [I] == 0); // You are using assignment '=' instead of '=='

javascript - putting a square or circle image in line path in google maps -

I have created a line-path in Google Maps using javascript and GPS coordinates. Anybody please tell me how to put a circle or a square at the end of the line-track drawn in Google map. My code is shown below Start the function () {var center = new google.maps.LatLng (10.012552,76.327043) ; Var myOptions = {zoom: 16, center: Center, MapTypeControl: True, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, navigationControl: True, mapTypeId: google.maps.MapTypeId.ROADMAP} var map = new Google. Map Map (document.getElementById ("map_canvas"), myOptions); Var polylineCoordinates = [new google.maps.LatLng (10.013566,76.331549), New google.maps.LatLng (10.013566,76.331463), New google.maps.LatLng (10.013503,76.331313), New google.maps.LatLng (10.013482,76.331205 ), new google.maps.LatLng (10.013419,76.330926), new google.maps.LatLng (10.013334,76.330712), new google.maps.LatLng (10.013313,76.330411), new google.maps.LatLng (10.013292,76.33017...

tooltip for csv button in datatables plugin -

Is there an option to provide tooltips for the CSV button in the dataset? My code about this CSV button is like this: $ ('# example'). True, "bPurection": True, // "bServerSide" is true: "SAJX source": "datatabledb" STM ":" T & L; "Explicit"> lfrtip "," BGQUI ": True, "{1}", "full name": "complete_number", // "sdem": 't and lt;', clear '' RT '"OTableTools": {"aButtons": [{"sExtends": "csv", " Sbuttontext ":" save in csv "," bfuuter ": wrong}]}," ollnews ": {" s search ":" find all columns: "}," AO column ": [null, {" bSortable ": false }, // sorting header header, empty, empty, empty, blank, empty, blank, blank) ; "> You can use sTooltip: " AButtons ": [{" sExtends ":" csv ...

python - Why can't I import nltk? -

In Windows with a 64 bit OS, once I have nltk-2.0.4.win-amd64-py2.7. Exe has installed, from, to my 64 bit dragon, I run 'import nltk' to get the following error! Tracebacks (most recent call final): File "& lt; pyshell # 25" gt; Line, 1, in & lt; Module & gt; Import nltk file "C: \ Python27 \ lib \ site-packages \ nltk \ __ init__.py", line 131, & lt; Module & gt; Estimated import * file "C: \ Python 27 \ lib \ site-packages \ nltk \ inference \ __ init__.py", in line 19, in & lt; Module & gt; Nltk.sem.glue Import "Bid" from the DrtGlue file, "C: \ Python 27 \ lib \ site-packages \ nltk \ inference \ discourse.py", in line 54, in & lt; Module & gt; From speech import (reading comand, cgjring command, c) Nltk.corpus import from Brown File \ Python27 \ lib \ site-packages \ nltk \ sem \ glue.py ", line 13, in the C: \ Python27 \ lib \ site-packages \ nltk \ corpus \ __ init__ .p ...

spring - how to secure applicationContext-security -

क्या प्रयोक्ता को वसंत सुरक्षा फ़्रेमवर्क में applicationContext-security.xml बदलने से रोकने का कोई तरीका है, जिससे वह बदल नहीं सकता आवेदन के परिभाषित अवरोधन- url। & lt; intercept-url access = "हैरोल ('ROLE_ADMIN')" पैटर्न = "/ विकल्प / **" / & gt; & Lt; intercept-url access = "hasAnyRole ('ROLE_SYSADMIN')" पैटर्न = "/ विभाग / **" / & gt; & Lt; intercept-url access = "हैअनियोल ('ROLE_SYSADMIN')" पैटर्न = "/ कर्मचारी / **" / & gt; मैंने अभी तक यह नहीं किया है, लेकिन आप अपने जार पर हस्ताक्षर करके इसे कर सकते हैं प्रोग्रामिंग को स्टार्टअप पर सत्यापित करना अपना आवेदन शुरू करके, आपको कोड को ट्रिगर करना होगा जो कि आपके जेरफ़ाइल को मान्य करता है और शुरुआत में असफल होने के लिए कुछ करता है यदि हस्ताक्षर उपलब्ध नहीं हैं या छेड़छाड़ नहीं कर पाए हैं। यह भी एक "हमलावर" को जार खोलने के लिए नहीं रोकेगा, और कोड को संशोधित करेगा और इसे हस्ताक्षरित मैनिफेस्ट के बिन...

javascript - Make background image of td to fit to 100% for non static images -

मेरे पास टीडी टैग है: & lt; td class = "np-logo" शैली = "चौड़ाई: 228 पीएक्स; ऊंचाई: 50 पीएक्स;" & gt; & Lt; / टीडी & gt; और सीएसएस: .np-logo {पृष्ठभूमि-दोहराना: कोई भी दोहराने; पृष्ठभूमि-आकार: 100%; } और मैं कंपनी लोगो के अनुसार छवि बदल रहा हूं। और सभी छवियों में अलग-अलग आकार और चौड़ाई है। .np-logo {background -छात्र: यूआरएल ('"+ + कंपनी लॉगो +' '); समस्या यह है कि चित्र सही ढंग से फिट नहीं हो रहे हैं। मैं उन्हें पूरी टीडी पर कब्जा करना चाहता हूं। लेकिन हर कंपनी के लिए पृष्ठभूमि की छवि स्थिति समान नहीं है.मैंने जावा स्क्रिप्ट का उपयोग करने की भी कोशिश की कंटेनर के लिए फिट करने के लिए छवि लोड हालांकि काम नहीं किया। किसी भी मदद वाले लोग ...? कोशिश करें पृष्ठभूमि-आकार: 100% 100%; जहां पहले मान चौड़ाई के लिए है और दूसरा ऊँचाई के लिए है। आप इसके अनुसरण कर इसके बारे में अधिक जान सकते हैं

ios - Do I need to do registerDefaults: every time the app starts? -

I am developing an iOS app with the latest SDK. I do this: - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) Launch Option {NSUserDefaults * standardUserDefaults = [NSUserDefaults StandardUserDefaults ]; [Standard user defaults register defaults: [preferred default value dictionary]]; [Synchronize standard user defaults]; Yes come back } What is the need to register Defaults: Every time the app starts? Yes, documents for registerDefaults: explicitly Explains: The contents of the registration domain are not written to disk; You need to call this method every time your application starts. Note that there is no need to call registerDefaults after register for the same reason .

encode Php array to json -

मैं अपने php array को एन्कोड करना चाहता हूँ Array ([0] = & gt; Laravel एक json सरणी जो ऐसा दिखता है {"val": [1] = & gt; हेलो) " "" "" "" "" "" "" Itemprop = "text"> इसे आज़माएं: $ array = array ("val" = & gt; $ your_array); $ Json_str = json_encode ($ सरणी); रेफ़री:

Python regex get with zero or more occurences within the pattern -

I have a working reggae that gives me the results that I want to give, even then it does not require security (stupid Proof) Let's say I have a reg box that corresponds to some parts of a path: Dev / model / props / furniture / couch / data / fbx "regex = re.compile (" (. +) / Dev / model /(.+)/(.+)/ data / FBX ") m = Regex.search (Path) if m: print m.groups () # ('C: / Projects / foo', 'props / furniture', 'couch') I want A Any character capable of match up to the following part of the regex will match some or more folders. Let's say that we define a folder for simplicity in terms of words (letter or none) ending with slash: [ \ W] * / And I want to group zero to ten I had something in my mind (note that this does not work! ): # words matches any number of characters that term ends with zero by ten times ([[\ w] * /] {0,10}) # Slash noise Edit Once: ([[\ w] * /]? Edit: Based on the answer of RedBaron and jam...

java - How to Use JSON Accumulate Method With List? -

I'm trying to code below .... public string list tojsonString ( String keyName, list; styleAttribute & gt; attrs) {JSONObject json = new JSONObject (); Json.accumulate (keyName, attrs); Return json.toString (); } But when I'm checking the json variable, something like this happens in empty values ​​ {"MyKey": {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}, {}, {}, {}, }, {}}} And when I am checking the attrs variable, it has 22 element data. What am I doing wrong here? I'm just converting my list to a Jason object and saving the database. I am using import net.sf.json.JSONArray; Import net sf.json.JSONException; Import net sf.json.JSONObject; You can use the code below Public String ListToJsonString (List & Style; Attribute) {JSONObject jObject = new JSONObject (); Try {JSONArray jArray = New JSONArray (); (MyClass myObject: attrs) {JSONObject styleJSON = New JSONObject (); StyleJSON.put ("name", myObject.getName ...

javascript - Check if object contains property with specific value -

मेरे पास नीचे एक वस्तु है: var _obj = {'name1 @ gmail} Com ':' 'bob@gmail.com': {चैनल: 'V2231212', से: 'बॉब'}, 'judy@gmail.com': {चैनल: 'V223231212', से: 'न्यायी'}}, ' Name2@gmail.com ': {' bill@gmail.com ': {चैनल:' V123123 ', से:' बिल '}}}; मैं कैसे देख सकता हूँ कि वस्तु में कहीं भी " चैनल " मौजूद होता है जो " V123123 " के बराबर होता है? उपरोक्त मामले में बिल @ जीमेल V123123 के बराबर है और इसे सही होना चाहिए। कोई भी विचार? इसे आज़माएं: console.log (इसमें प्रॉपर्टी वैल्यू (_obj, 'channel', 'v123123')); फ़ंक्शन मेंप्रॉपर्टी वेल्यू (obj, propertyName, propertyValue) {var contains = false; फ़ंक्शन ए (ओ) {के लिए (विभिन्न प्रकार के सहारा) यदि (ओ एचओएसओपिपर्टी (प्रोप)) (यदि (प्रोप === प्रॉपर्टीनेम एंड amp; ओ [प्रोप] === प्रॉपर्टी वैल्यू) {इसमें = सच है; वापसी; } अगर (टाइपफ ओ [प्रोप] === 'ऑब्जेक्ट') ए (ओ [प्रोप]); }} A (_obj); वापसी मे...

jquery - How do I access other methods from within an event function? -

I am starting to learn more about jQuery plugin patterns, but I have participated in some of the code see below I want to access my plugins options / default with an onclick function, but I'm not sure how. Function SomePlugin (element, option) {This. $ El = $ (element); This.options = $ .extend ({}, {button: '# button', some variables: 'foo', another variable: 'bar'}, options); This.init (); } SomePlugin.prototype = {init: function () {var button = this. $ El.find (this.options.button) button ('Click', this.onClick); }, Onclick: function (event) {// options needed to access (some variables, another variable) here ... how? }}; $ .fn.someplugin = function (options) {return.Each (function () {if (! $. Data (this, 'some plugins')) {$. Data (this, 'some plugins', new plugins (this, option ));}}); }; I have tried the code below, but it does not seem right for some reason. Is there a better way? Besides, I have any other suggestion...

How to draw line chart in android phone? -

I have a set of data I want to draw a line chart horizontal axis for time and vertical axis The amount is. 2013-2-1 50 2013-2-3 80 2013-3-5 90 2013-6-10 120 2013 -6-20 40 2013-7-31 77 Like the above data, there is horizontal time and vertical axis number. How to use this line chart? I confuse horizontal time. It's different. I would recommend you use the chart library, one of them: and other just try to use one of them Same question:

how to read the value from excel in c# without using third party dll? -

Image
मेरे पास एक एक्सेल फ़ाइल है जिसका नाम strings.xls C: Excel .अनुप्रयोग excelApp = नया Excel.Application (); स्ट्रिंग वर्कबुकपाथ = "c: /strings.xls"; एक्सेल। वर्कबुक एक्सेलवर्कबुक = नल; {ExcelWorkbook = excelApp.Workbooks.Open (कार्यपुस्तिका पृष्ठ, 0, गलत, 5, "", "", गलत, Excel.XlPlatform.xlWindows, "", सत्य, झूठी, 0, सत्य, झूठी, झूठी) का प्रयास करें; } पकड़ {excelWorkbook = excelApp.Workbooks.Add (); } Excel.Sheets excelSheets = excelWorkbook.Worksheets; स्ट्रिंग चालूशेट = "शीट 1"; Excel.Worksheet excelWorksheet = (Excel.Worksheet) excelSheets.get_Item (वर्तमान पत्रक); Excel.Range एक्सेल सेल = (Excel.Range) excelWorksheet.get_Range ("ए 1", "ए 1"); ExcelCell.Value2 = "हाय वहाँ"; आप नहीं कर सकते। चूंकि यह XLS फ़ाइल है (एक बाइनरी प्रारूप), सरल समाधान उस मान को प्राप्त करने के लिए एक्सेल (माइक्रोसॉफ्ट जेट) ओएलई डीबी ड्राइवर का उपयोग करना होगा। यदि आप XLSX फाइलें प्रदान करने के लिए प्रक्रि...

vb.net - Visual Basic Clipboard Manipulation -

I have 3 buttons to reach the right point; Each button sends a long message to the clipboard, I can paste in the window. This message is currently being stored in a string with some type of XML hack: response message = & lt; A & gt; This string is it istr is welcome PoodleSchool This is a string hello no one like me & lt; A & gt; .Value Now let me change the string of a string, for example, maybe "dogskool" with "poodleSchool" or whatever variable I can change and then on the clipboard Can I send? The variable will be based on the text box placed on the application form. Then when the button is pressed, the message should be copied from the correct name taken from the textboard variable. Any Buyer? It can be completed using " " string in the middle! Thanks internet!

httpwebrequest - Http Error 500: Internal Server Error - Asp.Net -

I have a scenario where I have to call a webmath on JavaScript's pageulose event. When I open multiple instances of the same page in multiple browser tabs (such as more than 10 tabs) Close the browser once. The page is loaded for multiple pages of the page and my error recording device records the "HTTP Error 500: Internal Server Error" error. However, nothing in the log file is written and I do not get any error messages, even if this application is in debug mode. I have to troubleshoot the problem and prevent it from happening. Anyone have any ideas? Use this method and try to create a logging system to identify the error. / P> Secure Override Zero Download (EventAgds E) {base.OnUnload (e); // your code here}

sql - Subquery returned more than 1 value. This is not permitted... or when the subquery is used as an expression -

चुनें DISTINCT (m.pm_name) से प्रधानमंत्री के रूप में एम, प्राइम_मिर्स्टर एएस पी WHERE m.state_born नल ग्रुप नहीं है मेरी समस्या निम्नानुसार है: क्वेरी से: p.p.my_name, m.birth_yr HAVING m.birth_yr = (SELECT Min (p.birth_yr) से प्रधान मंत्री) ऑस्ट्रेलिया के राज्य में पैदा हुए पहले प्रधान मंत्री का उत्पादन करना माना जाता है ... इसलिए WHERE m.state_born नहीं है उप क्वेरी में बाहरी तालिका का संदर्भ क्यों? इस तरह एक साधारण उप प्रश्न लिखें। चुनें DISTINCT pm_name प्रधानमंत्री से WHERE state_born नल और birth_yr = (प्रधान मंत्री से प्रारंभ मिनट (जन्म_आर्))

Protect table update using database role (server role is over) -

itemprop = "text"> I have a database role called app_user with the selection, updating, inserting and deleting of rights on all tables except 2 tables. Only correct has been selected in the role of AP_USER. However, some users have the right to create database users (login-making, spad-aids, sp_androlemman). To be able to execute this process, they should be sysadmin server rolls. In this case the sysadmin role is on the database ap_user and they can update these 2 tables. Currently, I am giving them security admin rolls, but while making DB users only they can make a login. In short, I want to update 2 tables for all users except my Sisäämin account, and I need something users are able to be able to create database users (my app has them Has implemented spam permitting DB for type users). You can get better answers on the DBA site, but it seems that you can send 3 commands to the user You want to allow execution: create login , CREATE USER and sp_addrolem...

c# - Multiple root element (DataContractSerializer) -

I am trying to deserialize the file using the DataContractSerializer. I have such classrooms: [DataContract] Public category Contributions {[Database] Public Int [] stanGry; [Datamember] maximum size of public india; [Database] Public Entry [] stanOpcji; [Datamember] Public Intu Numan Faggy 1; [Datamember] Public Intu Numan Faggy 2; In the public kontenerUstawienia () {} (...)} , after saving the serial class instance to file, I try to read the file and deserialize: Try {zapiszObiektUstawien ((Container user) deserializer. ReadObject (strumien)); } Catch (SerializationException e) {System.Diagnostics.Debug.WriteLine ("\ n \ n \ n \ n ++++++ \ n" + e.Message + "\ n +++++++++ +++++++++++++++++++++++++++++++++ "); } hold print me: ++++++ type an error in deserializing the object of WindowsPhoneGame1.kontenerUstawienia. Many root elements are line 1, position 59 9. ++++++++++++++++++++++++++++++++++++++++ What I'm doing wrong Edit: Here's ...

dpapi - What Information can be found in every C# application to be used as a unique salt for encryption? -

What information can be found in every C # application that can be used as a unique salt for encryption, In which web applications, window services and WCF layers? I would like to create a library that allows easy encryption of sensitive data stored in the configuration files (DPAPI) System.Security.Cryptography.ProtectedData.Protect () And System.Security.Cryptography.ProtectedData.Unprotect () methods The library will also be used by a separate application that I can encrypt and decrypt configuration outside of it. Applications that are using values, which are configured to re-compile everything without configuring files Allows updating or access to the original source, however access to the source should always be available. The salt should be sufficient to manually enter the separate application (for example, it would be difficult to identify the GUID). System. Reflections. Asambu GetEntryAssembly () looks promising, If which is the building of this library and ...

objective c - Uncaught system exception: signal 11 -

Some of my users have reported that sometimes they are getting the above error Unfortunately I do not have anything from the log file Can tell. Maybe somewhere in the code an object over-release Can I catch it by holding it in some way? Generally I was able to do Instruments and NSFobian but unfortunately it is not on my machine. Is there a chance to log on the object? 1 Exception Handling 0x00000001000879e2 - [NSEXSHandlerHandler_handleException: Mask:] + 168 2 Exception Handling 0x00000001000877ba NSE Exposure Handler Indexed SignalHandler + 35 3 libsystem_c.dylib 0x00007fff9836d8ea _sigtramp + 26 4 ??? 0x0000000001440013 0x0 + 21,233,683 5 CoreFoundation 0x00007fff985b525f - [NSArray initWithArray: Range: copyItems:] + 591 6 AppKit 0x00007fff94a193f3 recursivelyEncodeInvalidPersistentState + 1118 7 AppKit 0x00007fff94a194a6 recursivelyEncodeInvalidPersistentState + 1297 8 AppKit 0x00007fff94a194a6 recursivelyEncodeInvalidPersistentState + 1297 9 AppKit 0x00007fff94a194a6 re...

android - Source code compatible with the v3.6 of BCGTAD? -

I have just begun learning Android app development and to be ideal for me, "The Bid Coder's Guide to Android Development" Have got. / P> I am reading v3.6 of the book. But I could not find a corresponding source code for the book hosted on the Github repo mentioned on the site. Is the code hosted elsewhere? Can anyone share the source code? Thank you. You can find the source code for the legacy version (3.7 and earlier).

plsql - Oracle PL/SQL Trigger to limit orders per customer -

Just working on creating a little trigger What I'm doing to trigger this trigger is making sure that the customer Only one current time can get 10 orders in the order table, in order. Do not ask why my idiot wants me to feel silly. But originally a trigger placed order is on the table, I am currently selecting a different number on customer_ID and it has a V_count version. If v_count & lt; Enter 10 INSERT__ ELSE DBMS_OUTPUT.PUT_LINE ('Please wait 10 or more order processing for you') END END This code is the original gist but it will not run if any If so, can I show the full code? Here's the code - Sorry, I just do not know how to use SQLFeed now. To change or change the trigger, select each line for the v_count number is put before trg_order_limit before the first INR; SELECT COUNT (DISTINCT FK1_customer_id) from place_order in V_count; If v_count & lt; 10th put order_order (order_dard, order_date, delivery_date, fk1_graher_id, fk-2_morifier_id...

vb.net - entering a serial number into a textbox and displaying a msgbox if the num is already used -

I have a text box, where the user must enter a serial number, I want the system to display the message box To do "number already exists" if the number entered by the user is already in the MySQL table called "customers" in Vb 2010 how do I get it? Call the process with your code and insert the output into a DataTable . Then you can loop through the values, which you compare to the user and set a matched flag if the value entered corresponds to within DataTable then you have a relevant You want to return the message, possibly using the matching flag within the statement of a if statement as your statement. Now you have basic steps, I'm pretty sure how you can do all of the above on Google I'm afraid to knock and post someone.

perl - I have used below code to check single instance of replace.exe is running -

I used the code below to see the single example of replace.exe. When I substitutes. Exe and windows go on, having another file with name 0 kb size (without any extension) is being replaced. I do not think that file should be created and I want to automatically delete the file after the replace.exe execution. Please help me Use FCTL QW (: Flock); # Check that any example of this script is already running $ lock = "replace"; Sub lockout () (& print_log ("An example of this script is running, so it is exiting, please try after some time."); Print "The example of this script is going on, so it is going out Please try again after some time. "; Exit 1;} Open (my $ PID, '& gt;' $ lock); Swarm ($ pid, LOCK_EX | LOCK_NB) or lockout (); I think you are working with a Perl script which is somehow a window Executionable and you want to run it in an example. You can try the following: Use Fcntl qw (LOCK_EX LOCK_NB LOCK_UN); if (! ...

math - different results of 2 sample kolmogorov-smirnov gof matlab -

I have done a GOF test in matlab, but two samples of Kolloggorov Smirnov test gave me the opposite result in Matlab I use this code. Done file = importdata ('all_subj_1file.xls', '\ t'); [Ill1] = xlsread ('all_subj_1file.xls', 'ill1', 'b2: e1608'); Ill1_frac = ill1 (:, 2); [A, b] = gamfit (ill1_frac); Y = gamrnd (a (1), a (2), 1607,1); But from time to time I get different p and ks2stat also (probably because whenever I run the code I also create new flaws). The question is How do I choose the result of Kolmogorov-Smernov? Should I run the code multiple times and should I like the most? But they are opposite (like deviations or H1 levels). A sample Kolmogorov Smirnov should be tested to get GOF of theoretical distribution instead of using two sample KS tests Can be done

php - SimpleSAMLphp Stay Logged In -

I am confused about cookie settings in config.php. I have an identity provider and three service providers. I want my users to be able to log in on the site within the X number again. I have set the session.cookie.lifetime to 7 days (60 * 60 * 24 * 30) and session.duration is set to default 8 hours (60 * 60 * 8). How do I use cookies to automatically log myself in if the user has not expired? Session duration is taking priority over the cookie lifetime. The cookie data is valid using a session, so both session.duration And session.cookie.lifetime must be at least seven days in your case. When the session is ending, the server will not recognize it, because the cookie is useless. This is usually a good idea to allow session.duration a bit Session.cookie.lifetime for clock skew.

SAS data step/ proc sql insert rows from another table with auto increment primary key -

मेरे पास नीचे के रूप में 2 डेटासेट हैं id name status 1 a a 2 b b 3 सी सी एक और डाटासेट नाम की स्थिति नई सी सी 0 डी डी 1 ई ई 1 एफ एफ 1 मैं दूसरी तालिका से 1 पंक्ति तक की सभी पंक्तियों को कैसे जोड़ूं? स्थिति यह है कि पहली तालिका स्थायी है दूसरी तालिका को मासिक अद्यतन किया जाता है, इसलिए मैं मासिक अपडेट की गई तालिका से सभी पंक्तियों को स्थायी तालिका में जोड़ना चाहूंगा, ताकि यह इस तरह दिखता आईडी नाम की स्थिति 1 ए 2 बी बी 3 सी सी 4 डी डी 5 ई ई 6 एफ एफ मुझे जो समस्या आ रही है वह है कि मैं डेटासेट से आईडी को बढ़ा नहीं सकता 1. जहां तक ​​मैं खोजता हूं, डेटासेट में एसएएस में स्वत: वृद्धि संपत्ति नहीं है ऑटो वेतन वृद्धि डेटा चरण का उपयोग करने के साथ किया जा सकता है, लेकिन मुझे नहीं पता कि इस तरह से 2 तालिकाओं के साथ डेटा चरण का उपयोग किया जा सकता है। सामान्य एसक्यूएल होगा तालिका 1 में डालें (नाम, स्थिति) नाम का चयन करें, तालिका 2 से स्थिति जहां नया = 1; लेकिन चूंकि एसएएस डेटासेट स्वत: वृद्धि कॉलम का समर्थन नहीं करता है इसलिए इस समस्या का सामना करना पड़ रहा है I मैं इस...

php - Randomly generate numbers based on stock in MySQL database -

Hi guys, I need some help with a script in PHP, currently it is setup as a slot style game. Where users can pay a little bit and generate 3 random numbers, each number can be associated with a prize which they can win. Match 3 and win said the award Unfortunately as always I will not be in stock to give each item as a reward, I have to check through each number and make sure that it is in stock $ stock = $ cone - & gt; Query (Select 'Select from item id where available = 1'); And if it is in stock, then add it to an algorithm which will randomly select 3 numbers Currently I have such setup > function generated_number () {global $ number; $ Number = array ('0' => Rand (1,2), '1' => Rand (1,2), '2' => Rand (1,2)); Display_numbers (); } which generates numbers based on two variables and connects each number with an award, obviously it does not notice which numbers in the stock are I, And it does not allow for the edge. I ha...

java - String to int then change background -

I need some help for my colors, so what I'm going to do, RGB color light in 3 text fields Type 255,255,0. So I have to convert them int and the last change to the background color. Now the problem is that I get some errors when I'm clicking OK button. Public Null Action Function (ActionEvent e) {if (e.getSource () == ok) {int rgb = integer Parasont (text 1.gate text) ()); Int RGB 1 = Integer PRIIT (text 2.getText ()); Int RGB 2 = integer. ParisInt (text 3.getText ()); V.setBackground (new color (RGB, RGB1, RGB2)); } This yield: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: for input string: "java.lang.NumberFormatException.forInputString (unknown The logic clearly states that you are trying to convert an empty string to an integer. For the input string: "" that means you are passing AWT-EventQueue-0 "java.lang.NumberFormatException: int color = integer.parseInt (" "); // Exception because of th...

servlets - Error on web server=====>java.lang.NullPointerException -

I have created a simple servlet dynamic project with some html pages, .... Clicks On the form, the button on the form should be transferred to the servlet, I do not know what the problem is, it shows an "HTTP status 500" error .... This shows the error as: the exception appears on the browser: java.lang.NullPointerException controller.Trafcontrol.doGet (Trafcontrol.java:48) javax.servlet.http.HttpServlet.service (HttpServlet.java:690) javax.servlet.http.HttpServlet.service ( HttpServlet. Jaw : 803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96) Used the App server: JBOSS AS 4.2.2, Eclipse: Helios 3.6 .. I need to pass the servlet for my control, so I can process further with my project. I also include the "console" window content: Servlet.service () Exception for servlet servname thrown at java.lang.NullPointerException controller. Kantrolkdeget (Traf contract. Jawaः 48) on JavaxkservletkhttpkHttpServletkservice ...

jquery - Cross domain ajax jsonp request not working in IE8 -

jquery-1.9.1 का उपयोग करके, मैंने सीओआरएस समर्थन को सक्षम किया है। $। Support.cors = true; तब मैं एक एजेक्स अनुरोध बना रहा हूँ जैसा कि नीचे दिखाया गया है, मैंने सर्वर साइड से jsonp कॉलबैक समर्थन भी सक्षम किया है। $। Ajax ({type : 'GET', url: url, async: false, contentType: "application / json", jsonpCallback: 'json कॉलबैक', डेटाप्रकार: 'जेसन', सफलता: कार्य (डेटा) {var featureJSON = data.feature;}, त्रुटि : फ़ंक्शन (ई) {}, पूर्ण: फ़ंक्शन () {}}); मैंने इसे jboss में तैनात किया है और किसी दूसरे कंप्यूटर (अलग-अलग डोमेन / आईपी पते) से पृष्ठ को एक्सेस किया है। यह एजेक्स कॉल एफएफ और क्रोम में दूसरे कंप्यूटर से और एक ही कंप्यूटर में काम करता है। यह भी IE में काम करता है, लेकिन एक ही कंप्यूटर में। IE में काम नहीं करेगा जब मैं किसी दूसरे कंप्यूटर में उपयोग किया जाता हूं। चारों ओर googling के बाद, मुझे समझा गया कि IE * cross domain की अनुमति न दें AJAX कॉल जो jquery द्वारा बनाई गई है। और jquery IE के XDomain ऑब्जेक्ट का समर्थन नहीं करत...

How to show the project structure correctly in IntelliJ? -

Do you know how to show project structure correctly? My project structures can not show all my files. I do not know how to fix it. Thanks in advance. Ensure that the content of your module is at the root level of your project (in project settings) again Mark any folder as a formula code (and similarly folders having test as a test source).

SOAP Request with PHP does not work - no answer from PHP getLastRequest -

We are writing a web service in UNIFACE 9.3. Our service saves WSDL We use SOAPUi for the first test and we stick to using PHP for some more tests, but PHP does not give us anything! Why? & lt; Soapenv: envelope xmlns: soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: kalash = "kalash: unity: application: wrapped: services: WEBSOAPWSV" & gt; & Lt; Soapenv: header / & gt; & Lt; Soapenv: body & gt; & Lt; Pulse: info & gt; & Lt; Vase: SP_IN & gt; Event = test & lt; / Cache: SP_IN & gt; & Lt; / Cache: info & gt; & Lt; / Soapenv: Body & gt; & Lt; / Soapenv: envelope & gt; This is our PHP-testet: $ client = new SopClient ("http: // patch-server: 8080 / uniface / services / websoappwsvdlw ? Wsdl "); Var_dump ($ Customer & gt; __getFunctions ()); $ Args = array ('OCCURRENCE', 'TEST'); $ Result = $ client- & gt; __Subject ('INFO', $ args);...

php - How to filter values fetched from database on the basic of comma included? -

Image
I have some values ​​in my database in the column, as I have been shown in the picture below, Now if you notice there over there In the position of number three, we have the value, which is Italian, pizzeria (pizza), there may be some other values ​​that can be included in the Italian, pizzeria (pizza) like COMMA (,) Yes, as we can see in the picture below, Now I want to get all the values ​​of php (select * from tablename), but if the value is included in COMMA, then I Any way to filter out? I just want to select values ​​that do not have any commas, thanks in advance? Unless there is a pregate in my knowledge, or an array filter can help. would not like predicate: Choose * Where 'Business' food is not like '%,%' from the tablet name;

python - Streaming media files via DLNA/UPnP -

I am currently running Raspbmc on my Raspberry P and am enabling UPnP rendering streaming. My goal is to write a simple python to stream a video or music playlist. I have tried, but I'm throwing it off with a bunch and I do not really get this point. So I'm looking for an easy way / library. What is the easiest way to stream media files through Python in my TV? For audio only, I will get good results with Riggle Hard part , Configure GstLaunch pulseaudio connector in .config / rygel.conf. Here's my section, but you can get the correct PulseDown source with the following pulse: pactl list | Egrep -A2 '^ (\ * \ * \ *)? Source # '| Grep 'name:. *. Monitor $ '| Awk '{print $ NF}' | Here's my GestLaunch section: enabled [true] - myaudiowpeg myaudiowpeg myaudiowav-title = WAV audio @ HOSTNAME @ myaudiowav-mime = Audio / x-wav myaudiowav-launch = pulsesrc device = alsa_output.pci-0000_00_14.2.analog-stereo.monitor! Audio / X-Raw, ...

c++ - Where is defined that int() is 0? -

इस सवाल का पहले से ही एक उत्तर है: 4 उत्तर #include & lt ; iostream & gt; #include & lt; स्ट्रिंग & gt; Int main () {std :: जोड़ी & lt; std :: string, int & gt; रों; Std :: cout & lt; & lt; S.second & lt; & lt; std :: endl; } इस उदाहरण में s.second है 0 हालांकि इसे आरंभ नहीं किया गया है। क्या आप C ++ मानक के लिए एक लिंक प्रदान कर सकते हैं जहां यह निर्धारित किया गया है कि यह 0 क्यों है मुझे पता है क्योंकि s.second को int () द्वारा आरंभ किया गया है, लेकिन कठबोली मानक में रेखा मिलती है जहां कहा गया है कि int () 0 । यह 8.5 प्रारंभकर्ताओं [ Dcl.init] 10) एक ऑब्जेक्ट जिसका प्रारंभकर्ता एक खाली सेट है, अर्थात, (), मूल्य-आरंभीकरण होगा। और 7) टाइप-ऑब्जेक्ट के एक वस्तु को मूल्य-प्रारंभ करने के लिए इसका अर्थ है: एक ???? यदि टी एक (संभावित रूप से सीवी योग्य) वर्ग प्रकार (9) एक उपयोगकर्ता द्वारा प्रदत्त निर्माता (12.1) के साथ है, तो टी के लिए डिफ़ॉल्ट कन्स्ट्रक्टर (और प्रारंभिकता बीमार नहीं है अगर टी में कोई पहु...

java - Akka - restart of supervised actors -

I am using Akka (Java) in my project to provide a retry plan. So I have a supervisor actor, who gets a message when he goes to a supervised actor is one (unconditionally) one to resume on the supervisor for each strategy. The supervised actor has a pre-station hook, which sends the message to itself. @ Override Public Zero PredeWest (Iron reason, option messages) {// send to the supervisor) to try it again Can be pressed once again (Reason). {Log. Terror ("Do not try again because there seems to be a problem with SQL!"); Super. Prerestate (cause, message); } Else {log.warn ("+ + state +" is trying to redo a resource: "+ ((RecordData) message.get (). GetRecord ()); GetSelf (). Get (), getSender (); super. Prerest (cause, message);}} Now I want to preserve the status of the failed actor I understand that if my strategy is 'resumed' then only the state will be protected, but in that case the restart hook will not be applied and the message...