Posts

Showing posts from April, 2014

javascript - How to make an AJAX call to a locally defined variable -

I am trying to create a list after a received JSON, I have received docs from the Dintable Library so that they are AJAX receives a JSON in a way that can populate the table. However, if I already have a json stored in a variable I have tried it yet: var json = {"record": [[" Some features ":" I have a record "," some other properties ":" received by ajax "}, {" SomeAttribute ":" I have two records "," some other properties ":" this is great " }, "Total record card": 3} var table = $ ('' some feature '': "I have three records", "some other properties": "yes, still AJAX"}], "querycardcount" #Content Das'). DINATABLE (Dataset: {AJAX: True, AJAX URL: JSON, AJAXDOWNLOAD: true, REC: []}}) So I'm getting a 404 code, I think it Not the actual route. But what can I do to request that file to the library Is not AJAX also ...

node.js - indexing elasticsearch documents - till infity -

I am very new to Node.js - and hopefully do not ask stupid questions ... I am trying to index a document in elastic search - which works. var elasticsearch = requires ('elasticsearch'); Function author (info) {var client = elastic search. Client ({host: 'server03: 9200'}); Client.index ({index: 'fhem', type: 'state', body: {time: info.time, alias: information.alias, state: info.state, room: info.room}}}} My problem begins after indexing the document. The function will not come out, so I can do other things. The above work is called by the following line: index_data.writetoela (data); 'Data' is an array of values, which should be indexed for elastic search. Can someone advise me, why is this happening? Bjoern It looks like this for me Should: var elasticsearch = Required ('elastic search'); Function author (info) {var client = elastic search. Client ({host: 'server03: 9200'}); Client.index ({index: ...

linear algebra - MATLAB input it not a double error -

My file is not working and I do not know why when I run y = test (A, X) Then I have the following: A = floor (rand (8,100)); x = floor (rand function [100,1]); > I undefined function 'test' for the input argument of 'double' Output_args] = unchecked 2 (~) function y = test (A, X)% Function matrix A's vector calculates the Pro Corps according to x line-wise%, here the number of rows defines M so that the loop [i, na] = size (a); [Mx, nx] = size (x); If the statement is used to check the appropriate dimensions if (n == MX & NX == 1) y = zero (ma, 1); % N = 1 for the initial y vector: ma y (n) = a (n, :) * x; % End and disp ('Matrix dimensions do not match') y = []; End of end end As Ben Voigat correctly tells you in your comment that your problem is that Test is defined in Untitled 2 There is no need to do any such thing for the code you posted, so you can just do the external without title 2 can be solved by declaring the tes...

Qt :: QGraphicsPixmapItem : overriding paint() method? -

I want to override QGraphicsPixmapItem which can show an image and can use QPainter on the same item. I have overridden classes and mouse events and paint methods. Every time I click the button it successfully calls icons and paint events but this image does not paint on pixmap. I load this item object by using the setPixmap function i.e. QGraphicsSelectionPixmapItem selectitem; Selectionitem-> SetPixmap (imagePixmap); This is my override class: Header file: qgraphicsselectionpixmapitem.h #ifndef QGRAPHICSSELECTIONPIXMAPITEM_H #define QGRAPHICSSELECTIONPIXMAPITEM_H # Include & Lt; QGraphicsPixmapItem & gt; # Include & lt; QDebug & gt; # Include & lt; QGraphicsSceneMouseEvent & gt; # Include & lt; QList & gt; # Include & lt; QVector & gt; # Include & lt; QPainter & gt; # Include & lt; QPixmap & gt; Class QGraphicsSelectionPixmapItem: Public QGraphicsPixmapItem {Public: QGraphicsSelectionPixmapItem (QGraphicsIt...

internet explorer - VBA code to interact with specific IE window that is already open -

I have to find out how to extract VBA to interact with a specific IE window, which is already Is open My process here:. When I open IE, navigate to the website, enter your user name and click on PW, click on a new IE window opens I use to enter member number and for membership information Search I am trying to create a VBA script which will interact with the IE window that opens after successfully logging (starting to automate some more worldly tasks I have seen many tutorials online to see how VBA has to open a new IE window, and then interact with it. However, I am really struggling to get information about how to select a specific already open IE window and interact with it. I have tried to see this as a quick test whether I can select the correct IE window as an object on which I can talk. sub-getIE () as a slower object, in the form of Owin object, object set as IE = CreateObject ("Shell.Application") in sh.Windows for each Owin Then TypeName (oWin.documen...

Wordpress woocommerce, adding 2 items to cart at same time -

Is it possible to add 2 items to a car at a time? Such as a free product that is associated with a particular product selected? I currently add to the cart like this $ Get ('/? Post_type = product & amp; add -to-cart =' + productId, function () {// stuff here ..}); If this is not possible, do you know that it needs to hook me to change it? Thanks in advance .. itemprop = "text"> There may be some resources which can be found in the same string Loads some data with the URL, which is working to add the WP INIT function to the product for the second time. My solution is to add the following code to the header.php of the subject before any HTML print: if (isset ($ _ GET ['add-to-cart']) The checkout can be changed with any slug header ('location:' .site_url). '/ Checkout /'); Go out; }

python - convert class to dictionary -

I have a sqlalchemy mapped square, and I want to convert it to a Python dictionary In other words, I want to remove the code from the to_map function in the code below: def for the purpose of returning the object from the flask through JSNIF. To_map (user): m = {} m ['id'] = User.id m ['name'] = user.name return m @ app.route ("/ users.json") def some_route_function () user = [ To_map user (for user.query.all) ()] Return flask.jsonify ({'user': user}) one The quick one-liner will be key.startswith ('_')} in the DIR (user) key for getattr (user, key) key Anyone working on the conference / impression that anything started with an underscore is private.

javascript - How to create a custom jquery function with brackets and parameters -

I know that my question requires a bit more explanation, so explain to me: when I went to jquery api documentation for $ .fn.extend, I was personally blown by how easy it was to create a custom jquery function: $ ('input [type] = "Checkbox"] '). Check (); Link to: But if you want to add functionality to the function like this (this means): Check ({Timer: 1000, Re: 4000, Display at: 'Some ID'}); // Filler parameter How would you do that, of course? In addition, how you check ({...}); , which does not rely on any specific jquery selectors, but instead it has a regular function like this: displayRandomNumber ({min: 0, max: 100 , Display: 'someID'}); // no jquery selector in front of you Thanks for your help! If you want to use: check ({timer : 1000, redo: 4000, display AT: 'some AID'}); with Jquery.fn.extend will be declared as such: check: function (option) {// timer value var timer Get the value = Optio...

html5 - How to display </title> as title in html? -

You can & lt; / Title & gt; How can you set the title of the html page for ? I already got it from & amp; Gt; and & amp; Lt; but it does not work. Doctype html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Amp; Lt; / Title & amp; Gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; Foo Bar & lt; / Body & gt; & Lt; / Html & gt; It seems like your effort should has worked, but no one can reproduce it without sufficient code to guess the problem Not able to be able to do more.

html - How do prevent a div from resizing? -

2 weeks ago I started learning about HTML and CSS, and I really enjoy it. However, I was struggling to regain my foot (Div) with my background on my home page. So whenever I zoom in or out in the background, but the footer revolves around. In the same way when I change my browser It sounds weird that you can say that I want to "glue" my div in the background so that they can resize together and go together. (The website is still in progress in one work, not completely finished) It does not look very good. Do anyone know how I can fix this? You have minimum width: 1200px set at #wrapper . This is making an issue with the new area, if not flexible, then the browser is resized. However, you may not see & lt; Nav> Elements will need to react reactants, so that they can also change the size with the NAV / footer bar. Example: #navbar {float: For example: Correct; Margin-left: 700px; Margin-top: -155px; Width: 50%; }

c# - Manipulate gui-elements from another thread - Common way to do this? -

इस सवाल का पहले से ही एक उत्तर है: 43 उत्तर मैं देख रहा हूँ "अन्य धागे से GUI तत्वों को हेरफेर करने के बारे में बहुत सी साइटें" और मैंने पाया प्रत्येक समाधान दूसरों की तुलना में पूरी तरह अलग था ... कुछ समाधान 1-3 लाइन थे और अन्य समाधान 50+ लंबा थे। उदाहरण के लिए मेरे पास इस के लिए 2 भिन्न और छोटे काम समाधान हैं I मेरा प्रश्न यह है कि इनमें से कौन सा आम समाधान है? इस कोड-स्निपेट को दोनों एक दूसरे धागे (गुई-धागा नहीं) से कहा जाता है। // समाधान 1.) फ्रेम.आरटीबीएटबॉक्स.इनवोक (नई एक्शन (() = & gt; फ्रेम.आरटीबी सीटबॉक्स। अपेंडटेक्स्ट ("\ n" + लाइन))); // सॉल्यूशन 2.) फ्रेम.आरटीबीसीटबॉक्स। इन्वोक (एक्शन) प्रतिनिधि {frame.rtbChatbox.AppendText ("\ n" + रेखा);}); सूचीबद्ध दो समाधान कार्यात्मक समकक्ष हैं वे दो अलग-अलग सिंटैक्स हैं जो एक अनाम विधि बनाने के लिए उपयोग किए जाते हैं। जो भी आप चाहते हैं उसका उपयोग करें।

Proper permissions for python installation directory? -

The first time I am trying to use the Python app on a server, I started setuptools by adding them as root : [root @ server mydirectory] # yum install python-setuptools Cool. Then I'll try setup.py: [user@server mydirectory] $ python install.py installation error: installation files can not be created or removed in the installation directory Add or remove files: [Erro 13] Permission denied: '/usr/lib/python2.4/site-packages/test-easy-install-25752.write-test' This directory is owned by the {code> /usr/lib/python2.4/site-packages root, so it is understandable. My question is, should I paste it on the site - the package directory, or should I setup.py run as a root? The conventional way of installing stuff is System-wide as the non-root user as the sudo is the reason why you see all such things on all python docs: sudo python setup.py install Some people are site-groupable by the site- some "dev group", so you do not have to do this...

javascript - Get Actual CSS Property of element if it dynamically added "!important" -

मेरे पास आईडी = "somID" के साथ एक तत्व है; उदाहरण के लिए: एचटीएमएल: & lt; div id = 'somid' & gt; & lt; / div & gt; सीएसएस: #somID {width: 500px; height: 500px} और मेरे पास एक वर्ग है: अधिकतम करें। अतः, । अधिकतम करें {width: 100%! महत्वपूर्ण; ऊंचाई: 100%! महत्वपूर्ण; } अब गतिशील रूप से मैं अपने आईडी की तरह, $ ('# somID') के साथ कॉल करके अपने #somID की चौड़ाई और ऊंचाई प्राप्त करना चाहते हैं। चौड़ाई () या। () लेकिन मैं अपनी आईडी में परिभाषित तत्व की वास्तविक ऊंचाई लेना चाहता हूं, परन्तु मुझे .maximize परिणाम में नहीं मिलता है, जिसकी ऊंचाई या चौड़ाई है #somid । किसी भी दोस्त के पास कोई विचार है? कैसे # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # समस्या यह है कि बहुत से, कई चयनकर्ता, जो किसी विशेष तत्व के साथ दिए गए तत्व के लिए लागू होते हैं, हो सकते हैं। कोई एपीआई नहीं है जो आपको सीएसएस में चयनकर्ता से एक संपत्ति का अनुरोध करने की अनुमति देता है - यह केवल अधिक समझ में नह...

ajax - What is an alternative approach to large quantities of hidden fields? -

I am using some hide-field to store some values, which I have given to my AJAX posts on the server Need to continue with. Is this a bad practice? Should I use another technique like storing a JSON string inside a hidden field? Or is it a common scenario in all hidden areas? Finally there is nothing wrong with the 12 hidden areas. It is difficult to give advice about what you should do, because I do not know your situation. In these situations, only one piece of my advice is to evaluate the situation and check if your application is doing and if there is a better way. Ask yourself if the form is doing too much at once. Can it be distributed? Is there a way to make work easier?

c# - Emitmapper Don't Map Null -

performance difference between Emitmapper and Automapper Due to an unanswered problem that is facing me with Automapper , I decided to go to Emitmapper although I do not know that in Emitmapper What is its function? Mapper Createmap & lt; Unit, unit and GT; (). All objects (opt => opt. Condition (SRS => srs.IsSourceValueNull)); As I can not stop the Emitmapper from the mapping of zero code. [Hint]: If someone could help me with my problem I would be very grateful with Automapper.

windows - Dropbox Sync API for C++ -

I understand that there are iOS and Android libraries where there is no problem in using I have Windows Studio 2008 and C ++ There is also an application for Windows Desktop using MFC / (or Win API). Is there any tutorial how to implement Dropbox synchronization via plain HTTs? (JSON or REST) ​​ Below, everything is just a web API, so the core APIs HTTP Go to Docs and from there.

arrays - removing duplicate values in python -

This question is already an answer here 2 replies give me Columns are Excel Date and Temporary will look like this: date temp 20130102 34,20 20130102 34.42 20130102 34.33 20130102 34,12 20130102 34,84 20130103 34,48 20130103 34.42 20130103 33 , 77 20130103 33,62 20130103 33,94 20130103 33,45 When I extract them into python using numpy, I get 2 arrays like this: date = [20130102,20130102,20130102,20130102,20130102,20130103,20130103,20130103,20130103] temporary = [34.20,34.42,34.23 ....., 33.45] How do I convert this into array 1 of arrays, by combining the 1 date with all corresponding temps for that date? dataarray = [[20130102,34.20,34.42,34.23,34.12,34.84], [20130103,34.48,34.42,33.77,33.62,33.94,33.45]] To get the exact format you specify (list of lists), I use and then to understand some links Open group generator for: import itertools groups = itertools.groupby (zip (date, floating), lambda DV: DV [0]) list_of_lists = [[d] [v [1] Values ​​in V...

Kendo Grid selectable not working in popup window -

एक .cshtml फ़ाइल से निकालने: & lt; tr & gt; & Lt; td colspan = "3" & gt; & Lt; input class = "k-button" value = "एसोसिएट सर्विस स्थान" onclick = "assocLoc (यह)" डेटा-अनुरोध- url = "@ Url.Action (" एसोसिएट स्थान "," बिलिंगएकाउंट ", नया {customerId = मॉडल आईआईडी}) "/ & gt; & Lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt;! - और बाद में एक ही फाइल में: - & gt; & Lt; div id = "एशोक्लोक वांडो" वर्ग = "कंटेनर-सीमा-गोल" & gt; & lt; / div & gt; और संबंधित जावास्क्रिप्ट: फ़ंक्शन एशॉक लॉक (प्रेषक) {var win = $ ("# AssocLocWindow")। केंडो वांडो ({title: "Associate सेवा स्थान बिलिंग बिलिंग ", ड्रैग करने योग्य: सही, मोडल: सही, सामग्री: $ (प्रेषक) .डेटा (" अनुरोध-यूआरएल "), क्रिया: [" बंद "]})। डेटा (" केंडो वांडो "); win.center (); win.open (); } यहां संबंधित नियंत्रक कोड है: सार्वजनिक...

javascript - set combobox value based on the value of another combobox on window component extjs4 -

I have two combobox A and B and I try to set the value of Cambodia B based on the value of combobox b I am here. Exjectes 4. I want to do this when the window is open and in combobox A there is a value that is selected. Comboboxes are in a form panel. I know that I want to set up for the kickbox because I load the form like this: Ext.getCmp ('form_panel_id'). GetForm (). Load ({url: 'request .php', parameters: {type: 'get_values', record_id: 12}, success: function (form, action) {window_id.show (); window_id.center ();}} ); get_values.php returns values ​​(in JSON) to display in combobox. What is the best callback to achieve this? Sorry, I'm new to extjs. Thanks presentations your window event and Combo A .getValue () Depending on the combo A, The code> displayfield and value fields configs are obviously shown in the displayfield combo, and valuefield is the one that you GetValue () . If the value of the first comb...

serialization - Why would python `__setstate__` accept `None` as a parameter? -

I was browsing some code from and I in some serge.serialize Could not wrap around: def __setstate __ (self, state = none): "Start the object in the given state for self-reliance" "self.initial_properties = Bag () ## Get started first by default and then live state for this_state (self .__ class __._ getProperties (), state): If this_state: for name, value in i_State: setator (self S, name, value) setter.initial_properties, name, value) This method was derived from the serialjable object. I am confused about this because the state parameter is not the default value of __setet __ in any . Why will not an object be sent to __setet__ when unplick, and in what situation will it be useful? This is not useful if your class is completely __getstate __ / Depending on snacks, the __settext___ is dependent. Documents on Explaining: On Uniquely, if the class has defined the __setset __ () , then it with the unauthorized state It is said ... if _...

javascript - A list of event types that d3js supports -

I am using d3.js to create a data visual tool. I read in the D3 document that the event listener can be used on selection.on (type [, audience [, capture]]) API. As has been documented here: However, I have not found a list of event types that support D3. Now I know that click on ' event, ' mouseover ' event and ' mauaut ' are the events. D3 supports any javascript on event in method - created by another code Includes custom events to go. There is a good list of events created by the MDN browser. Note what types of dom objects can react to events, though. D3 should be able to give feedback on the element in the selection to D3 on method. Also keep in mind that for some complex types of user interactions, it is easy to use, like dragging, which monitors multiple system events, monitors both mouse movements and touch screen movements. , And creates a custom event that you can respond again.

xml parsing - XML xs::assert in complex type -

I am trying to start conditionally mandatory fields in my XML schema, but I am getting an error which is x : Not valid Additional information: I am using excerpt 3.11 (C ++) to parse XML) & lt ;? XML version = "1.0" encoding = "ISO-8859-1"? & Gt; & Lt; Xs: schema xmlns: xs = "http://www.w3.org/2001/XMLSchema" & gt; & Lt; Xs: element name = "configuration" type = "configuration type" / & gt; & Lt; X: complex type name = "configuration type" & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element name = "application" minOccurs = "1" maxOccurs = "unbounded" type = "ap type" /> & Lt; Xs: element name = "command" minOccurs = "1" maxOccurs = "unbounded" type = "commandType" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; X: complex type name = "ap type...

julia lang - HDF5 package Ian's compression -

Would anyone know if the HDF5 package compiled by Tim Holley could handle compression (zlib, bzip2, Lzo, etc.) ? Could not find anything in the document -. If so, you can tell me for any example, thank you very much Must have to be read very carefully, but the Doctor / directory contains more details in brief, yes, it supports compression. I make that link more prominent.

learning android..getting IO exception in httpURL -

I'm learning Android and I'm caught in the IO block of exception. Can someone help me. Below is my code package com.example.blogreader; Import java.io.IOException; Import java.net.HttpURLConnection; Import java.net.MalformedURLException; Import java.net.URL; Import android.app.ListActivity; Import Android.os.AsyncTask; Importroid.os.Bundle; Import android.util.log; Import android.view.Menu; Public class manilist activity list activity (protected strings [] M hasters; public static final integer, NUMBER_OF_HOSPITALS = 20; public static final string TAG = main list activity.class.getSampleName (); @ override protected zero creation (bundle saved instenestate) { Super.naught (savedinstenstate); setContentView (R.layout.activity_main_list); // resource resources = getResources (); // m migrant = resource.getStringArray (R.array.hospital_names) ; // // Arrayedupter & lt; string & gt; adapter = new array adapter & lt; string & gt; (this, Android .R.Lite Symple_...

c# 4.0 - Declaring & invoking functions from the memory consumption point of view -

Private Zero DoSomething (OtherObj obj) {// Use obj.Id to work, that only // input is actually needed in this function} says the function as the comment above, using your work obj.Id , Then we can rewrite it as Private Zero DoSomething (integer otherObjectId) {// same logic goes here ...} I should know that Which is better than the point of view of memory consumption. Please note that otherObj is already in memory, so there is no loading (in memory and doSomething function before loading it for some, so it is not just), no wire attached to the loading There is objection in memory, etc. As far as I know, the copy of obj's address is passed to the DoSomething function in the first signature, whereas the copy of an integer for the second version is passed, then it seems that There is no difference between the two ... Would you please tell me what is happening here? Who's the way to go? And why? Thank you.

select - Can I force termination a goroutine without waiting for it to return? -

मुझे एक उदाहरण का उपयोग करें: func WaitForStringOrTimeout () (स्ट्रिंग, त्रुटि) { My_channel: = बनाने (चैन स्ट्रिंग) प्रतीक्षा करेंफॉस्ट्रस्ट (my_channel) का चयन करें {case found_string: = & lt; -my_channel: return found_string, शून्य मामले & lt; -time.After (15 * time.Minute): वापसी शून्य, त्रुटियाँ। "स्ट्रिंग के लिए इंतजार करना समाप्त हो गया है")}} इस सरल उदाहरण में, मेरे पास कुछ फ़ंक्शन WaitForString है जो कुछ समय के लिए ब्लॉक करता है और अंततः एक स्ट्रिंग लौटा सकता है। मैं इस कोड के साथ WaitForString लपेट करना चाहता हूं जो कि एक त्रुटि के साथ एक ही स्ट्रिंग या समय देता है। यदि कोई स्ट्रिंग जल्दी से मिलती है, तो वहां एक गोरटिन है जो कि 15 मिनट की नींद वक्तव्य के साथ चल रहा है या कहीं इस कचरा को किसी तरह एकत्र किया है? यदि समय समाप्त होता है और एक स्ट्रिंग कभी नहीं मिलती है, क्या अभी भी एक गोरटिन चल रहा है WaitForString, भले ही कोई अन्य दिनचर्या न हो जो इसे आउटपुट देख सकें? क्या होगा अगर WaitForString बहुत सारी मेमोरी को आवंटित करता है लेकिन कभी भी रिटर...

c - Error on building source code in VC 6 -

When I create my project in VC6, the BScMKE reports the following error Linking .. Creating Library ... .. / ... / PB / Bean / Debub / ICEERP.Lib and Object ........ P.B. / Bean / DBube / ICREPlay.APP Browse information file ... BSMMK: ​​error can not be read from BK 1505: file '../../PB/bin/TmpOut/ICReplay/Debug/ICReplay_PB.bsc' Error executing bscmake.exe Can someone help me? 2 Reason for reference from: "ICReplay_PB .bsc "file will be corrupted The trunk of the file will be happening with the compiler running out of disk space or is being interrupted when creating .sbr file I think this answer will help you!

checkbox - PHP - Write selected checkboxes to a text file -

What I have to do is write a bunch of songs that a user selects in a text file from the checkbox list. The songs are listed in a text file, which is then opened and its values ​​are stored in an array, and that array is used to create the checkbox list. This is what I have done so far. & lt; Html & gt; & Lt; H1 & gt; Welcome to Zmzon To add to your library, select the song below. & Lt; / H1> & Lt ;? Php var_dump ($ _ POST); / * Type song selection in the MyLibrary.txt file. * / If (isset ($ _ POST ['songList'])) {$ addSongs = $ _POST ['song list']; $ Handle = fopen ('myLibrary.txt', 'a'); Foreign currency ($ add $ adds as song) {FILIT ($ handle, $ song. "\ N"); } Fclose ($ handle); }? & Gt; & Lt; Form action = "zmzon.php" method = "post" & gt; & Lt ;? Add the contents of zmzonSongs.txt to the php / * array. * / $ SongList = Explosion ("\ n", file_get_contents ('...

email notification in sql server -

मेरे पास एक संग्रहीत प्रक्रिया है जिसमें 2 पैरामीटर @LastUpdateDate और @CurrentDate मैं इन दो दिनों के बीच के अंतर की गणना करता हूं और इसे एक अन्य चर में उप-संग्रहित करता हूं, जैसे कि घोषित करें @sub int @sub = (datediff (dd, @lastupdate, @ currentdate) ) यदि उप के मान 0 से अधिक है, तो मैं कुछ लोगों को एक ईमेल अधिसूचना भेजना चाहता हूं कि क्यूब अंतिम दिन से ताज़ा नहीं हुई है। क्या कोई मुझे बता सकता है कि मैं इसे कैसे प्राप्त कर सकता हूं? मैं sqldbmail की कोशिश की, लेकिन उस विकल्प काम नहीं किया मैं sqldbmail के बारे में निश्चित नहीं हूँ मानक का उपयोग करना होगा। इसमें कुछ सेट अप की आवश्यकता होती है जिसे लिओ के रूप में स्वीकार किए गए उत्तर में चर्चा की जाती है।

c++ - boost mapped_file_sink append to the end of a file when file is not large enough -

मैं एक लॉगर लिखने के लिए boost :: iostreams :: mapped_file_sink का उपयोग करना चाहता हूं मैं पहले एक मैप_फ़ाइल बनाऊँ जो 4KB है; जब फ़ाइल पूर्ण हो गई है और प्रोग्राम 4K + 1 बाइट लिखने की कोशिश कर रहा है, तो मैं मैप_फाइल_परम के आकार को बड़ा करता हूं, "उसी फाइल" को फिर से खोलता हूं, लेकिन मैप_परम.ऑफसेट = 4 केबी सेट करता हूं। तब मैं स्मृति में लिखता हूं जहां। डेटा () रिटर्न देता है। अब समस्या ये है कि जब मैं 4K + 1 बाइट डेटा को 4K + 1 स्थिति में जोड़ना चाहता हूं, तो फ़ाइल का पिछला 4 केबी डेटा मिट जाता है! मेरे पास केवल फाइल में (4 के + 1) ^ वें डेटा है! क्या कोई मेरी मदद कर सकता है? [UPDATE]: नीचे मेरा कार्यक्रम है: शून्य read_write_unidirection_example () {boost :: iostreams :: mapped_file_sink file_sink; बढ़ावा :: iostreams :: mapped_file_params param_sink; इंट ऑफ़सेट = 0; इंट पेज; Bool restart = सच; Param_sink.path = "result.log"; Param_sink.offset = 0; Param_sink.new_file_size = file_sink.alignment (); / * यह लिखने के लिए बाइट्स का आकार होना चाहिए! *...

jquery - Slicknav overhang on top of wrapper -

Image
How can I come in line with the orange menu wrapper? I have tried to play with slicknav.css, but there is no benefit. Here's the image of what I'm talking about: "> SlickNav code / * Mobile menu core style * / .slicknav_btn {status: relative; Display area; Vertical-row: middle; float right; Padding: 0.438 AM 0.625 M 0.438 AM 0.625 M; Line-height: 1.125 AM; Cursor: indicator; } .slicknav_menu .slicknav_menutxt {display: block; Line-height: 1.18 mm; Swim left; } .slicknav_menu .slicknav_icon {float: left; Margin: 0.188 mm 0 0.438em; } .slicknav_menu .slicknav_no-text {margin: 0} .slicknav_menu .slicknav_icon-bar {display: block; Width: 1.125 AM; Height: 0.125 AM; -WebKit-boundary-radius: 1px; -max-boundary-radius: 1px; Boundary-radius: 1px; -WebKit-Box-Shadow: 0 1 px RGBA (0, 0, 0, 0.25); -Move Box-Shadow: 0 1 Px RGBA (0, 0, 0, 0.25); Box-Shadow: 0 1 Px RGBA (0, 0, 0, 0.25); } .slicknav_btn .slicknav_icon- time + .slicknav_icon- time {margin-top: 0.188em} {....

javascript - IE -SCRIPT5: Access is denied -

I have a link from Page A to the page. Both pages are on different servers but the same domain. When I launch the page A by clicking the link on Page B, the page comes right and then I browse the page as one of the pages is uploading the file, clicking on the upload gives me an error: SCRIPT5: Access denied. If I launch application A by pasting the link in the browser, file upload works without problems. There are no IFrame or cross domain issues. File upload actions point to the same domain. Normal JavaScript, no jquery has been used on the file upload button click on javascript: Onclick = "this.form.pageButton.value = this.name; form.action = '/ FileUploadManage / main? Action = myFileUploadAction'; Submit ();" I have gone through all the posts on this subject, but no one does not tell the issue. The same issue is on IE 7,8 and 9. Works well on Firefox.

operating system - Can you make a program run from usb without logging in to windows? -

A question like : can you put some files on the USB, when you plug it on your computer? Perhaps to create a mini OS that you start with bios? I have to be able to run an XE program from this, so it will need to be able to run windows originally, without just logging in, you can configure how to configure USB on the wibtou with alcohol. Yes, but it needs to be supported: BIOS should be UEFI BIOS boot manager should try to load from USB prior to HDD / SSD. Such applications are called UEFI (shell) applications and can be made through it. These apllications run on the Intel architecture at Ring 0.

SignTool Not Signing ClickOnce App Using SHA256, Only Uses SHA1 -

I'm trying to sign my app clicking. I have an EV code signature certificate that is using SHA256 The problem is that when I sign my app using the Post Build command, it is using SHA1 instead of SHA256 Here's the output window Is a clip: Running code analysis ... 1> Code analysis complete - 0 error (error), 0 warning 1 & gt; The following certificate was selected: 1 & gt; Issued to: Certificate subject name here 1 & gt; 1 & gt; Issued by: DigiCert EV Code Signing CA (SHA2) 1 & gt; 1 & gt; Expires: Thursday 14 April 06:00:00 2016 1> 1 & gt; SHA1 hash: hash-1 here & gt; 1 & gt; 1 & gt; Additional Stores 1 & gt; Adding Completed Successfully Signed and Timestamp: C: \ User \ AnyBody \ Document \ Visual Studio 2013 \ Projects \ My Project \ Project Folder \ obj \ x86 \ My Configuration \ MyProgram.exe 1 & gt; 1 & gt; 1 & gt; Number of successfully signed files: 1 1 & gt; 1 & gt; Number of Alerts: 0 1> 1 ...

ios7 - card.io linker settings -

Image
"On GitHub instructions for Card.io" in the build settings of your projects (in the TARGETS section, not the Project section), add -LC ++ is added to other linker flags. " I can not find an entry for that name in Xcode 5. Now where should the "-lc ++" flag go? There is a right to the project> target> build settings, just type "other linking flags" in the search:

Facebook Graph API : detect action of feeds in /feed -

I am now developing an app that has the Facebook graph API graph / me / Authorized user to get all the feeds feeds Here the problem is how to detect the action of the feeds, such as: added photo, updated status ... The result of the endpoint: me / feeds , each feed provides a field named : status_type So, based on this field, you can detect the operation of the feed. For example: Added_photo, shared_story, app_create_story, tag_en_photo

java - JPA Inheritence IdClass -

How to use IDclass in multiple heritage units overall key case? @IdClass (IdClassEntity1 classifieds) class Entity1 {Private long e1pk1; Private long e1pk2; } @ ID Class (ID Classy Class 2.) Class Entity2 Entity1 {Private long e2pk1; Private long E2P2; } Class Entity3 Entity2 {Private long e3pk1; Private long E3 PK2; } What should be IdClassEntity2: Class IdClassEntity2 {Private long e1pk1; Private long e1pk2; Private long E2 PK1; Private long E2P2; } or Class IdClassEntity2 {Private IdClassEntity1 idClassEntity1; Private long E2 PK1; Private long E2P2; } You can use @MappedSuperClass or as @EdClass . For example, by using @MappedSuperClass , you can: @MappedSuperClass @IdClass (IdClassEntity1) .class) Public Class Entity1 {@Id Private Long e1pk; @ Id private long e1pk; ... @Entity Public Class Entity2 Entity1 {...] using @Entity extends, follow the same pattern

java - Scanner stops reading long input file -

I tried to read a full file using the standard input using the scanner, but it stops after a sufficient amount of input My code is: import java.util.Scanner; Public Category TestEOF {public static zero main (string [] args) {scanner sc = new scanner (System.in); Sc.useDelimiter ("\\ Zed"); String full = sc.next (); Println (whole); }} It is supposed to be read all the way up to the end of the scanner file, but I think it stops after some 1000 characters. I have triggered it with different input text files and each received a similar result every time, even if there is no unusual character in the input file. I'll call it Java TestEOF & lt; Input.txt

php mysql get id of last insert row giving error -

I want to get the last inserted line ID and I am using the mysql_insert_id () function. But give the issue Here is my code: if ($ i == 0) {$ query = "Set Up Update Event e_did = '" $ multi_event. "'Where eid ='". $ Display_id. "'"; Mysqli_query ($ thor, $ query); File_put_contents ('log.txt', mysql_insert_id (), FILE_APPEND); } And {$ query = "INSERT INNOVITES (start_date, end_date, text, rick_type, event_pid, event_length, e-bid) value (''. $ Line ['start_date']. '', '". $ Row [ '', '". $ Line [' text '].' ','". $ Line ['rec_type']. "','". $ Line ['event_pid']. '', '". $ Line [' event_length ']"', '"$ multi_event"') "... Mysqli_query ($ thor, $ query); File_put_contents ('log.txt', 'a' .MISQL LIVE_ID.) 'A', FILE_APPEND); } Now b...

java - Double value stored as zero in the database -

I have a database in my database I am using a prepared statement in Java class created space ps = con.preparestatement ("Enter in student values ​​(?,?,?); Ps.setstring (1, t.getUname ( ); Ps.setDouble (2, t.getUmarks1 ()); ps setDouble (3, t.getUmarks2 ()); position = ps.executeUpdate (); But when one Double value is sent, so it says the above error mentioned in my question. I have another class where the gates and sets This is as follows. Public class user {Private string anonymous; private double umarks1, umarks2; public string getUname () {Return uname;} Public Zero SetUmen (String Anem ) {This.uname = uname;} Public double getUmarks1 () {umarks1}} Public Zero SatuMarks1 (double umarks1) {this.umarks1 = umarks1;} Public double getUmarks2 () {return umarks2;} Pub li zero zero set 2 (Double umarks2) {this.umarks2 = umarks2; }} If I change the data type then it saves 0 in the database. I want to save a double value how do I fix this? I thought that the ...

ios - activate segue after email sent -

Once the user of my app has sent an email and has informed a UILart that their email has been successfully sent to them. , Such as IDs can be moved back to the home screen through a SEZ, the user will now have to push a back button to get it. I feel that this mail should be implemented in the Compass control system, but I have never activated the program actively. My code is given below - (zero) mailComposeController: (MFMailComposeViewController *) controller didFinishWithResult: (MFMailComposeResult) result error: (NSError *) Error {switch ( Result) {Case MFMailComposeResultCancelled: {[Removal controllers themselves estimated: Yes complete: zero]; } break; Case MFMailComposeResultSent: {[Self Waste ViewControllerAnimated: Yes Completed: Zero]; UIAlertView * Warning = [[UIAlertView alloc] initWithTitle: NSLocalizedString (@ "Disclaimer", "Message"): NSLocalizedString (@ "Thank You For Dobbing In One I'm In Please The police are resp...

extjs - Layer Switcher using EXT JS -

I am working in an application where map layers were published using GeoSER, Displayed on the panel created by JS, I want to include layer switcher features inside the trippanel on EXJ JS. How can I get all the WMS layers published under a particular workspace inside a paperpanel to feature the layer switches I'm not sure who you are asking for, but there is a request type called GetCapabilities which are the layers available on the bossovers. An example of parsing getCapabilities for a simple one.

wcf - Creating URIs for webmethods -

I have created a WCF service and I want my client to use the servicemap directly to use the URL without making a proxy class and object for the object. How to generate a direct URL for each webmath. If I have 5 Webmissions, then I want to give 5 urls to the customers for consumption. If you want to call your web service methods without generating proxy classes and objects, then You should make that service as a REST service. Please refer to the link given below which will give you basic information about WCF REST services.

nosql - On-premises replacement for Azure Tables? -

Ezire Tables is a great no-sql for in-cloud deployment, but we also have some deployment that is public Internet What is the "Standalone" equivalent of Ezire Tables from the programming model / API / Display Perspective? Today there is no offer for on-premise for Windows Azure Storage, these features are available here.

android - Gson: deserialize MySQL datetime to Java Object -

असल में, MySQL DATETIME डेटा प्रकार का प्रारूप यह है: " 2014-02-14 16:43:04 "लेकिन जब जीएसएस के साथ deserializing मुझे एक अतारांकित तारीख मिलती है:" 2014-02-14 16:43:04 " । मुझे लगता है कि मैं इसके लिए एक गलत वस्तु का उपयोग कर रहा हूं, मैं java.sql.Timestamp; का उपयोग कर रहा हूं, इसके लिए सही वस्तु क्या है, या यह है कि मुझे कुछ कोड स्वरूप को Gson पर कॉन्फ़िगर करने की आवश्यकता है? यदि ऐसा है, तो कैसे? संपादित करें: setDateFormat () के साथ क्या होता है अगर मैं DATE (yyyy- मिमी-डीडी) और भी DATETIME (yyyy-mm-dd hh: mm: ss), उनमें से कोई भी प्रभावित होगा? इस तरह से एक जीएसएमएक्स setDateFormat का उपयोग करने की कोशिश करें: Gson gson = new Gsonbuilder ()। SetDateFormat (" yyyy -एमएम-डीडी एचएच: मिमी: एसएस ")। बनाओ () बहुत अच्छी तरह से आपको नियमित रूप से दिनांक ऑब्जेक्ट की आवश्यकता है।

c++ automatic 'type cast' conversion -

Can someone explain why the code is not compiled below error: Error 1 error C2243: 'Type cast': Conversion from 'Fear *' to 'Base *' is present, but not inaccessible: \ user \ lzizva \ documents \ mta \ c ++ \ projects \ temp1 \ 17022014.cpp 50 1 temp1 Error 2 Error C2243: 'Type Cast': Conversion from 'Fear *' to 'Base *' is present, but not inaccessible: \ users \ lzizva \ documents \ mta \ c ++ \ projects \ temp1 \ 17022014 .cpp 51 1 temp1 3 IntelliSense: To insufficient Conversion base class "base" is not allowed d: \ users \ lzizva \ documents \ mta \ c ++ \ projects \ temp1 \ 17022014.cpp 50 12 temp1 4 IntelliSense: Conversion "base" in inaccessible base class d: \ Users I thought that when there is a personal heritage, the child gets all the qualities and methods and they are set in private form. And this should affect only the subclasses of the child, what do not I understand here? What does the compiler ...

javascript - Live inline text editing styled according to text contents -

I'm planning to use an inline text editor to create a talkable topic to show a sublime topic I might have probably done it on some other websites I have not searched for. I'm just thinking that in order to type the text in the same style as an inline text editor element, the code or text can be typed as the user type. If it was done in JavaScript then I am sure that the 'B' behind 'A' was in the 'B' C 'etc., then this code would contain a considerable amount of code to test it, I guess Impose I have enough (heavier), and due to the number of checks, there can be a reason for a significant gap, because it needs to be processed as a type of person. Thanks in advance! Regards, Michael "Syndi" lang

excel vba - Find and Replace using IF condition -

I am currently using the macro below to change the values ​​in my large data but the problem is that the replacement or The replacement values ​​are changing from each data set and if the required value macro error is not found, someone can help me, how do I if condition Cells.replace For example, if if is found D then this block of code Programmed play or skip to the next value. Sub-replacement all () applications. Screen Update = False Selection Range ("A1"). Choose Range ("A1"). Select the cell. What is: = "D", Replacement: = "", LookAt: = xlPart, SearchOrder: = _xlByRows, Match CAS: = False, SearchFormat: = False, ReplaceFormat: = False Cells.replace What: = "F" Replacement: = "", LookAt: = xlPart, SearchOrder: = _xlByRows, MatchCase: = False, SearchFormat: = False, ReplaceFormat: = False application ScreenUpdating = True End Sub I do not know why errors should occur, but you can skip all the errors ...

How to restrict user not to select future date from calender view in android -

I have to restrict the calendar to choose from the calendar view from the future date. It can either be an error message or another method that can help with the future date selection. Please feel free to teach me cv = (CalendarView) findViewById (R.id.calendarView1). CV.setOnDateChangeListener (New OnDateChangeListener) {@Override Public Zero onSelectedDayChange (CalendarView to view, integer year, integer month, integer dayOfMonth) {// TODO auto-created method stub cvSTR = dayOfMonth + ":" + + (Month +1 ) + ': "+ Years; Toast.makeText (getBaseContext)," is the selected date \ n \ n "+ cvSTR, toast.LENGTH_SHORT) .show (); MyDay = String.valueOf (dayOfMonth); MyMonth = String ValueOf (month + 1); Mayer = string.value (year);}}); Add this: date maxDate = new date (); // set your maximum date Cv.maxdate (maxDate.getTime ());

sql - Accessing a table without specifying the schema name -

मेरे पास GBO_ARC_SCHEMA नामक एक स्कीमा है, जिसमें मुझे TEST_EMP , और मेरे पास दो उपयोगकर्ता हैं USER_A और USER_B । सबसे पहले मैं USER_A से कनेक्ट हुआ और नीचे निकाल दिया गया क्वेरी TEST_EMP से गिन (*) का चयन करें; गिनती ----- 20 उसके बाद मुझे USER_b के रूप में जोड़ा गया और क्वेरी से निकाल दिया गया लेकिन यह एक त्रुटि दे रहा है, यह कह कर कि मेज या दृश्य से बाहर नहीं निकलता TEST_EMP से गिनती (*) का चयन करें; लेकिन अगर मैं scma.object नाम का उपयोग करता हूं तो मुझे नीचे की तरह क्वेरी करने की अनुमति है select count (*) से GBO_ARC_SCHEMA.TEST_EMP; लेकिन मेरी आवश्यकता के अनुसार मैं स्कीमा नाम निर्दिष्ट नहीं करना चाहता। क्या कोई मेरी सहायता कर सकता है? यदि आप चाहते हैं सभी प्रयोक्ता स्कीमा नाम के साथ योग्यता के बिना मेज से चयन करने में सक्षम होने के लिए, आप एक सार्वजनिक प्रतिरूप : GBO_ARC_SCHEMA.TEST_EMP के लिए सार्वजनिक समानार्थक TEST_EMP बनाएं; यदि आप केवल user_b को स्कीमा नाम छोड़ना चाहते हैं, तो आप user_b के स्कीमा के भीतर निजी प्रतिनाम ...

javascript - Adding events to SVG text element -

I have a svg element I have added a mousemove event handler for it and it works fine Does. Now I add text element to it and in this added mouseover event headlar, but the event is not a fire. Other elements such as Path and Row are firing phenomena but there are no text elements. To create the text element and force the event handler, click on it below my code. Function texturelabel (cx, cy, llb, color) {var svgns = "http://www.w3.org/2000/svg"; Var tlbl = document.createElementNS (svgns, "text"); Tlbl.setAttribute ("fill", color); Tlbl.setAttribute ("x", cx); Tlbl.setAttribute ("y", cy); Tlbl.textContent = lbl; Tlbl.setAttributeNS (empty, "square", "TKLBL"); Tlbl.setAttributeNS (empty, "onMosOver", overtail label); Return TLLL; } Function overTickLabel (evt) {// This function has not been executed on mouseover $ ("# preview_grid"). Trigger ("mouseover"); Console.log (...

c++ - Child window (CEdit) losing focus -

मैं एमएफसी दस्तावेज़ / देखें आर्किटेक्चर का उपयोग कर सी ++ प्रोग्रामिंग कर रहा हूं। मैं ऐसा कुछ हासिल करने की कोशिश कर रहा हूं। मैंने संदेश EN_KILLFOCUS संसाधित किया जैसा कि जवाब सुझाता है। असल में, मैं यह कर रहा हूं: मेरे पास दृश्य में टेक्स्ट खींचा गया है। जब उपयोगकर्ता दृश्य के पाठ के क्षेत्र को क्लिक करते हैं, तो मैं स्थिति और उसके ऊपर सीईडीट विंडो दिखाता हूं ताकि उपयोगकर्ता टेक्स्ट को संपादित कर सकें। जब संपादन फोकस खो देता है, तो मुझे सीडित टेक्स्ट मिल जाता है और इसे दस्तावेज़ में सहेजता है। फिर दृश्य को अमान्य करें। हालांकि, मुझे केवल EN_KILLFOCUS संदेश प्राप्त होता है जब दृश्य फोकस खो देता है मुझे कहीं और क्लिक करना है, उदा। एक डॉकिंग विंडो, या उपकरण पट्टी, सीईडीट को फोकस खोने के लिए मैं चाहता हूं कि जब मैं सीडीट बॉक्स के बाहर कहीं और दृश्य पर क्लिक करूँ तो ऐसा होना चाहिए। मैं CEDIT को WS_CHILD शैली के साथ बना रहा हूं मैंने WS_POPUP की कोशिश की लेकिन अभी भी यही समस्या है। किसी भी मदद की सराहना की जाएगी। एक CEdit व्युत्पन्न वर्ग / नियंत्रण बनाएँ और अपने वर्ग में...

javascript - I want to display webpage on a mobile with full content -

I have a webpage that is already properly visible on mobile and feels like this on the desktop. I'm having trouble displaying site content with minimal zoom so that all the contents of the site can be displayed properly without any scrolls. You must enter this meta in your meta: ; Meta name = "viewport" content = "width = device-width, initial-scale = 1.0" />

Sending email from Django contact form on Google App Engine redirects to 404 -

I am trying to install a DJ ango contact form on a simple blogging application which is currently hosted on Google Cloud Platform has gone. The app works locally, sends an email and redirects the end user to a full page, even though when I push it to the production server, it tries to send an email for about 30 and then I A 404 I have checked my NGX error and access logs as well as my gun log and it seems that there is a guntoony laborer time after 30 seconds, so 404. Initially Then Nne thought that because my port although lock on 587 Google Cloud network, when I said that I am open port, also keeps it failed. My settings: Emailer EMAIL_HOST = "send.one.com" EMAIL_PORT = "587" EMAIL_HOST_USER = "postman@email.co.uk" EMAIL_HOST_PASSWORD = "Password "DEFAULT_FROM_EMAIL =" postman@email.co.uk "SERVER_EMAIL =" postman@email.co.uk " I try to run it via TLS using EMAIL_USE_TLS = True Is there any success but no person b...

sed - search and print the value inside tags using script -

मेरी इस तरह एक फाइल है abc.txt & lt; ra & gt; & lt; r & gt; 12.34 & lt; / r & gt; & lt; ई & gt; 235 & lt; / e & gt; & lt; एक & gt; 34.908 & lt; /a><r>23</r><a>234.09</a><p>234</p><a>23</a></ra> & LT; हैलो & gt; sadfaf & lt; / हैलो & gt; & LT; हाय & gt; hiisadf & lt; / हाय & gt; & LT; रा & gt; & lt; रों & gt; asdf & lt; / s & gt; & lt; qw & gt; 345 & lt; / qw & gt; & lt; a & gt; 345 & lt; / a & gt; & lt; पो & gt; 234 & lt; / पो & gt; & lt; a & gt; 345 & lt; / a & gt; & lt ; / रा & gt; मुझे क्या करना है मुझे & lt; ra & gt; टैग और अंदर के लिए & lt; ra & gt; टैग ढूंढना होगा & lt; a & gt; टैग जिसका वेलेस मुझे भीतर के मूल्यों को कुछ चर में संग्रहीत करना है जो मुझे आगे की प्रक्रिया में करना चाहिए। मुझे यह कैसे करना चाह...

ios7 - Identifier for individual UITableViewCell? -

I am trying to create a really simple app that shows a list of songs in the UITT footage. The user can then select a song and the song will start playing. I have not implemented AVAudioPlayer yet I do not want to deal with him yet. For now, I'm just using the test NSLog statement to test the tableView: didSelectRowAtIndexPath: method. Here is my code - (zero) tableview: (UITableView *) table view was selected Select Endpath: (NSIndexPath *) IndexPath {if (indexPath.section == 0) {switch (indexPath .row) {case 0: NSLog (@ "Play Play"); break; Case 1: NSLog (@ "Play That Young"); break; Case 2: NSLog (@ "Play Zombie Soc"); Default: Break; }} And {Uh oh I have not created this section.}} Note that these cells were programmatic, I have a prototype cell in the interface builder And these three were programmatically created. These static cells are not dynamic cells. I believe this should be a better way of doing this. If I change the order of any...

java - Can't get a Message Dialog box to come from an Action Listener -

This question is already an answer here Is: 1 answer I I am receiving an error message as a result of an action listener in my program that receives an error that can not be changed to 'incompatible source code-incompatible type: zero to java.lang.String'. I can not understand what I am doing, especially when I can get input dialog and confirm the dialog box as I want the message dialog box, using a lot of code. Here is the code I used ... // Search menu item srch.addActionListener (New ActionListener) {@Override Public Null ActionPerformed (ActionEvent e) {if (Database_Name =) Adding an ActionListener else if (Database_Name = null) {jta.setText ("this works");}; = null) {error = JOptionPane.showMessageDialog (zero, "error", JOptionPane.ERROR_MESSAGE) "This is an error Message? "}! // end if statement} // end actionPerformed}); // Find the end MENUITEM action listener The error says just as, Error variable is most likely a...

sonarqube - Sonar Treemap with custom levels -

मेरे प्रोजेक्ट में नीचे की तरह निर्देशिका संरचना है com / zombie / user / login / login .java com / zombie / user / login / register.java com / zombie / user / login / forgetpassword.java com / zombie / user / logoff / logoff.java com / zombie / account / myaccount / addAddress.java कॉम / ज़ोंबी / खाता / myaccount / deleteAddress.java डिफ़ॉल्ट सोनार ट्रेमेप परियोजना के अंतर्गत हमेशा पैकेज स्तर पर रहता है। जैसे, परियोजना-> com.zombie.user.login- & gt; कक्षाएं प्रोजेक्ट- & gt; com.zombie.user.logoff- & gt; कक्षाएं प्रोजेक्ट- & gt; com.zombie Account.myaccount- & gt; कक्षाएं लेकिन मैं नीचे की तरह treemap चाहता हूँ। परियोजना-> उपयोगकर्ता-> com.zombie.user .login- & gt; कक्षाएं प्रोजेक्ट- & gt; खाता- & gt; com.zombie.account.myaccount- & gt; कक्षाएं मैं यह कैसे कर सकता हूँ? मैं नया हूँ सोनार और किसी भी छोटी सी मदद की सराहना की जाएगी!

jquery - Uncomment html code using javascript -

HTML tags with some comment tags I just wanted to delete those tags I tried regex to use javascript But the problem completely removes the comment line, where I wanted to delete those tags. Below the sample HTML table with comment tags ... & lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; ABCD & lt; / TD & gt; & Lt; TD & gt; Logic & lt; / TD & gt; & Lt ;! - & lt; Td> 26538568 & lt; / Td> - & gt; & Lt; / TR & gt; & Lt; / Table & gt; So in the code above I just & lt ;! - & lt; Td> 26538568 & lt; Td> - & gt; . This is part of the scrap data from the webpage, so I can not change the html code. The table structure above is similar to the Web page, from which I am trying to extract the data. For example, using the DOM, without the text as you can, jQuery Usage: $ ('table tr') .contents () .filter (function () {return.nodeType === 8;}) // Get comments with reverse ...

SVN Error E195005: 'xyz' is not the root of the repository? -

I split a SVN repository into several repo as explained, however, to move existing work copies Can not execute the final step. After running svn relocate svn + ssh: // user @ server / newrepo , I receive the following error: svn: E195009: 'Svn + ssh: // user @ server / newrepo' is not the root of the repository (However, for example, I can see a new functionality from the new repository without any problems: svn co svn + ssh: // user @ server / newrepo is there anything wrong? Thank you in advance, HowTo you used if you change the path Remember a note Step 6: Regarding the "restoration" command, the existing repository will not work to redo the checkouts You have to do a separate checkout and then any differences Must be merged.

ios - time issue in writing event in iPhone Calendar -

I want to write an event in the default calendar of iPhone but I'm facing a problem in time, I started Date 18-02-2014 08:00 PM and end date 25-02-2014 11:30 PM I am using the code. But writing this start date is 18-02-2014 12:00 pm and the end date is 25-02-2014 12:30 pm.I do not know where I am wrong. How can I write it at the same time? - (zero) writeEventwithTitle: (NSString *) aTitle startDate: (NSDate *) strtDate endDate: (NSDT *) Ndateate {_eventStore = [[EKESTSTOR ALLOW] INIT]; [_eventStore requestAccessToEntityType: EKEntityTypeEvent termination: ^ (BOOL sanctioned, NSError * error) {If (cleared!) {Return; } EKEvent * event = [EventStore: EeventStore] with EKEvent Event; Event.title = aTitle; Event.startDate = strtDate; Event.endDate = ndDate; [Event Set calendar: [_destore default default calendarfourNewEvents]]; NSError * err; [_eventStore saveEvent: Event Span: EKSpanFutureEvents commit: Yes Error: & amp; Err]; }]; } - (zero) startWritingEvent {for (int i = 0...

PHP Composer mixed with Git Submodules and Symfony2 -

I have a project here which is a big Symphony 2 app, I try to present git submodules for those components I am making a house here in the house. The point here is that each component requires a composer package to work properly for itself and now I have a compositor package for the symphony 2 app and composer package for the component and I am not dependent on these dependencies How To Setup > At the moment, I'm manually running 'composer install' for each component (GIT subdue), which means that each component has its own 'vendor' folder, it is far from ideal, so I come to the stack How to get good advice about keeping this 'symphony composer dependencies' and 'component composer dependency' easy. I do not have to make sure that versions of the dump of the symfony2 app are synchronized component duplicates, making it easy for me to setup it without running 'composer update' with every GIT subpule and Need to be maintained. Thank ...