Posts

Showing posts from February, 2013

php - Convert some values from two dimensional array to one dimensional array -

सरणी (आकार = 2) 0 = & gt; सरणी (आकार = 4) 'id_tax' = & gt; स्ट्रिंग '1' (लंबाई = 1) 'दर' = & gt; स्ट्रिंग '21 .000' (लंबाई = 6) 1 = & gt; सरणी (आकार = 4) 'id_tax' = & gt; स्ट्रिंग '2' (लंबाई = 1) 'दर' = & gt; स्ट्रिंग '15 .000 '(लम्बाई = 6) जो कुछ मैं चाहता हूँ वह सरणी है 1 = & gt; 21 2 = & gt; 15 ऐसा करने के लिए सबसे अच्छा काम क्या है? इसे आज़माएं: $ newArray = array (); विदेशी मुद्रा ($ मान $ मान) {$ newArray [$ value ['id_tax']] = $ मान ['दर']; }

python - Flexible task distribution in workers with Celery -

TL; DR: Is there a possibility to easily fix workers their (local) configuration and task args / kwargs The idea of ​​a quick and dirty solution will be in all those employees who find themselves inappropriate, but I was hoping someone else Is elegant. Description: The application is an (educational) programming assignment assessment tool - possibly comparable with continuous integration: a web application (previously Specified) Accepts submission of source code for programming languages ​​(or better: programming environments), which then needs to be compiled and executed with multiple tests. Now to use in high performance computing courses especially with GPUs, the compilation and execution can not be on the host where the web application runs (for other reasons it seems only for security reasons). Administrators, I need a configuration file for a worker to configure it easily, where locally available resources, compiler types and paths are configured, f...

php - Production mode assetic -

Hello, I have a problem when going in production mode (for the first time) When I try to run this command php app / virtual console: dump - ANV-prod --NO-debug I get this message The source file "...." does not exist. Well hell hell property, this file does not exist! Not in my src / folder, in my web / folder or not is there any kind of inherent cache? I had another file that sent me this error, I went missing the property: install, but not this time I attended: cache: clean, cash : Clear - ANnd Prod, Property: Established, .. I do not know what I am doing thanks More solutions. Delete cache manually

Can't change the word on a button on Magento -

Image
I have installed a cookie bar extension via Magento Connect and it works just fine. Now I want to change the text inside "closed". I've written it in translation files, cleared my cache and nothing has happened I have tried even reading the buttons on Extension files, but I do not Are getting. Does any person have more thoughts about solving this issue or point me to a solution? thank you in advanced! UPDATE I'm using Image of issue: To translate You need to follow the steps given below: Place language package in your App / Locale directory. Now select the language pack from Admin c-panel> System> Configuration> General> Locale Options> Local dropdown list. You can access through inline Can also translate words Go to System> Configuration> Developer> Translate Inline, after enabling it you can translate directly through the UI

c# - Pairing/Grouping Object data -

I have a JSN object with the data that I am trying to display on my site, but when I use the object I repeat, the labels and the value are listed separately; While I want to group them to make connections to the data on each label. Here is my data that I received from the JSN object: [value, 155] [value, 183] [and_time, 2014-11-02007: [ End_time, 2014-10-31 Tate 07: 00: 00 + 0000] [value, 785] [end_time, 2014-11-01007: 00: 00 + 0000] [value, 183] 00: 00 + 0000] And I should have such a result: 2014-10-31: 155 2014-11-01: 785 2014-11-02: 183 Is there a coupling or other method that I can use to get it? edit JSON only relevant here, the solution should be in C # / .net If I understand you correctly, it seems that the data is not in a very good structure. My best approach would be: for (var i = 0; i & lt; data.count (); i + = 2) {var value = data [i]; Var endime = data [i + 1]; // Make a change with this} This is not the most beautiful thing I have see...

JavaFx 2 buttons 2 Listner 1 result -

