Posts

cmake - How to set BUILD_SHARED_LIBS for included directory -

I have a very basic cement project that uses Google Test, I want to make it as DLL and CMeCelist's TATT file gate indicates that in order to create GITE as a shared library, you have to set BUILD_SHARED_LIBS . My problem is that I can not understand how to set up BUILD_SHARED_LIBS to show that if I set the value in the cache using Sentake-Gaya I actually see the Generated Build attempt to make DLL. Below is my CMakeLists.txt. I would appreciate the suggestions on how to set it up BUILD_SHARED_LIBS. CMAKE_MINIMUM_REQUIRED (VERSION 3.0 FATAL_ERROR) Project (MyProj) SET (BUILD_SHARED_LIBS on) ADD_EXECUTABLE (MyProj main.cpp) ADD_LIBRARY (MyLib STATIC mylib .CPP) TARGET_LINK_LIBRARIES (MyProj MyLib) ADD_SUBDIRECTORY (gtest-1.7 .0) Google tests will only be created as Shared Library (DLL) if BUILD_SHARED_LIBS is set. That's why I call it this CMKL list. I want to set in the file. I know how my own library has been shared, but I did not know how to set that variable...

javascript - Creating a slide in div with jquery -

I am trying to create a div with 2 buttons. Click on the first button and one noter diva slide from the left. There is a button in it, when clicked, it slides back to the screen. For the second button in the main device only when the second button is clicked on the right side of a diva slides This is done in all jquery. Can anyone tell me what is wrong here? jquery: var boxwidth = $ ("# port2"). Width (); $ ('# Left'). On ('click', function () {$ ('# port1'). Animate ({left: '8'});}); $ ('Click', function () {$ ('# port2'). Animate ({(true: '100%' - boxwidth})}} $ ('# leftC') 'Click', function () {$ ('# port1'). Animate ({true: '100%'});}); $ ('# rightC'). ('Click', function) {$ ( '# Port2'). Chetan ({left: '100%'})}} & lt; / div> css #text {width: 500px; height: 200px; background-color : Red; font-weight: bold; font-size: 1.2...

magento - not able to login on my website in my account -

I changed the template on my website and the first log was working very well but after entering the password the template Not working after login is not going through it even if I try to create a new account, even then it is not going into my account. Please check the links below ... Please check that I have already tried these steps ... Templates Go to / Customer / Form / Login .phtml and Template / Continuous / Customer / Form / login.phtml and Add the code below to the entry form getFormKey (); I have checked the page code. Please change this: & lt; Input type = "hidden" name = "form_key" value = "& lt ;? php echo mage :: getSingleton ('core / session') -> getFormKey ();? & Gt;" /> with: & lt ;? Php echo $ this- & gt; GetBlockHtml ('formkey') ;? & Gt; Refresh the cache and check again.

php - Vote 5 time from cookie -

I need to vote for cookies 5 times. Set IB by DB I can not do this because people are the same Sit on the network with remote addresses. Once I check it: if ($ dif_cookies == 1) // if the DB ($ _ COOKIE ["m_questioning3- $ external_id" ] == $ External_ID) {$ q_show_status = 3; } But I need 5 times, how? Thanks Dear Harolds, if (! Isset ($ _COOKIE) ["M_questioning3- $ external_id"])) {$ _COOKIE ["m_questioning3- $ external_id"] ["calculation"] = 1; } And {$ _COOKIE ["m_questioning3- $ external_id"] ["count"] ++; } ($ _COOKIE ["m_questioning3- $ external_id"] ["Count"] Please check this if it will work.

java - what is wrong with my backtracking algorithm? (sudoku solver, stackoverflow) -

Below is a method that solves Sudoku with backtracking algorithm .. or what i want to do The private boolean fillgrid (int [] [] a) {If (! (A (search) (A)) this method shows that if the assigned grid return is correct; For (int i = 0; i & lt; a.length; i ++) {for (int j = 0; j & lt; a.length; j ++) {if (a [i] [j] == 0) {// If an [i] [J] has been unassigned, (for example, intuit = 1; nm & lt; = 9; num ++) works below {if (noConflict (a, i , J, num), and noConflictGrid (a, i, j, digits)) a [i] [j] = num; If (fillgrid (a)) // recurse return true; A [i] [j] = 0; // Whenever false was unassigned to try again; } } } } return false; } But when I run it, I gave StackHowflow to Stackoverflow points to fill the points (A) with a 'recurse' comment, and (! ) Is below the method to find: Private boolean search (int [] [] a) {for (int [] b: a) {for (int c: b) {if (c = = 0) return true; } } return false; } Anybody please tell me what is wrong with the code? if (...

Format dates in Javascript -

I have to log my error with some error, for that I am using the following code: var dLogDate = new date (); Console.log (dLogDate.toString (). Substring (4) + ',' + dLogDate.toGMTString (). Substring (4)); According to the code output given above it is as good as what follows, but I do not need it: "10 October 2014 12:48: 59 GMT + 05:30 (IST), 10 October 2014 07:18:59 GMT "I want as follows: " October 10, 2014 12:48: 59 (IST), 10 October 2014 07:18:59 (GMT) " Watch before the date", ". I need to instal 10th October of 10th October Can be done with some functions that are transferring 4 characters from string and contrast to third position, but I'm still curious to know if there is any other easy way to do this? I do not want to use any third party's library / script. Thanks You can use date format format date Var Medium Index = date.getMonth (); Var dayIndex = date.getDay (); var monthArray = [...

count - How do you summarize columns based on unique IDs without knowing IDs in R? -

I am going through posts about data compression, but I think what I'm looking for. I would like to create an abstract "counting table" which will help me see how many times patients were given a specific medication. The fact is that some patients have got many medicines together, it does not matter, because I only want the essence of all the medicines and then calculate how the percentage of each drug class is given. The issue is that I Possibly the names given for the drug are not known, they are somewhere in "hidden" data.frame , so I have to specify which column will be R. To create a "list" already See, Through which he can then summarize the columns. I hope that it competes against the plyr package but in my work it has not worked yet to use it. My df looks like something x As you can see, data There are three columns in .frame in which what I want to do now is creating a list of unique characters, unique (x) unique (wi...