Posts

Showing posts from June, 2015

Nested if-statement in MySQL -

I am creating a process that includes a place ("staed") and I would like to check whether the input tap However, whenever I mark CRASH your code (bottom) tries to add I- statement to start around me, so I have my syntax that get an error saying "DECLARE varStedskodeID INT; " But it is not true which is part of the IF-statement after I am trying to add the part. The syntax of my if-statement in my eyes is inside the code, but only check-in-my-null-only if-statement also crashes with just a simple (right) . Can someone give me this hint that, could it be due to the accident? if the drop process is included; DELIMITER then & lt involved in the process of making $$ in (these Inputstensanan VARCHAR (255), IN input Seststep VARCHAR (255), IN input Kmmandn VARCHAR (255)) BEGIN if (TRUE); & Lt; ------ CRASH DECLARE varStedskodeID INT; DECLARE varKommunenr INT; If (where Stadstep the selected ID (Stadkodaidi) Kodnwn = input Stestep limit 1) = 0 Then Insert...

crash - iOS 8 Custom Keyboard Extension crashing in Adhoc Provisioning Profiles -

I created a custom keyboard extension for iOS 8 by crashes works fine in my development provisioning profile but Adhoc provisioning profile . Help me out to resolve this issue Incident identifier :. BD7BAD52-333F-46EA-9624-24BF44960B9F CrashReporter Key: aa2131813342f267721baf2e7afd06cbd6d29fe8 Hardware model: iPod5,1 Process: customkeyboard [18953] Path: / private / var / mobile / Containers / Bundle / Application / 3FBE2213-2623-4A8A-A804-3B0F21BFA5CA / GifKeyConcept.app/PlugIns/customkeyboard.appex/customkeyboard identifier: com.Rachit.customkeyboard.Extension version: 1 (1.0) code type: ARM (original) parent process: launchd [1] Date / time: 2014-10-17 14 : 27: 51.849 0530 launch time: 2014-10-17 14: 27: 46.785 0530 OS version: iOS 8.0.2 (12A405) report version: 105 exception type: EXC_CRASH (SIGABRT) exception subtypes: LAUNCH_HANG exception message: R0: 0x00000000 R1: 0x00000000 r2: 0x0 0000000 R3: 0x00000000 r4: 0x00000000 R5: 0x00000000 0 backtrace unavailable crashed ...

javascript - Dash JS Player Cross Browser Compatibility -

I am conducting a research for my company streaming service. For adaptive streaming, I found dash.js , which is the perfect solution for transcoding with FFMPEG. How can this group work together in a .mpd format? Now I have such questions: Do you think this is an early stage and should I start using DASH.JS first? Do you think there is a better solution for streaming safely and fast? Player options: So far only one player got me I have no idea how it is compatible with the browser and if I choose it So, I have to face the limit. Is there any other solid solution for this? Do you think I am going in the wrong direction for this? What are my server requirements for running these technologies? I have 500 MB, 64 GB RAM, 24 cores, 2 TB animals, does this work? 1) Many companies already have their media delivery Using dash. I do not think it's too early to start. 2) There are several streaming solutions for dash. Many of these are listed 3) Personally, n...

regex - Find string in a file after a string pattern using shell script -

मेरे पास 4 लाइनों के साथ मेरी आउटपुट फाइल है स्टोअरफ्रंट / स्टोरफ्रंट.वर / स्थान / हेडर- info.jsp: 30: & lt; इनपुट प्रकार = "छिपी" id = "welcomeConfigValue" value = "$ {welcomeConfig}" / & gt; स्टोरफ्रंट / स्टोरफ्रंट। वायु / स्थान / हैडर- info.jsp: 31: & lt; span id = "चयनित-स्थान" वर्ग = "शीर्ष- TXT शीर्ष- Nav-fix" & gt; स्टोरफ़्रंट / स्टोरफ्रंट। वायु / स्थान / हैडर- info.jsp: 33: & lt; span id = "headRestName" & gt; & lt; / span & gt; & lt; स्पैन क्लास = "हेडर-स्पेसिंग" & gt; | & Lt; / span & gt; & lt; span id = "headRest फोन" & gt; & lt; / span & gt; & lt; स्पैन वर्ग = "हेडर-स्पेसिंग" & gt; | & Lt; / span & gt; Storefront / storefront.war / location / header-info.jsp: 35: & lt; a href = "#" class = "लिंक-wht" id = "location-show" & gt; & lt; fmt: संदेश मैं यूनिक्स ...

c# - Use lambda expression in another lambda expression -

I have to add two lambda expressions, in this way the second expression is included in "first" I searched a lot but I No clear answer was found ... What I am trying to do is the following: An expression "expression 1" is passed as a parameter for a method, and its use only . To define which area or property will be the second Lambda work As a drawing, I am trying to do the following: // Simple area Selector: expression & lt; & Lt; T, string & gt; & Gt; Expression1 = obj = & gt; Obj.field; // Try using the Field Selector in the second expression: Expression & lt; Func & lt; T, bool & gt; & Gt; E2 = obj = & gt; [[Result of expression 1]]. Equal ("homewhich"); In other words, I would like to receive: Expression & lt; Funk & lt; T, bool & gt; & Gt; E2 = obj = & gt; Obj.field.Equals ("myValue"); I need to do this because it is not always the similarity () method that wil...

javascript - innerHTML on keypress - cannot get content -

I have a function where the key of the key should be pressed while grabbing the inside HTML of a textile. The function key appears to work with the press, though the following line does not return anything: var currentHTML = document.getElementById ("postcontent"). InnerHTML; What's wrong with the line, because it remains empty, I can not work. I made a JS Bellal. Write something in the box and press Enter, you should give some console messages. You will see that Current HTML remains empty while grabbing the content. / P>

javascript - on pagebeforeshow need to check the checkbox using name and value in jquery mobile -

On the page Hi, jquery mobile needs to check the checkbox using the name and value, is it possible? Can someone please help me? Thank you. I have tried, but I am not able to do it. " $ ('check' [name = checkbox-v-1] [value = "lang-js prettyprint-override" patient.] ') Sahara ("check", true) ; You were too much on your first attempt. When setting the checked property, set it to check instead of the correct: .prop ("checked", "checked") After refreshing the JQM widget: .checkboxradio ("Refresh") So now the whole line is $ ('input: checkbox [name = "checkbox-V-1"] [value = "patient"]). Prop ("check", "checked"). Checkbox drawer ("refresh"); One task here Click on the page 2 button and check that the patient has been examined .

php - Find all local maximum and minimum of an array -

Image
We can set global maximum and global minimum one array in php, but what do we do to find local minimum (minimum) And local maximum (maximum) How to get with php This is remarkably simple for tabular data. Track with coordination values, and calculate frequent differences If the difference changes, then you have a constant point. If you are trying to implement any interpolation rule, then it is more difficult, which will rotate the point between knees, such as cubic spline.