My small application has 2 buttons, each of which has a addActionListener Does the other stuff but the listener is used? The event handler that I add to the pan later will be used, but why? Here are some snippets of my code: public class LoginStarter application extension {public static zero main (string [] args) // // TODO auto generated method Stub launch (args); } @ Override Public Voic Rate (Stage Primary Stage) {Textfield UsernameField = New TextField (); UsernameField.setLayoutX (426); UsernameField.setLayoutY (230); UsernameField.setPromptText ("username"); UsernameField.setMinSize (148, 24); UsernameField.setMaxSize (148, 24); Password field password = new password field (); PasswordField.setLayoutX (426); PasswordField.setLayoutY (260); PasswordField.setMinSize (148, 24); PasswordField.setMaxSize (148, 24); PasswordField.setPromptText ("password"); Panel gp = new pane (); . Add Gp.getChildren () (minimizeBtn ()); . Gp.getChildren () add (xBtn ())...

Oracle - grant non-dba user rigths to create grants on another user objects -

Is there any possibility to give regular users the Oracle database privilege to provide access to the table in any other schema? Due to security policy in our company, I can not grant DBA nor sysdba privilege only to this user, because I can get many such solutions. My goal is to create special accounts with credentials that can not only exceed DBA tasks and increase regular user privileges. I want something like this: We have User1, user2 and user3 We give some special privileges to user1 We can now execute as user: Choose user2.table1 on user3 Any thoughts on how I can get it ? You have the option to use the qualifier: Specify the grant option to grant the grantee the object privilege for other users and roles. i.e. if the user allows SELECT to USER2 and you want USER2 to be able to promote user grants, you can use the following when you are connected as USER1 With the option of grant, select user on user 2 You can do the following while connecting...

sql - Have two tables A,B that has one to many relationship. I want to link A to B by only taking the most recent instance in B -

I have two tables, A and B. For any particular column in A, there are several rows in B for a particular value that corresponds to it, I want to remove information from B, but not all the rows but most recently. What is the best way to do this? Thanks A typical way to do this is ANSI standard row_number ( ) function. Here's the question of how a query might look: Select Select from a left pair * (b. *, Row_number ()) (b.ate desc) as seqnum B) B a.aid = B.Ed and B. Sekuanum = 1; You can also contact it with aggregation: select * Join the left to join an a.aid = b.aid ( Select baid, Max (Baiduet) statements from Max) bmax at b.aid = b.aid and b.date = bmax.date;

ios - uncaught exception when using NSOperation:performSelector: -

I was trying to add a selector to my NSOption but it gives me: - [NSOperation Sample]: Unexpected selector sent for example 0x17e35830 2014-11-06 20: 03: 26.542 **** [1473: 60b] *** Due to the exception of an exception, the 'NSII videagment' Exception ', reason:' - [NSOperation Sample]: Non-recognized selector example sent for example 0x17e35830 *** First of all throw Scroll Stack: (0x303d8f53 0x3aa416af 0x303dc8e7 0x303db1d3 0x3032a598 0x820d5 0xa457d 0x590b9 0x3af24d7b 0x3af24d67 0x3af2b7c1 0x303a3821 0x303a20f5 0x3030cce7 0x3030cacb 0x34fda283 0x32baea41 0x78339 0x3af49ab7) libc ++ abi.dylib: Do not come ended types with the exception of NSException My code: NSOperation * op = [[NSOperation alloc] init]; [Option Selectors: @sillector (sample)]; [Myocuyon operation: op]; - (zero) sample {nslog (@ "sample"); } The problem is what the error says, NSOperation There is no method called sample you can call it [self sample]; or [Self Perf...

c# - Limited concurrency TaskScheduler that can interleave tasks to be explicitly ordered -

I'm looking for a TaskScheduler : Permissions Let me define some dedicated threads (like 8) - a standard limitedConcurrencyLevelTaskScheduler (uses Threadpool threads) or WorkStealingTaskScheduler to do this. Create a sub-task scheduler, which has been completely ordered but determines the tasks on dedicated threads of the parents scheduler. At this time we use TaskScheduler.Default for general (at the mercy of Threadpool Development algorithm etc) and New Ordered Task Scheduler ( ) I want to keep this behavior whenever we want to work but limit both requirements for our pool of dedicated threads. QueuedTaskScheduler is getting pretty close, I thought is the QueuedTaskScheduler.ActivateNewQueue () method, which gives a child to the pool of TaskScheduler workers Will execute the work from the guardian, but this does not seem like that. Children who work in the form of parents consider similar equality. I would not necessarily want to be given the priorit...

OSError: [Errno 7] Argument list too long on ubuntu, python calling bitcoind-cli with popen -

Bitcound-Cli is running a python script using Poppins on Ubuntu, on large blocks with many traces, When I get it, I get the phone error OSError: [Errno 7] Logic list is too long I understand that this is a buffer problem between shell and dragon script ? There is an argument, I think it's just a very long is there something else I need to check? Can I make the buffer bigger anyway or do I interact with bitcoind to change the method to RPC? Thanks to thank you Since you are using Python, the best part is that you can use RPC, such as: import support import import feedback = requests.post ( Bitcoind_url, data = json.dumps ({'method': method, 'params': params,' jsonrpc ':' 2.0 ',' id ': 0,}), header = {' content-type ':' Jason ',' Authorization ': b'Basic' + base64.b64encode (rpcuser + b ':' + rpc password)}) Where There is a list of arguments for the specific method . You can...

Undefined variable error when using defined variable in PHP? -

I am creating a website, where I am logged in, press a button and then some information is filled with a database code One thing works well for something that is: I get this error: & lt; B & gt; Notice & lt; / B & gt; Undefined Variable: Error & lt; B & gt; / Character-load php & lt; / P & gt; On the line & lt; B & gt; 42 & lt; / B & gt; & Lt; Br / & gt; But the variable is defined here: if ($ user ["restricted"] == 1) {$ error = 1; } If (mysql_num_rows ($ letters) == 0) {$ error = 1; } If (mysql_num_rows ($ user name) == 0) {$ error = 1; } If (empty ($ charid)) {$ error = 1; } Is there something wrong with that? I do not understand why it says that the variable error is undefined? I can add more information about the request because I do not really know what else to add. Try it - $ error = 0; If ($ user ["restricted"] == 1) {$ error = 1; } If (mysql_num_rows ($ letters) == 0) {$ error =...

java - how to get a wfs feature from coordinates in geotools -

I am working on web services in Java and using Geotils Java API for GFOS. I have a WFS store and many features, for instance buffer, I do some work through Gotos API, etc. My problem is not making the feature a point. I am using geographical to build my geographic web services and want to create a web service system that should use two parameters (latitude and loan) and use a feature's return content. The returned feature completely matches this latitude and longitude with this coordinate should point to this attribute How can I do this? thank you in advanced.

c - Why do I need more curly braces when initializing this structure? -

First of all I tried to start a structure like this: struct { Char age [2]; // Hold two 1-byte-age} Studio [] = {{23, 56}, {44, 26}}; But it gives me a compiler warning about missing suspenders, so I used more breaks recommended by the compiler and ended up with: struct {four ages} [2]; // two 1-byte-age} studs keep [] = {{{{{23, 56}}, {{44, 26}}}; No warning. Why do I need extra braces? You have an array of strings, one member of the structure is an array. struct {four ages [2]; // hold two 1-byte age} Studio [] = {^ This is for Studio Array {{23, 56}}, ^ ^ | This is for age array which is for anonymous structure {{44, 26}}}; It's easy to see if your strat is the second member: struct {int id; Four era [2]; } Study [] = {{1, {23, 56}}, ^ ^ id. | Age [0] | Age [1]};

Initialize double array java with enum value -

I have a little problem, I hope you can help me: I have The class in Java is called TOKEN and inside it is: public enum TOKEN {EMPTY, WHITE, BLACK} In the other category (the same package) I am trying to create a matrix of arrays with columns and rows, and I am trying to get it started from "class" to second class with "value": public class boards {private int line; Private int column; Private token [] [] Board; Public board (int nr, int nc) {this.row = nr; This.column = NC; For (int a = 0; a; l> line; a ++) {for (int b = 0; b NR, and NC are low and values ​​(for example 6,7) But when I try to run the code, it prevents here (before moving) board [a] [b] = token Empty; Can someone help me? Thanks! You must first initialize the array: board = new Token [nr] [nc];

SMS or PUSH Notifications for "mobile first" orders delivery? -

A common question about sending realtime messaging to a cloud server is for users with a handset I Creating new e-commerce: ROSPO for local businesses - SnapCams (Enjoy small video introduction): Now, my problem is finding the best way to order online (submitted by online buyer) in your hands A Cell Phone Dealer in Order delivery should be in real time and with a "delivery receipt" confirmation requirement (I need to make sure that if the vendor entered the mobile phone, hence no sweet e-mail, do not forgive). 1 push notification A native app with any type of push notification protocol for order notifications? For example Android, some similar IOS, Microsoft phone OS, etc.)? 2 sms Professionals: - Old plain "release receipt" SMS text messages they always reach receivers in the field without 3G coverage. - SMS does not require any native app. Any kind of cellphone is okay. Cons: Send (and Received) SMS is expensive! Consider that text messages...

android - Add layout resource programmatically -

"postprint" itemprop = "text"> I have a custom layout called "debug.xml" in the folder called "layout /" as a predefined program Activity_man, called Center_leoutout to add The layout in XML is "Debug.xml" something like this: . & Lt; LinearLayout Android: layout_width = "match_parent" Android: layout_height = "wrap_content" & gt; & Lt; EditText android: id = "@ + id / commandEditText" Android: layout_width = "0dp" Android: layout_height = "50dp" Android: layout_weight = "1" android: gravity = "center_vertical" Android: inputType = "text" / & gt ; & Lt; / LinearLayout & gt; & Lt; / LinearLayout & gt; I want to add this "debug_layout" a centerLayout are: LinearLayout centerLayout = (LinearLayout) findViewById (R.id.center_layout); LinearLayout debugLayout = (Linear Loyalty) FindBuyId (R.id.debug_layout...

jquery - Some misunderstanding with creating dynamic table in JavaScript -

Image
After I try to create a dynamic table using javascript, the table contains the first names and family names. Here is the JavaScorpt code: function CreatTable () {var tablearea = document.getElementById ('ShowDataID'); Var table = document.createElement ('table'); Var thead = document.createElement ("thead"); Var tr = document.createElement ('tr'); Var th = document.createElement ('th'); Var firstNameTxt = document.createTextNode ("first name"); Th.appendChild (firstNameTxt); Tr.appendChild (th); Thead.appendChild (tr); Table.appendChild (thead); Var familyNameTxt = document.createTextNode ("Family name"); Th.appendChild (familyNameTxt); Tr.appendChild (th); Thead.appendChild (tr); Table.appendChild (thead); (Var i = 1; i and here results I: My question is why do I get" McDowell "not under the name of the family name column. Why has it moved? What am I missing? Try to create a new th second t...

c# - ControlTemplate Binding TextBox inside ErrorTemplate -

My problem is that I do not get the tooltip text thrown by the setter option of my binding object. I have a controlTemplate like this: & amp; ControlTemplate x: Key = "textbox diagram template" & gt; & Lt; Grid margin = "- 15,5,0,0" tooltip = "{binding relative sours = {reslevsaurus templated pent}, path = (validation.rrows) [0] .ErrorContent}" & gt; & Lt; Fill Ellipse StrokeThickness = "0" = "Red" width = "{TemplateBinding FontSize}" height = "{TemplateBinding FontSize}" /> & Lt; Text block text = "!" FontSize = "{TemplateBinding FontSize}" fontweit = "bold" foreground = "white" horizontal alignment = "center" /> & Lt; / Grid & gt; & Lt; / ControlTemplate & gt; I also tried tooltip = "{binding relative Soros = {relative escests}, path = (validation.art) [0]. ErrorContent} "ToolTip =" {Compuls...

don't stop event propagation in AngularJS -

एक रूप है: & lt; form method = "POST" action = " / पोस्ट फार्म "& gt; & Lt; बटन एनजी-क्लिक = "हेन्डलर ($ इवेंट)" प्रकार = "सबमिट करें" & gt; बटन & lt; / बटन & gt; बिना एनजी-क्लिक फ़ॉर्म को सामान्य रूप से जमा किया जाता है। एनजी-क्लिक के साथ हैंडलर कहलाता है क्या मैं दोनों कृपया कर सकता हूं?

java - Android webservice: How to receive an array of string -

मेरी webservice XML का अनुसरण है: HTTP / 1.1 200 ओके सामग्री प्रकार: text / xml; Charset = utf-8 सामग्री-लंबाई: लंबाई & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & Lt; साबुन: लिफ़ाफ़ा xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: साबुन = " http://schemas.xmlsoap.org/soap/envelope/"> & LT; साबुन: शरीर & gt; & Lt; GetAllPanelsResponse xmlns = "http://SolMonAndroid.org/" & gt; & LT; GetAllPanelsResult & gt; & LT; स्ट्रिंग & gt; स्ट्रिंग & lt; / स्ट्रिंग & gt; & LT; स्ट्रिंग & gt; स्ट्रिंग & lt; / स्ट्रिंग & gt; & Lt; / GetAllPanelsResult & gt; & Lt; / GetAllPanelsResponse & gt; & Lt; / साबुन: शरीर & gt; & Lt; / साबुन: लिफाफा & gt; मैं अपने एंड्रॉइड ऐप पर एक सरणी के रूप में प्राप्त करने के बारे में कैसे जा सकता हूं? मैंने निम्नलिखित का प्रया...

How to check a value exists in which table in SQL? -

There are two tables with the same table, called table a and table b and both have column IDs. The value of 'ABC' is that I will check the ABC in which the table ID is present in the table? I need output as table name. select table 'name' (selection 1 to one id = 'ABC') Union Everyone's selection 'B' happens separately (selection 1 to B WHERE ID = 'ABC') DUAL is a type of placeholder that you choose If you do not have a table to choose from.

c# - How to dynamically apply changes to app.config on program start? -

My program uses some environmental data, which is referenced in the 'app.config' file: & lt; Configuration & gt; ... & lt; EnvUnderTest path = "settings_a.xml" /> ... & lt; Configuration & gt; It is necessary to switch from time to time between this data, but I do not like an idea to change the 'app.config' file directly. Therefore, I thought it was better If the program starts, the 'path' parameter will change. Can you tell me how it can be done? I have tried the following code: string te = Configuration Manager. App Settings ["EnvUnderTest"]; Configuration cfg = Configuration Manager OpenXE configuration (Configuration subcl. NO); but te is the variable value tap , so I do not know how I can use this parameter value at runtime . You are not using a properly configured file: try it & lt; Configuration & gt; ... & lt; App settings & gt; & Lt; Add key = "EnvUnderTes...

java - which context.getBean to use when get the bean from spring -

निम्न लिंक में यह एक्सएमएल जैसे बीन को परिभाषित करता है & lt; खरगोश: टेम्पलेट आईडी = "amqpTemplate" connection-factory = "connectionFactory" / & gt; फिर कॉलिंग कोड में, इसका उपयोग AmqpTemplate टेम्पलेट = context.getBean (AmqpTemplate.class); इसे क्यों उपयोग किया गया context.getBean (AmqpTemplate.class); के बजाय context.getBean ("amppTemplate"); GetBean क्या है (AmqpTemplate.class) का मतलब है? मुझे यह XML द्वारा परिभाषित नहीं मिल रहा है। getBean () एक अतिभारित विधि है आप बीन नाम या बीन प्रकार से कॉल कर सकते हैं। क्लास के साथ कॉलिंग इस क्लास प्रकार का एकल उदाहरण देता है। अगर एक से अधिक एक अपवाद फेंकता है अगर कोई फिर से एक अपवाद फेंकता नहीं है। देखें।

twisted python - tac, or py? -

I hope this is the easiest question I ask here. I have googled etc, but found nothing definite. I have a .tac file - which I know is a twisted application. I can run it by executing: twistd-mailserver.tac If I did the following, what behavior would be different (i.e., what is very important about using twistd executable, and .tac suffix files? mv mailserver.tac mailserver Py python mailserver.py or even without the name: dragon mailserver.tac Any guidance on differences The file extension does not really matter. All twistd (And even python ) is read and evaluate. File name is almost completely irrelevant. However, to run the file pythd instead of code> twistd . You run a file whose mean is a .tac file Use the python Has done for that would not be very little or nothing of interest. It should be clear again, advertise .tac file Python evaluates and executes a source file. Consider emailerver.tac code>. Only top-level code included...

php - Included file changing url -

I have searched the Internet for a few hours now but I am unable to answer my question. How do I switch between the included PHP file in the URL? The following is my included file: & lt; Li class = "werkgeversNavbar" & gt; & Lt; A href = & lt ;? Php echo '' '.' Http: //'.$_SERVER ['SERVER_NAME'] '/ Dritjob / werkgevers.php' '? & Gt; & Gt; Veer Workers & lt; / A & gt; & Lt; A href = & lt ;? Php echo '' '.' Http: //'.$_SERVER ['SERVER_NAME'] '/ Dritjob / index.php' '? & Gt; & Gt; Veer werkzoekende & lt; / A & gt; & Lt; / Li & gt; For example, when I'm on my 'index.php', I want to show the first link, and when I click on that link, I want to change it to 'werkgevers.php'. 'Index.php' How can this be achieved? Sorry for my bad english, no one would be good to play again, thanks for your time! ...

3dsmax - 3D screw type sites for different bits -

Image
Do anyone know if there is a site that has 3D images of different types of screw bits, I think it is A triangle wedge is called a special screw. I plan to buy all these different tools and make an adapter bit and print it on a 3D printer. Example: I have a triangle wedge special screw male section at one end and cross on one Philips / second, in this way, I need the Philips head screw driver to simply open this thing. If I go to other special heads then I can print a new bit using the same process. Since this is a small item, therefore 3D printouts will not take that long. Does anyone know that such a site exists with thousands of different 3D screw heads? At the top is a 3D animation / video of the bit adapters that will be printed in 3D. Here is a video

excel - Converting postscript file to pdf not working -

PDF - The problem is that the process does not detect any contents in the worksheet - how can I 'activate' the content? - I have a VBA macro that converts Excel reports in PDF files - I address myself to repeat several workbooks, but when I work in a workbook I do and others do not. The code is below - I update the four values ​​in each of the respective cell / value for each workbook and I have checked that only one reference is selected in each workbook. When I run the code, it changes through the loop index index produces pdf with cell and new data. While one of the workbooks is not being made in PDF, I have stepped through the code and it creates a postcript file but it does not convert to PDF. public sub Niryatgraf () Const index = "B55" Const Print = "D55" Const authority Name = "B5" Const filename = "civic culture and community venues performance indicator standings Report 2013 -14 - "Applications. Screen...

javascript - AngularJS test - inject $location causes error -

So this is driving me crazy, whenever i $ location in one of my Attempts to insert the test I get the following error: Writing error:. Undefined $ LocationProvider does not have a function organized in $ bower_components / angular.js (bower_components / angular / angular.js: 11,053: 34) at Object.invoke (bower_components / angular / angular.js: 4118: 17): 3936: 37 getService (bower_components / angular / Angular.js: 4077: 39) at Object.invoke (bower_components / angular / angular.js: 4109: 13) in Object.workFn (bower_components / angular-mocks / angular mocks.js : 2159: 20) Error: Declaration location at window.inject.angular.mock.inject (bower_components / angular-mocks / angular-mocks. JS: 2144: 25) on suit. & Lt; Anonymous & gt; (Examination / Unit / Controller / DashboardCtrlSpec.js: 8: 16) jasmineInterface.describe (/usr/local/lib/node_modules/karma-jasmine/lib/boot.js:59:18) on test / unit / controller / DashboardCtrlSpec.js: 1: 1 karma.conf.js: module. Exp...

ios - How to implement a background process using parse -

I am developing an iphone application for referrals. It uses pars to retain users, contacts and referrals. It also uses core data to synchronize with pars and to maintain offline activities. There is a refresh method that synchronizes pars with core data. I am trying to find a way that as soon as the user leaves the app, synchronization with pars is done in the background. I'm testing using a simple parse query in ApplicationDidEnterBackground but it is not working. Here is the code I used: (zero) applicationDidEnterBackground: (UIApplication *) application {self.backgroundTask = [application beginBackgroundTaskWithName: @ "MyTask" expirationHandler: ^ {[application endBackgroundTask: self . background task]; Self.backgroundTask = UIBackgroundTaskInvalid; }]; Dispatch_asink (Dispatches_Get_Global_Qu (Dispatch_QUPRIIfFLT, 0), ^ {NSSTING * Message @ "Start Background Background"; NSDictionary * dict = @ {@ "Status": Message}; [[NSUser Defaults Sta...

ios - How to use Swift extensions functions inside initializers? -

Image
मैं अपनी SKScene स्विफ्ट क्लासेस को एक SpriteKit नोड लोड किए गए एटलस से बनावट का उपयोग करके और नोड का नाम सेट कर लें, मुझे हर दूसरे नोड के लिए उपयोग करने वाली लाइनों को सहेजने के लिए, और मैं इसे विस्तार के रूप में उपयोग कर रहा हूं क्योंकि मैं इसे लिखना नहीं चाहता हूं प्रत्येक वर्ग में विधि मुझे बनाती है इसके अलावा, मुझे विधि विधि के रूप में विधि बनाना होगा या मुझे init में एक ही त्रुटि मिलती है। यह मेरा एक्सटेंशन का कोड है: आयात करें SpriteKit आंतरिक विस्तार SKScene {func नोडविथ टिचचर (एटलस: स्केलेक्शंसएटलास, बनावट: स्ट्रिंग, नाम: स्ट्रिंग) - & gt; SKSpriteNode {nodeTestructure = atlas.textureNamed (बनावट) नोड = SKSpriteNode (बनावट: नोडटैक्शंस) नोड.नाव = नाम वापसी नोड}} अब, इस के साथ मेरी समस्या यह है कि मैं कर सकता हूँ मेरे दृश्य के initilizer में विधि का उपयोग नहीं यह मुझे एक सुपर इंटिट त्रुटि दे रहा है जो मुझे समझ में नहीं आ रहा है। यह तब त्रुटि है जब मैं इनिट के अंदर एक्सटेंशन का उपयोग करने से पहले super.init (आकार: आकार) ) कॉल। और यह एक त्रुटि है जब मै...

asp.net mvc - Bootstrap 3.0 cause collapse entire code like a sentence, google prittyfy -

I'm using Markdown, google prettify and bootstrap, so the result comes in a row like this Try the interval of 10/0 Try just the interval of 10/0 "in the bundling of my MVC application" ~ / content / bootstrap.css " And the result comes in this way Start as the process log Try to select Try 10/0 end Start Grab EXEC LogErr end My whole application is designed by using Bootstrap, so I can not remove this CSS, is there any customer who uses Bootstrap with Google Custom and Markdown? Could? I found this problem, here is the class that was causing it pre code {padding: 0; Font size: heir; Color: heir; White-space: Pre-wrap; Background color: transparent; Boundary-radius: 0; } Change pre code {padding: 0; Font size: heir; Color: heir; / * White-space: pre-rap; * / Background-color: transparent; Boundary-radius: 0; } Whitespace: pre-rap ; The code was wrapping, maybe it could help someone.

Haystack register guarded by "settings.TESTING". How do I do that in haystack 2.X -

I understand that everything in 2.X is in the manage.py phase with the hosstack and therefore the site. Registration is no longer required. Some register statements from codebase have been preserved by check for settings.TESTING and there is nothing. How I Template 2.x? with how this effect can affect (this is not a real answer ). I have not used the old site. I'm guessing a little bit about what I am trying to do. With those warnings ... There is a possibility that two are indexed, one for testing and one in your default form. Do you add or exclude by the settings. Really telling? Migration documents specify an EXCLUDED_INDEXES setting which you can use in your backend definitions, so if you have some expensive / unnecessary indexes, then they can go to a separate search index file / module and then from your test backend. Can be excluded. You can use your test and other files with default index in a common file. With the above, you will also need to mess with rout...

javascript - Passing xml node to xsl script -

I am trying to pass XML node on an XML script but it can not recognize it as XML node is. As a result, any operation done on that node is given below. My code sample is Call in the stylesheet xls script function getDetail (node) {var idpl = 1; Var idmt = 2; Var Kiyan = 7 var racine = node.parentNode.parentNode.parentNode; Var nmois = racine.selectSingleNode ("root / pl / user [../../@ id = '" + idpl + "' and ../@id = '" + idmt + "' and @id = '" + Idmois + "'and @ki ='" + KYN + "']"); Below is a sample of XML and xsl XML & Lt; / Book & gt; & Lt; Book & gt; & Lt; Name & gt; The life of a pie & lt; / Name & gt; & Lt; Qty value = "4" & gt; 5 & ​​lt; / Qty> & Lt; / Book & gt; & Lt; / Books & gt; xsl & lt ;? XML version = "1.0" encoding = "ISO-885 9-1"? & Gt; & Lt; Xsl: stylesh...

javascript - Clone element and increment index placed in name by 1 -

Let's say I have this input: name = "fade_inisio [2] " And I want to clone and generate it: name =" fade_inisio [3] " How do I do this? I tried to do something like this, but its ugly and it will not work. var $ input = $ original.clone (); Var name = $ input.attr ('name'); Name.replace ('[' + (Indis-1) + ']', '[' + + + ''] '); $ Input.attr ('name', name); does not modify the string in the locale space, but returns a new string. Then your code should be: name = name.replace ('[' + (Indis-1) + ']', '[' + + + '' + '+)]; In addition, you do not really need such index names, you can go with just name = "fecha_inicio []" and about the index Do not worry later you will get form data which has a serialize method.

jqbootstrapvalidation - Enable submit button in Bootstrap validator -

I am using the bootstrap validator and the problem I have is that I submit all the values ​​after the values ​​are submitted Unable to do this $ (document) .ready (function () {$ ('# ans_frm'). BootstrapValidator ({feedbackIcons: {Legal: 'Glyphicon Glyphicon- Valid: 'glyphicon glyphicon-refresh'}, submit button: 'button [type = "submit", invalid:' glyphicon glyphicon - remove ', valid: ], Field: {ans: {group: '.col-md-8', validators: {stringLength: {min: 3, max: 100, message: 'Answer must be greater than 2 and more than 100 characters long'} , No, Empty: {Message: 'Answer should not be empty'}}}}}. ('Condition.field.bv', function (e, data) {disableSubmitButtons (wrong);}})}}; submit button .on ('error.field .bv') to you and enable it back to on ('status.field.bv') . and you should use data.bv .disableSubmitButtons () method! Can you try this? $ (document) .ready (function (...

linq to xml - xmlns="something" - must be in parent nod -

I have a problem XAttribute can not name this way: XAttribute ( "xmlns", nss.NamespaceName) XNamespace ns = "Blur: hl7-org: v3"; XNamespace nsVoc = "Pulse: HL7-Organization: v3 / VOC"; new XElement ( "ClinicalDocument", New XAttribute (XNamespace.Xmlns + 'xsi ", xsiNs.NamespaceName), New XAttribute (" xmlns ", nss.NamespaceName), New XAttribute (XNamespace. Xmlns + "VOC", nsVoc.NamespaceName), new XAttribute (xsiNs + "schemaLocation", ns.NamespaceName + "../Schemas/cda/Schemas/CDA .xsd"), new XElement ( "typeId", new XAttribute ( "root", rootTypeId), new XAttribute ( "detail", extensionTypeId)), new XElement ( "TemplateId" new XAttribute ( "root", rootTemplateId)), new XElement ( "template ID", new XAttribute ( "root" , Root timed id)), ... I am not here to close the sanction of this parent .. I Repeated: The pref...

python - Development using django: wireframes enough to begin? -

I am trying to understand how to use Dengage for development tasks, a backend developer is just a wireframe can start? Is it not possible to develop a script while someone is writing HTML / CSS code? (Working at the front end and at the rear end at the same time) For example: Creating a forum Backend builds a community, manage the community and develop features such as accumulating information in DB And then once you start, can you take html / css and combine it? post-text itemprop = "text"> Yes, they can Django uses a templating system after HTML and CSS Or when the backend is being developed it is very easy. Backend ideas only need to pass data to the template (whether it still exists or not) and the template can be modified to use the actual data. Obviously, there are some limitations on this (for example, if users need to submit forms, the backend can not test their ideas until the forms are present), but in general it's development There is a widely accep...

oracle - Sql compare mismatch values -

I would like to compare values ​​between 2 separate tables and only return the difference but IM will come with a query Is struggling for. I have an employee tab 1 and employee tab 2. I am comparing data between God and testing. Employee 1 order1 1 Reg Reg2 regular 2 temporary floating 3 Reg Regular 4 new new rent 5 del end employee2 id2 cd2 desc2 1 regulate regular 2 temporary temporary -456 3 regular reg-123 4 new new rent 5 del end My result should be set (i Id cd1 desc1 cd2 desc2 1 reg regular reg regular-123 2 temp temporary temporary temporary -456 i tried this approach select EMPL_ID, S D1, 1, CD2, 2 to Ampl 1, Employ 2 WHERE EMPL_ID1 = EMPL_ID2 and CD1 = CD2 and desc1 & lt;> desc2 but give it duplicate results Thank you for your help! Depending on your data, you may see id , cd1 : do not select empl1.EMPL_ID, cd1, desc1, cd2, desc2, empl1 empl2 at empl1.EMPL_ID = empl2.EMPL_ID and empl1 CD1 = Empl2.cd2 and empl1.desc1 ...

facebook login ios 8 safari Please close this tab to continue to -

I use the Facebook API to authenticate on my website window FbAsyncInit = function) {FB.init ({appId: 'XXXXXX', position: true, cookie: true, xfbml: true}); }; (Function (doc) {var js; var id = 'facebook-jssdk'; var ref = doc.getElementsByTagName ('script') [0]; if (doc.getElementById (id)) {return;} js = doc Element ('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/it_IT/all.js"; ref.parentNode.insertBefore (js, referee); } (Document)); Function Login () {FB.login {If (response.authResponse) {FB.api ('/ me', function (feedback) {console.log (feedback); jQuery.ajax ({type: " Post ", url:" xxxxx and format = jsan ", data: {email: feedback.email, fb_id: response.id, name: response.first_name, alias: response.last_name}, success: function (data) {window. Location = data.url;}});});} other {warnings ("login attempt failed!"}}}}, {Scope: 'email'}); } Authentication is pr...

css - Primefaces 5.0 Chart Customization-Bar Chart Grid Lines & Labels -

I need to change the axis label of grid lines and bar charts. I .jqplot-series-canvas and the background color of the grid lines has changed. Just to change the text labels of X and Y axis, I have tried to make changes using CSS: .jqplot-yaxis-tick { Color: #ffffff! Important; } But it does not work. .xhtml file & lt; P: chart type = "bar" model = "# {dashboard controller.moththaferburg}" style class = "chart" style = "width: 1000px; height: 400px; margin: 0 auto;" / & Gt; Bean .java file monthoffierbar modell = new bar chart (); MonthOfYearBarModel.setSeriesColors ("e3e3e3"); FeesbmansAfkchurchirair = new chartshares (); FeesByMonthsOfCurrentYear.setLabel ("Monthly"); MonthOfYearBarModel.setTitle ("Monthly"); Axis XFIOfMonthx = MonthEoffirebarModel.etaxis (AxisType.x); XFeeOfMonthAxis.setLabel ("month"); Axis yFeeOfMonthAxis = MontherOfferModel.etxis (AxisType Y); YFeeOfM...

javascript - can't select parent html tags from a html string, using jquery? -

I'm trying to select the tag from the link tag and wrapper-main class (and what's inside) JQuery With string but I can only select inner tags like ".text" and "#logo". Here is my javascript code: var newDom = $ (data); $ (".main-wrapper", newDom) .attr ("class"); The data string is that I can select ".text" and ".image". & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Head lang = "en" & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Link rel = "shortcut icon" href = "" & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "main-cover" & gt; & Lt; Div class = "text" & gt; Hi this is an example text & lt; Br> Hi this is an example text & lt; Br> Hi t...

java - New document by BaseHstComponent: Could not obtain workflow 'default' -

I made my own spring-accredited bean and it was injected and applied correctly. I tried to submit the form, get the form data in DTO and to create and save my Todoim. My "Toddime" Bean Hippo Doctor expands and applies the content nodebender. I put the DTO in the node conversion within the bind method: ... node.getProperty ("mathipopodolist: title"). SetValue (dto.getTitle ()); Node.getProperty ("myhippotodolist: content") setValue (dto.getContent ()) ;. ... I wrote this code in the doAction method: persistableSession = getPersistable session (request); Wpm = getWorkflowPersistenceManager (continuous session); ... ... the last string absPathNode = wpm.createAndReturn (todoitemFolderPath, "myhippotodolist: todoitem", todoItemNodeName, true); Todoitem todoitemBean = (Todoitem) wpm.getObject (absPathNode); ... ... todoitemBean.bind (toDoItemDTO, todoitemBean.getNode ()); Wpm.update (todoitemBean); Well, now I can see the new nod...

How to differentiate tags in single Div when parsing HTML via simple_html_dom in PHP -

I am using simple_html_dom in PHP to parse an HTML page But I found the stock in the following situation. I have a diva selector that has a nested span & lt; Div class = "name1" & gt; In Text1, commas and lt; Span class = "name2" & gt;, Text2 & lt; / Span & gt; & Lt; / Div & gt; When I use the following code: foreach ($ html-> search ('div [class = name1]') $ Text = $ result- & gt; Xmltext; Then I get a string: "Lesson 1, comma, text2" because Both are part of "text1, comma" and "text2" div, which has 'class = name1' what I want "different text of text 1, comma" and "text2" I am able to extract "text2" from it using a nested match, but I can not just remove "lesson 1". with $ text1 = "text1, comma, text2" and With $ text2 = ", Text2" you can use substr_replace () : $ text1 = substr_replace (...

wpf - Row dragging in DataGrid -

I have a datagreat in a WPF application, right now when I click on a cell that highlights the whole line and When I drag the rows down, which highlights all the rows in between. I need that to draw the line is to copy the value from that line that you start with all the rows by dragging it and highlighting the rows only in the specific column. The exact words in the request were "like Excel". Is there a written control for this? I have searched a lot and in fact I can not find what I'm looking for. If the control is not in existence, then what is a good starting place? How to Learn a Good Place for You Drag and Doop Codes I recently created a tree view with drag and drop functionality You can download it here: If you need any help So feel free to ask .... Good luck .....

ruby on rails - How to pass parameters to a symbol method call -

I have a model concern which adds a method 'T' to translate models fields. I18n: Expand translatable for the module. Activate support: concern DEF T (field_name) I18n.t ("Model. # {Self.class.table_name}. # {Translation_tag}. {{Field_name}") End Ideal: class models & lt; Translatable in ActiveRecord :: Base: It uses almost everywhere: @model. (Name) However, I have a selection field that uses this code to map entries: Model.all .order (name :: asc) ,: id ,: name and I want: instead of using the translatable method, the name works below, but I'm missing Logic error is getting (clear): Model.all.order (name: asc) ,: id,: t though This does not work: model.all.order (name :: asc) ,: id,: (t (: name) What is the correct way to pass the variable to the methods when they are called symbols? Either make a dedicated method to handle the name model or use map before selecting your code. > def i18n_name t (: name) e...

ios - Set margins/constraints for UIViewController -

Is there a way to set margins or constraints for UIViewControllers? I have this structure UIWindow - UINavigationController - UICollectionView I would like to layout so that the UINavigationController is positioned below the status bar Do not use, and do not use UICollectionView space in UINavigationController under my custom toolbar. Is there any way to check the obstacles to see the controllers? Or any other way to achieve this behavior? My UICollectionView has a different background color and is currently also set under the status bar. Post (and table view and other UIScrollView subclasses) you want to display under your navigation bar and status bar (if Bar is translucent) as content scroll will be seen through it. Do not you want that these bars are stuck under the material, so it can not be seen. By setting the contentInset property of the scroll view, you do so, so that the content does not need to be visible to the top of the scroll view. Here's ...

Compiled HTML (.Chm) Building from project -

I'm recently exploring different ways to present a user manual which is easy to use and understand. At first, I thought Microsoft help files would be great, because I knew my way around the basic HTML. I did not know that the Microsoft Assistance Workshop was a bit more complicated than simply processing it by taking HTML. I had many problems while trying to adjust the different styles and classes applied to my HTML The best way to convert an existing HTML project (HTML, CSS, and original Javascript) to a compiled .html file What will be the device? If this is not possible, then thanks I can use to convert my HTML or Markdown to docbook or PDF or to convert to any other format of 100.

node.js - Merge webrtc with node server -

I have applied MEAN.js with WebRTC application with nodes. Js server and live video chat. Both applications (separately) works correctly. Now I need to integrate WebRT with MEAN.js application. There is a node server.js file in the MEAN.js app (on port 3000): 'strict experiment'; / ** * module dependency * / var init = is required ('./config / init') (), config = require ('./config / config'), Mangosos = required ('magos' ); / ** * Main app listing file * Please note that the order of loading is important. * / / / Bootstrap db connection var db = mongoose.connect (config.db, function (error) {if (err) {console.error ('\ x1b [31m', 'Could not connect to MongoDB!'); Console .log (mistake);}}); // Init Express app var app = required ('./config / express') (db); // Bootstrap Passport Configuration Required ('./config / passport') (); // launching the app & lt; Port & gt; App.listen (config.port); // Expo App Exp...

javascript - get the value of the child element of directive -

मेरे पास ये निर्देश हैं app.directive ("myarticle", फ़ंक्शन ($ टाइमआउट ) {Element.getVal ()}, गुंजाइश: {बिल्ली: "="} {return: "ई", प्रतिस्थापित करें: सही, टेम्पलेटउरेल: "टेम्पलेट्स / आलेख html", लिंक: फ़ंक्शन (स्कोप, एलीमेंट, एटर्स) , मेनरल: "="}}}); यहां डायरेक्टिव टेम्प्लेट है & lt; div class = "span2" & gt; & Lt; a href = "# / बिल्ली / {{cat.id}}" & gt; बिल्ली का लिंक & lt; / a & gt; & Lt; / div & gt; jquery getVal फ़ंक्शन (फ़ंक्शन ($) {$ .fn.getVal = function () {this.each (फ़ंक्शन () {var Url = $ (this) .find ("a")। Attr ("href"); console.log (url);})}}}}}) (jQuery); फ़ंक्शन बहुत लंबा है, मैंने इसे सरल बनाने की कोशिश की क्योंकि मैं क्या रेंडर करने की अपेक्षा कर रहा हूं "# / बिल्लियों / 1" लेकिन क्या प्रदान किया गया है "# Cats / {{cat.id}}" तो मैं अभिव्यक्ति का मान कैसे प्राप्त कर सकता हूं यह स्वयं नहीं आपको अपन...

c++ - file paths been passed to a Json Array -

I want to allow a user to specify a file path to attach to an email. For example /documents/myfile.dat index.html & Lt; Label & gt; Attachment: & lt; / Label & gt; & Lt; Input id = "attachment type" type = "text" / & gt; index.js var jsonEmail = {... "attachment": document.getElementById ('attachmentType'). Value} . Cpp Jason :: Value input; Bool parse = reader.parse (inputstring, input); If (parse) {... Json :: Value msgAtt = Input ["attachment"]; ... if (msgAtt.isArray ()) {foreach (Jason :: Price, msgAt) {anything here ...}} else {QString filePath = QString :: fromStdString (msgAtt.asString ()); Here are some more things ...} This works fine and is the proper path. I have a problem when I send multiple file paths: /sdcard/documents/myfile.dat, /sdcard/documents/nextfile.dat JSON value is never recognized as an array I know that through path I I can read and pull data according ...

bulk - Titan remove many vertices has poor performance -

Improve performance when removing multiple edges? I want to be able to remove a large part of the potential part, using Titan (using a large graph in rexster and cassandra). I want to delete a user "owner" who is not on the list of IDs, and returns the list of IDs whether they still try "both" in the graph. , Of which both of them take very long. I have a bad situation where list_of_ids_to_keep is empty ( [] ). // Def error_mulitple (graph, user_id, list_of_ids_to_keep) {U = get_or_create_user (g, user_id) user_things = u.outE ('owner' ) Investment related decision makers () collect {it.id} removees = user_things - .. List_of_ids_to_keep GV (* (removees)) .remove () // This approach g.commit () is a slow (part of the user_things - removees)} // approach using hash to reduce potential memory footprint and O-marking Doing, but still taking a long time. Def delete_multiple_hash (graph, user_id, list_of_ids_to_keep) {def U = get_or_create_user (g, ...

javascript - Unable to load AWS SDK in Chrome App -

I'm calling around with a s3 bucket from javascript in a Chrome app, but I think that Blocking permissions from this Let me know the AOS sdk: & lt; Include the local copy of script src = "assets / third-party / js / aws-sdk-2.0.22.min.js" & gt; & Lt; / Script & gt; Otherwise I would: & lt; Script src = "get https://sdk.amazonaws.com/js/aws-sdk-2.0.22 .min.js" & gt; & Lt; / Script & gt; Denied script loading & lt; Script Path & gt; Because this infringes the following content security policy The ADS SDK library fails: window.localStorage pack is not available in the app instead using Chrome.Storage.Local Please. Am I out of luck? @mamjon, can you make a version of your SDK for Chrome Apps? I just tested embedding the SDK in the sample app provided by Google and I successfully It was able to load and list objects in the AOMX S3 bucket, which is with Corus. Warn me the window.localStorage , but not...

java - recursive method for finding all decodings of a string of numbers -

I am trying to find all possible decoding of a string of numbers, for example Input: {1, 2, 1} Output: ("ABA", "AU", "LA") [3 Explanations: ABA (1,2,1), o (1,21), LA (12 , 1)] My program pins "ABA" then gives me the following error Exceptions in thread "main" java.lang.StringIndexOutOfBoundsException: string Index Count Out: java.lang.String.charAt (String.java:686) at 3 countDecoding.decodings (countDecoding.java: 20) at countDecoding.decodings (countDecoding.java:17) at countDecoding.decodings (countDecoding.java: 17) at countDecoding.main (countDecoding.java37) if line 20 is ((str.charAt (n) & lt; 2 '& Amp; str.charAt (n + 1)! =' 0 ') | | (Str.charAt (n) ==' 2 '& amp; str.charAt (n + 1) & lt; '6')) {and line 17 decodings (str, n = n + 1, temp, len); Below is my code public class count (static string, int n, string temporary, int lane) {if (n = lane) {System.out.println (t...

java - Random Prime Methods by calling another method -

I have a hard time trying to understand this program. I have made a method to figure out that the entry number is a prime number, but now I have to write a method that takes a positive int number in the form of a parameter and a random principal in the range of [0, num-1] Returns the number]. I'm not sure that I'm using the isPrime method correctly. Besides, I have to test this method by calling it primarily, but I'm not sure how to do it as well as it is. This is my code: public static boolean isPrime (int num) {for (int i = 2; i This is not an effective way of doing this. I advise you to make one and choose a random object. Here's how I will do it: public static random Random = new random (system .currentTimeMillis ()); Public static int randomPrime (int num) {boolean [] sieve = new boolean [num + 1]; Sieve [0] = true; Sieve [1] = true; For (int i = 2; i & lt; num.length; i ++) for (inf j = 2 * i; j & lt; num.length; j + = i) sieve [j] = true...

html - Simple Javascript syntax behaving unexpectedly -

इस सवाल का पहले से ही एक उत्तर है: 15 उत्तर 12 उत्तर यह 65 + 60 के बजाय 60 + 5 को दिखा रहा है g = document.getElementById ("height1 ")। मूल्य * 12; चेतावनी (छ); & Lt; ---- यह 60 एच = दस्तावेज दिखा रहा है। GetElementById ("height2")। मूल्य; चेतावनी (ज); & Lt; ---- यह 5 बी = जी + एच दिखा रहा है; चेतावनी (ख); & Lt; ---- यह 605 दिखा रहा है कोई भी विचार Javacript एक जोरदार टाइप की गई भाषा नहीं है यदि आप जोड़ एक स्ट्रिंग-जैसी वैरिएबल को पूर्णांक-समान चर में करने की कोशिश करते हैं, तो आमतौर पर चर के प्रकार की व्याख्या करना सबसे अच्छा होता है, यह इसे स्ट्रिंग संयोजन के रूप में व्याख्या करेगा। आप चर को इस तरह पूर्णांक के रूप में परिभाषित कर सकते हैं: b = parseInt (g) + parseInt (h); या, अन्य ट्रिक्स का प्रयोग करके जो चर को संख्यात्मक बनाने के लिए मजबूर कर देगा, जैसे: b = (g * 1) + (एच * 1);

bash - Assigning password to users created from CSV -

The script function without error, but password does not work on accounts. Not sure why the password is not being appointed, any help will be awesome. #! / Bin / bash OLDIFS = $ IFS IFS = "," while the first name is read userid do sudo useradd - "$$ {Firstname} $ {lastname} '" -d / home / "$ {userid}" -s / Bin / bash "$ {userid}" SUU UMMD-P ChangeMei 123 "$ {UserId}" Sudo Usermode - Student did "$ {userid}" & lt; Student.csv I tested the following line instead of usermod -p Need to see the piping in the void. This time the test could not be tested sudo bash -c should be .

With the R package xlsx, is it possible to set na.strings when reading an Excel file? -

I'm reading an Excel file using read.xlsx , and I set Want to do Na.strings as you can with read.table . Is this possible? It just does not work to add na.strings to call like this: data & lt; - read.xlsx ("my file.xlsx", sheetName = "MyData", No. string = "no information") Is there any other way to do this? No, it is not possible for simple reason that read.xlsx Does not take care of special missing values. But this could be a potential increase for the getCellvalue function. You can either replace missing values ​​like something: data [data == "no information"] & Lt; - NA Or, by changing your data to CSV and using read.csv , or the other package that takes care of the unavailable values ​​as a comment Use Use the XLConnect package Edit: Exposure parameters using the XLConnect package setMissingValue function Takes care of The equivalent code can be written here: Library ("XLconnect...

xpages - How can you get rid of the 'file name' title and size of the download control? -

Image
The download control is displaying the word "filename" above the attachment. Is it anyway to get rid of it? In addition to this, despite the fact that I set the display to false, it is still showing. Any thoughts on that? Thanks Go to the All Properties tab and set what you want to show Based on the properties "display ..." and "filename ...". In your case, you displaySize is false and you want to set the fileNameTitle in a space character. Determine that there is no size column now and the file name title is empty.

bash - Menu and Sub Menu and back to Menu Scripting On Linux -

Hello, I need a scripting script in some scripts that have the menus and sub menus in my script 1. Do something. 2. Do something. 3. Do something When I select number 1 and press Enter then the sub menu will appear 1.do something 2. Do something - 99.back in the menu How can I make this and my biggest problem when press 99 when the menu can return Try sample script : I used to select menu (1 and 2) loop. Note: Select the loop in the Bash for your options to sort the bullet # in order so that you need to echo the bullet # 99, then it will do something for you (a good home work for you) You have to come up with or you can finalize the value as the menu variable ".. 99_back_to_menu_1". For the internal selection menu 2 loop, I use the loop (well to exit the internal selection loop, if the user selects: back_to_menu_1 option) In the menu, they will be prompted again for the menu again. If you want you can comment to the loop (line #s, 18, 19 and 31). Menu_1...