Posts

Showing posts from September, 2011

sql - can i decide the column names of a SELECT statement from another SELECT statement -

Can I decide the column names of a selection statement from the second selection statement this way From: SELECT (SELECT SELECTSTMTA to aID = b.ID where a.ID = 300019) to C. WHERE lkpgroup = 300019 You can either explicitly request the All column or clear column , Like) Select ColA from Column 1, ColB Your query will fail because your saying "Select (subkey)". You need to select 'some' and use the keyword to . I recommend that you make a column call in your subquery, then use the select * to return to the entire dataset of your subquery. EG) from query SELECT * (query a.ID = a bonus on b.id. B) where the query query. Cola = 300019 So to answer your question, no. You can not use a specific query to decide which column you return. - It would be like to say a compiler to write a program! However, you will use * to return all the columns from the subcategory, table or view.

android - Audio file transfer over websocket -

I have a wav file created in an android mobile and I want to send this file to the web socket on the server. The code below is used to send the file stream I am using autobahn lib for web socket connection. byte [] buffer = new byte [1024]; FileInputStream fis = New FileInputStream (myFile); Log D. (Tag, "Sending ..."); Boolean status = true; While (position) {int in = fis.read (buffer, 0, buffer.label); If (in! = -1) {if (in & lt; buffer length) {byte [] temp = new byte [in]; For (int i = 0; i .wav audio file running fine in mobile But the file received in the server side is not a proper watch audio file and it is not playing. Server code: (Byte [] data, Boolean Arg1) on public Zero Message {try {System.out.println ("Starting a new recording.") ; FileOutputStream fOut = New FileOutputStream (f1, true); FOut.write (data); FOut.close (); } Hold (exception e) {e.printStackTrace (); }} Please help .........

c# - Get Attribute from object -

I have to get a specific attribute on one of the properties of the object. You then call: var attr = someobject.GetMember (x = & gt; x.Height) .GetAttribute & Lt; FooAttribute & gt; (); But I would like it in a clean phase like this: var attr = someobject.GetAttribute & lt; FooAttribute & gt; (X = & gt; x height); How do I add those two functions to give this signature? Update: Besides, why does not it work for enums? You will not be able to get that exact signature. For the method of working, three common type arguments are required (for object type T , for attribute type TAttribute , and for a property type TProperty ). Using code can be estimated using T code and TProperty , but unfortunately, once you have a general Specify type logic, you need to specify all of them. Public Static Class Object Extension {Public Fixed TATT GetAttribute & lt; T, TAttribute, TProperty & gt; (This T example, expression & lt; Func...

html - JQuery drop list item in menu -

I could not think of a better title, my apologies. Actually what I'm trying to ask: I have many lists in which I pull and pull. & lt; Ul class = "nav nav-tabs" role = "tablist" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; Quote of my jquery: $ (function () {$ ("# sortable1, # sortable2, # sortable3") .Softable ({connectWith: ". Connected Serial" // Update Method Here Normal }}}. Now I have a menu and I can also drop a menu in the menu item so that I can get value in another PHP function & lt; I have made a small example of what I have done now: In the right direction, how can it be achieved? I do something like this myself It may be possible to help someone in the future: $...

python - Error with print: unsupported operand type(s) for +: 'NoneType' and 'str' -

I have the code to add two strings but this is showing me an error. +: 'Any type' and 'str' for unsupported operand type (s) How can I fix it? print is a function, no one is returning Then when you write print (name) + "good boy" You are actually adding return value function call ( I.e. none) in the string print (name, "good boy")

memory - How does Go's precise GC work? -

Go 1.3 applies a garbage collector. How does this signal properly? Looking at itempop = "text"> " Starting with 1.3 Runtime considers that the pointer type values ​​have pointers and not other values ​​ . This assumption is fundamental for accurate behavior of both stack extension and garbage collection. . Programs that use insecure packages to store integers in values-typed values They are illegal and will detect crash behavior when runtime is detected. Programs that use insecure package to store pointers in values ​​that were typed in the integer-type to be diagnosed during execution. Invalid but more difficult. Add this: Actually, GC has to find out which objects are accessible to do so Every ob To point out the factor to the points lying on the stack, they point out and follow the pointer on every object in the objects, until it conflicts with new objects. There is garbage when GC does not face every thing. / P> The problem with...

scala - Akka: how to get the results? -

Consider the following skala code that calculates factories using the Acakka. I do not know how to get the output. Import Scale. Annotation. Tailrec Import akka.actor. (Actor, Actor, Actorsystem, Props) Import Scales. Convert Pattern. Ask import akka.util.Timeout import scala.concurrent.duration._ Case class GetResult () provides class factor housing calculator acct {DRF receive = {case number: int = & gt; Sender ! (Num, factor): Personal DF factor (num: int) = factorTail (num, 1) @ailailc Private private carcass (number: int, ac: big element): begun = {(num, acc) match {case (0, A) = & gt; One case (n, a) = & gt; FactorTech (N-1, N * A)}}} Class Factorial Collector (FACTORIAL: LIST [int]) Extends actor with actor logging {var list: LIST [BIGINT] = blue size = factorials.size For (num & lt; - factorials) {Context.actorOf (Props (new factorial communication))! Num} def receive = {case (num: int, fac: bigInt) => {Log.info ("$ FAC Originally for $ num")...

sql server - Update values depends on Condition in sql Procedure -

Hello I have a table that contains four columns. I need to avoid duplicate service names for specific server IDs I have but I do not want to check the details. Specifically the server or two services have the same details name. Table: - idat, server id int, savanam varchar (200), details varchar (400) Process: - create process sp_UpdateServices (@id int, @ ServerId int, service name varchar (500), @ details varchar (400 ), @ Return Message Navigation (500) = Null Output as BEGIN BEGIN is available (select from tbl_servicename servicename where servicename = @ ServiceName and serverid = @ ServerId) RAISERROR ('service name (@@ trancount & gt; ) Rollback Tran SELECT @ Return Message = ERROR_MESSAGE () ReturnMessage END as Catch & @ReturnMes Sage Select Output: - ID server service name Description 37 9 218 test1 test1 385 218 test2 test1 Problem: - I got the error if I try to save test1 for both test1 and test1 for the service name.

javascript - jquery serializeArray() not created using semantic-ui framework? -

I am creating semantic UI when I click the submit button, I want to serialize the value. I have two text boxes for a username and password. I enter some value in both text boxes when I click the submit button, I want to make an array conversion for the Jason format. But I have done some code. But this is not working, maybe I do not know correctly & lt; Div class = "ui small signin modal" & gt; And any one please help? And also want to send me serialize for WCF services to Jason URL. ; & Lt; I class = "circular inverted toll close icon" & gt; & Lt; / I & gt; & Lt; Div class = "column" & gt; & Lt; Div class = "ui fluid form sub_form" & gt; & Lt; H3 class = "UI header" & gt; Sign in & lt; / H3 & gt; & Lt; Div class = "field" & gt; & Lt; Div class = "ui left label icon input" & gt; & Lt; Input type = "text" id = "txtUserNa...

zos - DB2 for z/os V11 - how to get application id? -

Can I suggest removing the application ID in z / os of any Debian 2 subsystem? I tried "V8 approach" from here: but my shop has not installed a jar for import com.ibm.db2.app. ; * That's why I can not go this way. Thanks a lot! Itemprop = "text"> Just found on a CA site, maybe it helps : For DB2, use DDF to determine the appropriate value for using DB2 command DIDF. Name of the Passport application. If the generic aloe is not defined, replace apple with the second part of LUNAME. If GENERICLU is defined, then use the second part of GENERICLU If any LUNAME or GENERICLU is not defined, use the value of IPNAME -DISPLAY DDF sample output from the command is as follows: LOCATION LUNAME GENERICLU Diattijeepiaibi Udahrnktekst 1 Udahrnktekst 2 TCPPORT = 5122 SECPORT = 5193 report = 5124 IPNAME = -NONE the sample represented in output, named text1 and text2 respectively LUNAME and GENERICLU. Note: when you change the hyphen (-) with the...

html - How to remove video placeholder? -

I have a video on my website that has removed the control, so it looks like a cellphone's screen and The problem is that the black video holder appears for each other before the video starts, and I want to remove it or hide it, is there any way to do it? add poster = "placeholder" on video tag. Make Placeholder. The first frame of your video

java - Null value for private member even after spring wiring is correct -

निम्न कोड पर विचार करें: सार्वजनिक वर्ग MachineUsageNode {निजी MachineOPJMXBean machineOPJMXBean; @ आवश्यक सार्वजनिक शून्य सेट माचिनओपीजेएमएक्सबीन (मशीनओपीजेएमएक्स बीन मशीनओपीजेएमएक्सबीन) {यह.माचाइनओपीजेएमएक्सबीन = मशीनओपीजेएमएक्सबीन; }} मेरा वसंत तारों इस तरह से चला जाता है: & lt; bean id = "machineUsageNode" class = "com.mincom.works.cc.personnel .node.MachineUsageNode "scope =" singleton "आलसी- init =" true "init-method =" init "& gt; & Lt; प्रॉपर्टी नाम = "मशीनओपीजेएमएक्सबीन" ​​रिफ = "मशीनओपीजेएमएक्सबीन" ​​/ & gt; & Lt; / सेम ​​& gt; & Lt; बीन आईडी = "मशीनओपीजेएमएक्सबीन" ​​वर्ग = "com.mincom.works.cc.personnel.node.MachineOPJMXBeanImpl" / & gt; MachineOPJMXBean एक इंटरफ़ेस है: सार्वजनिक इंटरफ़ेस मशीनपेजएमएक्सबीन {सार्वजनिक शून्य addOperator (व्यक्ति ऑपरेटर); } समस्या यह है कि जब मैं कोड चलाता हूं तो यह मशीनओपीजेएमएक्सबीन को शून्य के रूप में दे...

javascript - Scroll within Modal -

I have a model with content on my site. However, I have seen on a mobile phone that I can not scroll inside the content, it is not 'fixed' with a scrollbar. My JSFild is here: From here you can see my CSS and JavaScript. I've attached my CSS too below: / * line 863, ../sass/_layout.scss * / html.cinema- viewer {overflow: hidden! Important; } / * Line 871, ../sass/_layout.scss * / # cinema-overlay {background-color: RGBA (0, 0, 0, 0.95); Width: 100%; Height: 100%; Status: fixed; Top: 0; Left: 0; Z-index: 99 999! Important; Hidden flurry; -webkit-user-select: none; Select -mose-user: none; Select user: none; } Many thanks for any help :) Try adding #cinema-overlay {overflow-wi: scroll; Status: Completed; } and remove overflow: hidden from the same element

goroutine - OS Threads in a Go Program -

I am using 1.3.3 I am trying to understand when I go to new threads I have the following two programs Are: Program 1: Package main fax main () {for ;; {}} Program 2: Package main import ("sync") fenc justrun (wg * sync.WaitGroup) {for ;; {} Wg.Done ()} func main () {var wg sync.WaitGroup gor (& amp; wg) wg.Wait ()} In the activity monitor I see that program There are two threads in 1 and 3 threads for the program 2. I have many questions: What are these 2 threads in program 1? I think that is for a "main", but what's the other for this? In Program 2, once I tell wg.Wait () that the number of threads is 3. I was guessing Program 2 was the same number of threads as program 1. My understanding is that one thread with main () format P1 is going on in M1, will run in the race of Gorontane P1. I have read somewhere that the oldest gourmet in the sync package does not use a thread because they are blocked due to them. If this is the case, the...

android MediaPlayer setDataSource not grabbing a playable file -

Well, the problem I have to get the stream to play other websites) with your localhost server (and raw MP3 files Is happening My code works for the site, which is annotated so I think it has something to do with the server and Java code public class main activity provides Akshnbrektiviti {// Static final string enshor = "http://www.hrupin.com/wp-content/uploads/mp3/testsong_20_sec.mp3"; Fixed final string ANCHOR = "http://spintro.ddns.net/Random%20Access%20Memories/07%20-%20Touch.mp3"; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.activity_main); Media Player MP = new Media Player (); Mp.setVolume (1, 1); Try {Mp.setDataSource (ANCHOR); Mp.prepareAsync (); } Hold (exception e) {e.printStackTrace (); } MpksetOnPreparedListener (New MediaPlayer.OnPreparedListener () {@Override public void onPrepared (MediaPlayer mp) {Toast.makeText (MainActivity.this, "Ready", Toast.LENGTH_LONG) .sh...

vb.net - only read certain columns from a csv -

So I have a CSV file that has extra commas in it. I know that I need anything after a specific column Will not be Then basically no information will be required after the column 12. I do not have a say when CSV is looking for me, so I can not change it there. I was thinking that if you read the first 12 columns and there is a way to ignore the remaining CSV file. This is a code that looks like now Thanks for any help Private subgate data (string as stratified path, Datagid view in the form of a Bierf DG, alternate By-White Nahdar Boolean = Follows as Boolean) start as a string field (100) in the form of string thumb integer = 1, if not, start = 0 if not file is. Example (path) then the end of the return if the dim lines () is in the form of string = file. Readline line (path) rows (0) = rows (0). Chrome (34), "") Fields = Lines (0) .plit (",") If not, then for 1 field for I. 1 field (I) = Str (I) Next closing if dt.Column.Add (New DataColumn (Header.Trim ...

angularjs - Trigger a function with ng-click -

So I installed a very simple application to test the ng-click Function: JS: var choreApp = angular.module ('choreApp', []); ChoreApp.controller ('choreCtrl', function ($ scope) {$ scope.logChore = function (home work) {warning (tempo + 'is finished!'}}}) ChoreApp.directive ('child', function () {Return {Christian: 'E', Scope: {done: '& amp;}, Template: "& lt; input type = text ng-model =' core '/> {{chorus}} & lt ; / B & gt; "}}); html: & lt; Div ng-controller = 'choreCtrl' & gt; & Lt; Baby did = 'logchor ()' & gt; & Lt; / Kid & gt; & Lt; Div class = 'button' ng-click = '({chorus: courier})' & gt; Button & lt; / Div & gt; & Lt; / Div & gt; However, when I click on .button , nothing happens, there really is nothing, there is no error in the console or anything Why can it be understood? First you add b...

c# - WCF Rest service authentication in web config file -

I am developing a WCFRest service and want to authenticate with a single userid and password. Go through a lot of things on the internet. But the thing is complicated. I want to know that single user in web configuration file, there is no way to allow passwords. & lt; Location path = "test.svc" & gt; & Lt; System.web & gt; & Lt; Authority & gt; & Lt; "?" Denyusers = /> & Lt; / Authorization & gt; & Lt; /system.web> & Lt; / Location If there is any way to prove it. Please help me on this. Here's the thing: you do not want to allow only a specific USER, you want to give specific permission There is permission to do this, that is to allow someone to do it using the User ID and Password means that if you ever need permission (because that person has been removed, or because now with that permission 2 people ), Then you have the web The config must be changed and the file can again break the site in ext...

php - preg_match name and title with information in database -

I am trying to create a script that will get information about a DJ. What I want to do, the DJ matches the name of the DJ in the table titled If the DJ name is present then I want to select that line and want to use that information. What do I do for the first time, if I make a list in the DJ array, then I want to match it with the title and if there is a match then I want to get the information. The script is my now: $ ps = $ this-> Db- & gt; Ready ("Choose djname FROM` djcrew`"); $ Ps- & gt; SetFetchMode (PDO :: FETCH_ASSOC); $ Ps- & gt; Executed (); $ Selectit = $ ps- & gt; Fetch (); $ Result01 = preg_match ('/'. $. '/', $ Servertitle, $ matches); $ Ps01 = $ this- & gt; Db- & gt; Prepare ('Select' FROM `djcrew`WERE` DJname` =: DJname '); $ Ps01- & gt; Beyond Parm (': DJname', $ matches [0], PDO :: param_ast); $ Ps01- & gt; SetFetchMode (PDO :: FETCH_ASSOC); $ Ps01- & gt; Executed (); $ Da...

angularjs - How to get element from angular model? -

तो, मेरे पास उदाहरण है इस नियंत्रक: कोणीय। मॉड्यूल ('उदाहरण', [])। नियंत्रक ('ctrl', फ़ंक्शन ($ दायरा) {$ scope.data = '' // यहां, मैं चाहता हूं तत्व को जानने के लिए यह संपत्ति बाध्य है ..}); और निम्न मार्कअप: & lt; div ng-controller = "ctrl"> ... & lt; input type = "text" एनजी- मॉडल = "डेटा" की आवश्यकता> ... & lt; / div> अब मैं बाइन द्वारा नियंत्रक के अंदर इनपुट-तत्व कैसे प्राप्त करूं? दूसरे शब्दों में, मैं $ scope.data पर बेहतर सवाल यह है कि आप क्या करने का प्रयास कर रहे हैं? कोणीय में आपके दायरे पर एक एकल तत्व विभिन्न प्रकार के तंत्रों के माध्यम से कई एचटीएमएल तत्वों के साथ बांधा जा सकता है, इसलिए यह सबकुछ प्रभावित करने की कोशिश कर रहा है जो बहुत मुश्किल है। ऊपर की तरफ, शायद यह जरूरी नहीं है। कोणीय के प्रमुख किरायेदारों में से एक यह है कि आपको अपने मॉडल को अपडेट करना चाहिए और अपने विचार को स्वयं का ख्याल रखना चाहिए, यह है कि, निर्भर होने के लिए यह ठीक है मॉडल पर, लेकिन मॉडल नहीं होना ...

git - Can't squash commit: it is not there -

I have a set, I want to squash. I know that there is only one, that on Git rebase is there that --interactive startCommitHash does not appear at all, then the problem To solve, I decided to start squashing one by one from the tail one by one, so that when I face the problem, I will try what happens, which is quite curious. My log looks like squashedCommitsHash Squashing does troublesomeCommitHash messed up the problem I run Git rebase --interactive HEAD ~ 2 and then I start commemorating the startCommitHash starting commit hit SecondHash committed to take the second committed thirdHash third pickup fourthHash fourth committed pickup fifthHash fifth commit pickup squashedCommitsHash Squashing Travis-CI Fix What ?! Where's my problem? Why not? And why not all specify why everyone wants to squash 2?

javascript - How to find the largest length for every column in a huge multidimensional Array -

We have this type of array and indicate the length of the word in the maximum column. Miscellaneous data = [["1111", "44"], ["222", "55555"], ["33", "666"], ...]; "1111". Long & gt; "222". Long & gt; "33". Length, "55555" Long & gt; "666". Long & gt; "44". Length max max - & gt; [4,5]; Because this array is really huge, what would be the most effective way to do this? var data = [['ABC', 'ABCD', 'ABCDEF', ' ABCD, ABC, ABCDF, ABC, ABC 'ABC', 'ABCDF', 'ABC', 'AB', 'ABCDF', 'ABCD', 'ABC', ' ABC ', [' ABCDF ',' ABC ',' ABC '' ABCDEFG ',' ABC ',' A ',' ABCDEF ',' ABCD ',' AB ',' ABC ']]; Var _maxs = []; Var leghtoffre = data [0]. Length, _max = []; (Var i = 0; i & ...

Drupal: Store 'default theme' in Feature -

I am afraid that my question for almost everyone is a no-brainer, but I could not find the answer. I can not get it from Google, StackOverflow or the code generated by the features. How can I store the default theme of a site in a feature? Do I Need Struggle? What will be the name of the variable? (It looks like a duplicate, but we are four years ahead now) If you mean real themes, templates and all, then no. Features are for bundling configurations only if you mean the setting for the default theme, yes: Install Strongarm and select the theme_default variable if you are creating your own feature.

classmethod lambda Python -

I have a hard time understanding this piece of code. I understand that to save the time of testing, Instead of the end point, some are using fake. I do not understand that Klassemp (Lambda CLS: Self Preprop) is the structure. What does the use of Lambda CLS mean if I do not use all the CLS inside the code? I hope that I am quite clear, I would be very happy if someone can put a light this one .. Thanks a lot @patch ("paypaladaptive.api.endpoints.UrlRequest", MockUrlRequestPreapproval) def test_preapproval (self):. # I do not understand this code, it is very confusing self.assertTrue (self.preapproval.process (why: why do I use a lambda structure if I code myself in the code (self.preapproval) MockUrlRequestPreapproval .preapproval = (self.preapproval) need to not use classmethod (lambda CLS)) self.preapproval = Preapproval.objects.get (p = self.preapproval.pk) self.assertNotEqual (self.preapproval.preapproval_key, "") Self.assertEqual (self.preapproval....

rgb - How to create X% percent gray color in Java? -

Suppose i want gray color 25% or 31% in java? The following shows the code BufferedImage image = new BufferedImage (2, 2, BufferedImage.TYPE_BYTE_GRAY); Image.setRGB (0, 0, new color (0,0,0) .getRGB ()); Image.setRGB (1, 0, new color (50, 50, 50) .getRGB ()); Image.setRGB (0, 1, new color (100,100,100) .getRGB ()); Image.setRGB (1, 1, new color (255,255,255) .getRGB ()); Raster raster = image.getData (); Double [] data = raster.gate pixel (0, 0, raster .getWidth (), rastergatehit (), (double []) empty); Println (Arrays.toString (data)); The obvious fact, that RGC density (?) Is related to non-linear [0.0, 8.0, 32.0, 255.0] So, how can the color of given density be made? UPDATE I have tried, the methods proposed by @Inza and HLLG and I also found another one: double [] data; Raster raster; BufferedImage image = new BufferedImage (1, 1, BufferedImage.TYPE_BYTE_GRAY); Float [] Grayz = {0, 0.25F, 0.5F, 0.75F, 1}; ColorSpace Linear RGB = Rangespace Get Instances (...

PHP/JavaScript Cross pages music player -

I had an idea earlier and I thought it would not be executed without an iframe or ajax call. I can not work on an MP3 file or radio channel after changing the URL in the website, for example, website.com/profile website.com/news The entire page will change at all, and the MP3 or radio will need to be reloaded. . But, I realized that SoundCloud has this feature - after playing a music, while searching for a site, the music continues to work, and when you return to the music page, it seems That you will never leave the page Besides, Facebook is used in chat on this right side when you change the pages, most of the time, the chat will not hurt by the change, which means that chat is working the same way As you are on the same page and you can not change it anytime. I hope you guys will help me and tell me which technology they are actually using in this technique? "post-text" itemprop = "text"> Iframe and AJAX are the only way to call. Ajax...

javascript - nodejs execute string variable -

I am using sails.js. 1) I want to print 'Dolphin' with the object matching call. var matchCol = {'card': {'add': {'voo': 'dolphin'}}}; Module.exports = {methodA: function (Rick, Race) {var a = 'card'; Var B = 'Ed'; Var c = 'voo'; Return res.send (matchCol.a.b.c); },}; 2) If I want to declare the object and want to parse the key 'foo', then how can I do it? var key = 'foo'; Var params = {key: 'some'}; Please help. In Javascript, if you have a variable that represents the property name of an object, you can access it by entering the return res.send (matchcol [a] [b] [c]); You can also use square brackets for assignments: var key = 'foo'; Var Params = {}; Consultation [key] = 'anything';

mysql - SQL statement errors in PHP but ok in SQL -

निम्न एसक्यूएल कथन एक एसएसएल स्क्रिप्ट या phpmyadmin में एक MySQL डेटाबेस तालिका के साथ सही ढंग से चलाता है, लेकिन एक PHP स्क्रिप्ट। एसक्यूएल कथन है: अद्यतन traceability t1 आंतरिक में traceability t2 पर (t1.parent में (t2.child चुनें)) सेट t1.root = false ; PHP स्क्रिप्ट में कोड की तरह दिखता है: $ sqlupdatestmt = $ db- & gt; क्वेरी ("अद्यतन traceability t1 आंतरिक में traceability t2 पर ( T1.parent में (t2.child चुनें)) सेट t1.root = false; "); $ Sqlupdatestmt- & gt; निष्पादित (); PHP लॉग में त्रुटि है: PHP घातक त्रुटि: संदेश 'SQLSTATE [42S22] के साथ' अपवाद अपवाद 'PDOException': कॉलम नहीं मिला: 1054 अज्ञात स्तंभ 'फ़ील्ड सूची' में 't2.child' / in & lt; myfilepath & gt; /traceability.php:50 स्टैक ट्रेस: ​​# 0 /<myfilepath>/traceability.php(50): पीडीओ- & gt; क्वेरी ('अपडेट ट्रेसबी ...') # 1 {मुख्य} PHP में क्या गलत हो रहा है कि वह PHP / SQL त्रुटि फेंकता है? यहां ट्रैसबिलिटी टेबल स्कीमा के बारे ...

Collections module in Python behaves strange? -

Hi all Python user, I'm not 100% sure, but it seems that a bug In Python Function collections.Counter () is a part of the archive module. Function collections.Counter () should count the incidents of numbers in a list; in other words, the frequency of the number of vector in this list should be determined. It does not matter whether these numbers are floats or integers in many occasions but this does not work properly, and this is an example when it fails to answer correctly: Import as NPP as import Import Import from import Import imported by import Import plots as matplotlib.pyplot = [250, 250, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 253, 253, 253, 253, 254, 254, 254, 254, 254] data_2 = [250, 250, 251, 251, 251, 251, 252, 252, 252, 252, 253, 253, 253, 253, 254 , 254, 254, 254, 254, 255, 256, 256] #s Not allowed for dataDei D3 = D. 2.values ​​() Approved wavelengths d2 = collections.Counter (data_1) in the archive module # for iterations for bear...

javascript - Not seeing why my option will not sum up? -

I am trying to display the options menu of all my options on a product page. I have simplified JSField, as it works. & lt; Select name = 'anch1' & gt; & Lt; Option data-value = "" & gt; ---- & lt; / Options & gt; & Lt; Option data-value = "10" & gt; 10++ & lt; / Options & gt; & Lt; Option data-value = "20" & gt; 20++ & lt; / Options & gt; & Lt; Option data-value = "30" & gt; 30++ & lt; / Options & gt; & Lt; Option data-value = "40" & gt; 40++ & lt; / Options & gt; & Lt; Option data-value = "50" & gt; 50++ & lt; / Options & gt; & Lt; / Select & gt; & Lt; Select name = 'ant2' & gt; & Lt; Option data-value = "" & gt; ---- & lt; / Options & gt; & Lt; Option data-value = "10" & gt; 10++ & lt; / Options & gt; & Lt; Option data-value = ...

uitableview - load data in table view after scrolling to bottom -

I have an initial table unpublished. Oh, the witch is fully displayed (UIScrollView *) scrollview willDecelerate: (bool) Speed ​​{CGFloat currentOffset - (zero) scrollViewDidEndDragging : But one wants to scroll down and load another row of data .. I used this = ScrollView.contentOffset.y; CGFloat Maximum Offset = Scrollview. Contents. Highlight - Scrollview.fr. Eyes height; If (maximum offset - current offset & lt; = 10.0) {[self-loaded viewable view]; }} - (zero) insertRowInTableView {[self.unreadmessagesArray addObject: self.messagesIfScroll]; [Start MytableView Update]; NSArray * path = [NSArray arrayWithObject: [NSIndexPath indexPathForRow: ([self.unreadmessagesArray count] - 1) insection: 0]]; [MytableView insertRowsAtIndexPaths: Route with animation; Animation: No]; [MytableView and Updates]; [Reload mytableView data]; } - (zero) getMessagesIfScollToBottom {self.messagesIfScroll = [NSMutableArray arrayWithArray: responseA]; } Error I get: Exception occurred 'NS...

x86 - There is a signature for a specific ABI in an ELF or binary file? -

I need to identify ABI which generates some binary, programmable, dynamic and static libraries. I would like to ask that there is a property or a tag or string that I can see from an external device to see that the ABI was used to make that binary object. My objects are mostly x86 and ARM for LF, and I am also adding ABI for debugging purposes like DBARF. EDIT: Like the magic bytes at the beginning of a file which is usually used to detect the file's file format. There are several indicators that may exist in ELF files. Used to mark the EI_OSABI area . The code of "branding" is used in the reserved part of the e_indent area (beginning 8th byte). For ARM files, you have the information in the EABI version / variant, and the object file can also contain the .ARM.attributes section. In the .comment section the compiler can have a name / version, but it is only informative - it is not used by OS to identify ABI, and usually ABI information i...

c++ - how to display system current time + 3 minutes? -

C ++: How can I show the system current time (Only without time)? How can I show current time + 3 minutes? Can I use it for cout ? Which library or function to use? You can try this example (use c ++ 11 clang 3.6): #include & lt; Iostream & gt; # Include & lt; Iomanip & gt; # Include & lt; Ctime & gt; # Include & lt; Chrono & gt; Int main () {std :: chrono :: system_clock :: time_point now = std :: chrono :: system_clock :: now (); Std :: time_t now_c = std :: chrono :: system_clock :: to_time_t (now - std :: chrono :: hours (24)); Std :: cout & lt; & Lt; Std :: put_time (std :: local time (& amp; now_c), "% T") & lt; & Lt; Std :: endl; Std :: time_t later_c = std :: chrono :: system_clock :: to_time_t (now - std :: chrono :: hours (24) + std :: chrono :: minutes (3)); Std :: cout & lt; & Lt; Std :: put_time (std: local time (& amp; later_c), "% T") & lt; & Lt; Std :...

maven - Jenkins CI- Distributed Testing After a Build is done -

Currently I'm trying to get it: I use Jenkins to constantly build my project , I also want to make a distributed test later, that is to be constructed. To send a smoke test to several nodes / slaves so that tests can be performed on multiple platforms simultaneously, each node will consistently accept new dispatch test suits from the Master Service until all the trial suites are terminated. I tried: Setting up master / slave configuration on Jenkins Invite Maineway during build steps to run junit unit tests However Jenkins will select only one slave to perform all the tests. I also tried the Gist Test plugin, but I think the plug-in has difficulty setting the relative path in the library, does anyone have experience with this plugin? The best way to do this is now: Create a new Jenkins job for each slave, and assign a test suit to the slave ( ) Use the Multizib plugin to trigger all jobs at once This solution resolves the problem, but scaling it after a larg...

phpmailer - Faster way of sending mail using PHP and SMTP -

I send mail through PHP using a virtual SMTP server on Windows 2008 server. It takes about 20 minutes to receive mail that sounds crazy for me. I am thinking that there is a fast way to send mail through a php script? Simple solution its better. EDIT: I am setting up a log for my SMTP server with the following results, still trying to understand what it means and why hang out why any help is appreciated. Will be: # Software: Microsoft Internet Information Services 7.5 # Version: 1.0 # Date: 2014-10-17 18:36:48 # Field: Date Time C-IP S-STNAM S -IP s-port cs-method sc-win32-status sc-bytes cs-byte from time to time Or 2014-10-17 18:36:48 127.0.0.1 SMTPSVC1 127.0.0.1 Hello 0 57 38 2014-10-17 18:36:48 127.0.0.1 SMTPSVC1 127.0.0.1 0 mail 0 53 40 0 ​​2014 -10-17 18:36:48 127.0.0.1 SMTPSY 1 127.0.0.1 0 RCPT 0 48 45 2014-10-17 18:36:48 127.0.0.1 SMTPSEC 1 1 127.0.0.1 0 Statistics 0 146 2387 16 2014- 10-17 18:36:48 127.0.0.1 SMTPSVC1 127.0.0.1 Quotes 16 82 4 2014-10-17 18:57:46 xxxx S...

mysql - Using PHP variable in mysql_query string -

OK guys, mysql_query is a little complicated issue with passing PHP variables in string $ _GET ['Date']. Some will like when passed:. 2015_01_07_1 I need the data passed in the table names using the $ week variable " text "itemprop =" text "> Text changes to the string: " SELECT games_brixx_gastonia_ $ week.rank, players_brixx_gastonia.name, Games_brixx_gastonia_ $ week.points from Games_brixx_gastonia_ $ week, players_brixx_gastonia WHERE Games_brians_gastonia_ $ weeks.email = players_biris_gastonia.members order by_library_gastonia_ $ weeks.Rank LIMIT 20 " You have to remove the ' characters; It is db going as games_brixx_gastonia_'2015_01_07_1'rank

javascript - Live output in jQuery HTML5 range slider -

I am trying to get a live output from an HTML5 input range slider in a JavaScript variable. > & Lt; Input type = "range" id = "rangevalue" onchange = "arduino ()" & gt; The way I have to do this work, I am doing what I am doing, but it is not "live". I want to do this when you are pulling the slider, it updates the variable, and not only after you go. For example: When I'm pulling the slider from 1 to 5, I want to update the variable, when I'm pulling it will update with 1,2,3,4,5 and Not only jumping from 1 to 5 I leave the slider. Is it possible to do this? Any recommendations? I was using jQuery slider plugin, but it was not touch compatible, which ended its purpose. Thanks in advance for all help! Edit - I should not have understood enough, I know how to get the value of the range slider, I want to get "live" output from it. $ ("# rangevalue"). $ ("#Rangevalue"). Mousemove (func...

haskell - How to convert a data type into a MonadState -

मेरे पास इन प्रकार हैं: डेटा ट्री ए = शाखा (ट्री ए) ए ( पेड़ ए) | लीफ डेरिविंग (ईक, ऑर्ड, शो) न्यूटाइप राज्य का ए = स्टेट '{runState' :: (एस, गणना) - & gt; (ए, एस, गणना)} इन उदाहरणों के साथ: उदाहरण मोनद (राज्य का) उदाहरण मोनैडास्टेट (राज्य) और मुझे फ़ंक्शन बनाने की आवश्यकता है label :: MonadState m int = & gt; ट्री ए - & gt; एम (पेड़ (इंट, ए)) लेकिन मुझे नहीं पता कि मैं कैसे एक पेड़ को state ' में परिवर्तित कर सकता हूं। आपको अपने राज्य मूल्य को ट्री को बदलने की आवश्यकता नहीं है, आपको लेबलिंग प्रक्रिया के प्रत्येक चरण पर int के राज्यपूर्ण मूल्य का उपयोग करना होगा इसके लिए, आपको संभवतः getLabelAndIncr :: MonadState m int = & gt; एम + आईटी मिलेल और एंड्रॉक्ट = चालू करें & lt; - $ चालू करें + वर्तमान रिटर्न चालू करें फिर अपने label फ़ंक्शन में आप ऐसा कुछ कर सकते हैं label :: MonadState m int = & gt; ट्री ए - & gt; मी (पेड़ (इंट, ए)) लेबल = लीफ लेब लेबल (शाखा के बायीं नोड दाएं) = आई एल एंड एलटी; - getLabelAn...

javascript - Managing back button jquery mobile after loading content -

I am working on a jquery mobile hybrid app. As I have a fixed skeleton of the app, all I do is, the content of each page & lt; Div data-role = "content" & gt; The header / footer preserves / sidebar etc ... $ ("# Page Content"). Load ("page / login-view html", function () {$ (this) .enhanceWithin ();}); Everything is working fine. But what is blocking me right now is managing the action while clicking on a left arrow in the header. Since I am not reloading the whole page and I am loading content only on pages within my main page, I have no idea how the backstack or use thank you

Why does replying to this Facebook email address trigger a security warning by Yahoo? -

I am developing a Chrome plugin that simplifies the various aspects of handling Facebook advertising platforms. As part of this I have experimented with FB support with related ideas to deal with email. In this context, I have a situation where the only act of responding to an email received from Facebook in part (not forged, American plan Receive to communicate with a real email reason platoform) instantly triggers a security alert on the Yahoo email platform. Responding to this FB email may prevent 24-hour restrictions on Yahoo! once, to stop sending you emails. This has happened three times. not sure why. info@w2opo85.aeayqq3dz3idc@support.facebook.com I am not familiar with the internal of email communication. Does the FB send a response to some type of Yahoo that triggers it? Is there anything from an e-mail address that causes Yahoo to trigger an alarm? Update: I removed the well-out Outlook and sent this feedback header to me without any problem: Return-path:...

c++ - Non-member variable detection -

I am trying to use SFINAE to find non-member variable existence. Actually it fixes my needs to check whether name was declared and can be seen in the actual scope, or not, by ignoring the type of variable. Something like this: int var1; {Int var2; } Cout & lt; & Lt; Var1Exists :: Value & lt; & Lt; Endl; // True COAT & lt; & Lt; Var2Exists :: Value & lt; & Lt; Endl; // Wrong, because 'var2' exited the scope I've found how (actually found), but I have not managed to do it with a simple variable can do. I am currently doing something like this: Namespace sfinae {template> Typename type & gt; Class variation {template & lt; Void * ptr & gt; Lowest structure; Template & lt; Typename T, typename ptr = lowest & lt; & Amp; Var1 & gt; * & Gt; Check the structure; Template & lt; Typename u & gt; Fixed std :: true_type tester (probe & lt; bool & gt; *); Template & lt; Typename u ...

c# - Having trouble adding to an ObservableCollection using Dispatcher of UI thread -

After A lot of questions (primarily ObservableCollection ) While using a background worker thread I am trying to apply however, my position has a slightly higher depth because it calls a function in the edition that gives the object to include. This is bound to my solution looks like now ( Note that my ObservableCollection a TreeView control ): // Pass Background Thread from MainTreeViewModel.AddLocation (LocationName, locationValue); // UI thread (MainTreeViewModel) public void AddLocation (MultiItemString DISPLAYNAME, integer locationValue) {var node = Data.GetAllChildren (X = & gt; x.Children) .. .Distinct () ToList () First (x => X. Identification == 'P'); // Area Parent App.Current.Dispatcher.BeginInvoke ((action) representatives () {node.Children.Add (CreateLocationNode (DISPLAYNAME, locationValue));}); } CreateLocationNode: // Also MainTreeViewModel private HierarchicalVM CreateLocationNode location (MultiItemString DISPLAYNAME, integer locati...

hadoop - How does Map Reduce ensure all the data of a single xml record split across different Files go to the same mapper -

I have a large set of XML records in different files. Now if a record starts in 1 file but there It does not end, instead it has been continued in another file. How to find out the framework for reducing the map, that the remaining patches of the record can be processed by a single mapper?

actionscript 3 - How to add multiple textfields in a list form in as3 -

I currently have input text boxes in a movie clip, this MC has a saving button. Save button sends the information from the input box to the second box of text that is called TEXT1. IM, trying to figure out how to add many examples (TEXT1) when the user presses the save button with new information from MC Am I Any thoughts please

statistics - Non-Numeric Ttest? -

What is a statistical test that you can use to determine the relationship between the two groups which are non-numeric (I.e., one of the fastest for non-numerical data in search of equivalent) Specifically, I want to compare the growth statistics of the plant. I want to compare the type of plant (non-numerical) with CO2 uptake (numerical) and want to determine whether there is a statistical union. Thank you!

mysql - select into outfile permission denied on windows -

मैं विंडोज़ 8 और आई पर mysql 5.6 कमांड लाइन (mysql user: root) से आउटफाइल कमांड में एक चयन चलाने का प्रयास कर रहा हूं I अनुमति अस्वीकृत त्रुटि प्राप्त करें। निम्नलिखित त्रुटि है: त्रुटि 1 (HY000): 'C: \\ Users \\ xxxx \\ Desktop \\ project \\ फाइल करने के लिए बना / लिख नहीं सकते Output.txt '(त्रुटि कोड: 13 - अनुमति अस्वीकृत) निम्न कमांड है जिसे मैं mysql कमांड लाइन के माध्यम से निष्पादित करने का प्रयास कर रहा हूं: mysql> कॉन्ट्रैक्टर_इनफ़ॉएफ़ से आउटफाइल में चयन करें "सी: \\ उपयोगकर्ता \ \ Xxxx \\ डेस्कटॉप \\ प्रोजेक्ट \\ output.txt "; मैं प्रोजेक्ट फ़ोल्डर में तालिका की एक प्रति सहेजना चाहता हूं।

flot - gFlot get color ..when is it attached to DOM in GWT -

After determining the color, the color is fixed after the DOM is connected. When can I call the method using GWT? plot = createPlotGraph (); Edit: The actual context is something (VP is a vertical panel): plot = createPlotGraph (); If (conspiracy! = Null) {plot.setSize ("100%", "100%"); Vp.add (conspiracy); Vp.setCellHeight (plot, "100%"); plot.addAttachHandler (New AttachEvent.Handler () {@Override public void onAttachOrDetach (AttachEvent event) {plot.getModel (). getSeries (). get (0) .getAutoGeneratedColor () println (plot.getModel () .getSeries ( ). Length ()); System.out.println (plot.getModel (). GetSeries (). Get (0) .getcolor ());}}}}} and I found I have 3 (or more) series that is actually rendered correctly, I see everyone on the screen properly, but the color println written below is always empty. Other attempts Do: if (plot! = Null) {plot.setSize ("100%", "100%"); .. Plot.addAttachHandler (New AttachEvent...

algorithm - adjacency matrix of weighted directed graph -

ए) मान लीजिए ए भारित निर्देशित ग्राफ का एक निकटता मैट्रिक्स जी n शीट के साथ जिसमें ए [i, j] बढ़त का एक भार हो i से j के साथ। अगर ऐसा कोई बढ़त नहीं है i [i, i] = 0 मैट्रिक्स ए ^ के = ए * ए * ए * ... ए । यदि हम * के बजाय * का उपयोग करते हैं और मिनट के बजाय +, स्लॉट ए ^ के [i, j] का उपयोग करते हैं, तो पथ के वजन का वर्णन नहीं करता i अधिकतम k किनारे पर j से मैं इस समस्या को दिखाना चाहता हूँ क्या चीजें? ए भारित निर्देशित ग्राफ (wihout लूप और एकाधिक बढ़त) का एक निकटता मैट्रिक्स मान लीजिए जी के साथ n शीर्ष पर, जिसमें ए [i, j] बढ़त का एक भार है i से j अगर ऐसा कोई बढ़त नहीं है i [i, j] = अनंत , और evrey i के लिए हमारे पास ए [i, i] = 0 । मैट्रिक्स ए ^ के = ए * ए * ए * ... ए । स्लॉट ए ^ के [i, j] क्या चीज़ें दिखाएं? न्यूनतम वजन? या ...? कोई भी विचार? संपादित करें: मेरा मतलब है ये एल्गोरिथ्म ग्राफ़ में है? अधिकतम वजन मिल जाए? न्यूनतम वजन? बी = ए ^ के बी [i, j] कम से कम पथ को i .. j से दर्शाता है, जो बिल्कुल k चरण लेता है एक मै...

angularjs - ng-repeat syntax not correct -

I have a pars syntax error when I try this: & lt ; Div ng- repeat = "post in posts" id = "{{post.idFB}}" & gt; & Lt; P & gt; {{Post.name}} & lt; / P & gt; & Lt; Ul & gt; & Lt; Li ng-repeat = "feed in feed {{post.idFB}}" & gt; & Lt; P & gt; {{Feed.title}} & lt; / P & gt; & Lt; / Li & gt; & Lt; Ul & gt; & Lt; / Div & gt; The problem is that the line & lt; Li ng-repeat = "feed in feed {{post.idFB}}" & gt; , what is the good syntax? Expectancy feeds feed846097918756247 Online app: Edit: jmb.mage Solution: & lt; Ul NG-Init = "MyFid = MyFeed Function (RTR.IDFB);" & Gt; & Lt; Li ng-repeat = "feed in my feed"; Limit: 1 "& gt; Adoptions: {{feed.title}} & lt; / li & gt; & lt; li ng- Repeat =" Feed in Feed 846097918756247 | The limit: 1 "& gt; is the search: {{feed.title}} The oth...

php - Matching/Correlating lists of email addresses -

We have a monthly man email where we get a list of email addresses from different clients, which predominantly In the month of one month. I'm trying to find a way to match each list to each list using the list of my last month, so I do not have to specify which customer has a list for - last There is at least one way to process a new list of email addresses in pages, even if something new or out, or if there is a different order. Is there a function or statistical test I use for it? I can only calculate manually through each line of the new list to see if it is primarily the same email address, but this resource will be huge. The platform is Laravel 4.2. Thanks! Write a regular that repeats through the list 'A', line # Compare to 1 'B' to cut resources, return a true or false value after the 10th iteration of regular 'A', moving 'A' every time to increase the line number in 'B' is.

angularjs - Protractor don't wait for $http result -

I am facing the following problem and I can not get rid of it: I have a Cooner app that makes an API call using $ http.post , This API calls update the database and 10 seconds before returning On the return of the call, a dialogue is open that the exam is over When I test this small app with the opponent If I try to cry, then the exam ends, step 3 happens. This fails my test because the update is not always done in the database. During the test, I see opening the dialog after 10 seconds. Here are some code: My angular service to call: My Conflict Test: browser.get ('/ #! / Activate-account.html? Id =' + acc._id). Then (Function () {browser.sleep (1000); // Check that the DB account has been updated. Coll.findOne ({Pseudo: 'MyActivatePseudo'}, function (error, AC2) {hope (mistake) .to .not.exist; / / Expecting OK (acc2.activated) .to.be.true; // KO DB update only after findOne});); I try browser.sleep () in the ProtectorCache test, but it doe...

internet explorer - Font-awesome disappears after refresh for all ie browsers ie11,ie10,ie9 -

I know that this question seems to have been asked before, but the solution I found is only for IE8 Are there. We are using Font Awesome 4.1.0 and Bootstrap v3.0.3 in our project. If we load the page for the first time, all icons are displayed properly when we reload the page in Internet Explorer using Ctrl + R, they disappear. This problem arises for all IE versions including IE11. Then the problem is coming up in a header with a non-catching program in all requests on iOS And it was causing problems in loading the title font. & lt; Context & gt; To fix this problem, the following code was added to the reference code. & lt; Valve classname = "org.apache.catalina.authenticator.basicAuthenticator" 7 disable ProxyCaching = "false" /> & Lt; / Context & gt; And this context.xml file was placed in our root folder.

c++ - Qt Extending my own widget -

To put it simply, I want a new class that increases the custom widget I created, and thus There is full access to this UI. I have tried many different ways till now, how would normally sub-classes / extend classes, but I have in any way been for many reasons I have failed miserably. In addition, just do not use my widget as a member in my new category for this situation. Can anyone tell me how do I do this? I've done a bunch of searches but I can not seem to find any hits related to what I'm actually trying to do if everything goes wrong so I'll just copy the code and make a real Create a new widget, which will be technically saved, it takes a lot of time, but it is not doing it properly. My first trend was to do something like this ( Qwe being my new class, asd widget): class Q: ASD {public: ...} And I have also created the U public, but then I just get an error: UI :: ASD Use the undefined type whenever I tried to reach the elements of U. Bas...

javascript - What is the regex to find a single line of text preceding a question mark? -

In Javascript, I want to match all instances of the text between line breaks just before a question mark, such as: This will not match this text. How do I mail this text I am trying to expose all the questions of Textarea automatically. fairly simple: ^. * \? $ ^ and $ start and end of anchor string . * matches 0 + letters (excluding new lines) \? matches a question mark before the end of the string in JavaScript, use: var regex = /^.*\?$/ gm; Console.log ('This will not match this text.' Match (regesx)); Console.log ('How Do I Match This Text?' Match (Reggae)); and lieutenant; Script src = "https://getfirebug.com/firebug-lite-debug.js"> gt;

osx - Is it possible to output more than 8 channels with Web Audio API? -

I am experimenting with the Web Audio API to control the playback of interactive music in a multi-channel setup. So far, I have been able to direct the voice of 8 different channels on my 12 channel sound card to 8 oscillators, but as soon as I try to use more than 8 channels, all the channels are muted suddenly . After a lot of research I have also come to know that Audio Contexture Sequentimes gets stuck at a value near zero. This is my result from Mac OSX 10.8.5 Google Chrome version 39.0.2171.27 beta (64-bit) and version 40.0.2192.0 Canary (64-bit). Safari does not allow me to address more than 2 channels Firefox finds my 12 channel with audioContext.destination.maxChannelCount but my sound is channel 1 & amp; nbsp; ; 2 does not matter if i oscillator gain.connect (channel margar, 0, i) . What are you working there? Here is the code: var AudioContext = window.AudioContext || Window.webkitAudioContext; Var audioocontex = new audiocontent (); Var maxChannel...

angularjs - Angular $resource - attach a generic .finally function to a method -

I have a simple comfortable resource with the $ angular resource, on any saved method, in whatever field I I also want to set a message and boolean, and set an expiration for that message, anywhere in my code where I call. Save /. Save $ I, I attach it again. (Down) on Instead of putting instead. Wondering whether I can actually write on the actual resource at the end, and it can be a normal end to my saved ceremony var resource = $ resource (pageListPath) , {}: {Query: {method: 'GET', isArray: true}, get: {method: 'GET', url: page wizard, parameter: {id: 'id}}, cache: true} : {method: 'PUT', url: page Schepth parameters: {id: 'id}}, Delete: {method:' DELETE ', Url: page DetailPath, Params: {id:' @ id '}}}) ; Return processing; . Finally (function () {$ scope.loading = false; $ timeout (function () {$ scope.message = false;}, 2500);}); Ideally something save: {method: 'PUT', url: pageSavePath, params: {id: ...

scripting - Script Karaf shell commands? -

I need to issue the Karaf shell to order non-affiliate, preferably from a script. Specifically, I need the facility to tell Karaf:. Automatically install a set of features To attempt a feature in a way # attempt I could script the root @ d6d5bf65201a: / opt / opendaylight # ./bin/karaf Utility: Installed ODL-openflowplugin-flow services # leads me into Karaf shell opendaylight-user @ root & gt; Feature: Uninstall ODL-openflowplugin-flows services executing error: Named Feature 'ODL-openflowplugin-flow-services' is not installed # Feature was not installed Is it possible? Is there a different way to solve this issue (Automated installed of a set of Karaf features) that I am missing? After With bin / caraf, you start karaf with a login prompt, if you start karaf If you want to issue an order, you first need to start Karaf in server mode. Use bin / start shell script for this now you can either use bin / customer or bin / shell to communicate with Karaf in a non...

How to print the contents of an array to a label in c# -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मैं सामग्री को प्रदर्शित करना चाहता हूँ प्रत्येक संख्या के बीच एक अल्पविराम वाले लेबल से एरे का Num1 - num6 टेक्स्ट बॉक्स से कनवर्ट पूर्णांक चर हैं अब तक मैंने यह किया है। int [] संख्या = नया इंट्र [6] {num1, num2, num3, num4, num5, num6}; Array.Sort (संख्या); LblAnswer3.Text = number.ToString (); इस कोड का आउटपुट है: System.Int32 [] मुझे आउटपुट होना चाहिए: num1, num2, num3, num4, num5, num6 in आरोही क्रम। आप आसानी से IEnumerables और arrays को इनके साथ रोक सकते हैं: LblAnswer3.Text = string.Join (",", संख्या);

linux - How to tgz all items in a directory and encrypt it using GnuPG on the fly? -

I am searching for all the items in a directory to solve tgz and at that stage I want to encrypt it on GnuPG Am fly I use all the items in the directory for the TGG i *; Tar CFVs $ i.tgz $ i; Done I think I have to pip it like gpg | Gpg -z 0 - Different-trust - encryc -r mail@mail.com & gt; "File" .tgz.gpg but do I have to call gpg ? Everything that I tried happened in an error. If you are fine in storing the intermediate file hard disk, just encrypt it (and possibly Remove it later). As a result the script will look something like for i in * * tar cfvz $ i.tgz $ i gpg -r mail@mail.com --encrypt $ i.tgz # Include other options If you want to do the operation without an intermediate unencrypted file on the disk, make sure the tar file is in stdout instead of the required rm $ i.tgz # if you want to Dumping is to write it in the file (without using the -f flag): i in *; Tar cvij $ i | Gpg -r mail@mail.com - encryption & gt; $ I.tgz.g...

osx - How to undo a launchctl command? -

मैं निम्न कमांड को पूर्ववत करना चाहता हूं: sudo launchct load -w / library / LaunchDaemons / org.macports.mysql55-server.plist मैंने कोशिश की: sudo launchctl remove /library/LaunchDaemons/org.macports.mysql55-server .पीलिस्ट हालांकि, मुझे निम्न त्रुटि मिली: लॉन्चक्ट हटायें त्रुटि: ऐसी कोई प्रक्रिया नहीं बाद मैं इस सेवा को कैसे निकाल सकता हूं? आप वास्तव में "पूर्ववत" कुछ नहीं शुरू कर सकते हैं, लेकिन जो आप पहले से लोड किए गए डेमन को अक्षम करना चाहते हैं करें: सुडो लॉन्च्ट्ल अनलोड-डब्ल्यू / लायब्रेरी / लाँच डेमनस / मेग.मैकॉप्स.मैसक्ल55-एसरवर.प्लिस्ट