asp.net - Mark Project Items as Embedded Resource by file type -

I have an asp.net MVC project that I can use in some other projects and some file types (cshtml, images, css etc.) . To include some file types, I must always remember to select 'embedded resource' because the build action for each file is a way of doing it automatically? I remember that a snippet of code has been seen anywhere on the web so that you can do this by modifying your project file, but after a lot of searches, I do not think it's possible to find it again. for. I finally tracked the blog where I saw it, you can find it. I need to add a billed action before the csproj file to include embedded resources I had to back up files included in the form of 'embedded content' on 'content' otherwise they were included twice.

c# - Unity Operator `-=' cannot be applied to operands of type `float' and `UnityEngine.Vector3' -

I want to jump in my character in unity, but I get this error: Operator - = 'did not apply To work type type, float 'and' UnityGen ' Vector 3 ' Public class ExampleClass: Monobehavak {Speed ​​of public float = 6.0F; Public float jumpSpeed ​​= 8.0F; Public float gravity = 20.0 f; Private vector 3 Movement direction = Vector 3 Jero; Zero Update () {Character Control Controller = GetComponent & lt; Character controller & gt; (); If (Controller.grated) {moveDirection = New vector 3 (Input Gatexis ("Horizontal"), 0, Input Gatexis ("Vertical"); Move Direction = Transform. Transform direction (move direction); Move direction * = speed; If (input. Getbutton ("jump")) conduction. Y = jumpSpeed; } MoveDirection.y - = gravity * Time.deltaTime; Controller Forward (Moving Direction * Time.deltaTime); }} You can not modify a value for one axis at a time In C # You must reassign the entire vector: moveDirection = new vector 3...

PHP Aura SQL, swithing database inside class -

I'm a little confused here, I'm struggling with ease and a bit more in OP. I am using Aura SQL (PHP) and I have achieved a lot, however, I have become necessary to connect with more than one DB to update some legacy code. class core {public $ pdo; Private stable $ example; Personal Function __Composition () {$ this- & gt; Pdo = New extended pado ('mysql: host = localhost; charset = utf8; dbname = db', 'user', 'pass'); $ This- & gt; Pedo-> Set Attribution (PDO :: MYSQL_ATTR_INIT_COMMAND, 'SET NAMES utf8'); } Public stable work getInstance () {if (! Isset (self: $ example)) {$ object = __CLASS__; Auto :: $ example = new $ object; } Return Self: $ example; }} I have tried to modify values ​​by passing values ​​through the constructor, but, it is being ignored eg: private Function __construct $ Db_name) {if! Below ($ db_name)) {$ this-> Db = $ db_name; } And {$ this- & gt; Db = 'default_db'; } $ This- & gt; ...

python - Not able to retrieve information about db instances from the describe_instance method using boto.rds2 -

आयात boto.rds2 Conn = boto.rds2.connect_to_region ( "हमें पूर्व -1") डीईएफ़ स्थिति ( कॉन): प्रतिक्रिया = conn.describe_db_instances () उदाहरणों = प्रतिक्रियाओं [ 'DescribeDBInstancesResponse'] [ 'DescribeDBInstancesResult'] [ 'DBInstances'] प्रिंट (उदाहरणों [ 'इंजन']) मैं चाहता हूँ निम्न कोड का उपयोग करके आरडीएस उदाहरणों के बारे में जानकारी प्राप्त करने के लिए मैं इसे इंजन = mysql / sqlserver क्यों प्राप्त करने में सक्षम नहीं हूं? मुझे प्रतिक्रिया चर में शब्दकोष की एक सूची मिल रही है मैं उत्पादन को एक शब्दकोश या सूची में संग्रहीत करना चाहता हूं ताकि मैं उन वेरिएबल्स को बाद में आसानी से एक्सेस कर सकूं। निम्न कोड आप के लिए काम करना चाहिए: डीईएफ़ स्थिति ( कॉन): status_map = {} प्रतिक्रिया = conn.describe_db_instances () उदाहरणों = प्रतिक्रिया [ 'DescribeDBInstancesResponse'] [ 'DescribeDBInstancesResult'] [ 'DBInstances'] मामलों में उदाहरण के लिए: status_map [उदाहरण [ 'DBInstanceIdentifier']] = उदाहर...

c++ - Link Error: Unresolved External Symbol when creating object from Referenced file -

Image
Project A and Project B I am referencing Project B from Project A (Project B is a test project for project A) When I try to create an object in Project B from Project I, I get errors by adding the errors I am Example Code: / / sample class H, include # in Project A & lt; String.h & gt; Class CSampleClass {Public: CSampleClass (std :: wstring arg1, int arg2); ~ CSampleClass (); } //Test.h, Project B Class CEEST {public: in CTIEST (empty); ~ CTest (zero); Bull Run (zero); } //Test.cpp, Project B # included in "SampleClass.h" CTest :: CTest (zero) {} CTest :: ~ CTest (zero) {} bool CTest :: run (zero) {CSampleClass sample; & Lt; --------- This line error occurs} //B.cpp, #include in "Project" in "test.h" int main (int argc, wchar_t * argv []) {CTT test; test run(); } Errors given during build: error 3 error LNK1120: 2 unassigned external C: \ users \ Me \ project \ debug \ ProjectB.exe 1 1 ProjectB error 1 error LNK2019: Unsolved ex...

javascript - How to show form fields on keyup -

I am working on it for weeks and I can not get hang on it. I'm trying to show hidden fields only when the previous fields are entered Here's my example code: HTML & lt; Form & gt; & Lt; Div id = "group1" & gt; & Lt; Label & gt; Field 1: & lt; / Labels & gt; & Lt; Input type = "text" class = "field 1" /> & Lt; Br / & gt; & Lt; Label & gt; Field 2: & lt; / Labels & gt; & Lt; Input type = "text" class = "field2" /> & Lt; Br / & gt; & Lt; Label & gt; Field 3: & lt; / Labels & gt; & Lt; Input type = "text" class = "field3" /> & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Div id = "group2" & gt; & Lt; Label & gt; Field 4: & lt; / Labels & gt; & Lt; Input type = "text" class = "field 4" /> & Lt; Br / & gt; & Lt; Label & g...

Android Force quit CountDownTimer/Toast -

Then I have "hack" to keep the toast period for a while: // toast ... zanimivosti = new toast (getApplicationContext ()); Zanimivosti.setGravity (Gravity. Cntte ARTO, 0, 0); Zanimivosti.setView (layout); New Countdown Timer (4000, 1000) {Tick on Public Zero (Long Mills Unselected) {zanimivosti.show (); } Public void onFinish () {zanimivosti.show (); } }.Start(); Issue: When a user goes to another intention, it may be that the toaster of the toaster is again in new intentions. CountDownTimer.cancel () in my case; Will not work Optional: Every time I show a news to the app to lunch to the user in my toast. I will also consider that a better solution is the command of a toast that a user disappears when they click on it or when a new intention is also called, it disappears. Should I Use the Popup Dialog? Can I disappear when the user clicks on it? Finally I did this: toast zanimovosti; Int Cas = 4000; Int Peridro = 1000; Boolean boolean_toast = true; Count t...

