Posts

Showing posts from March, 2012

java - Join columns of different types in Hibernate -

I have 2 tables in table 1 column 'id', which is a number. Table 2 has a column called entity_id , which is the varchar . Table 1 has many relationships with Table 2. Here is my hibernate mapping for table 1 @intextyTable (name = "Table1") public class table 1 tool serializable {Private long ID; Private listing & lt; Table2 & gt; notes; @ Id @ column (name = "id") public long id () {return id; } Public Zero Set ID (Long ID) {this.id = id; } @OneToMany (fetch = FetchType.EAGER, targetEntity = Table2.class) @thet (FetchMode.JOIN) @JoinColumn (name = "ENTITY_ID", referenced column name = "id") public list & lt; Table2 & gt; GetNotes () {return stores notes; } Public Zero Setnotes (list & lt; Table2 & gt; notes) {this.notes = notes; }} When I create a citricar with Table 1 and try to list the data, then I am getting an invalid number error because the type in the column is not mismatched. Can you please t...

Delete remote folder with maven -

I can not find an example of removing a remote directory using Maven. The problem is that before the remote server But before deploying, I would like to remove the package for the classes I've already added. Then I use the wagon plugin to upload my files ... & Lt; Version & gt; 1.0 Beta 3 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Id & gt; Upload web.xml & lt; / Id & gt; & Lt; Step & gt; Verified to & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Uploads & lt; / Target & gt; & Lt; / Targets & gt; ...

c# - WebBrowser crash when using dropdown (Windows Phone 8) -

I am experiencing a strange problem with WebBozer control in my WP8 Silverlight project. I have a payment page from the bank, but when you select the end date of your card on the dropdown, the app clicks when the crashes without any debug info. This is only in the app, when I open the page. IE (tested on WP8 and WP 8.1) dropdown works fine, it shows full screen item selector. Do I need to enable something to work inside my app for this? scripts enabled is set to true. This is a video of the accident (occurs on the 7-second mark) EDIT: Although I get this error code in the debug console (which I have researched And this problem was not found to be useful for Axis): Programs '[2420] TaskHost.exe' code -1073741819 (0xc0000005) has exited 'access violation'.

uml - Is there a standard diagram type with both state and activity? -

