Posts

Showing posts from January, 2014

primefaces - JSF. How to disable page components by bean method -

I want to disable some menu items on my web page: & lt; P: menuitem value = "edit" update = ": formation: visibleDialPlayAdit" icon = "UI-icon-document" incomplete = ... disabled = "# {bean.sys (1)}" /> and in my backup bean: ask public boolean (int id) {ask for the database for the privilege "id" and if the returned user is correct Yes, the privilege "id" is returned and false) Of course I want to check it only once - during rendering the page In this example, regardless of the outcome of the "Ask" menu, is always enabled. I know that I can set the Boolean variable xmls code (# {bean.ask1}), but I want a universal solution Can you help Get in a bean with a private variable and ask with set methods. ask private boolean = true; Public Boolean issk () {ask again; } Public Zero SetAsak (Ask Boolean) {this.ask = ask; } Now whatever position you want to enable or disable menu items, set o...

analytics - DTM connectivity to SiteCatalyst -

I am trying to set up DTM for reporting to Adobe Analytics. I have pasted the header / footer code on my page and I see in Fideller that the "page load" and field level tracking are being triggered by DTM scripts. But I can not see anything in my report suite on site catalyst, according to the DTM documentation, I have changed AppMeasurement.js for Report Suite ID var s = New AppMeasurement ( ); S.account = "myreportsuiteidonsitecatalyst"; / * ============== Do nothing below this line! =============== Am I missing anything? help please. Most likely in your DTM code. You can use Chrome Extensions here to troubleshoot your DTM configuration. In addition to this, there are fantastic videos that you run through the setup of DTM and the configuration of analytics tools within DTM: (Dynamic Tag Management)

How Chrome App (not Extension) can read DOM element of page hosting app install button -

For my Chrome app, I follow the guide, and when a website clicks on the user installation button, the app Installs installation time (i.e. chrome.runtime.onInstalled.addListener (function () {}) in background.js ), how Can the app read the DOM Element or Javascript variable (the ID of the logged site visitors) from the HTML page to install the AOM page? All Online Advice I found, Using Content Script for Extensions The above guide says: "Extensions can communicate with embedding pages through content scripts" What is a solution for the application? Sorry, but I do not believe that apps are able to reach the underlying page But they are established at all. The idea is that they should have a sandbox in their personal universe and not be able to influence anything outside their window. Extensions, on the other hand, have been created to be able to access DOM in web pages. Therefore, I believe that what you ask will require you to create an extension inste...

android - Don't use default Player Control page when initializing Cast Companion Library -

The documentation says that you should specify the class of activity that you want to show when you call the initial method If you leave it blank, the default player control page will be shown. However, the default player control page is also shown, even if I have set the third parameter to that action from which I am casting: mCastMgr = VideoCastManager.initialize (reference, APPLICATION_ID, com.square radio activity category, "palaise: x-cast: com.square.radio"); Please help. Do you still have startCastControllerActivity (..) ? If so, then no. Since you want to start your own activity, you should start it in the desired size and there is no magic in it ( startCastControllerActivity () , this one Creates intentions, sets some extra sets and starts activity). Parameters that you have initially passed, are used by (a) minicin controller and (b) notification; In those two places, you can click on the icon and start your own activity which you had declared. Take...

How to select/edit proper folder for unit test creation in Android Studio? -

In Android studio, I was able to generate a unit test for a class using the hotkey, in fact: CMD + shift + T . It will always find the right folder to keep (clearly with other unit tests) But for some reason, after switching slowly, after transferring some test folders, Android The studio really gets confused and the hotkey really gets confused. Prepare a unit test under the generated folders and there is no way to choose which method I want The original folder (from the system) Is there any way to modify it somewhere else? Unless you expect Android studios to be made in your sources (build.gradle file) , You can not move where your testing is done. Your tests by default studio are expected to be in the src / androidTest / java / package (make sure you are at least version.46), once you have this If you create a directory, you will see that the Java folder is green Studio is a recognized test folder which will appear in W. In IntelliJ you were able to change the test sour...

A C++ function to figure out whether one unsigned integer is bigger than another -

I was wondering if you can help me with a function I am trying to decide Whether an unsigned integer is larger than one b # include & lt; Limits.h & gt; # Include & lt; Iostream & gt; Bool is_bigger (unsigned int one, unsigned int b) // returns are bigger than one b; Incorrectly incorrectly (for I int = 0, j = sizeof (unsigned int) * CHAR_BIT; i For some reason this program outputs output to true maybe something is wrong about my argument? Does anyone know about a library that I can download that can see the function which is bigger than one integer second? Despite the fact that you can only operator & gt; with an unsigned integer, which means a & gt; EDIT: There is still something wrong with my version, see. If I had to write a loop that repeats it at least one of the integer pieces of an integer, I want to move the better right as if the one you want to see is the least important Moved the result with a single 1 after it is transf...

MongoDB C# driver: Using Linq to get Guid returns nothing -

The following is the code I am using to query the database. Variable "filter" is a linq expression It seems that I can use this code to get the data using the Object Ed or any other value which can be in the document. But when I keep a guid and try to regain it, then there is no return. Is there anything that I am doing wrong, or is there a limit on the words of Googds on Mongodybi? _dbSet = mongoDatabase.GetCollection (collectionname); Var query = _dbSet.AsQueryable & lt; TEntity & gt; (); If (filter! = Null) {query = query.Where (filter); } Return query. Toolist (); Edit: To make a bit more clear, I have tried the solution shown here in the previous comment: It I do not even give a result that the data I am trying to get is only the _id field. {"_id": LUUID ("e5bdda3b-ae6a-d942-bd43-c8c7a6803096")} used to retrieve this object The unit to be done is a property named ID only, which I understand, translates into the Mogo documen...

asp.net web api - WebApi2 SPA Template Identity re-target database -

I have created a new web application in VS 2013 and to see how the Owen Oath authentication was setup, "Single Page application "has been selected. Everything works great, even when trying to migrate behavior in an existing application, I do not know where to change the context of the database to be converted into our existing database? In "Startup.Auth.cs" see the following line - & gt; UserManagerFactory = () = & gt; New UserManager & lt; IdentityUser & gt; (New UserStore & lt; IdentityUser & gt; ()); Which one can take a DbContext as a parameter, would I have to create a new example of reference and pass it? Is this reference indefinitely or open on a per request? I was able to solve it using the following article as a reference -

r - Convert .rdata to .sas7bdat or .sav -

I have an R dataset (a .didata file) that I need to convert to SAS (.sas7bdat or .xpt) Or SPSS (.sav or .por) How can I import this dataset into SAS or SPSS? If you want to use it in SPSS, consider using the STATS_GETR extension command Can read workspaces or data files and directly map to the appropriate elements on the SPSS dataset. This extension command is available from the SPSS community (www.ibm.com/developerworks/spssdevcentral) website, or for Data 22, it can be installed through the Utilities menu.

javascript - Validating Password and Retype Password -

मुझे इस तरह से दो टेक्स्ट बॉक्स हैं: & lt; p & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" नाम = "NPassword" प्लेसहोल्डर = "नया पासवर्ड" / & gt; & lt; / p & gt; & Lt; input type = "text" name = "RNPassword" प्लेसहोल्डर = "नया पासवर्ड पुनः टाइप करें" / & gt; अब, क्या मैं चाहता हूँ कि पुन: लिखें नया पासवर्ड हर कुंजी दबाने पर यह करता है, तो दोनों एक ही या हाँ तो हरे रंग में यह RNPassword के दाईं ओर प्रदर्शित नहीं.अगर की जांच करनी चाहिए, अन्यथा है लाल रंग डिस्प्ले में जो दोनों समान नहीं हैं और पृष्ठ के सबमिट बटन को अक्षम भी कर सकते हैं। यह कैसे किया जा सकता है कृपया मदद करें। ==> एक और डेमो = अक्षम बटन डेमो 2 चीजें इसके साथ शुरू करने के लिए: प्रकार = पासवर्ड का उपयोग करें ~ & gt; .keyup () एपीआई का उपयोग करें: इसके साथ ही अगली बार पोस्ट के साथ अपना जेएस कोड जोड़ें :) बाकी को ज़रूरत में फिट होना चाहिए। कोड HTML & lt; p & gt ; & Lt; इनपुट प्रकार...

c - Sort words and then the sentence including digits and characters in Shell scripting or perl scripting -

I have a string "heya64 is21 a good89 day91" I have to solve in such a way that, before each word has to be resolved, it is 46 and then these words should be resolved with other words. Then the result should be similar to the following, "12is 1 9ady 46aehy 89dgoo a hist" Can you please tell me how to do this If there is no least good algorithm in scripting, bash or pearl, solve this problem The algorithm is simple to do, as you said in the description of your question, make the sort characters in each word first, then sort these sorted words again. Like this: $ echo heya64 this is21 a good 9 9 days 1 9 | () "126 9 46 46 Ahahi 89dgoo a hist

c++ - Invalid conversion from 'void*' to 'char*' when using mmap() -

मेरे पास निम्न है: char * filename; अहस्ताक्षरित लंबे लंबे इंट बाइटटॉट्रांसफर; इंट एफडी, पेजेज़; चार * डेटा; fd = खुला (फ़ाइल नाम, O_RDONLY); अगर (एफडी == नल) {fputs ("फ़ाइल त्रुटि", stderr); बाहर निकलें (1);} सीओएटी & एलटी; & lt; "फ़ाइल खोलें:" & lt; & lt; फ़ाइल नाम & lt; & lt; endl; पेजेज़ = मिलना (); डेटा = एमएएमएप ((caddr_t) 0, बाइट्सटोट्रांसफर, PROT_READ, MAP_SHARED, एफडी, 0); यदि (* डेटा == -1) {fputs ("मेमोरी त्रुटि", stderr); बाहर निकलें (2);} सीओएटी & एलटी; & lt; "भेजने के लिए डेटा:" & lt; & lt; डेटा & lt; & lt; endl; लेकिन जब मैं संकलित करता हूं, तो मुझे प्राप्त होता है: त्रुटि: अमान्य रूपांतरण "शून्य" * से करने के लिए एक चार वर्ण * [-fpermissive] डेटा = एमएमएपी ((caddr_t) 0, बाइट्सटोट्रांसर, PROT_READ, MAP_SHARED, एफडी, 0); क्या कोई मुझे गलत क्या है पर एक संकेत दे सकता है? शून्य * से अंतर्निहित कच्छा निष्पादित नहीं करता है, आपको यह स्पष्ट करना होगा डेटा ...

Can I use my own custom animated gifs as markers on Google Maps API? -

I want to use different animated cartoon images (GIF) as a marker on Google Maps; Can I do this with APIs? yes you can): var status = new google.maps.LatLng (59.219521,15.1419873); Var marker; Var map; Function initialize () {var mapOptions = {zoom: 16, map type iid: google.maps.MapTypeId.ROADMAP, center: position}; Map = new google.maps.Map (document.getElementById ("map_canvas"), map options); Marker = New google.maps.Marker ({Map: Map, Dragable: Wrong, Animation: google.maps.Animation.DROP, Status: Status, Icon: "http://heera.it/wp-content/themes / heerait /img/blog/me.png "}); } You need to use the icon: icon-url when creating a marker. Update: Marker = new google.maps.Marker ({map: map, dragable: incorrect, customized: incorrect, //

arrays - Why is nothing being printed? C Programming -

I am creating a program that takes the letter from congress.txt , all the uppercase , Then "change them two letters", (A goes to C) (Jade gets B). But nothing is being printed, my main concern is that if my arrays are being stored and different functions are run properly. It is in congress.txt : Congress will not make any law regarding the establishment of religion, or ban on free practice Will apply; Or suppress the speech, or freedom of the press; Or to petition the government for peacefully gathering people, and to redress the complaints. # include & lt; Stdio.h & gt; Int Processfile (Int * Store); Int cipher (int * store, int * code); Int outputCode (int * code); Int main (empty) {int store [300], code [300], ii; processFile (store); Cipher (store, code); output code (code); Getchar (); Return 0; } Zero process file (int * store) {int i, a = 0; FILE * f = fopen ("congress.txt", "r"); For (i = 0; a! = EOF;) {fscanf (f, "% c...

jQuery click is not bubbling up to parent -

When div.arrow is clicked, its organs should toggle and collapsed content Should expand / collapse It's working, but the click event on div.arrow does not bubble about its parents, li.level1 . html on a related note, how can I get a brother, span for inclusion in this bubble? ? & lt; ul id = "list" & gt; & Lt; Li class = "level 1" & gt; Div square = "arrow arrow-down" & gt; & Lt; / Div & gt; Exact match & lt; Ul id = "ul_first" class = "level1a" & gt; & Lt; Li & gt; & Lt; P & gt; GE & lt; / P & gt; Ab Ilo Inventore: ASJK: (2365) & lt; / li & gt; & Lt; Li & gt; & Lt; P & gt; GE & lt; / P & gt; Doloram: POOJ: (98, 4454) & lt; / li & gt; & Lt; Li & gt; Eak & lt; B & gt; GE & lt; / B & gt; Ipsa Quae & lt; / li & gt; & Lt; Li & gt; Porro quixem & lieutenant; B & gt; GE ...

Finding start date of the each week php -

Suppose there are 10 weeks; Week_1st, week_2, week_3th ..., week_10th 2014-05-01 00:00:00 starts at 10-10, how can I get the start date of the week (last week)? Will you show me in php? Thanks a lot. If you want to go exactly 5 weeks ago (or something else), then try: $ date = new date time ('2014-05-01'); $ Date-> Modify ('- 5 weeks'); Transcript $ date- & gt; Format ('Y-M-D'); If you always want to receive Monday (or similar), you can try it $ date = new dateTime ('2014-05- 01 '); $ Day = (int) $ date- & gt; Format ('w'); $ Date-> Modify ('- 5 weeks'); $ Date-> Modify (1 - $ day. 'Days'); // 1 = echo on Monday $ date- & gt; Format ('Y-M-D');

ios - bodyWithBodies SKPhysicsBody -

Apple's documentation is unclear when it explains how to implement this class method effectively + (SKFishix body *) Body with bodies: (NSARRA *) body; // I think the error is 2014-04-23 23: 25: 21.518 space monkey [33 9 8: 60b] - [ssprintnode_shops]: 0x15d79c50 sent to the unknown selector, for example 2014-04-23 23: 25: 21.520 Space Monkey [33 9 8: 60b] * Cancellation of API due to exception exception 'NSINID IDA Agreement Exception', reason: '[[SK Printnode_shops] : 0x15d79c50 '* sent to unrecognized selector for example first throwing call stack: (0x2d92ef03 0x380c3ce7 0x2d932837 0x2d931 12f ... this is throwing an exception and I've been doing a lot of research everywhere with any luck. There is another question about the same problem here, though the suggestions do not seem to work on everything. I have provided the code so that some light is highlighted for somebody and hopefully I have the code right here ... Here is the code - (NSMutableA...

jetty - ssl with parameters NeedClientAuth/WantClientAuth set to true fails with javax.net.ssl.SSLHandshakeException: null cert chain / -

I have the XML file & lt; Call name = "add connector" & gt; Is configured as. ; & Lt; Arg & gt; & Lt; New orbit = "org.mortbay.jetty.security.SslSelectChannelConnector" & gt; & Lt; Set name = "host" & gt; & Lt; SystemProperty default = "0.0.0.0" name = "https.host" & gt; & Lt; / SystemProperty & gt; & Lt; / Set & gt; & Lt; Set name = "port" & gt; & Lt; System Property Default = "0" name = "https.port" & gt; & Lt; / SystemProperty & gt; & Lt; / Set & gt; & Lt; Set name = "max idle time" & gt; 60000 & lt; / Set & gt; & Lt; Set name = "acceptor" & gt; 5 & ​​lt; / Set & gt; & Lt; Set Name = "AcceptQueueSize" & gt; 100 & lt; / Set & gt; & Lt; Set name = "stats" & gt; True & lt; / Set & gt; & Lt; Set name = "...

git - How can I reset my working copy to a specific commit? -

Image
I (stupid) has not made any changes or changes on a project for a few days. Tonight, I have not sent any message by accident, using the Atlasian Socratry I thought "Oh, before I add a message to push it" - and right clicked and selected "back" . I am not completely sure that after choosing what I have chosen, the other way to bring it back, but now I am afraid to lose many hours of work for someone else I'm afraid to click on things. If you look at your screenshot below, then I would like to highlight the highlights commission ("Master 1 no further message") in the copy of my work and the most recent commitment to my repo. What should I do git stash git reset - hard work ~ git commit - menu this will allow you to move the head (in the command line) (reset index and work tree) To do so, the importance of hiding any work in progress first), and the commitment Edit the message. You should be able to move HEAD from SourceTree (supported...

Unexpected behaviour in rails when defining class_name in habtm -

I have two models (courses and dancers). There may be many dancers (students) and teachers (also dancers) in a course. Teachers can be students of other courses. I define tables as follows: create_table "course_enrollments" ,: force = & gt; Is true T | t.integer "dancer_id" ,: null = & gt; Wrong t.integer "course_id" ,: null = & gt; Incorrect t.datetime "attended_on" ,: null => Wrong end create_table "course",: force => Is true T | T.string "name" ,: null = & gt; Wrong t.string "genre" t.datetime "created_at" ,: null = & gt; Incorrect t.datetime "updated_at" ,: null = & gt; False end create_table "courses_teachers" ,: id = & gt; Wrong, force = & gt; Is true T | t.integer "course_id" ,: null = & gt; False T.E.E.E.E.G. "Teacher_ID" ,: Cord = & gt; False end create_table "dancers" ,: force => Is true T |...

apache - Redirecting with .htaccess file in PHP -

वर्तमान में, मैं .htaccess फ़ाइल को उपयोगकर्ताओं को 404.php पृष्ठ जब वे यूआरएल गलत वर्तनी करते हैं। त्रुटि डॉक्यूमेंट 404 / माइवेब्सैट / 404.php मेरे पैरेंट डायरेक्टरी में, कुछ फ़ोल्डर्स हैं जैसे सीएसएस , जेएस जिसमें स्टाइलशीट और जेएस फाइलें रखी जाती हैं इन निर्देशिकाओं के लिए यूआरएल इस प्रकार है: localhost / mywebsite / css localhost / mywebsite / js ऊपर यूआरएल टाइप करके, सभी फाइलें सूचीबद्ध हैं ब्राउज़र और उन पर क्लिक करके खोला जा सकता है। क्या इन यूआरएल को .htaccess फाइल में जोड़ने का तरीका है और उपयोगकर्ता को होमपेज ( localhost / mywebsite ) में टाइप करने की कोशिश करते हैं ब्राउज़र पर यूआरएल के ऊपर? विकल्प-। Htaccess में जोड़ें

ios - Objective C : Separate words in a string and join again -

This question is already an answer here Is: I have a string @ "DidNotTurnUp" . I want to write a function that takes this string as an input and output should be @ "not turned on" . What would be the best way to do this? How to separate words in a string based on capital letters? HELP appreciated. Here is a class on NSString that will be what you want. @implementation NSString (SeparateCapitalizedWords) - (NSString *) stringBySeparatingCapitalizedWords {Fixed NSRegularExpression * __regex; Static transmissions_access_one talk; Dispatch_once (& amp; oneToken, ^ {NSError * error = zero; __regex = [NSRegularExpression regularExpressionWithPattern: @ "[P \\ {uppercase letter}]" option: 0 error: & amp; error], if (error) {@ Throw error;}}); NSString * Result = [__regex stringByReplacingMatchesInString: Self Option: 0 Range: (NSRange) {1, self.length - 1} withTemplate: @ "$ 0"]; Return result; } @end

angularjs - Questions about Angular $q defer object -

I'm new to kangaroo and I'm playing with it for about two weeks. I had an implementation problem that I was able to solve. An overview of the problem is that I had a main.html that displayed all user information but the service function was not updated by this.list Try adding new information using the service this.addNewUser below is the working version of the code and version that does not work. For this reason I have posted here, though I am resolving my problem is that I am eager to know why why . I want to understand that what is the difference between the two examples of difference object deferred does not work, but the first example is working perfectly well. The difference is to do something with the object object, where I can declare it inside the function? Maybe I can not declare it globally? I hope someone can tell why the first example works, but not the second example. # 1 example // Add a single user this.addNewUser = function (username...

ruby on rails - Heroku and Git are not updating, pushing, or pulling properly -

I'm really getting annoyed with anger, nervous laughter. Somebody help me ... Screenshots: Run git status , I'm working on the redesign Code> Do nothing and with a clean working directory Visit Rail Server and Localhost: 3000 . So beautiful website, let's just define it with variable ABC Push to git hekko redsign: master , it tells me everything is up to date Navigate to the website ... this shows me a website that is completely different, months ago, Ok, so I'm going to make it a comedy, I'm going to navigate to the branch rollback and then a rollback branch To run rail run git pull false, I instead show ABC (and white code code for ABC) ) The way pushing with - force does not help, when I release Heroko, this push has no record . What's going on ???????? Sorry, if I'm feeling frustrated ... I've been for 2 hours It was my mouth, Chris, I think you were stumbling on it. I did a myoku rollback and did ...

Creating a javascript class with an object containing functions -

I'm trying to create a JavaScript "class" and it's working a bit better, but the engine. tile.draw isn 't working as an engine. I can not seem to do this for working inside the system. Is it not possible to create an object and add a function inside it, like I did? How do you guys Any help is appreciated :) var engineclass = (function () {var engine = function} {this.canvas = document.getElementById ('game'); this.handle = This.canvas.getContext ('2D');}; engine.protitip.start = function (mapdata) {this.tile.draw (mapData);} engine.protitip.til = {draw: function (x, y , Tile) {this.handle .Filtext (tile, x * 16, y * 16);}}} return engine;}) (); Var engine = new engine class (); The above comment should not try to apply sections on javascript that are prototypical The language is correct. Technically, the reason for this does not work that whenever you start a function using dot notation (like some.method () ), the function In this c...

jenkins - add text in my css and display it in the html page email -

I was thinking that there is a way to add "text" to CSS so that the HTML page can write it. The reason for this is that the HTML page can not be able to handle my in-committers ($ {var}). I'm using the Jenkins Editable Email plugin So I have my CSS: & style; Style type = "text / css" & gt; A {color: # 4a72af} body {background color: # e4e4e4} body, p {margin: 0; Padding: IMG {Display: Block} H1, H2, H3, H4, H5, H6 {margin: 0.8mm}} h3 {font-size: 28px; Color: # 444! Important; Font-family: aerial, helvetica, non-serif} h4 {font-size: 22px; Color: # 4a72af! Important; Font-family: aerial, helvetica, non-serif} h5 {font-size: 18px; Color: # 444! Important; Font-family: aerial, helvetica, non-serif} p {font-size: 12px; Color: # 444! Important; Font-family: "Lucida Grande", "Lucida Suns", "Lucida Suns Unicode", Non-Serif, Line-height: 1.5} OIL IIGI {Display: Inline; Height: 20px} / * Divy Style * /. News {Text-align: cen...

vb.net - Linking VB to MS Accsss Database -

I am trying to link the VB application from an MB Access database. The only way I think is able to do this is through adding data sources. Is there a way or method to do this, then do you use it as an external database and instead of uploading the database rather than file space? Thank you As import Sistmkdetakoleb DIM com new Olebconkekshn ( "provider = Maikrosoftkjetkolidb 4.0 Datasor = D: \ mydata.mdb;") as new Oleb Command Public sub new () con.Open () cmd.Connection = con cmd.CommandText = "SELECT * table1" end sub

Boost installation on windows, libraries missing -

I'm trying to promote I followed this. I make a folder C: \ Boost that contains and Libs and I add it to my environment path. However, when I try to create another project with CMK, then I am getting: Error in C: Program / Files / CMK 2.8 / Share / Semicax 2.8 / Module / Fastbost Make: 1106 (Message): Boost version unable to find the requested boost library: 1.55.0 Boost path is included: C: / Boost / included / boost-1_55 The following Boost libraries could not be found: boost_system boost_filesystem boost_signals No Boost Library found. You may need to set BOOST_LIBRARYDIR to a Boost Libraries or BOOST_ROOT directory in place of Boost. Call stack (the most recent call first): CMakeLists.txt: 88 (find_package) Any ideas about those missing lubs? This is a bad thing to start answering with a question, but I still do it I: First of all, am I right to assume that you set a environmental variable BOOST_ROOT pointing to C: \ Boost? (Just can not be enough to add it to...

Message created time in Kafka -

How do I know if this message is produced / made when I use the message in Kafka? There is no ready method in the message and matadata and how is it necessary to set offset in Kafka? I like settings from code or command line. Thank you. Currently there is no per-message timestamping in Apache Kafka 0.7 or 0.8, but it would be easy. What is the time-based offset-lookup in the offset API: Time - Used to ask for all messages before a certain time (MS). Two special values ​​are to specify the -1 to get the latest offset (i.e. the offset of the next incoming message) and to get the offset available as soon as possible in 2. Note that the offset is pulled in descending order, so by asking offset as soon as possible you will always get an element back. Etc.) and in the case of replication it may be wrong (timestamp of replication rather than the creation of the original block). The solution is to embed the message creation time in the message.

javascript - Sencha Architect create override -

I want to create an override for Ext.MessageBox. I have manually created an override file and pointed to JS resource for it. Now the architect looks at this file as an override but I get an error when calling the override function if I ext. I see the message box object and there is no new function. How can I specify override in architecture? What excautely am I wrong? /app/overrides/MessageBox.js Ext.define ('myapp.override.MessageBox', {override: 'extra messagebox ', Test: function () {alert ("123");}}); Calling : Ext.MessageBox.test (); returns : UnkeyType error: There is no method in object [object object] 'test' The message box is a singleton, which you can not override in this way. You can add things like MessageBox to code: Ext.MessageBox.test = function () {alert ('123'); });

delphi - Use Expression in Value of FastReport -

I use the quick report 4.15 in delphi xe2, how can I use the expression in value in the report received value event Am I Example: I have a report with "memoviv" in the text "[a]" and the gateway event of the report is: process TForm1.rep1GetValue (constrate VarName: string; var value: variant); If VarName is equal to 'a' then value: = 'with first [b] item' and if varName = 'b' then value: = 'second'; End; I want the report: "First with the second item". Example 2: In my report there is an EditBox with a name "edt1", with a TfrxMemoView text "[MyExp]" The user can write text on it. The GetValue event of the report is: Process TForm1.rep1GetValue (cons variant: string; var value: variants); If varName = 'a2' then value: = 'item 2' and if varName = 'a3' then value: = 'item 3' and if varName = 'item' = 'A4' then value: = 'item 4...

c# - Step by Step dropdown selection -

If there is any idea on autopostback in ASP.NET using C #, please help me I have 4 If I select the first dropdown list then it enables 2 dropdown list and after the selection, the third dropdown list enables the list in the second dropdown list. And after selecting Please tell me to do this ... Please help me Try it: - ASPX & asp: dropdown list id = "dropdown list 1" runat = "server" autopstack = "true" on-select Gone index changed = "dropdown list 1 sealed inducted switch" & gt; & Lt; Asp: ListItem enabled = "true" text = "select value" value = "- 1" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Value1" value = "1" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Value2" value = "2" & gt; & Lt; / Asp: ListItem & gt; & Lt; / ASP: DropDownList & gt; & Lt; AS...

c# - How to access local sqlite database of android application from .NET application -

I want to synchronize the Android app database with the central SQL Server database. I am currently working on Net Web Services, web service should update the remote Android database every 10 minutes. I'm not getting the exact way. to do this? I have developed a web service, but the inability to access the database to access the remote database is an error. Is it possible to update the remote SQL database from .NET webservices? Please help me Is there any other solution? You get the parameter legacy format = true = in your connection string See below under "Using the 3.3x database format."

string - Simple substring program won't work -

My job tbUnos is a text input and label1 string Let's print the first two letters of the letter I have started learning Visual C ++ and I am trying to understand things. private: System :: Void textbox 1 tags (System :: Object sender, System :: EventArgs ^ e) { String ^ sUnos = tbUnos - & gt; Text; Label 1- & gt; Text = sUnos-> String :: Substring (1,2); } created and run, my program crashed Please help First of all it is not C ++, it is C ++ / CLI, which is targeting language extension CLI. Second, I do not know how this is done when you do this code sUnos-> string :: substrings . However, your code should look like this: string ^ sUnos = tbUnos-> Text; If (! String :: IsNullOrEmpty (sUnos)) label 1- & gt; Text = sUnos-> Substrings (1,2); Edit: Notice this code TextChanged is the handler for the event means that you press a key every time the keyboard, such as changing text When you type the first letter in the text box, t...

linux - Bash descending filename sorting -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैं कोशिश कर रहा हूँ मेरी फाइलनामों को ls -1 के समान कमांड के साथ सॉर्ट करें सॉर्ट- n -t "_" -k1 लेकिन बस इसे काम करने के लिए नहीं मिल सकता है कृपया मदद करें। मेरे पास है: 10_filename 11_filename 12_filename 1_filename 2_filename मुझे मिलना है: 1_फिलननाम 2_फाइलनाम ... 10_फिलनैम 11_फाइलनाम कृपया इसे हल करने का प्रयास करें ls -v -v यह फ़ाइल संस्करण संस्करणों के आधार पर

javascript - WebRTC sending string messages -

I want to realize a simple application in HTML / Javascript. Two pages must be: Pages 1.html and page 2.html. Page 1 should have a text box and a button. When pressing a button it should be sent to page 2, which it has to display I have found this example and hosted it: (This Works with a websocket that connects to the Ruby program running on the same server. Please give me a simple solution for how to send text messages from one page to another. Thanks. Thank you very much. There is a good day:) Then you Assuming that to set up WebRTC for audio and video, the answer is very small, you use the WebRTC Data Channel on any "peer connection" used for audio and video Will happen. A good example is to show how to send the wire. To send structured messages in JSON, you should be able to use it, in major browsers, there is JSON.parse , which works with the conversion in the object. But you probably want to know how it works, in a little bit more detail t...

cq5 - Authentication mechanishim in publish -

Specialist, I have to implement the authentication mechanism as the example example of a writer works. For example, if there is a user request for any page at http: somehost: someport / content / geometrixx / en.html, then http: somehost: someport / content / geometrixx / en / toolbar / account / login.html and the system Should only open the page, after the successful login sling, redirect to the required page. I looked at the login selector authentication handler and sling authentication service, but it seems there is no configuration here. Can you tell your ideas about how to proceed? How would this be possible without the CUG and how does the Similar mechanism work in the example example? go http: somehost: click on someport / useradmin search anonymous user for anonymous user - & gt; ; Click the Permissions tab - & gt; Remove the read permissions on the path that should not be accessible to anonymous users.

ruby on rails - Tire/Elasticsearch Filtering on Attribute -

So when customers are logged into the app, they should be able to search only in their company so that we Trying to filter name. Although log outlook appears to be correct, but no search results are returned. # report.rb def self.search_for_client (Params, Client) Tires Query {load: true, page: parameter [: page], per page: 20) query {string params [: q]} if parameter [: q]. Present? Filter: Word, Client = & gt; Customer End End # reports_controller.rb def full_search @query = params [: q] If current_user.client.nil? @results = report. Search parameters other @ results = report. Search_for_client parameters, current_user Client Title and End # Log Output Curl -X Gate 'http: // Localhost: 9200 / Report / Report / _Shatch? {"Keyword": {"Customer": "ApplelTV Norway"}} "Size": {"query_string": {"query": "thio"}}, "filter" : 20} ' In fact the main issue was that I was not restarting Elas...

java - Error while Inserting into many to many relationship using hibernate -

I am attempting to insert several in many relationships using hibernate, but I am getting this error . 2014-04-24 14: 50: 47820 Error [BasicPropertyAccessor.java:118]: IllegalArgumentException in the classroom: Property Setter Method of com.jellboi.maniartyre.entities.AbstractEntity ,: pkey Error 0 -4-24 14: 50: 47827 [BasicPropertyEzor. Java: 2222]: Expected type: java.lang.Long, actual value: org.hibernate.id.IdentifierGeneratorHelper $ 2 April 24, 2014 2: 55: 25 PM CALL CALL ORG.apache.catalina.core .standardWrapperValve: Servlet.service () Throwed exception for the servlet applicationController java.lang.IllegalArgumentException: sun.reflect.GeneratedMethodAccessor27.invoke at java.lang.ClassCastException@17d66f6 (unknown sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 25) java.lang.reflect.Method.invoke at (Method.java597) here is the source) code that i am tr ying. VehicleProduct class @Entity @Table (name = "m_vehicle_p...

r - for columnX of each element in listA <- corresponding element in listB -

I have two lists, one of which is data. Frame and data as the character vector of the same length. The frame is. I want to swap / overwrite x1 list ls.df for the corresponding character vector in Ls.v . Basically the df $ X1 & lt; - v , but it seems very easy for each item in the lists, but I can not get around it #dummy data df1 & lt; - Data.frame (rbid (c (1, 'a'), c (2, 'b'), c (3, 'c'), c (4, 'd'), c (5, 'e' ), C (6, 'F')) DF 2 & LT; - Data. RBID (C (1, 'A'), C (2, 'B'), C (3, 'C')) DF3 and LT. - Data. Frame (RBID (C (4, 'D'), C (5, 'E'), C (6, 'F')) LSDF & Lt; - List (DF1, DF2, DF3) v1 & lt; - c ('a', 'b', 'c' 'd', 'e', ​​'f') v2 & lt; -c ('a', 'b', 'c') v3 and lt; -c ('d', 'e', ​​'f') ls V & lt; - List (v1, v2, v3) Is there an example to do apply-...

java - Dropping The First X Parts Of A Logger Name -

I have found a piece of Log4J2 config that looks like this: & Lt; / Root & gt; & Lt; / Collections & gt; & Lt; / Configuration & gt; And this will print me as login statements: 10: 49: 55.700 INFO uk.co.ltheobald.myapp.packageA Foo - Hello! 10: 49: 55.800 INFO uk.co.ltheobald.myapp.packageA.Bar - Hello! 10: 49: 55.900 INFO uk.co.ltheobald.myapp.packageA.subpackage.Foo - Hello! I would trim down below and would like to remove uk.co.ltheobald.myapp. Part of each line I know that I can set the package level to print most X packages using the % logger {2} , so I get something like this : 10:49: 55.700 INFO packageA.Foo - Hello! 10: 49: 55.800 INFO packageA. Hi - Hello! 10: 49: 55.900 INFO subpackage.Foo - Hello! But this is part of my package nomenclature, as I give the nest class under more package packages. Surely there should be a way to ignore the first four packages? Something like this % logger {-4} would be nice! Anyone have any cl...

MySQL query not returning results if more than 2 tables specified -

I have this very easy MySQL query that is working fine on a server setup SELECT *, o.status as st, o.token as tk, o.datetime as dt fROM p_orders o, p_courses c, p_orders_payments p I have transferred the site / database different server (similar data and structure etc) and everything works differently from the above queries. Well, it works but it gives zero results. If I remove the last part p_orders_payments p , then the result is removed, it is almost so that it can not select more than 2 tables at a time. Is there a setting, The original server was a self-configured CentOS box, the new server was a Customer's CPanel account Barmar's comment is correct. For some reason the p_order_payments was empty.

Cannot find module Error while adding blackberry platform for cordova -

मैंने उबंटू 12.04.4 एलटीएस पर कॉर्डोवा 3.4.0-0.1.3 स्थापना की है कॉर्डोवा प्लेटफार्मों निम्न विकल्पों की सूची स्थापित प्लेटफॉर्म्स: उपलब्ध प्लेटफॉर्म्स: एंड्रॉइड, ब्लैकबेरी 10, फायरफ़ॉक्स, उबुन्टू कॉर्डोवा प्रोजेक्ट का उपयोग करके बनाया गया कॉर्डोवा बनाओ hello com.example.hello नाम "हैलोकार्डोवा" और आईडी "com.example.hello" के साथ एक नई कॉर्डोवा प्रोजेक्ट बनाना "स्थान पर" / घर / उपयोगकर्ता / वर्कस्पेस / सेमोसाइकल / बीबी / हैलो " सीडी हैलो लेकिन कॉर्डोवा प्लेटफॉर्म ब्लैकबेरी 10 जोड़ें निम्नलिखित त्रुटि दे रहा है $ cordova -d मंच "ब्लैकबेरी 10" के लिए ब्लैकबेरी कॉर्डोबा पुस्तकालय पहले से मौजूद है। डाउनलोड करने की कोई जरूरत नहीं है जारी है। जांच कर रहा है कि क्या प्लेटफॉर्म "ब्लैकबेरी 10" न्यूनतम आवश्यकताओं से गुजरता है ... ब्लैकबेरी 10 प्रोजेक्ट बनाना ... रनिंग कमांड: /home/user/cordova/lib/blackberry10/cordova/3.4.0/bin/create args = ["/ home / user / वर्क्सस्पेस / सेमीमोबाइल / टेस्ट / प्लैटफॉर्म...

c# - Convert DateTime format to Matlab Date Serial Number format -

I want to be able to change the date (2012/12/31 10-21-17.617) to a decimal number. Takes (date serial number). I have replaced the matlab date serial number in the datetime format ( yyy / mm / dd HH: mm: ss.fff ): datetime conversion = new date time (1, 1, 1). Adidas (734139.045000000040). Different years (-1) However, I would like to be able to do the opposite of the above, I know that from date to date, 0001/01/01 , where Matlab is for 0000/00/00 . As long as I can not remember anything, a simple method would be the Timenstein timeline () An example of the code obtained from the arbitrary point in the matlab format to adjust the date time you are trying to convert, then adjust it with the offset Private Datetime Metlabetnet (Two Days) {Return New DateTime (1, 1, 1). Addition (days) Add the year (-1); } Private Double Netomalabal (Datetime DT) {Time Span TS = DT - New Datetime (); Returns TS Consultation + 365; }

c# - Must NuGet dll.config changes be copied to exe.config? -

अगर मैं DLL प्रोजेक्ट MyLib (अर्थात आउटपुट टाइप क्लास लाइब्रेरी) के लिए एक NuGet पैकेज संदर्भ जोड़ता हूं, तो पैकेज प्रबंधक कभी-कभी एक ऐप बनाता है .config परियोजना में (उदाहरण के लिए एक बाध्यकारी रीडायरेक्ट के साथ) जो MyLib.dll.config के रूप में निर्मित हो जाता है ऐसा करता है, उदाहरण के लिए। जब मेरा Windows डेस्कटॉप एप्लिकेशन MyLib.dll को लोड करता है, तो यह MyLib.dll.config में बाइंडिंग रीडायरेक्ट की उपेक्षा करता है, और मुझे एक FileLoadException मिलता है। अगर मैं मैन्युअल रूप से बाध्यकारी रीडायरेक्ट को एपीई प्रोजेक्ट के लिए app.config में प्रतिलिपि बना देता हूं, तो मैं इस समस्या को ठीक कर सकता हूं। क्या यह मैन्युअल एप.कॉन्फिग फाइलों के बीच कॉपी-पेस्ट वास्तव में एक ही तरीका है कि एक न्यूजेट बाध्यकारी कार्य करने के लिए रीडायरेक्ट? यह बेहद कठिन और त्रुटि प्रतीत होता है कि NuGet को निर्भरता को स्वचालित रूप से संभालना माना जाता है। बाध्यकारी रीडायरेक्ट के मामले में - मैं उम्मीद करता हूं कि यह केवल दो मामलों में जरूरी होगा: यदि आपके पास एकाधिक डीएलएलए MyLib विधानसभा के वि...

php - Symfony 2.4 app.session.flashbag.all() returns empty value -

I have trouble using Flashbag messages. My case is quite simple: My code & Lt; Form action = "{{path ('form_url_save', {'id': id})}}" method = "POST" & gt; {{Form_widget (form)}} & lt; / Form & gt; Save the data form through an administrator: # src / namespace / mybundle / controller / entitycontroller PHP Public Function Save Action (Request $ request, unit $ entity = zero) {try {if (! $ Entity) {$ entity = new entity (); } $ Form = $ this- & gt; CreateForm (new EntityType ($ unit); If ($ request-> getMethod () == 'POST') {$ form-> Submit ($ request); If ($ form-> isValid ()) {// unit manager $ em = $ this- & gt; GetDoctrine () - & gt; GetManager (); // static data $ em- & gt; Continue ($ form-> getData ()); // savings process $ em-> Flush (); // Add FlashBag message $ this-> Receive ('session') - & gt; GetFlashBag () - & gt; Add ('success', 'backup...

jdbc - java.io.NotSerializableException: For RowSet -

I'm trying to print the content of the row set in a set, but I'm getting java.io.NotSerializableException Is: This is my program .. package k564; Import java.io * *; Import javax.sql.RowSet; Import com.sun.rowset.JdbcRowSetImpl; Public Class Lab 15A {Public Static Zero Main (string [] Args) {try {class.forName ("com.mysql.jdbc.Driver"); Rosette RS = new JDBCROOSimple; rs.setUrl ("JDBC: mysql: // local host: 3306 / JDBC"); Rs.setUsername ("root"); Rs.setPassword ("123"); RssetCommand ("Choose cid, cname, cemail, cphone, camount from customer"); rs.execute (); While {rsnext ()} {System.out.println (rs.getInt ("cid") + "\ t" + rsgetstring ("cname") + "\ t" + rsgetstring ("cemail") + "\ t" + rs.getInt ("cphone") + rs.getInt ("camount")); } Rs.beforeforefore (); System.out.println ("Serialixing Rovers"); FileOutputStream fos = New FileO...

neo4j - Cypher match path based on previous relationship -

I'm trying to ban my pattern matching pattern. I would like to match the next relationship based on the type of relationship used previously. Here is an example of a simple database: (a) -1- (b) -2- (c) -1- (e) -2- (F). | 3 ---- (D) ---- 3 Question 1: start n = node (a), mi = node (f) ) Match P = N- [R *] - M Return P Both should be the result of the path (A) -1- (B) -2- (c) -1- (e) -2- (f) (a) -1- (b) -3- (d) -3- (e) -2- (f) start = node (f), n = node (a) match p = m - [R *] -n Return P The result should only be: (f) -2- (e) -1- (c) -2- (B) -1- (A) path (f) -2- (e) -3- (d) -3- (b) -1- (a) should not be valid because it violates these restrictions: You can proceed with coming from a 1-type relationship Coming from a 2-or-3-type relationship, you can only proceed to -1 -1. These paths are valid: () - 1 - () - 2- () () -1) () - 3- () These paths are not valid: = "Text"> First, make a detailed, specific and well-desi...

regex - XSLT 2.0: Replace a pattern matching certain criteria -

मेरे पास निम्न XML है & lt; GSP & gt; & LT; आरईएस & gt; & lt; R N = "1" & gt; & Lt; MT N = "NonEnglishAbstract" V = "[DE] Deutsch सार पाठ [एफआर] फ्रेंच सार पाठ [एबी] नई भाषा नहीं" / & gt; & Lt; / आर & gt; & Lt; / आरईएस & gt; & Lt; / जीएसपी & gt; & lt; xsl: टेम्पलेट मैच = "मीट्रिक टन [@ एन = 'गैर अंग्रेजीअब्रेस्ड]]" & gt; & Lt; xsl: विश्लेषण-स्ट्रिंग = "@ वी" regex = "\ [([^ \ [\]] +) \] ([^ \ [] +)" & gt; & LT; XSL: मिलान-सबस्ट्रिंग & gt; & Lt; p वर्ग = "{regex-group (1)}" & gt; & lt; xsl: मान का चयन करें = "regex-group (2)" / & gt; & Lt; / p & gt; & Lt; / XSL: मिलान-सबस्ट्रिंग & gt; & Lt; / XSL: विश्लेषण-स्ट्रिंग & gt; & Lt; / XSL: टेम्पलेट & gt; आउटपुट & lt; p class = "DE" & gt; Deutsch सार टेक्स्ट & lt; / p & gt; & ...

Nullable enums don't trigger intellisense for list of valid enum values in C# -

इस कोड को सी # में टाइप करें: ConsoleColor c; c = जैसे ही आप c = टाइपिंग खत्म करते हैं, intellisense अपेक्षित के रूप में ConsoleColor मान से एक सूची प्रस्तुत करता है अब इसे एक रिक्त स्थान पर बदलें: कंसोल रंग? सी; c = आपके द्वारा = टाइप करने के बाद, आप पहले से ही ऐसा करने के लिए intellisense की अपेक्षा चाहते हैं, लेकिन यह नहीं है। मुझे CTRL + SPACE से आह्वान करने के लिए एन्यूम सूची भी नहीं मिल सकती इसे सही ढंग से लागू करने के लिए intellisense प्राप्त करने के लिए, मुझे c.value = टाइप करना पड़ता है, लेकिन यह सिर्फ एक बिल्ड त्रुटि में परिणाम होता है क्योंकि आप केवल पढ़ने के लिए एक संपत्ति के लिए कोई मूल्य निर्दिष्ट नहीं कर सकते हैं अजीब तरह से, यह काम करता है जैसा कि VB.NET में अपेक्षित है: डिम सी कंसोल कॉलर? c = कंसोल कॉलर। ब्लैक क्या यह सिर्फ एक बग / quirk है? संपादित करें आप संभवत: मेरे उत्तर की उपेक्षा कर सकते हैं, क्योंकि मैं रीशरर का उपयोग कर रहा हूं I मैं कभी-कभी भूल जाता हूं। यहाँ एक अजीब बात है: वीएस2012 में, अगर मैं इसे टाइप करता हूं: क...