ios - Strange behaviour with core data entity -

मुझे कोड का यह भाग है func tableView (tableview: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {आईडीआईडी ​​दें: NSManagedObjectID = self.frc! .objectAtIndexPath (indexPath) .objectID! Entity = self.frc? .managedObjectContext.existingObjectWithID (itemID, त्रुटि: शून्य) इकाई के रूप में अगर entity.completed {entity.completed = false} else {entity.completed = true} println (entity.completed)} जब तालिका तालिका दिखाई देती है तो शीर्ष एनीमेशन पर किसी भी विचार को स्क्रॉल करता है? "post-text" itemprop = "text"> आप संभवतः अपने प्रबंधित ऑब्जेक्ट सरणी को किसी तरह (दिखाए नहीं गए) को अपडेट कर रहे हैं, शायद कुछ प्रतिनिधि विधि के माध्यम से। सबसे अधिक संभावना है, आप tableView.reloadData () को प्रदर्शित किए गए डेटा को अपडेट करने के लिए कह रहे हैं। वह स्वतः संपूर्ण तालिका दृश्य को पुनः लोड करता है और शीर्ष पर स्क्रॉल करेगी इसके बजाय, बस tableView.reloadRowsAtIndexPaths (पंक्तिएनिमेशन:) दस्तावेज के साथ प्रश्न में सेल को अपडेट करें। हो सकता है कि ...

javascript - Jquery functions and Ajax Calls not working when httpOnlyCookies="true" requireSSL="true" used? -

I was using code in web.config. But these settings are not working, my Ajax calls and Jquery functions are not working. What balance does this website require on balance balance? Any options? I also tried the code. & lt; Authentication mode = "form" & gt; & Lt; Forms name = ". ASPXAUTH" security = "all" timeout = "240" login URL = "login.aspx" sliding aspiration = "true" required SSL = "true" cookies = "use cookies" /> & Lt; / Authentication & gt; & Lt; HttpCookies httpOnlyCookies = "true" requires SSL = "true" /> from: supports the httpCookies element To help reduce the risk of HTTP cross-site scripting using HTTP only cookies, cookies (HTTP Only cookies with attribute) were introduced in Internet Explorer 6 HttpOnly attributes cookies to client-side scripts Preventing access. Any information on any HTTP cookie is unlikely to appear on a h...

io - available and read: can we actually be nonblocking while using blocking Java I/O? -

Based on this, I want to ask the following. Hold blocked I / O and I have a piece of code like this: byte [] data = new byte [10]; Some inputstream.red (data) This code is going to block the snippet in the read call, unless there are some bytes to read it. I am aware that read can actually read fewer bytes and the number of bytes read is being returned by the method read . My question is this. Let's say I have: byte [] data = new byte [10]; If (some InputStream.available ()> = 10) {someInputStream.read (data); // ***} What is the guarantee of not blocking the line ***? Again, I know that reading this can read less than 10 bytes. This is not guaranteed to block InputStream , looking at the available () method: gives an estimate for these input streams to prevent these input streams from being blocked by the next call (Or left) of the number of bytes can be read from the next orientation can be the same thread or the second thread This single ...

hadoop - Submitting oozie jobs using keytab -

I am using a kitab file to bypass Kerberos to run a shell script via oozie The script also contains the hbase shell command I hbase nee to a kinit before running the shell command. It works fine for me. So, in a case where I have to start a job using a coordinator and use a charity (service account) in many shell scripts workflow, would there be a collision in Ozzy? Since I launch a job using the Ozzy Coordinator, but keep the KTab files in the service account workflow. Thanks, Keytab files need to be present on all the headop data nodes is. They need your shell scripts while running an OOzi job / map task to execute kinit for service accounts. While deploying the keytab files in the data nodes of the shared cluster, it is best to set the file permission correctly so that it will not be used near other HOP jobs.

How to select and highlight a word from a paragraph on a mouse even in jquery or javascript? -

I have searched everywhere for this problem but I still can not get a good example, I choose a word Do it and highlight it as I have clicked on it, I know that you can highlight the entire paragraph but it is not what you are seeing, if someone knows or how it is done If there is any idea about this, please tell me. > Thanks. I have done a quick Google search (as I thought that someone might already have it Is covered) and this JSWoodloads I am modifying a bit which does a lot of you (not saying this is the best way): $ ('div'). Replace (/ \ b (\ w +) \ b / g, " "; $ 1 & lt; / span & gt; "));}); $ ('Div span'). Click (function () {$ (this) .css ('background-color', '# ffff66');});

matlab - Non Commutative Multiplication -

I am trying to implement axioms for geometrical products of two vectors in the n-dimensioned Euclidean vector space. i.e. allowing the user to input the number of dimensions, such as 3 make E1, E2, E3 as the symbol the user Let the two vectors input input as the function of N shape like vectors such as A = A1A1 + A2A2 + A3A3; B = b1e1 + b2e2 + b3e3 Where a1, a2 ... and b1, b2 ... are scalars expand two vectors a and b (A1A1 + A2A2 + A3A3) (B1E1 + B2E2 + B3E3) All this works fine for me when Not even till this point. From this point, I need to run the expansion of non-computious, i.e. e2e1 = / = e1e2 Is there any way I can do that? After this, if the reader is kind, then one way to implement physics algebra is E1a1 = E2A2 = nan = 1 and e2e1 = -e1e2 -> EEZ = -IG Thank you very much! What do you want to "multiply" which calculates all pairs (T1, T2) , Where T1 is a word from the first expression, and T2 is a word from the second term. functio...

Showing angles around plot in matlab / octave -

Image
I can create a plot with pol2cart, but how can I show angles at the end of the lines? See the code below: Hold down; = 0:20 for angle: (360-20) [x1, y1] = poll 2 cart (angle / 180 * p, [0 2]); Plot (x1, y1, 'r') rho = 0: 0.1: 2 end to [x1, y1] = pol2cart (0: 0.01: 2 * pi, rho); Plot (x1, y1, 'b') end axis is equal to I am trying to show the scale of the angle to see the image below. Please note, to show all the numbered angles only to show what I am trying to do, I did not attract the first couple PS: I am using Octave 3.8.1 Which tries to use the same language syntax, Matlab you can do something like step = 20; R = 2.2; IDX = 0: Step: 360-step text (r * cos (pi * idx / 180), r * sin (pi * idx / 180), num2str (idx), ... 'horizontal alignment', 'center' To optimize, axis (1.05 * [- - - RR - '' color '', [1.55]) RR]) Include Ax like (It works for MATLAB, I do not know whether the syntax is the same.)

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

I have a strange problem with using the QtCore.pyqtSlot decorator in front of the function decorated with a different decorator. The problem below shows this problem, it immediately provides a low QT program with a single button. When pressing a button, the following happens: (1) The signal 'signal_A' and 'signal_B' sequence are connected to method_A and method_B ​​respectively. (2) signal_A and signal_B signals are emitted. (3) The required behavior is that the method_A and method_B ​​are executed. However, it turns out that both signal_A and signal_B trigger method_A, or method_B ​​(oddly, this is nondeterministic, and different for each part of the program!). It appears to be a bug. This issue is present when PyQt4 binding is used in Qt. It is not present when using PySide (use the '-pyside' parameter to verify) I have seen both problems in Python 2 and 3, and both in Windows and Linux This issue is related to the insertion of a decorator be...

javascript - how to pass parameter in action tag? -

I want to pass the res variable as a form action. Is it possible with HTML? & lt; Script & gt; Var name = $ ("#name"). Val (); Var file = $ ("# file"). Val (); Var res = localhost: 8080 + "/ test / reg? And name =" + name + "& amp; file =" + file; & Lt; / Script & gt; & Lt; Form action = "res" id = "form" method = "post" enctype = "multipart / form-data" & gt; Name: & lt; Input type = "text" name = "name" id = "name" /> Upload: & lt; Input type = "file" name = "file" id = "file" /> & Lt; / Form & gt; . Document.forms ["form"] submission (); Set the action property before submitting it: Var form = document.forms ["form"]; Form.action = res; Form.submit (); If the user can manually submit this form, then you can use the onsubmit event: form .onsubmit = fun...

Only render html and css for specific stylesheet -

I am trying to create a web based brand guide for a brand. I have a template that runs bootstrap for the brand guide. The brand also uses Bootstrap as its main style guide but they have highly optimized it. I am trying to not override the styles that are in one way ... without using an iframe and creating two separate sites. Is there a way to say this, this & lt; Div class = "brandstyle" & gt; Usage x.css & lt; Div & gt; P> Ex: & lt; Div class = "adminstyle" & gt; & Lt; Header & gt; Global stylesheet provides y.css only & lt; / Header & gt; & Lt; Div class = "brandstyle" & gt; To target my client style sheets, content x.css & lt; / Div & gt; & Lt; / Div & gt;

c# - Unable to cast the type 'DynamicClass1' to type <T>. LINQ to Entities only supports casting EDM primitive or enumeration types -

I tried for hours to find a solution for my issue but no posts help me. I am trying to obtain a record from the database using the library (unit framework 6.0 / MVC 5.0) with the library. System.Linq.Dynamic; using the full code below (var entities = new vskdbEntities ()) {entity.DataFields = "id, stack_trace"; _list = entities.vsk_error_log .OrderBy (entity.Order) .Select ("New (" + entity.DataFields + ")") .Skip (entity.PageSize * entity.PageNumber) .ake (entity.PageSize) .Cast & LT ; Vsk_error_log & gt; () to create a list (); } But this result in the error in the work time Type 'System.NotSupportedException' an exception occurred in EntityFramework.SqlServer.dll but was not handled in User code Additional information: Unable to type 'DynamicClass1' to type 'VideoKit.framework.vsk_error_log', the body supports only EDM primitive or counting type casting from LINQ. I know that the issue is being r...

c++ - How to make exception code DRY? -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर मैं अपनी डिबग करने की कोशिश कर रहा हूँ अपवाद कैच-रेथ्रोज का उपयोग करके आवेदन मेरा अपवाद हैंडलिंग कोड मैं डिबगिंग कर रहा हूँ कुछ ब्लॉकों से अधिक लंबा है, और यह सब कॉपी-पेस्ट किया गया है। क्या नीचे कोड को बार-बार व्यक्त करने का कोई बेहतर तरीका है? मुझे संदेह है कि मैक्रो यहां जाने का तरीका है, लेकिन मैं आमतौर पर प्लेग की तरह मैक्रोज़ से बचता हूं। try {// code here ...} कैच (std :: exception & amp; e) { ErrorMsgLog :: लॉग ("त्रुटि", "std अपवाद" __func__ "" __FILE__ "" __LINE__, e.what ()) में पकड़ा गया; फेंक ई; } पकड़ (अपवाद & amp; ए) {ErrorMsgLog :: लॉग ("त्रुटि", "बिल्डर अपवाद पकड़ा गया" __func__ "" __FILE__ "" __LINE__, e.Message); फेंक ई; } पकड़ (...) {ErrorMsgLog :: लॉग ("त्रुटि", "अज्ञात अपवाद पकड़ा गया" __func__ "" __FILE__ "" __LINE__); Std :: runtime_error फेंक ("अज्ञात अपवाद" __func...

undefined columns selected error message in R -

I am very new to R and I am using a script written by someone else. Below is a part of the script where I am getting an error message: error [. Data.frame (this.df.merged, c ("MMWR_week", "syndrome visits",: undefined column selected I saw other representatives for similar questions And actually I could not solve it. Any help would be greatly appreciated. if (% other names in% colnames (this.df.merged)) {this .df.merge $ $ other & lt; -0} this.df.merged.by_week & lt; -gregate (this.df.merged [c ("syndrome visits", "e", "other", "0- 4 "," 25-49 "," 5-24 "," 50-64 "," more than 64 "," f "," m "," u "," edit "," disc ")], = By listing (this DD.mA RM $ mmrr_wec), yoga) colnames (this.df.merged.by_week) & lt; -c "mmwr_webk", "syndrome visits", "e", "other", "0-4", ...

jquery - How to customize scroll bar in Internet Explorer 10 -

How do I have a suggestion for how to complete it? Third party libraries / plugins are out of the equation. I was thinking about hacking my way through using jquery, what you guys think. Regards, Ryan

matlab - Placing a character randomly in a bio-seq -

Assume that we have a bio_sequence: VYDDGYHNGN and we are in place of 'random numbers'. In random positions along the sequence, like this: .. Vikwaykdeedi ... Jiaik.ac.ankjian .. Is there a function or optimal solution for this function in MATLAB? According to your observations, consider the following that: dots the number of Total is a random integer is divided into the nearest integer equal to 0 and close to 0.2 times the sequence length. Dot spaces are also distributed randomly and evenly. code: % // data seq = 'VYDDGYHNGN'; % // let's do m = numel (seq); % // sequence length = rand ([0 round (.2 * m)]); % / Dot number of dots p = m + n; Result = repeat ('.', 1, p); % // Start the result of all dots results (sort (random command (p, m))) = cec; % // place sequence evenly in random posts

vba - Excel: Object Text Box can't do Carriage Returns in Protected vs. Unprotected Sheet states (w/ Text Unlocked)...why? -

Image
First and foremost, due to my hard work, I answered a ton about the Extix Text Box, but there is really nothing about the object text box. For my project, I can not use any ActiveX. OK, so when a sheet is unsafe, one object text box (insert> images) is very much the way I want it works: most importantly, when it happens I can hit the Enter key and get a carriage return. Then, I go into the size properties, and uncheck the lock text, and I protect the sheet. Once the sheet is safe, even then, the ability to return the car (type the type, and go down one line) goes away. Shift + Enter and also not Alt + Enter. Is this functionality not available? Are there any solutions? Why does Excel hate me? Here are some of my thoughts: Unsecured sheets, when not clicked / activated (this did not understand the syntax in VBA for this.) "If there is a difference. .. " Insert Word Doc Object (do not like it because one-click formula bar enters editing, and I can not find the fon...

c++ - File I/O in Functions? -

How am I trying to understand a file I / O function in C ++, but I do not To work properly, I am not currently at the present level to use vectors. If someone can point me in the right direction, I would be grateful. Here's the prototype: string received_infilename (zero); Function call: inputFileName = get_inFileName (); Function: string received_infilename (zero) {string inFile; Cout & lt; & Lt; "Enter the name of the input file:"; Cin & gt; & Gt; in file; Cout & lt; & Lt; Endl; Return (infile); } OK, I can think of working for your case most Closest string get_inFileName (ifstream and inFileName) {std :: string inputFileName; Cout & lt; & Lt; "Enter the name of the input file:"; CIN & gt; & Gt; InputFileName; InFileName.open (inputFileName.c_str ()); Return inputFileName; } Not claiming that this is a good implementation!

javascript - How can I do the translation? to do this? -

I am creating two variables called variable variable and variable 2 I have an English word, cat I store in variable 1, and the Google Translation Service translates "cat" into the French word "chat", and stores it in variable 2 You have to use the Google translation API, and they charge.

character encoding - c# lotus dbase ODBC charset -

I am trying to read a lotus dbase file in exporting order data. I am using this code: Here the code is private zero ODBC (login) {DataTable YourResultSet = New DataTable (); String strAccessConn = @ "driver = {Microsoft dBase driver (* .dbf)}; SourceType = DBF; SourceDB = C: \ shares \ lotus, exclusive = no; zero = not remove = no; BACKGROUNDFETCH = no; charset = 928" ; OdbcConnection Connection = New OdbcConnection (strAccessConn); // Open the connection, and if you open successfully, you can try asking it for connection. Open (); If (connection.State == ConnectionState.Open) {string mySQL = @ "Select from C: \ shares \ lotus \ techtime.DBF"; // DBF Table Name Odbc CommandsMyquery = New ODBC Commands (MySQL, Connection); OdbcDataAdapter DA = New OdbcDataAdapter (MyQuery); DA.Fill (YourResultSet); Connection.Close (); } String mystring = YourResultSet.Rows [0] [4]. Ostring (); } But the Greek divisor looks like this "╠┴═╧╙ ═╔╩╧╦╧╒─╟╙" I do not kn...

How to retrieve content from specific HTML page through Java -

I am working in an application to parse html content for any website, but today, Found exceptions for non-affiliation. I am trying to get content from this url: and I always get the following error: java.io.IOException: The server returned the HTTP response code: 403. I am using the JSOUP library. I tried other 2 options without Jasup option, but it did not succeed. This page can be accessed from a browser but not from Java. Can you help with some tips? Thanks Document Doctor; String url = "http://tomfishburne.com/2014/09/socialmedia.html"; Try {feedback feedback = jsoup.connect (url) .ignoreContentType (right) .userAgent ("Mozilla / 5.0 (Windows NT 6.1, Win64; 64; LV / 2500) 12000). FollowRedirects (true) .execute (); Doc = response.parse (); } Hold (Exception E) {Try {doc = Jsoup.connect (url) .userAgent ("Mozilla / 5.0 (Windows NT 6.1; WOW64; RV: 25.0) Lizard / 20,100,101 Firefox / 25.0") .Get () ; } Hold (IOException e1) {try url2 = new URL (url); ...

php - Laravel - Can't install User Agent package -

After failing to locate the mobile to work many times, I thought it would be easy: I followed simple steps and it says that the class can not be found. What do I remember? OK, so I started with scratch and used dump-autoload on both musicians, Worker before configuring related code in config / apfp and it works.

SED: Move multiple lines to the end of a text file -

मैं कई पंक्तियों को फ़ाइल के अंत में । उदाहरण के लिए: एबीसीडीईएफ जीआईआईजेकएल एमएनओपीक्यूआर एसयूटीवीएक्स वाईझेड 1234 बनना चाहिए: STUVWX YZ1234 एबीसीडीईएफ जीआईजेकेएल एमएनओपीक्यूआर सवाल एकाधिक कोडांतरित करने के लिए sed का उपयोग करने के लिए एक विधि पूछता है लाइनों । हालांकि, जैसा कि वर्तमान में संपादित किया गया प्रश्न, कई पंक्तियों को नहीं दिखाता है, मैं मानूंगा कि वे वास्तव में अलग पंक्तियां हैं। पहले तीन पंक्तियों को स्थानांतरित करने के लिए sed का उपयोग करने के लिए अंत तक: $ बिल्ली फ़ाइल एबीसीडीईएफ जीआईजेकएल एमएनओपीक्यूआरयूटीवीएक्स वाईएस 12234 $ एसएडी '1,3 {एच; डी}; $ {P; x; s / ^ \ n //} 'फ़ाइल STUVWX YZ1234 एबीसीडीईएफ जीआईजेकेएल एमएनओपीक्यूआर स्पष्टीकरण: 1,3 {एच; डी} 1,3 इन आदेशों को केवल 1 से 3 पंक्तियों पर ही संचालन पर रोक देता है। एच वर्तमान पंक्ति को पकड़ बफर में सहेजने के लिए sed कहता है d बताता है sed इस समय वर्तमान पंक्ति को प्रिंट करने के लिए नहीं। $ {p; x; S / ^ \ n //} $ इस आदेश को अंतिम पंक्ति में प्रतिबं...

java - How to split a String into integers? -

I would like to split a string, and I want to store every digit of the string in an integer. Here is my test code: public class test {public static zero main (string [] args) {int firstGuessDigit, secondGuessDigit, thirdGuessDigit, fourthGuessDigit; String estimate = "1234"; String [] parts = estimate. Split ("\"); FirstGuessDigit = integer Parasont (part [0]); Second cosgit = integer Parasont (part [1]); Third Guszdigit = integer.center (part [2]); Fourthoguesdegit = integer.print (part [3]); }} When I run the program, I get an error: "Exception in thread" main "java.lang.ArrayIndexOutOfBoundsException: 1 test.main (test.java11) You can use string # toCharArray instead: four [] parts = estimate: kocharayre (); first gusadigit = integer paracetant (character string (parts [0])); secondguidedegit = integer. Parasent (character part (part [1]) ; Third Guse Diagram = Flood Nankkprsent (characters. Tusting (part [2])); Chauthagusdig...

javascript - Require in browserify doesn't work variable name -

I'm trying to type with the browser using the variable passed in the function player: Ajax: 'team-overview', path: {name: 'overview', path: 'player episode', URL: 'PlayersOverview' '}}; Var Backbenview = Required (playerops.rout.path); / / Error: Unwanted error: Modules 'Players can not get overview' var backboneview = ('playerAnimals'); // File without any problem is required. Why am I confused as to why? How can not find the module when there are both strings? Browser must be capable of statically analyzing all of the statements at construction time , So it can know what needs to be included in the bundle, it is necessary that requirement can be used only with a string in the source code. Instead of passing the necessary module name, pass only the module: var player option = {name: 'players', Ajax : 'Team-overview', Route: {name: 'overview', module: required ('player overview...

c++ - Why can't you use constexpr on variables declared but not defined in a function? -

I was reading through the C ++ Primer 5th Edition, and was confused about why the variable It is possible to use a constexpr pointer defined outside the function but not declared outside the function. Is there a time when you define the function outside? It seems that you declare the function outside while using it again, but I'm not sure how many times the variable will be defined outside the function (unless the main is counted as a function in this case) . Edit : Emphasis my We will cover the reasons ... the defined variables inside the function are not stored at a certain address Are there. Therefore, we can not use such a variable using a constexp point. On the other hand, the address of the defined object outside any given task is continuous expression and it can be used to start a constexpr indicator is.

ios - Should I remove observer in applicationWillTerminate? -

I added this code in your AppDelegate.h file: - (bool) application : (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions {[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector (saveDataAndSettings) name: UIApplicationDidEnterBackgroundNotification object: nil]; } I usually write it: - (void) dealloc {[[NSNotificationCenter defaultCenter] removeObserver: self]; } If I have set the UIViewController classes to be the supervisor (non-ARC). While I'm thinking, if I do AppDelegate, I still insert a line: [[NSNotificationCenter defaultCenter] Htayenobsrhwar: self]; ApplicationWillTerminate in ? Method Because applications will be eliminated, Thanks in advance for it means that it dealloc or either more cleaning There is no need to, or app: . The application process has to go away. The closure / files, and should be cleanly little thing to clean up similar to other savings such things, but ther...

Escaping multiline wordpress shortcodes -

बहुभाषी वर्डप्रेस शोर्ट से कैसे बचें? [accordion_item title = "item 2"] मद सामग्री [/ accordion_item] हम डबल ब्रैकेट्स का उपयोग कर सकते हैं, लेकिन "/" साइन इन करें ब्रोक सब कुछ इस सामग्री को नष्ट करने के लिए WP लोगों को बांट नहीं किया जा सकता ( [[accordion_item title = "item 3"]] आइटम सामग्री [[accordion_item]] काम करता है, लेकिन नीचे दिए गए कोड ठीक से नहीं बचता [[accordion_item title = "item 3"]] आइटम सामग्री [[accordion_item]] HTML कोड के साथ मैन्युअल रूप से ब्रैकेट्स को बदलना नहीं चाहते हैं। (और डब्ल्यूपी स्वचालित रूप से यूजर स्विच एडिटर मोड को विज़ुअले के बाद वापस मिल जाता है) धन्यवाद अग्रिम। से बचने के साथ shortcodes.php में फंक्शन get_shortcode_regex () फंक्शन बनाता है Code> [[new_something my_attr = "test"] और सामग्री है! [Vc_tabs] [/ vc_tabs] [/ new_something]] preg_match_all के बाद आपको पहले कैप्चर समूह खाली नहीं होगा और यह "[" (ताकि आप जान सकते हैं कि यह शोर्टकोड रेंडरिंग के लिए ...

java - Controlling usb device from a website. -

O people, I have a question that has been asked millions of times, but I have a bit of turn that I can not find can . I am creating a POS system which is web based. I should be able to open cash drawer; I know I can not control the USB device from a web site, but what I'm thinking is what works, if I use Microsoft Visual Basic and the web built into the program I can use the browser, how can I use an event listener who will wait for a button that will say that the opening of a cash drawer The time is taking action for the button program in such a way, the program that the customer installed on the computer triggers the USB port which will open the cash drawer?

What is this operator after ServletContext in Grails? -

I'm a complete newbie for Groovy / Gray and Java I have some code in the Bootstrap class Grails I'm following the example and stumbled on a piece of code like this. class BootStrap {def init = {servletContext -> } Def = =}} I understand how the sublet contact is reading from other places, but I did not know what kind of operator like dereference -> servletcontonte ? Any help appreciated In the Java code, def like Var and type in object ; So that variable init to {servletContext -> } (by placing it on a line for clarity). This is one stop, and you can call them with other expressions because they block one of the 3 forms of block code {} block, Arg sign. If no algos are defined (such as to delete down to shut down) then in fact a code whose name is is it is in the loop of traditional i As is - you can use a wide name, but if there is no problem, then this is equally good in any form, it is automatically generated by the compiler, and...

read numbers from text file python -

I am trying to read a text file and return the contents of the text file. There is a matrix in the text file when I run my code with the file, it prints the first line, my code looks correct and I have searched online and I think of finding this problem. The code is: DIF (main): matrix = "matrix 1w" print (remetrics (matrix) def readMatrix (matrix): matrix file = open (matrix , "R") line = matrixFile.readline () line! = "": Return line line = matrixFile.readline () matrixFile.close () main () You mean while the line! = "P> while line! =" ": Print line

Javascript Regex returning 0 -

Image
जैसा कि आप देख सकते हैं, ई-मेल वैध होना चाहिए। चाहे जो भी मैं दर्ज करता हूं, z नल देता है क्या मैं गलत सिंटैक्स का उपयोग कर रहा हूं, पूरी तरह से? मैं इस regex रिटर्न को सही कैसे कर सकता हूं? धन्यवाद! फ़ंक्शन ईमेल सत्यापन () {var x = document.forms ["creation"] ["emailCreation"]। मूल्य; Var y = x.length; Var z = x.match ("/ ^ (([^ & lt; & gt; () [\] \\।,;: \ S @ \"] + (\। [^ & Lt; & gt; () [\] \\,;: \ s @ \ "] +) *) | (\" + \ ")) @ ((\ [[0-9] {1,3} \ [0-9] {1।।। , 3} \ [0-9] {1,3} \ [0-9] {1,3} \]) |।। (। ([a-zA-जेड -0-9] \ \) + [a-zA-Z] {2,})) $ / "); var_dump (z); var_dump (x); यदि आप वास्तव में मैच पाने की इच्छा नहीं रखते हैं और यह जांचना चाहते हैं कि ईमेल नियमित रूप से RegExp ऑब्जेक्ट की पद्धति का उपयोग करते हुए और आप जिस स्ट्रिंग के विरुद्ध परीक्षण करना चाहते हैं, उसे पारित करने में फिट बैठता है। var emailReg = / ^ (([^ & lt; & gt; () [\ ।] \\,;: \ s @ \ "] (। \ [^ & lt; &...

c# - Rig up a Command -

मेरे पास बटन पर एक कमांड पैरामीटर सेट किया गया है: & lt; hw: एक्शनबटन सामग्री = "एमसी" कमांड = "{बाध्यकारी एक्शन कॉमांड}" कमांडपैमेटर = "{x: स्टेटिक एचडब्ल्यू: एक्शन। मेमोरी क्लेयर}" ग्रिड। रॉ = "2" ग्रिड। कॉलम = "0" / & gt; आदेश वर्ग में है: सार्वजनिक वर्ग ActionCommand: ICommand {निजी पढ़ने के लिए कैलक्यूलेटर ViewModel _viewModel; सार्वजनिक एक्शन कॉमांड (कैलक्यूलेटर व्यू मॉडेल देखेंमॉडेल) {_viewModel = viewModel; } सार्वजनिक बूल CanExecute (वस्तु पैरामीटर) {वापसी _viewModel! = नल & amp; amp; पैरामीटर क्रिया है; } सार्वजनिक शून्य निष्पादित करें (ऑब्जेक्ट पैरामीटर) {_viewModel.ProcessAction ((एक्शन) पैरामीटर); } सार्वजनिक कार्यक्रम इवेंटहान्डलर CanExecuteChanged; } अब मुझे पता है कि कमांडम्स को ViewModel में होना चाहिए, तो मैं इस आदेश को ViewModel में कैसे जोड़ूँ? क्या मुझे इसे एक्शन कॉमेंट नामक व्यू मॉडेल में एक उदाहरण है, जो काम करने के लिए प्रतीत नहीं होता, या मुझे क्या करना चाहिए? यहां समान के लिए ...

How to get text file content to table using awk,sed,grep or cut in linux terminal prompt -

cat raw.txt नाम देश आईपी लागत हमें सैम 10.10.10.10 $ 250 जैक भारत 10.10.10.12 $ 190 खुशी ऑस्ट्रेलिया 10.10 $ 10.13 $ 230 क्रिस कांडा 10.10.10.15 $ 190 जैक्सन अफ्रीका 10.10.10.20 $ 230 मुझे आउटपुट की तरह एक टेबल सूची चार कॉलम और चार पंक्ति, अर्थात् नाम देश आईपी लागत कृपया मेरी मदद कर सकते हैं। यहाँ एक पुराना स्कूल का उत्तर है : -) टीबीएल (1) सैड / * के लिए एक टैब में कई जगहों को बदलने के लिए एएससीआईआई तालिका # का उपयोग करने के लिए #! / Bin / sh # उपयोग करें tbl | nroff / \ T / g '& lt; Raw.txt | | Awk 'BEGIN {print} "टीएस" # टेबल प्रिंट की शुरुआत "allbox;" # ऑलबॉक्स प्रारूप प्रिंट "सी एस एस" # टेबल नाम स्वरूप - केंद्रित और फैले हुए 4 कॉलम "एलबी पाउंड लेब एलबी" # बोल्ड कॉलम हैडर प्रिंट "एल एल एल एल।" # टेबल के साथ 4 उचित कॉलम छोड़े गए "।" का अर्थ अगले लाइन प्रिंट के लिए दोहराना "मेरा टेबल" # टेबल नाम} {प्रिंट} # 4 मानों की प्रत्येक पंक्ति का प्रिंट करें {प्रिंट ".TE" तालिका का ...

asp.net mvc 3 - C# Convert.ToString("D2", Dropdownlist value) -

I'm trying to convert a value from a dropdown list in a view in the MVC format to the string I dropdown list "01" is included in the value, but when I try to convert it to a string in the form of "1" it receives the value. I want to see how the dropdown is showing in the list. I.e "01" Please find your code below. HELP appreciated. name property collection archive = new name value compilation (); String Starthur = Convert. Toaster (collection ["quoststor"]); I know that I can change it later from 01 to the code below, but I want it to change itself in the above code. Thanks string s = startHour.ToString ("D2") Modify your code in this form, string startHour = string.Format (" {0: D2} ", collection [" combostarthour "]? String.Empty ; Whoever handles the null will handle.

c++ - Unallocatin an array to pointers of structers - Debug Assertion Failed -

I am trying to eliminate the method allocated my dynamic dynamically to the pointers of structeres. I want to rearrange each array area which is an indicator in different composition, remove it, and then delete [] the entire array. In the second iteration, I have a debug assignment. I have the code here: Zero removal (SimpleStruct ** _ Simple Array Patterns, Int_isize) {if (0! = _simpleArrayPtrs) {for (int i = 0; i & lt; _iSize; ++ i) {If (0! = _simpleArrayPtrs [i]) {delete_simpleArrayPtrs [i]; _simpleArrayPtrs [i] = 0; }} Delete [] _simpleArrayPtrs; _simpleArrayPtrs = 0; Cout & lt; & Lt; "Deletion: Memory Delocated" & lt; & Lt; Endl; } And {cout & lt; & Lt; "[ERR] delete: invalid indicator" & lt; & Lt; Endl; }} SimpleStruct ** foo (int _iSize) {// local size variables int iSize = _iSize; SimpleStruct ** SimpleAreferences = 0; SimpleStruct * simpleArray = 0; // If allocation is succeded (0! = ISize) {// exception is not an ...

android - How do I use MapStateListener? -

Google Maps API V2 has been used in my Android application. I would like to handle touch, drag and unpick on the map using this solution: But I can not get the reference to create a Mapstate Lastener in the context of the TouchBlabfragment object. I'm new to Android so please help me solve this problem or another solution to solve my problem. Thank you, This is my layout: & lt; Fragment android: id = "@ + id / map" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: name = "megacom. Taxigo.driver.android.utils.mapstatelistener.TouchableMapFragment" /> Touch worthy frameframe should be very simple to use Suppose you have a simple layout file called map.xml for example: Now in your activity you need to do the following; Public Waste Create (Reference Reference) {setContentView (R.layout.map); TouchableMefragment touchmapfragment = (TouchAblmrragragment) Fregagram Manage...

How to print regex match results in python 3? -

I was in IDLE, and decided to use regex to sort a string. But when I was told about the online tutorial, it would be printed: 0x00000000031D7E68 object and Full program: import reg = re.compile ("[az] +8?") Str = "ccc8" print (reg. Match (ARR)) Result: at 0x00000000031D7ED0 & lt; _sre.SRE_Match object & gt; Can anyone tell me how to actually print the results? You .group () to match After the function is required to be included so that it prints the match string, otherwise it will only show whether a match was played or not. To print the characters captured by the capturing groups, you can see the .group () function. > & gt; & Gt; Must have to pass related group index in & gt. ; Import re & gt; & Gt; & Gt; Reg = re.compile ("[a-z] +8?")) & Gt; & Gt; & Gt; Str = "ccc8" & gt; & Gt; & Gt; Print (reg.match (str) .group ()) ccc8 With Regx capturing group. ...

validation - How to validate dita document -

I would like to validate different DITA documents (topics, maps, etc.) against DITA, but I am a bit confused with DITA XSD files In XSD package, many XSD files are in different directories, many files define the same element, group (for example, defining the group domain-AAT as attribute). So I think there is a "main" xsd file (subset of all xsd files) is it true for each type of DITA document and if yes, what are the main files? If this is not true, can you please tell me if there are many definitions of the same type, how does verification of a DITA document work? For the main XSD files for each topic type, & lt; Subject Type Name & gt; .xsd is given, for example topic.xsd , concept .xsd , or map.xsd .

PHP file downloads bytes missing -

After I am trying to download a .msi file which is the actual size of 5.77 MB Am When I downloaded the downloaded script, the file will lose some bytes and will become 4.88 MB Code :. $ file = 'apps / file.msi'; Header ('content-description: file transfer'); Header ('content-type: application / octet-stream'); Header ('content-dispute: attachment; filename =' .busname ($ file)); Header ('content-transfer-encoding: binary'); Header ('end: 5'); Header ('Cash-Control: Required-Modified, Post Check = 0, Pre-Check = 0'); Header ('pragma: public'); Header ('content-length:'. File size ($ file)); Ob_clean (); Flush (); Readfile ($ file); I also tried anchor tag and with the same happend. I also changed the extension from .txt to .msi and the bytes were also deleted from the downloaded file. I just can not understand it outside this $ try file = 'apps / file.msi'; Header ('content-...

ruby - self vs class name for class methods in inheritance -

इस कोड में: वर्ग dog def self.bark print "woof" end end वर्ग लिटिल_डॉग & lt; कुत्ते का अंत Little_dog.bark विधि को एक सामान्यीकृत वर्ग से विरासत में मिला है, जो संदर्भ self है। लेकिन कोड का अगला पैच: वर्ग डॉग डीफ डॉग.बार्क प्रिंट "वूफ" एंड एंड क्लास लिटिल_डॉग & lt; कुत्ते का अंत Little_dog.bark भी काम करता है मुझे यह एक त्रुटि देने की उम्मीद थी, लेकिन ऐसा नहीं हुआ। कैसे स्वयं कक्षा विरासत के तहत कक्षा विधि को संदर्भित करता है? दूसरे कोड में little_dog क्लास में क्लास विधि bark क्यों होता है जब मैंने इसे केवल dog स्वयं व्यापक रूप से प्रयोग किया जाता है। पुस्तक से: रूबी कोड की हर पंक्ति किसी ऑब्जेक्ट के भीतर निष्पादित होती है- तथाकथित वर्तमान ऑब्जेक्ट। वर्तमान वस्तु को स्वयं के रूप में भी जाना जाता है, क्योंकि आप इसे स्वयं खोजशब्द के साथ उपयोग कर सकते हैं। केवल एक ऑब्जेक्ट किसी निश्चित समय पर स्वयं की भूमिका ले सकता है, लेकिन कोई ऑब्जेक्ट लंबे समय तक भूमिका नहीं रखता है । विशेष रूप से, जब आप एक विधि कॉल करते हैं, तो रिस...

c - Initializing a pointer to an array of integers. -

I have the following problem: I need to start a Stretch Number that represents a number, for that It requires its value, the number of separators and the dividers themselves. To store the divisor I need to use an indicator in an array of integers, and this is where the problem starts. type-type straight {int value; Int divisor_amount; Int (* divider) []; } Number; Now before I do not know how many divisors posseses my number I can not give the length of the array. In the main function, I assign one value to each of these fields. This is not a problem for the first two variables. Number six; Six. Value = 6; Six.divisor_amount = 3; Now for the pointer I do not know how to actually start it. During class, it was said to do this: Six. Divisors [0] = 1; Six divisors [1] = 2; Six divisors [2] = 3; But then I remove this error from the compiler: [Error] Invalid use of array with unspecified limitations So I thought I needed to allocate some space and I tried: ...

Jsp login with messages from servlet and a valid url -

I have to create a login form that displays an error message (such as "incorrect user / password - try again") . LoginHandler.java: @WebServlet ("/ login") Public Category LoginHandler HttpServlet Extended {@ Override Secure Zero DoPost (HttpServletRequest Request) , HttpServletResponse response) {// ... if (userInvalid ()) {request.setAttribute ("error", "wrong user / password - retry"); Request (request / response); }} // index.jsp: & lt; P & gt; & Lt;% out.println (request.getAttribute ("Error")); % & Gt; & Lt; / P & gt; & Lt; Form action = "/ login" method = "post" encrypt = "application / x-www-form-urxcode" & gt; ... Everything is fine, but I am using the URL http: // & lt; Server>: 8080 / login I found after request.getRequestDispatcher ("/ index.jsp"). Forwarded (request, response); sends the request. This is not a URL that ca...

clojure - Combining two vectors (filling up containers with the contents of several cans) -

मेरे पास दो वैक्टर हैं (def कंटेनर [{: no 1: volume 10} {: No 2: volume 20}]) (def cans [{: no 1: volume 2} {: no 2: volume 8} {: no 1: volume 5} {: नहीं 2: मात्रा 8}]) मैं कंटेनरों को डिब्बे से भरना चाहूंगा ताकि कुछ ऐसा वापस कर सकें: [{: no 1: volume 10: cans [ {: नहीं 1: मात्रा 2} {: नहीं 2: मात्रा 8}]} {: नहीं 2: मात्रा 20: केन [{: नहीं 1: मात्रा 5} {: नहीं 2: मात्रा 8}]}] जिससे पता लगाया जा सकता है कि किस कंटेनर में चलाया जा सकता है मैं कम से कम उपयोग करना शुरू कर दिया, लेकिन शेष के डिब्बे पकाने के लिए एक उत्परिवर्तन की दुकान के इस्तेमाल के बिना यह कैसे करना है, उसके बारे में मेरे सिर को नहीं मिल सकता है। किसी भी विचार? UPDATE भरने से, मेरा अर्थ है पहले कंटेनर में कई डिब्बे में पैक जब तक कि यह पूर्ण नहीं है के कंटेनर के वॉल्यूम से अधिक नहीं हो सकता है), फिर दूसरे कंटेनर को भरना शुरू कर दें जब तक कि यह पूर्ण न हो या जितना करीब हो, और इसी तरह से। हमें शेष डिब्बे के लिए एक उत्परिवर्तन की दुकान का उपयोग करने की आवश्यकता नहीं है, क्योंकि कमी को एक तर्क के रूप ...