I understand that a UML activity diagram describes an algorithm, so a sense is a modern version of a flow chart , Whereas a UML stat chart shows that all possible (or interesting) say that they can find themselves in an object or system, and show all possible changes between those states. I also understand that they are orthogonal models: an arrow connecting two states in the state chart shows a part of an algorithm or activity diagram; And some, if not all, arrows represent the states between two activities of an activity diagram, in which the object is found continuously in between the verbs. Is there a standard diagram type (UML or otherwise traditional) which gives different sizes something like this: start -> (State: new) - & gt; [Verb: save] - & gt; (State: saved) - & gt; [Verb: delete] ... but the staticchin type is the behavior definition Definition of which can be defined to join some structural programming features such as decision (which i...

javascript - Duplicate Nodes created neo4j and nodejs -

I have JSON data through which I am making a connection between nodes and nodes using the connector. I have followed JSON format {att0: "abcd", att1: "val1", att2: "val2", att3: "val3", att4 : "Val4", att5: "val5", att6: "val6", att7: "val7", att8: "val8"} .... This way about 1000 around att0 + att1 i have unique ID Gives UID1) and AT4 gives me unique ID after MD5 hash (give it a UID2). And att7 gives me unique ID after MD5 hash (give it UID3). I am creating two nodes of the following properties: node 1: {id: UID1, att3: "val3"} node 2: {Id: uid2, at 5: "well 5", at 6: "well 6"} relationship with node 1 - & gt; Node 2: {ID: UID3, AT5: "Well 8"} My data entry query is as follows: For (i = 0; i & lt; 1000; i ++) {// 1000 Objects, make Jason / UID1, UID2 and UID3 for each object based on the information above and query_string = merg...

c++ - Read file (containing int, string) to vector of pairs using ifstream -

I am trying to read a vector of a txt file by adding. The text file contains the following: The first line tells you how many strings are. The second row is an integer, it is telling the number of characters in the first (string). And then, the third line has a string, then the next "pattern" follows (how many characters and then the string itself) for example: 2 4 CDEF I thought, reading the first line separately (which works fine). Then make pairs for each int and string. The second part, in any way, does not work, so I really appreciate it if someone can help me find fault. So here's my code: #include & lt; Iostream & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Fstream & gt; # Include & lt; Sstream & gt; #include & lt; String & gt; # Include & lt; Vector & gt; # Include & lt; Utility & gt; using namespace std; (Arg arg []] {if (argv [1]) {some code here ...} / arg [2] is formatted in som...

Xaml interactions not working in Windows 10 -

I am working on a Windows Store app (Windows 8.1) and I am using a search box like this & lt; Search box X: name = "search text" question text = "{binding query text, mode = two}" & gt; & Lt; I: Interaction.Behaviors & gt; & Lt; Core: EventTriggerBehavior EventName = "Query submitted" & gt; & Lt; Core: InvokeCommandAction command = "{Binding Search Commands}" /> & Lt; / Core: EventTriggerBehavior & gt; & Lt; / I: Interaction.Behaviors & gt; & Lt; / SearchBox & gt; It's working fine in Windows 8.1, but I was just testing a preview version of Windows 10 and found that the circuits are not firing. After adding the query to the event holder in the code after the query, the query event gets cured, so it seems that the compulsory does not work. Does anyone have the same problem experience? Try it out: & lt; SearchBox & gt; & Lt; Interactivity: Interaction.Triggers ...

android - Crashlytics to Fabric, duplicate library projects -

Image
So, a week or so ago, we changed Critterwism from the crystals to various reasons. It came with a plugin for Eclipse which automated some process. How convenient, of course, I think, but another developer pulled out the code in the company yesterday and installed the plug-in, and we found out that they have converted it into fabric, apparently as being a part of the crashing fabric, apparently On. Still okay, I'm sure, I think, "I will update my plugin for my match." Here, things go wrong, the plugin is installed properly, and I restore things again - but now whenever I start eclipse, it adds another set of duplicate libraries. For example, after resuming the eclipse 4 times, I get: ... I have removed them several times, tampered with the project. Properties are looking for any reference to the libraries who are going astray, resetting for the work being done ... no beans, every time I restart eclipse, most of the material is inside the existing library proj...

text - How to work with Qml Fonttype in javascript? -

that I have the following problem, which pop up when using the blanket and work with fonts. I use and then dynamically, the following code to select the fonts of different sizes ( function getValueFontDefault (valueAreaHeight, valueAreaWidth) {var font = [ for font0, font1, font2, font3] (termination fonts var font) {if (fontCandidate.pixelSize & lt; = valueAreaHeight) {checkTextDummy.font = fontCandidate; If (checkTextDummy.paintedWidth & lt; = valueAreaWidth) { break;}}} return Fontkhandi;} text {id: checkTextDummy visible: the incorrect text: "the longest example text thinking"} fonts type "font" in QML Are My problem is that JavaScript can not put them in "var" It is always said that fontCandidate.pixelSize was undefined. Do not use loops on various fonts, but use them explicitly (i.e., font0 .pixelSize), it works. so I behave the Kyuemel fonts JavaScript? Thank you very much for your help! Greetings from Germany That is,...

html - C# Web Page. Trouble using button click to update textbox -

So I'm just making a dummy webpage for the basics. Goal: On a button click, I want to update the information shown in the text box. The method takes in the parameters of myButton_Click button how can I get an object to a text box (or an object for that matter) because this button is not being accessed with the event? I established a public variable, myTextBox _ , which I think I can edit freely again HTML: & Lt; Form, but I'm still not sure how to set myTextBox _ to understand it. Id = "form1" runat = "server" & gt; & Lt; P style = "height: 324px" & gt; & Lt; Asp: button id = "mybutton" runat = "server" enabledTheming = "true" text = "button" onclick = "myButton_Click" /> & Lt; ASP: Text Box ID = "MyTextbox" runs = "Server" & gt; Hello & lt; / Asp: text box & gt; & Lt; / P & gt; & Lt; / Form & gt; Then the C ...

python - Django STATIC_URL = '/' -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैं स्थिर सेवा देना चाहूंगा मेरे डीजेंगो एप्लिकेशन में सीधे रूट से फ़ाइलें। अगर मैं सेट करता हूँ: STATIC_URL = '/ static /' सभी अपेक्षित के रूप में काम करता है हालांकि मैं 'स्थैतिक' सबफ़ोल्डर का उपयोग किए बिना अपनी साइट के '/' से फाइल की सेवा करना चाहूंगा। क्या यह संभव है? अगर मैं सेट करता हूं: STATIC_URL = '/' मुझे कोड 404 मिलता है और यह त्रुटि: निर्देशिका अनुक्रमणिका यहाँ की अनुमति नहीं है बस यह सुनिश्चित करने के लिए कि आप निम्नलिखित को भ्रमित नहीं कर रहे हैं: STATIC_ROOT का संदर्भ है कि आपने अपनी स्थैतिक फाइलों को कहां रखा है STATIC_URL का अर्थ है कि इंटरनेट पर कहां आपकी स्थिर संपत्तियां प्राप्त होंगी (जैसे: www। Abc.com/static/jquery.js) यदि आप वास्तव में STATIC_URL मतलब है, तो ऐसा लगता है कि इससे बहुत अधिक परेशानी हो सकती है, क्योंकि तब आपकी स्थिर फ़ाइलें हो सकती हैं एक यूआरएल पैटर्न के रूप में एक ही नाम जिसे आपने विचारों में से एक के लिए परिभाषित किया है। ...

c++ - Const float** defined in header file -

I have a DLL in which there are three computing methods and two fixed container containers. Class does not define as it is a scientific code, the DLL caller will directly call the methods defined in it. Two data structures can be constrained and static, and can be typed as float ** . For now, I did this QVector & lt; QVector & lt; Float & gt; & Gt; The class header is defined in the file. jsekseArr.reserve (3); JsekseArr.resize (3); JsekseArr [0] = QVector & lt; Float & gt; () & Lt; & Lt; 0 & lt; & Lt; 1 & lt; & Lt; 1 & lt; & Lt; 3; JsekseArr [1] = QVector & lt; Float & gt; () & Lt; & Lt; 0 & lt; & Lt; 1 & lt; & Lt; 3 & lt; & Lt; 6; JsekseArr [2] = QVector & lt; Float & gt; () & Lt; & Lt; 0 & lt; & Lt; 1 & lt; & Lt; 6 & lt; & Lt; 10; But I do not want to be more dependent on QT, what is the best, cleaner way to define these data structur...

c# - Cannot store a durable job because 'it already exists' -

What am I trying to do, to remove a trigger from my job and give it a new one I Users have been able to add a trigger only to each job, but I want to give them the option to remove that trigger and add new triggers to the same job. To lose my job information, I have my job durable . Then I'm getting the trigger that is related to that job and the usage scheduled. UnscheduleJob (trigger.Key); To remove the trigger (which is durable , whatever is my case, unless this job should also be undefined). Now I know that the trigger has been removed, but my job is still there when I this job using the scheduled.ScheduleJob (Job, Nutrigger) I try to add my new trigger; I get an error: The job could not be stored: Unable to store the job: 'MYGROUP.MYJOB', because already Is present with identity. And that's what I know, but I still want to add this trigger to this job. Why does this happen? And how can I add new triggers in old work without removing ...

object - How to attach a file to a dataobject in silverstripe 3 -

I have a simple task that I can not figure out. In SS3 how can I add a file to my data object or in other words, create a file upload field, and that file can bind objects to a data object. See examples given below: Data class = $ db = array ('Title' => 'Varchar', 'Desc' => 'Text', ' Help Text '= & Gt;' HTMLText ', //' File Upload (Document) '=>;); } // class Note: For now I would like to file only one, but later, I want to file several files on any other object. The file can not be set to $ db but it's in $, because it's the other databob Have a relationship. So you will need it: Private is static $ _On = array ('FileUpload' = & gt; 'File'); I do not think the spaces and brackets in the key of $ db or $$ are a good idea, because they are used for database fields. If you want to set a title for scaffolded areas, use $ fields_labels. Private file $ field_labels = array...

const - Naming constants in C++ -

I am replacing my #defines, for example #define NUM_SLIDER_POSITIONS 5 fixed variable Do I have to keep the old names: Constant unsigned full NUM_SLIDER_POSITIONS = 5; Or should I use something else: const unsigned int kNumSliderPositions = 5; . Edit : The post has been stopped, but anyway I want to add your answers: Other options using lower case letters The underscores will be used as a separator: const unsigned int num_slider_positions = 5; Persistent identifier. Regarding the use of a prefix as a way to identify constants, the most common choices are not being used because it can not add relevant information: const unsigned int num_slider_positions = 5; Use a "c" before the name: const unsigned int k_num_slider_positions = 5; To give more self-explanatory names to avoid polluting the global scope, declare the variable within the class or nomenclature: namespace default // or "config", or "settings" or something...

objective c - while UIAlertController is shown, parent's viewDidDisappear is not called (only on IOS8) -

Unfortunately I had to move from UIActionSheet to UIAlertController because IOS8 had removed the first functionality. Before using it, every time I went from the home screen and the parental scene "wanted designer" was called, then I could dismiss the menu I created. Now it is not called anymore. Looks like the code: UIAlertController * alert = [UIAlertController .... favorite style: UIAlertControllerSyleActionSheet] UIAlertAction * a = [....] [Warning addAction: a]; Warning. PopoverPresentationController.barButtonItem = self.mybutton // Bar button from my scene [self-current ViewController: Animated Alert: Yes Complete: Zero] // Maybe im not showing up properly? I do not know how to walk from here .. There is love with some help. == EDIT == I saw it also with the deprecated UIASChat and with the UIDCUMENT Interface Controller - only in iOS8, not in IO7 Maybe I 'm thinking very simple here, but is it not easy to put whatever code was in a different ...

vb.net - Catching ODP.NET exception using error codes -

I am working on an application which is SqlBulkCopy and OracleBulkCopy uses it. Occasionally when I try to insert some records and already add the records on SQL Server, it throws an exception that I hold down as straightforward, and I handle it in some way. Hold as SqlException Ex.ErrorCode = -2146232060 However, I'm not sure how the exception can hold on OracleBulkCopy Comes with: ORA-26026 . This is the structure that I am attempting to use: Try to grab code like SQLXSample when ex.ErrorCode = -2146232060 'handles SQL Catch Before the Oracle Execution as before when Number = 26026 = Headl Oracle catches out X expansion 'handle normal errors end android Is there any way? A OracleException (Microsoft implementation) has a property that you 26026 : You can use it to match (ex.Code == 26026) {...} if (ex.Number == 26026) {...}

java awt/swing: how do you play video? -

How do I play video files? First of all, I came in JMF but then realized that it is obsolete nowadays. Then, I got "Jugal" but it seems very difficult to experiment with my knowledge. Can any of you tell me how do you play video via Java? Thank you!

sql - Adding averages to a table -

मेरे पास एक टेबल है | स्थान | यूनिट | ... + ---------- | ------ + ---- | ए | 1 | ... | ए | 1 | ... | बी | 1 | ... | ए | 2 | ... | सी | 2 | ... | ... | ... | ... और मैं प्रत्येक इकाई के लिए 'औसत' स्थान मान के साथ एक नई तालिका की गणना करना चाहता हूं, निम्न अर्थ में: | स्थान | यूनिट | वजन | + ---------- | ------ + -------- + | ए | 1 | 0.6667 | | बी | 1 | 0.3333 | | ए | 2 | 0.5 | | सी | 2 | 0.5 | | ... | ... | ... | निश्चित रूप से कुल योग प्राप्त करने के लिए पर्याप्त है इकाई, स्थान, गणना (*) तालिका 1 समूह से यूनिट, स्थान से चुनें; और तालिका बनाने के लिए तालिका तालिका 2 (यूनिट नवरेचार (50), स्थान इंट, वज़न फ्लोट); लेकिन मुझे यकीन नहीं है कि इसे औसत डेटा के साथ कैसे आबाद करना है। (यह मुश्किल नहीं है, लेकिन किसी भी तरह मैं फँस गया हूँ ... यह कई सालों से जब मैंने SQL सर्वर पर काम किया है।) आप इसके लिए COUNT ओवर का उपयोग कर सकते हैं: अलग स्थान, इकाई, कास्ट (गणना (*) से अधिक (इकाई द्वारा विभाजन) चुनें , स्थान) दशमलव के रूप में) / कास्ट (गणना (*) ओवर ...

Javascript dynamic varible in $.each statement -

I have a catalog of items that all while loop A description of all items, which can be copied with ZeroClipboard plugin. I need to create the code below for each customer of .itemDescriptionContainer . I so copy the correct data. I created an attribute with the ID of the item containing the .itemDescriptionContainer Current code - I tried (and not working) HTML // Loop & lt; Div class = "itemDescriptionContainer" & gt; & Lt; Div id = "copy-button" data-clipboard-target = "copy diploma" & gt; Copy Details & lt; Div & gt; & Lt; Div id = "copyDescription" & gt; & Lt; / Div & gt; // From time to time javascript $ ("ItemDescriptionContainer"). Each (function (index) {var customer = new ZeroClipboard (document.getElementById ("copy-button"); client.on ("ready", function (readyEvent) {client.on ("aftercopy", function (event) {E...

javascript - HTMLElement or document.createElement? -

I'm learning JavaScript, and I thought there are two simple ways to create HTML elements: HTMLElement and document.createElement . Has one of these been excluded, and if it is not what you think I should use? Thanks You do not have an element with HTMLElement So that you should use the document.createElement . HTMLElement is just an interface. Here is the documentation

html - php populate option box from database table -

I am writing code to register a new project through an html form. I want to be able to click on a dropdown box that removes the value from the table on the database. I At the moment a dropdown box is displayed but there is no value. Please note: I apologize if this is a simple question / answer scenario. > My code is below, any help is appreciated, I connected to the database through a php script included. The table is called 'Customer' and the item I want to go to the list is 'name'; - & lt; Php $ result = mysql_query ("select customers by name"); Echo "& lt; select name = 'customer' & gt;"; While ($ line = mysql_fetch_assoc ($ result)) {echo "option" = "". $ Line [name]. "'& Gt;" $ Line [name] ". & Lt; / option & gt;"; } Resonate "& lt; / select & gt;"; ? & Gt; "The table is called the 'customer' and item that I want...

html - Twitter Bootstrap 3 - Swap columns on extra-small devices -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मेरे पास Twitter में दो कॉलम हैं बूटस्ट्रैप, वे इस तरह दिखते हैं: & lt; div class = "col-md-4 col-sm-6 col-xs-12" & gt; & Lt; div class = "post" & gt; कुछ यहाँ & lt; / div & gt; & Lt; / div & gt; & Lt; div वर्ग = "col-md-8 col-sm-6 col-xs-12" & gt; & Lt; div class = "post" & gt; कुछ यहाँ & lt; / div & gt; & Lt; / div & gt; यह एक्सएस रिज़ॉल्यूशन पर पूर्ण रूप से पूरी तरह चक्कर लगाता है, लेकिन मैं एक दूसरे के साथ उन दो कॉलमों को स्वैप करना चाहता हूं , ताकि दूसरे कॉलम में कोड पहला स्तंभ प्रदर्शित होगा और कोड का पहला कॉलम दूसरा कॉलम प्रदर्शित होगा। मैंने col-xs-pull-12 और का उपयोग करने की कोशिश की थी Col-xs-push-12 लेकिन यह मुझे अजीब नतीजे दे दिया, कॉलम पूरी तरह ग्रिड से दूर थे मैं उन्हें बूटस्ट्रैप कक्षाओं का उपयोग कैसे कर सकता हूं? मैं इसे केवल एक्स रिज़ॉल्यूशन पर करना चाहता हूं। आपको पुल और पुश का सही तरीके...

C++ Non-Abstract Destructor Inheritance -

I have asked this before, but not clearly, or as I have found, in the same situation. I have the essence class, it is a protected manufacturer and a destroyer. It has been inherited in many ways, including public constructors and destructors. I am having trouble where children are not called to call the Destructors if the object is removed if the object is referred to as a base type. class Tree {protected: Tree () {} public: ~ tree () {}}; Square Oak Tree: Public Tree {Public: Oak Tree () {} ~ Oak Tree () {}}; Of vector & lt; Tree * & gt; Tree; // store objects base type paste present_back (new octroi ()); // Create derived objects tree [0]; // Oak Tree Discoctor is not called How can I call Oak Tree District? I have tried to mark all the destructors as virtual but it is not working. Base class destructor can not be abstract (this calling will solve the problem, but not the problem of the delay). Make your base-class destructor the virtual . class tree {pr...

r - How to reverse qplot color values -

For qplot below, how can I change the color scale? The default goes from black to color, from 0 to 6, where 0 is black and 6 is a light color. I want it to go from color to black. chart: Times opense from & lt; - qplot (log1p (amount), log1p (gift), data = model_data, color = log1p (open), size = log1p (amount), alpha = i (1/2)) Sorry I do not have any picture but I do not have any site to host the photo.

java - How to increment an integer by reference? -

Is it possible to increase the value from a integer value? int counter A = 0; Int counterB = 0; Int counter = (condition)? Counter A: Counter B; // counter counter ++; Result: Both Counter A + Counter B = 0, will be enlarged instead. int is a primitive type, therefore no reference is being assigned, Only values ​​can you wrap it in a class: public square IntegerHolder {Private int value; Public integerhold (int value) {this.value = value; } Public Zero Enhance () {value ++; } ...}

apache - multiple mod_rewrite clash -

I am trying to work together in 3. Mod_rewrites in an .htaccess file. I want the following: School. Mysite.com => mysite.com/index.php?inst=school mysite.com/french => Mysite.com/subject.php?sub=french School. Mysite.com/french => mysite.com/subject.php?inst=school&sub=french I had found two work before but did not get the third task to work for my life. After a week I gave it and asked for help here, fortunately for me, the solution given me very quickly: RewriteCond% {REQUEST_FILENAME}! -d RewriteCond% {HTTP_HOST} ^ ([A-zA-Z _] +) \. Mysite \ .com $ [nc] rewrite rule ^ ([a-zA-Z _] +) /? $ Index.php? Inst =% 1 and sub = $ 1 [L, QSA] The code is not flawlessly in its errands, but I want the moon on a stick also wants that 2 other still with Work in ... and they do not. Since then, I am working on non-stop and can get the subject working with the code given below. Rewritecond% {REQUEST_FILENAME }! -d rewrite code% {HTTP_HOST} ^ Mysite \ .com $ [NC] ...

ruby on rails - Render partial inside a javascript variable -

I am using Rail 3.2, and 3.2 using Bootstrap and partially shown in a bootbox control. Being, but not luck. bootbox.dialog ({title: "new appointment", message: '& lt;% = (render "form_remote")%>, The problem is that it presents new lines, and the script breaks the code. This is the generated code: bootbox.dialog ({title: "new appointment", message: 'Div class = "row"> div class = "col-xs-12 col-sm-6" & gt; label class = "" = "person_id"> Numeron & lt; input class = "form-control" id = "person_id" type = "text" & gt; & lt; / div & gt; & lt; / div & gt; & Lt; / div & gt; ', To work for now, I I repeat partly in one line ... Is there another way to do all this? Use, example: bootbox.dialog ({title: "new appointment", message: '& lt;% = escape_javascript (render "form_remote")...

c# - XAML object overlies the another -

Image
मेरा विंडोज फोन ऐप, कुछ बाध्यकारी मानों के साथ एक सूचीबॉक्स है। टेक्स्टब्लॉक बाइंडिंग यूनिडेड टेक्स्टब्लॉक बाध्यकारी क्वांटिडाइड से अधिक होता है, जब 3 अक्षरों में से अधिक होता है। उस स्थिति (मार्जिन) के लिए यह कैसे होता है जब संख्या बढ़ जाती है। & lt; नियंत्रण: PivotItem हेडर = "परामर्श" नाम = "परामर्श कार्ड" & gt; & LT; ग्रिड & gt; & LT; Grid.ColumnDefinitions & gt; & Lt; स्तंभ डिफाइनिशन चौड़ाई = "ऑटो" / & gt; & Lt; स्तंभ डिफाइनिशन चौड़ाई = "ऑटो" / & gt; & Lt; स्तंभ डिफाइनिशन चौड़ाई = "ऑटो" / & gt; & LT; /Grid.ColumnDefinitions> & Lt; लिस्ट बॉक्स नाम = "लिस्ट 2" आइटम्स सोर्स = "{बाइंडिंग प्रॉड्यूसकार्टो}" क्षैतिज सम्मति एलाइनिमेंट = "स्टैच" ग्रिड। कॉलम स्पेस = "3" मार्जिन = "0,182, -66,0" दृश्यता = "संक्षिप्त" & gt; & LT; ListBox.ItemTemplate & gt; & LT; DataTemplate & gt; & Lt...

nan - JavaScript ASCII to text -

I was thinking that it is possible to change the text "Batman" in the Javatics Batman Joke, then change it and change it The original joke is Javascript: Array (16) .join ("lol" - 1) + "Batman" Javascript: Array (16) .joint ("LO" - 1) + [66, 97, 116, 109, 097, 110] .for eca (function (e) {document.write (String.framecorder (e));}); Whereas [66, 97, etc.] Batman has ASCII codes, this fails because the document object is not present in an empty browser window. (PS If it is not suitable, then it feels free to destroy it, it was only for fun) You do not really need to use any type of loop or iterator for your array; in fact, the characters you actually want to give it will accept as much. So it will work just fine: Javascript: Array (16) .join (- '.') + String.framecrod (66, 97, 116, 109, 097, 110); However, if you want to call for each element of the array, you can. Each javascript function can be called using which...

Search google places containing '-' character -

Thank you for reading / support in greetings and advances in advance! Google search criteria for places that contain '-' example 'T-mobile' If I send the following request https: / /maps.googleapis.com/maps/api/ Location / Search / Jason? Location = 39.19148364879271, -75.54520000000002 & amp; Name = "T-Mobile" & amp; Radius = 24140.16 & amp; Sensor = false & amp; Key = myPrivateKey I am not getting any results changing the request https://maps.googleapis.com /maps/api/place/search/json?location=39.19148364879271,-75.54520000000002&name = "T-Mobile" & amp; Radius = 24140.16 & amp; Sensor = false & amp; Key = myPrivateKey returns multiple 'T-Mobile' records. The URL encoding has no effect on the character '-' can remove any instance of '-' in search criteria but it does not look right. What am I missing here? Thank you!

haskell - Rotating a list about an index -

I have a list, say [1, 2, 3, 4, 5] and let me rotate the list an index. For example: 2 [1, 2, 3, 4, 5] will rotate [3, 4, 5, 1, 2] On online research, Came to the function which eliminates the problem of losing the list, but I feel as if I would benefit greatly from solving my own work with a view to understand, even if it is with less efficient library function The solution for the work is as follows: to rotate :: int -> [A] - & gt; [ONE] Rotating _ [] = [] Rotate NLL = LE (length L) $ drop n (cycle L) Can you suggest, without code, this solution Receive alternative ways I can have a crack on them? As I am stuck without ideas, now I have seen this method of doing it! Cheers You can do just that: rotate nl = drop nl ++ nl to obtain without any chakra.

vsts - Can you copy or clone projects and files in TFS to other directories in the same source tree with history? -

What do I need to look for such questions: Example: I have a source of trees There are 2 solutions, but for the next version they want the same solution and they do not want to use 'branching'. / DefaultCollection / root / solution1 / project1 / project2 / defaultcollection / root / resolution 2 / project3 where you want to keep the current source It's for time and make copies or clones to get something like this: For me, it seems like building a branch and only in merging Does not understand this but maybe a better way? Has anyone ever done something like that? There are two solutions available: I first have TFS integration tools, although they do not work well , When both source and target are in the same collection. You may need to pursue the source and then return. The second and more viable solution is to clone the use of Git-Tf tool, with history, your code is in a grip repo. You can then push another TFC folder with history Are there. Honest...

Java For Loop to iterate 100 64 36 16 4 0 4 16 36 64 100 using a single variable -

I want to write for the loop in the format below, using only one variable e (____) spaces The only things that I want to change are the print of 100 64 36 16 4 4 4 6 36 64 100. I'm not sure that it will need to be repeated after reaching 0. For (_____________________) System.out Print (______________ + ""); Println (); That's what I have tried so far. Is there a way to use only one variable and still have to repeat it through the numbers already used? for (int e = 10; e> 0; e - = 2) System.out.print (e * E + ""); Println (); Use the fact that e 2 = ( -e) 2 , and stop when e is no more or equal than -10 .

Calling/Passing dictionary objects in python -

I have a class with many functions In one function, I want to create a dictionary object and to make that function any other function I want to call in Can this dictionary be clearly passed? Here is an example I was doing earlier: def dictfunction (self): dictionary = dict () dictionary [sky '] [' cloud '] = 'White' dictionary ['grass'] = 'green' return dictionary However, till now I'm calling dictionary objects in other ways: def process_function (auto): obj = self.dict_function () print obj ['sky'] Is there a better way of calling variable in Process_function? There are literally word dictionaries in Python, which are both fast and very good to read in order to make it personally by setting the key. As described in the comments, if the dictionary is so stable, then any reason for a function No, just store the dictionary and access it. The only reason is that you will have the dictionary every time if you use...

vba - Executing python call on a COM object in C++ -

I have an existing project that I am migrating to 64 bit. In this, the objects are highlighted using the VB and Python . Everything runs with Python 2.5 and VBA 6.5 with 32 code and we get the Python 2.7 64 bit and VBA 7.1 Are going in MTE and frame are COM objects. Sample VB script Public Sub-Test () if MTE Fraggerber (0). Again, MSBBC "capturing" als MSBBC "not capturing" and end and end equivalent python script def initialize (): # True: display = false: name = start if mte.frameGrabber (0). CoPTING: mte.Output.Write ("Capturing") and: MTA I get the following error with Python, VB is running fine. The file "& lt; string & gt;", line 21, "C: \ Python27 \ x64 \ lib \ site-packages \ win32com \ client \ dynamic.py" in the initial file, Line192, __call__ return self._get_good_object_ (self._ole this function: this function: / p> PyObject * pyRetVal = PyObject_CallObject (fn, p...

postgresql - Typecheck SQL query -

Is there a relational database that can output the return type of a query before it runs? As an example, GIVE_TYPES is selected from a question like GIFE_TYPES name, age of person without actually having to query VARCHAR (255), Integer if it is a If this is not the case, then why is this the case? Edit The first comment made me realize that I have to issue a little more complicated use. Imagine if the query was something like this: select parent_name, COUNT (name) by parent group by parent_name; In order to select the names of all parents and the number of children to them, I expect something like this as the result for VARCHAR (255), Integer , But a column inspection will not tell me about the return type of COUNT . The calculation return type is always int

Programmatically having ivy fetch sources -

We have a custom build tool that relies on IVv functionality to resolve the dependency. The configuration of dependencies is not an ivy.xml file, but a custom configuration for which allows .. well, irrelevant. The key is that we are using Ivy programmically. Looking at a dependency (group id, artifact id, version), we create a module revision ID: ModuleRevisionId id = ModuleRevisionId .newInstance (orgName, moduleName , RevisionName); After a module descriptor. This is, I'm guessing, where I do not agree enough to inform Ivy that I want both the target library jar file as well as the formula. I'm not sure that there is a dependency configuration vs. There is only one 'configuration', when a module creates a descriptor. DefaultModuleDescriptor md = new DefaultModuleDescriptor (ModuleRevisionId.parse ("org # standalone; work"), "integration", new java.util.Date ()); DefaultDependencyDescriptor mainDep = New DefaultDependencyDescriptor (...

php - HTML to send a pre-written email -

I have placed a website on the Internet, and I have a function where a user can enter his email address Form and when deposited, they will receive a pre-set email. There are other questions, but none of these help me. I have basic code here: & lt; Form action = "send.php" method = "post" & gt; & Lt; Input type = "text" name = "mail" & gt; & Lt; Input type = "submit" value = "send" & gt; & Lt; / Form & gt; Here is send.php Please seduce this fact that you have to send it twice, I will change it. What I have to do, send to the user (email $ mail ) via email is a pre-written document, not the form of an attachment but the email is composed. I am unsure as to the weather. I can only use one word document or complex code behind it. Since I am only familiar with basic visual elements, can you please tell me what parts of code do, as I want to tweak it. Thank you! As Fred sa...

asp.net - Redirect root to sub domain on IIS .NET Application -

I have an asp.net application that is configured for root. But on my web server, I want to run it on a subdomain like dash.site.com/app , so to redirect / app /home.aspx, I want to type all URLs like /home.aspx Would like to . My code has references like me ../ This map is the root of the site while it has an asp.net application, which hosts. / Should not point the root of the application, not the site hosting the site. I believe this URL can be rewritten, but a regex could not be found to complete it. Can anyone tell me in the right direction?

Linux Mint Tkinter transparent window -

I am trying to keep a transparent background by using the tanker: ` # Root.wm_attributes ('- alpha', 0.1) # ~ root.wm_attributes ("- Transparent color", "Root = Tk") from the tankinker import * root = Tk () - root () = ((- - 'alpha', 0.1) White ") # # root.attributes (" -flowerscreen ", true) root.ManelP ()` This code works fine in Windows, but Linux does not use Mint Maya Has been commented on other options I've tried Any suggestions could be wrong Is it?

javascript - Why is order of answers not working as desired? -

I have five questions for a user who needs a user reply. The correct answer is counted and then the user is classified at the end. I want to reveal the grading of each question immediately after each related question, after all the questions have not been asked. As it is now, it asks 2 questions out of 5 and then provides a response to the user but only after the question is asked. The order is: (ask, ask, answer, answer) but I need it (ask, answer, ask, answer) but I do not know why this is not so. // Counters var numberExpress = 5; Var correct location = 0; // five questions var raining = sign ("What is raining today?"); Married = Prompt ("Am I getting married?"); / * The rest of the questions var day = sign ("What is this day?"); Var threes = Speedy ("3 + 3 + 3 does the equivalent?"); Var number = sign ("What number am I thinking?"); * / / // The first question - is it raining (barking) uppercase () === "no") {corr...

expression - avoid grouping on empty values RDLC -

I have a column set on the datafield. I only need a group when there is a value in the field. This group is still on the tap area. I have tried the following Group Express: = Field! ScaleName.Value & lt; & Gt; "" Or field! ScaleName.Value & lt; & Gt; You can solve this problem using a group filter (right click on the group Group Properties > Filters ): Expression: = None (field! ScaleName.Value) Boolean Operator: = Value: = Incorrect

java - Implementing functions in an interpreted programming language -

Before I write about your question, just a little background information. I am writing a toy programming language in Java because I am fascinated with compilers / interpreters and likes. I have found the basics in this small language, it is on the pattern of: 5, 6 -> Add 5; C print will store in C # 11 in C This is very basic, but this is a beginning since I am only 16 years old, I can not read books about technical things They are very meager / soft for me, I like to read articles on the Internet, or small tutorials posting on HN (for example, writing plans in C). Either way, I'm really confused about how to implement a function in a language, eg # Only integers, since it is easier than many data types, FUNC (a, b) - & gt; The way I can implement the (5, 6) function, will actually be hack-y and a mess of spaghetti will change in the mess. I want to know the 'proper' method of applying the work in a programming language. A little bit on the language: ...

c# - dynamic number of where clause conditions in linq to sql -

I am trying to find the data table for all the entries that have a list of words. There may be a variable number of words in the list. Here's my code: string [] word = initial string (''); Foreign currency (word of the word string) {list & lt; Mrconso_SnoMed2014 & gt; Curmatches = (One of Master DB for MrConso_SnoMed2014, where a.STR.ToLower () contains it (word toLower (). Trim ()) Select one) .list (); Matches.AddRange (curMatches); } This code is taking too long to execute. All database calls are taking time. I would like to use some dynamic query that has a variable number where the section is something like this: list & lt; Mrconso_SnoMed2014 & gt; Curmentches = (One of Master DB in Mrconso_noMed2014 where a.STR.ToLower () contains it (word [0] .over (). Trim ()) or a.STR.ToLower (). In it (the word [1]. (.) Trim ()) ... Select a) .Olist (); You can use the interface from LINQ, something looks like: list1 Select (s = & gt; s.STR....

Cleaning column data in R -

नमस्ते मैंने आर: periodCleanse & lt; - फ़ंक्शन (x) {if (x == "") {रिटर्न (""); } और यदि (substr (x, nchar (x), nchar (x)) == "एम") (रिटर्न (30 * as.numeric (substr (x, 1, nchar (x) -1)); } और अगर (substr (एक्स, nchar (x), nchar (x)) == "वाई") {वापसी (365 * के रूप में। संख्यात्मक (substr (x, 1, nchar (x) -1))); } और अगर (उपस्ट्रेट (एक्स, एनचर (एक्स), एनचर (एक्स)) == "डी") (रिटर्न (जैसे। न्यूमेरिक (सबस्ट्रेट (एक्स, 1, एनचर (एक्स) -1)); }} मेरा डीएफ ऐसा कुछ दिखता है: अवधि 3M 5Y 1D 7M मैं कॉल करना चाहता हूं df $ period & lt; - अवधि क्लींस (df $ period)) लेकिन मुझे मिल रहा है: चेतावनी संदेश: यदि (x == "") {: स्थिति की लंबाई & gt; 1 और केवल पहले तत्व का उपयोग किया जाएगा और कुछ भी नहीं होता है मुझे क्या करना चाहिए? मैं सिर्फ वेक्टरयुक्त फ़ंक्शन बनाऊँगा जो आपको अंतहीन लिखने से बचाएगा यदि else और इसे एक पाश ( sapply ) periodCleanse2 & lt; - function (x) {} में चलाना { मैचडाट ...

asp.net mvc - why cant my enitity framework database work -

Hi, I was thinking that anyone can see what I am doing wrong. I am trying to create a database using the Entity Framework and then the seed, but getting errors Ideal - this is a model in which I have made one and B class, in both the FK i dbcontext Try creating database Namespace MvcAb.Models {Public class AaSeed: DropCreateDatabaseAlways & lt; AADb & gt; {Safe override zero seed (AADB reference) {reference.AssaAdd (new AA () {ANA name = "name", AADSC = "Big description", BBS = new list & lt; BB & gt; () {new BB (Bn = "this name", bbite = "this title"} // and new} // and list}}; // and new ay context.aas.ed (new AA () {name = "name Two ", AADSCC =" second desk "}; context.SaveChanges ();}} public class AaDb: DBcinTex {public dbet & lt; aa & gt; AS {receipts; set;} Public DbSet & lt; BB & Gt; BBS {Received;} Public AAADB (): Base ("AADB") {}} Public Class AA {Public IT Eyed {Re...

java - Custom password salts with Spring security -

मुझे हश करना चाहिए & amp; निजी स्ट्रिंग ईमेल; निजी स्ट्रिंग हैशेड पासवर्ड; निजी स्ट्रिंग नमक; // मैं इस नमक का उपयोग करना चाहता हूँ निजी बूलियन सक्षम; // गेटर्स और amp; Setters} यहाँ मैं कैसे अपने स्वयं के नमक के साथ नए उपयोगकर्ता बनाते हैं: @ ट्रांसिजनल पब्लिक उपयोगकर्ता बना (स्ट्रिंग ईमेल, स्ट्रिंग पासवर्ड) {उपयोगकर्ता उपयोगकर्ता = नए उपयोगकर्ता (); user.setSalt (BCrypt.gensalt (12)); // नमक user.setEnabled उत्पन्न (सच); user.setEmail (ईमेल); User.setHashedPassword (BCrypt.hashpw (पासवर्ड, user.getSalt ())); वापसी dao.persist (उपयोगकर्ता); } और यहां स्प्रिंग कॉन्फिगरेशन है: & lt; सेम: बीन आईडी = "उपयोगकर्ता सेवा" वर्ग = "com.mycompany.service.UserService" / & gt; & Lt; सेम: बीन आईडी = "myCustomUserDetailService" वर्ग = "com.mycompany.service.MyCustomUserDetailService" / & gt; & Lt; सेम: बीन आईडी = "बीसीआरिपएएनकोडर" वर्ग = "org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder...

java - At what point does the OSGi container begin using the exports of bundles of updated versions added at runtime? -

Suppose my OSGI container has the following bundles: bundle-name: bundle one Import-Package: org.foo; Version = "[1.0.0.2)" bundle-name: bundle b1 export-package: org.foo; After a while, I B2 bundle-name: bundle B2 export, after version = "1.0.0" Package: org.foo; Version = "1.1.0" At which point is the use of classes in B2 to 1.1.0 ? Is it an inherent part of adding a bundle that exports a new version or should OSGi be done manually to see "upgrades"? After reconciliation of the package after B2, you will need to refresh the bundle at . Ex: Bundle Systembundle = Bundlanctex. Gate Bundle (0); Framework Wirring Framework = Systembundle.edit (Frameworkwareing Class); FrameworkWiring.refreshBundles (Arrays.asList (bundleA.getBundleId ())); Bundle A is not refreshed, it will be wired to b1 bundle. Even if you uninstall Bundle B1, then bundle A keeps wired. Bundle B1 will be available for up to the stars until the _pend...

json - How to modify the output in chrome console when printing a javascript object -

Image
What would I like to know behind the scenes when printing an object in the console (like in the picture in the picture). How can I define a particular function within the object to print my own code instead of all the properties of an object (the equivalent of the string in the Objective-C)? For example, if I evaluate a in the console, then I just want to print the "Hello" string and all {one: 1, two: 2, hello: "hello"} . Can I do without using console.log () or similar functions? Well, I'm not sure this is your question, but you can always override the string () method of the object. var a = {a: "something", hello: "hello", toString: function () {console.log (this.hello)}}; A.toString () // Prints Hello Hope that helps!

html - Center an button with respect to an image CSS -

I need the page where it is centered between an image and there is a button inside of which I get I can not do that, to resize that browser window, force the button to stay in the same position. This page is: HTML code: & lt; Div id = "myimage" & gt; & Lt; Img id = "theImage" src = "http://www.jpl.nasa.gov/spaceimages/images/mediumsize/PIA17011_ip.jpg" & gt; & Lt; Button ID = "mybutton" & gt; Start here & lt; / Button & gt; & Lt; / Div & gt; CSS: #MyImage {status: relative; } #the image {status: relative; Margin-left: auto; Margin-right: auto; Margin-top: 20px; Display area; Width: Auto; Height: auto; Max-width: 400px; } #myButton {Position: Absolute; Left: 0 pixels; Top: 0 pixels; } Now if you re-size the window, you will see the problem; The button belongs to the left coordinate window and the image is not, so when you resize the window, when I want it to be in the same position in the i...

java - How can I use existing JProgressBar in SftpProgressMonitor instance? -

I am writing a program that downloads a file to the server using SFTP. I have a progress bar on the program that shows the progress of the download. My current code for the progress monitor is: The system class SystemOutProgressMonitor implies SftpProgressMonitor {Public SystemOutProgressMonitor () {}} Public Zero Init (int op, java.lang.String src, java. Lang .stisting distance, long max) {System.out.println ("start:" +++ "+ + + + + + + + +" - & gt; total: + + + + max);} public Bullion count (long bytes) {for (int x = 0; x & lt; byte; x ++) {System.out.println ("#");} return (true);} public zero end () {System .out.println ("\ nFINISHED!");}} to output it to the console Works fine for me, however, I do not know how to pass the current progress bar variable. JProgressBar I My menu. I'm using living in Java class, in this category a download button That is what calls to the related download method in my Sftp.java class, fro...

ssis - Set Package User Variable Value in Integration Services and Run Package C# LoadFromSqlServer -

I have packages which I have imported integration services. I have prepared them all and I used to run them Have done My problem is that I am trying to pass a value to the program for my user variable in the package. I have a start date and an expiration date that I want to populate but whatever I am doing, Did not even know. Can anyone help? I'm new to using LoadFromSqlServer and in fact it is not certain that if there is more information that you need help, but if you ask me questions What is the need to add more? Any help would be greatly appreciated thanks! --- Edit --- This error is found by using the code: App app = new app (); Package package = new package (); Variable variable = package. Package = app.LoadFromSqlServer ("\\ File \\ Path \\" + Ultimate, ".", "Username", "Password", blank); Variables ["User :: START_DATETIME"]. Value = startDate; Variable ["User: END_DATETIME"]. Value = endDa...

r - How to plot two consecutive columns in a data frame -

मेरे पास ऐसा डेटा फ्रेम है p1 = rnorm (4) p2 = rnorm (4) पी 3 = रैनोरम (4) पी 4 = रोनोरम (4) पी 5 = रोनोरम (4) पी 6 = रोनोरम (4) डीएफ = डेटा.फ्रेम (पी 1, पी 2, पी 3, पी 4, पी 5, पी 6) और मैं इसे किसी निश्चित तरीके से साजिश करना चाहता हूं ताकि केवल लगातार कॉलम x और y के मान हो सकते हैं। मेरा मतलब है कि p1 और p2 पहले y और x है, और अगला p3 और p4 अगले x और y हैं। मैं प्रत्येक कॉलम को विशेष बनाने के लिए सोच रहा था सदिश है, लेकिन मुझे एक समारोह करना होगा ताकि इससे कोई फर्क नहीं पड़ता कि कितने सारे colums मेरे पास हैं, मैं एक अलग रंग में प्रत्येक दो स्तंभों को साजिश कर सकता हूं। इसलिए मुझे एक साधारण कार्य में दिलचस्पी है जो समय-समय पर दो कॉलम के लिए पूरे डेटा फ़्रेम का साजिश रखेगा। पहले विचार करें कि आपके विश्लेषण में अक्सर ऐसी चीजों की आवश्यकता होगी, क्योंकि शायद p1 , p3 , और p5 के समान है विभिन्न मामलों के लिए अर्थ यदि यह सत्य है तो आप कई कार्य को आसान बनाते हैं यदि आप मामलों के लिए एक घटक चर परिभाषित करते हैं और कॉलम (उपयोग) को जोड़ते हैं। एक के...

swift - How to adjust multiple rows of labels in Xcode so that they occupy around 70 % of screen height? -

I'm trying to create an app whose only picture is a visualized scene. At the top are a title and the result of the lower part of the scene are labels, they are closed up and down and at the center, there is no problem. Now this is a difficult part. I have 9 lines of labels, the most single line, but some are spread over two lines, I want to spread them equally between the title and the result label. I lock the top-left first label, lock the leading edges, and then determine the decrease of the same vertical distance between the labels. Otherwise it is okay, but the final labels on the 3.5 inch display eliminate my results-label. So I adjust the fontes or reduce the vertical distance between the labels or the problem of both 3.5 inches is fixed, but now there is a big empty gap between the final label and the result. On iPhone 6, this is very ugly. I have tried all kinds of methods, but it just can not work. So basically: How do I tell Xcode to use the remaining 70% (a...

oop - In UML class diagram can composition be bidirectional? -

Can it be bidirectional in such a way that both classes are aware of each other? , what is the default direction of structure? Yes, the structure does not constitute obstacles in relation to Navigator, on the difference between association cooperation, structure and aggregation More information can be found at:

wpf - Fixed Document Tables? -

I am looking for other methods of laying data in a table format on a document layout or a fixed document for reporting. I have used MigraDoc on a large scale in non-WPF projects and its table allows granular layout for each piece of data that appears in the object table. Borders can be closed at the cell level, columns can be merged / expanded, etc. Are there any controls that are present in the control within the WPF? I have not seen where the datagrid or grid should do what I want ... easily. My data is not compulsive because I have to keep a complete control of how this is displayed. I am not using a flow document, so I can not use table object which provides it. Anyone have any suggestions? For now, I have programmatically created a grid and then inserted a border in each cell within a text block. Just be a clean way! BTW - I am looking to use native WPF controls in this project which is the reason I am not using MigraDoc.

html - Page does not display correctly (blank page) in Firefox -

I'm new to development, and I can not wrap my head because it will not display properly in Firefox. I have a focused divas with a background, and there is a background in the body. Nothing in Firefox will be shown. Because there is no content in your div / body and does not have a fixed height / width

java - JavaMail API Error (javax.mail.NoSuchProviderException: invalid provider) -

I am trying to create a program using the JavaMail API, however, I receive the following error message. javax.mail.NoSuchProviderException: invalid provider at javax.mail. Jess.mail.Session.getTransport (session.Java: 738) at javax.mail.Session.getTransport (session.java: 682) at javax.mail Session at EmailAutoResponder2.main .get Transport (session .Java: 662) I could not solve it by reading online, because all their solutions are still given to me the same message Here is the Java code: import java.util. *; Import javax.mail *; Import javax.mail.internet. *; Public Square EmailAutoResponder2 {public static zero main (string [] args) {string to = "username@videotron.ca"; String = "username@videotron.ca"; Properties Properties = System.getProperties (); Properties.setProperty ("mail.store.protocol", "imaps"); Sessions Session 1 = Session. Gate Instance (Properties); // If received by specific user, send specific feedback property p...

google chrome extension - How to read cookies from localhost? -

I am trying to develop a Chrome extension, and the first step is to determine that the user logs on to my website. Yes or No. For development, if I am testing against localhost , how do I read a cookie? In my manifest, it is: "permissions": ["cookies", "tab", "http: // * / *", "https: / / * / * "], and JavaScript: chrome.cookies.get ({" url ": 'localhost'," name " : '_ga'}, function (cookie) {console.log ('cookie:'); console log (cookie);}); But I get this error: unchecked runtime. Error while running unknown cookies. Invalid url: "localhost" Can anyone tell me in the right direction? localhost is not a valid URL; This is just an [alleged] host name. Use http: // localhost with the protocol for the URL.

exception - Instantiating inner class in enclosing class - Ruby -

I am trying to make an example of an internal class in outer class in Ruby, > Myclass.rb class 'mylibs' to myClass class Client Not Initialized & lt; Standard irr and DEF myMethod if not @ Client increased, then client not experienced error. New # End stop and end Although it has failed to build the build, where I am trying to throw exceptions. What am I doing wrong? I tried things like . Client Not Initialized Error New and self :: ClientNotInitializedError.new but there is still no luck. ClientNotInitializedError is very specific for this category, so I would like to put it in the class or at least one file. I have tried to run your code and found many mistakes: A) Always start class names with a capital letter (otherwise you will get an error: Class / module name must be a constant error) b) You have If there is not an ended block for your statement, where you are raising the error, it should work: Class MyClass Class Not Initialize E erro...