Posts

Showing posts from August, 2014

javascript - Using already declared variables from an array? -

I have an array of currently declared variables, so I can go with the loop for them. (These variables are declared in Adobe Captive, so I can not go about changing them). Passing them back and forth is a bit of a problem, because the array is only storing the actual values ​​of the variable. Here is a simplified example: Already declared variable: item1viewed, item 2 views, item 3viewed; My added code: var array = new array [item1viewed, item2viewed, item3viewed]; (I = 0; i & lt; arrays; lb; i + = 1) {array [i] = 1; } How can I make these already declared variables? You can not do it quite well .... I do not know what you try to do But in a way it is ... var saw = {item1: 0, item 2: 0, item 3: 0,} var array = new array ( For 'item1', 'item 2', 'item 3') (i = 0; i

javascript - bootstrap gets included twice -

I have a backbone application built with AMD modules loaded with readers. In some modules, I have the functionality of bootstrap Need to be used and therefore I define the same in the dependency array in the module. When I have two modules that are loaded asynchronous within AOIM and both are defined as bootstrap dependencies, bootstrap functionality breaks (like button loading etc.) Because the bootstrap is now loaded twice? How is this condition controlled? There is a configuration in the expected JS that defines non-AMD modules, it is done Shim Take a look at this

read data from a structure in matlab -

I have to load some data into the structure. I put it inside the function. Assuming that my structure is called loaddata and data The is in loaddata. How can I access it within a function? function loaddata_struct (path, namestruct) loaddata = load (path); Data = loaddata.corrected_data; This should be changed depending on the arguments of% function (name-structure in this case) How can I pass the structure name? In this case corrected_data ... field of the following code structure with the name passed to loaddata_struct Will return function: function data = loaddata_struct (path, namestruct) loaddata = load (path); Data = load data (Nominated); End

php - How to store system settings in entity -

I am currently running the system, which should be editable by the settings administrator. He can not add them, but only chooses / edits from the current one. All backends are done in Sonata . Settings class: class system settings {/ ** * @var integer * * @ORM \ column (name = "id", type = "integer") * @ORM \ Id * @ORM \ Generated Value (strategy = "auto") * / Private $ ID; / ** * @ORM \ column (name = "key", type = "string", faucet = true) * / private $ key; / ** * @ORM \ column (name = "value", type = "string", faucet = true) * / personal $ value; } The problem is that I have different price types to store, I have some booleans, lists, integer, etc. For example, I want to display the array of languages ​​as a list, but when it comes to setting the "Post on page" setting, then the user should write any integer he wants. Is there any proper way to store and display it? The problem with u...

jQuery Autocomplete does not display with multiselect option -

Image
jQuery के स्वत: पूर्ण & Lt; इनपुट प्रकार = "टेक्स्ट" id = "project-id" / & gt; & Lt; / प्रपत्र & gt; उपरोक्त स्क्रिप्ट का आउटपुट अच्छी तरह से काम करता है, लेकिन अगर मैं विकल्प multiselect: true, को कॉन्फ़िगरेशन में जोड़ता है तो वह अच्छा प्रदर्शन नहीं करता है और बहु ​​चयन भी काम नहीं करता है। आउटपुट यदि multiselect सही सेट है धन्यवाद पाठ "> आपको स्रोत में multiselect और चयन करें कॉलबैक को संभालना होगा। अपनी जावास्क्रिप्ट को इसमें बदलें: फ़ंक्शन विभाजन (वैल) {रिटर्न वैल एसप्लीट (/, \ s * /); } समारोह निकालना पिछले (शब्द) {वापसी विभाजन (शब्द)। Pop (); } $ ("# परियोजना-नाम")। स्वत: पूर्ण ({मिनलैम्बन: 0, स्रोत: फ़ंक्शन (अनुरोध, प्रतिक्रिया) {// प्रतिनिधि स्वत: पूर्ण करने के लिए वापस आते हैं, लेकिन अंतिम शब्द प्रतिक्रिया ($ .ui.autocomplete.filter (availableTags) निकालें , ExtractLast (request.term));}, फ़ोकस: फ़ंक्शन () {// फोकस रिटर्न फॉल्स पर डाला मूल्य रोकता;}, का चयन करें: फ़ंक्शन (इवेंट, यूआ...

Stack and dynamic array implementation in Java -

I need to implement a stack array using a dynamic array, which I had to make myself. Here's my dynamic array: Import java.util.Arrays; Public class array {public entity] dianare; Int counter = 0; Public Zero (int n) {dynArray = new int [n]; } Public zero doubleSize () {int currentSize = dynArray.length; Int newSize = currentSize * 2; DynArray = Arrays.copyOf (dynArray, newSize); } Private zero half size () {int currentSize = dynArray.length; Int newSize = currentSize / 2; DynArray = Arrays.copyOf (dynArray, newSize); } Public Zero Addition (int x) {dynArray [Counter] = x; Counter ++; Float ratio = (float) counter / (float) diamond line; If (ratio == 1) {doubleSize (); }} Public int rem () {int last = dynAray [counter 1]; DynArray [Counter-1] = 0; Counter--; Float ratio = (float) counter / (float) diamond line; If (ratio & lt; = 0.25) {halfSize (); } Previous return; } Public int (int i) {if (! (((I))) {//System.out.print ("can not be added"); Return i; } And ...

sql - Retrieve Next Purchase Order Due and Price from that Order -

मेरे पास ऐसा खरीद ऑर्डर तालिका है: + ------ --------- + ------------ + --------- + ---------- + ------ - + | खरीदऑर्डर | देय तिथि | उत्पाद | मात्रा | मूल्य | + --------------- + ------------ + --------- + ---------- + ------- + | PO1 | 04/12/2014 | ए | 20 | 19 | | पीओ 2 | 20/11/2014 | बी | 16 | 22 | | पीओ 3 | 07/11/2014 | ए | 14 | 32 | | PO4 | 09/12/2014 | बी | 7 | 86 | + --------------- + ------------ + --------- + ---------- + ------- + मैं प्रत्येक उत्पाद के लिए मात्रा का योग करने के लिए एक क्वेरी चाहूंगा, अगले नियत दिनांक को प्रदर्शित करता हूं, और उस खरीद आदेश से मूल्य प्रदर्शित करता हूं अगले कारण। वांछित आउटपुट होगा: + --------- + ------------- - + -------------- + ------------------ + | उत्पाद | कुल मुक्ति | NextDueDate | NextDueDatePrice | + --------- + --------------- + -------------- + -------- ---------- + | ए | 34 | 07/11/2014 | 32 | | बी | 23 | 20/11/2014 | 22 | + --------- + --------------- + -------------- + -------- ---------- + बिट मैं नहीं जानता कि कै...

php - Get last login details -

I have developed the login system. It works perfectly now I have to get the last login date and time and display it To do. The display part is fine. In logging in successfully, I tried this code to update the log-in field in DB. from $ query = "SELECT * where email = '$ email' and passwordR = ​​'$ password' and status = '1' '; $ result = mysqli_query ($ con, $ Quote] $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ _ $ $ $ ; $ Sql ​​= "User SET log time = now ()" update; Mysqli_query ($ con, $ query) or die (mysqli_error ($ con));} and My logout line is defined as below, timestamp of `log time` is not CURRENT_TIMESTAMP tap on update CURRENT_TIMESTAMP, The log time has never been updated. Why $ sql = "User Set Log Time = Now ()" Update; Not possible? This should do the trick. $ sql = "User set log time = now () where email = '$ email' and password = '$ password' and st...

reflection - java getConstructor(String[].class) -

मैंने निम्न कोड की कोशिश की: constructor = oneClass.getConstructor (नया वर्ग [] {String [] वर्ग।}); (रिटर्न स्टेटमेंट एक इलैगलअर्जमेट अपवाद लौटाता है) और वर्ग stringArray = Class.forName ("[Ljava.lang.String;"); कन्स्ट्रक्टर = एक क्लास.गेट कॉन्फ़िगरर (नया वर्ग [] {स्ट्रिंग एरेरा}) रिटर्न कन्स्ट्रक्टर.न्यूइन्स्टेंस (नया स्ट्रिंग [] {"स्ट्रिंग 01", "स्ट्रिंग02"}) (रिटर्न स्टेटमेंट एक वापसी करता है IllegalArgumentException) कैसे कहूँ कि मैं एक स्ट्रिंग [] के साथ एक निर्माता को तर्क के रूप में इन्स्तांत करना चाहता हूं। धन्यवाद। इसके बारे में क्या: constructor = oneClass.getConstructor (स्ट्रिंग []। वर्ग); अपने कन्स्ट्रक्टर का मानना ​​है कि यह इस तरह है: सार्वजनिक वर्ग वन-क्लास {सार्वजनिक वन-क्लास (स्ट्रिंग [] एआरजी) {// ...}} स्रोत:

c# - Make Rows of DATAGRID (NOT DATAGRIDVIEW) Clickable -

In the form of a title, I want to create a datagrid clickable rows. DataGrid is populated from a MySQL database and I would like a situation where a line is clicked, I just click on it as if you can take action on the button. Any help?

java - Static array declared but method cannot work -

I have to do my homework in this part means that I have a chess needs to be saved and then click Reset. Then, I have to load the chess piece back to the position before resetting. Since I do not know the exact size of the array, I know that I do not have permission in list but homework Nothing was shown on the screen but no Error message is not Assume that I have a class named chess . Steady actor [All Chase; Public Zero Save () // It is left [actor [] allChess = GWorld.getAll object ("chess"); } Public Zero Load () / / This is loaded (if (All Chas! = Null) {for (ii) I & lt; allChess.length; i ++) {Chess ch = (Chess) All Chas [i]; GWorld.addOneObject (new chess (ch.color, ch.rank), ch.getX (), ch.getY ()); }}} Thanks a lot! all chas is redeclared as local code Save () . Do this: Save public zeros () // Save it {allChess = GWorld.getAllObjects ("Chess"); }

R: Converting from string to double -

I am trying to convert from string to r in two. However, every time I change numbers, R creates integers. For example: a = "100.11" a = as.double (a) and output 100 . How do I maintain a decimal when changing from string to numeric? I have set the option (number = 3) . thanks Mike The problem is that Option that is selected: option (number = 3) as.double ("100.11") # [1] 100 points (number = 5) as.double ("100.11") # [ 1] 100.11 digit "Number prints the number of digits to print when printing numbers" values. You set options to 3 and 3 points are shown.

angularjs - Angular.js 1.3 One-time binding in ng-bind -

Angular.js 1.3 में मैं एक समय के साथ बाध्य कर सकता हूँ: {{ :: name}} लेकिन मैं इसे ng-bind में कैसे उपयोग कर सकता हूं? ng-bind {{ syntax। के मुकाबले में कुछ प्रदर्शन में सुधार हुआ है? हाँ यह काम करता है: & lt; span ng-bind = ":: name" & gt; & lt; / span & gt;

sql server - How to perform Insert when more tables are related -

After I have created table 3 in the database as tbProducts, tbLineOfAuthority, tbProductLineOfAuthority tbProducts after feilds ProductDescription tbLineOfAuthority occurs after feilds LineOfAuthorityId (P) Identity (P) ProductId (FK) LineOfAuthority (FK) Now include tbLineOfAuthority 1 - Electronic insurance 2 - Number 3 - Creativity 4 - Debit In the front I have the form with the following types Products Product description (Multilingual textbox) Line of authorization (checkboxes for all lines of authorization) If user "We provide good mobile phones ..." as a product description "Caution" as the line of authorization (sub The user will check the "Cadmium" check box) Now my question is based on the requirement above to insert operation in MS SQL Server and if more than two tables related to the foreign key Are there. I have written the stored procedure as Insert tbProduct (product name, ProductDesc...

html - Dividing div height over child elements -

I am doing some html and css. I currently have a problem with a div fields that I want to fill the entire div's height with my fields so if my div is 300px high then both fields should be 150px. I do not want to have a certain height in my box. I also do not want to work with the situation: Absolute. I made As you can see that there is a vacant place at the end of the div, I want to take the field blank. This is my code: & lt; Div id = "thediv" & gt; & Lt; Story & gt; Somefieldset & lt; / Narrative & gt; & Lt; Fieldet id = "one" & gt; & Lt; Input type = "text" value = "input 1" & gt; & Lt; Input type = "text" value = "input2" & gt; & Lt; / Fieldset & gt; & Lt; Story & gt; Somefieldset2 & lt; / Narrative & gt; & Lt; Fieldet id = "two" & gt; & Lt; Input type = "text" value = "input3" & gt; ...

ios8 - Swift: array of dictionaries has count of 1 after initialization but should have 0 -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब var व्यक्ति = [शब्दकोश & lt; स्ट्रिंग, स्ट्रिंग & gt; ()] println (persons.count) प्रिंट 1 । मैं देखता हूं कि सरणी के भीतर एक खाली डिक्शनरी है, जब इसे आरम्भ किया जाता है, लेकिन उस से बचने और 1 के बजाय 0 तत्व होने का कोई तरीका है? बाद में मुझे करने में सक्षम होना चाहिए: persons.append (["प्रथम नाम": "फू", "अंतिम नाम": "बार"]) कोई भी विचार? इसका उपयोग करके: [शब्दकोश & lt ; स्ट्रिंग, स्ट्रिंग & gt; ()] आप एक तत्व dictionary & lt; स्ट्रिंग, स्ट्रिंग & gt; () के साथ एक सरणी बना रहे हैं सही तरीके से वर्ग कोष्ठक के बाद कोष्ठक को स्थानांतरित करना है: [शब्दकोश & lt; स्ट्रिंग, स्ट्रिंग & gt;] () यह प्रकार की एक सरणी को घोषित करता है शब्दकोश & lt; स्ट्रिंग, स्ट्रिंग & gt; , और इसे तत्काल। इसे बनाने का समतुल्य तरीका है: ऐरे & lt; शब्दकोश & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt; ; ()

java - Component in JScrollView in GridBagLayout drawn too small -

Image
I have a custom component, which is derived from JComponent . I'm putting it in JScrollPane and it's in the container using GridBagLayout . Now if the container becomes too small, that is to start displaying scroll bars, then the component small , after starting the application as an example below presents the following form: But after shaping the frame a bit, it becomes: Here is the code: Import java.awt *; Import javax.swing *; Square SO26736343 Expands Jeppel {@ Override Public Wide Paint Component (Graphics G) {G. Set color (color. Yellow); G.fillRect (0, 0, getWidth (), getHeight ()); } @ Override Get Public DimensionsCert () {Return New Dimension (300, 300); } Public static zero main (string [] args) {JFrame frm = new JFrame (); Frm.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Container cp = frm.getContentPane (); Cp.setLayout (new gridoutout ()); Gridbag Consultants GBC = New Gridbag Consultants (); Gbc.weightx = 1; Gbc.weighty = 1; Gbc....

eclipse - How to fix these errors in latest build of Android SDK -

Image
Hello I am very new to Android programming. I downloaded the Android Eclipse bundle and pulled it into a folder and updated the SDK. Later I have created a new 'HelloDroid' program, but I am getting this error when the project is created. Can someone help me fix these errors and explain why these errors are there. Note: I have supported the v.19 started from Frei Set the corresponding value for: Android> Project Build Target in your code In Project Properties> Android> Project Build Target After this, the project was rebuilt, after the code> targetSdkVersion

java - How to stop JOptionPane from choosing last case? -

So this is a matter of shortening my case. Suppose, we have a joicepan with 3 buttons. Boolean loopgmainfase = true; While (LoopGameInterface) {int selectGame = Geotepepan ... .. Switch (GameGail) {Case 0: Case 1: Case 2: System. EXT (0); }} The problem is, when I click the second button (for example), it goes in the case of 1. This is right. But when code is executed inside 1, then it goes straight to 2 and instead of parsing my game, I exit from my program? You have to add break at the end of each case. This is true for all switch statements, and not when you are using a usagepaypane

c# - How to write fast subquery in where condition in linq -

I try to type the subquery in the linq where the condition. But when I look at my SQL syntax on SQL Server Profiler, my query looks complex and long and it takes a timeout error in the server. I want to write a query below. Select T1.Id, as [MaxHour] from T2.Id, DATEADD (Hour, IsNull ((Select Max (T3.MaxHour) with TABLE3 T3 (NOLOCK) Where T1.CategoryId = T3.CategoryId), 0), T1 .EndDate, T1.StartDate Table1 with T1 (NOLOCK) T1.Id = T2 on table 2 T2 (NOLOCK) connected to outer space. Id WHERE DATEADD (HOURS, ISNULL (Select Max (T3.MaxHour) from [MaxHour] with TABLE3 T3 (NOLOCK) where T1.CategoryId = T3.CategoryId, 0), T1.EndDate) & gt; '2014-11-05 00:00:00' and T1. Start date & lt; '2014-11-05 06:00:00' I have written my Linux expression like this on actualData = from T1 to _context.TABLE1 In T1.Id, it is equivalent to T2.Id in data from X. in Data.DefaultIfEmpty joining T2 in _context.TABLE2 () where EntityFunctions.AddHours (T1. And Diet, (? Int?) (...

mysql - Cannot log in to user root -

I have found a new laptop and after installing the latest version of xampp I log in mysql as root in -u Can not do these. I've ensured that mysql is turned on in xampp. I have tried the CD \ xampp \ mysql \ bin> mysql.exe -u root-pc \ xampp \ mysql \ bin -u root -p i have tried to start mysql.exe directly and similair commands. The default setup of Xampp does not set the root password in mysql. Try to connect without using P: C: \ xampp \ mysql \ bin \ mysql.exe --user = root with the following FAQ - Is the XMPP production ready? There is a list of missing security in XAMPP: MySQL administrator (root) has no password.

windows phone 8.1 - Getting the position of the point where the user taps on a map -

How do I get latitude and longitude of the point where the user tap on the map? I tried to do this: gOchordinate status = MyMap.ConvertViewportPointToGeoCoordinate (e.GetPosition (MyMap)); But I get an error that ConvertViewportPointToGeoCoordinate . There is no definition for

node.js - nodejs cluster - socket.io-emitter send data to specific client -

मैं nodejs - socket.io अनुप्रयोग nodejs क्लस्टर के साथ बना रहा हूँ। socket.io-redis var ioredis = आवश्यक ('socket.io-redis'); Io.adapter (ioredis ({host: config.redisIp, पोर्ट: config.redisPort})); socket.io-emitter var io = आवश्यकता ('socket.io-emitter') ({host: settings.redisIp, पोर्ट: सेटिंग्स .redisPort}); Io.emit ('परीक्षा', 'परीक्षण'); इसका काम करता है, लेकिन सभी जुड़े कुर्सियां ​​भेजना। मैं कमरे के प्रकारों के बिना विशिष्ट ग्राहक कैसे चुन सकता हूं? जैसे, io.to ({_ id: user._id})। Emit ('test', 'test'); //यह काम नहीं है। कनेक्ट ईवेंट पर socket._id सिंक्रनाइज़। socket.io क्लस्टर ऐप पर विशिष्ट क्लाइंट के लिए कोई भी विचार? इसे आज़माएं: var io = require ('socket.io-emitter') ({host: settings.redisIp, पोर्ट: settings.redisPort}); Io.to (socketId) .emit ('परीक्षण', 'परीक्षण');

variables - How to prevent a number from being rounded down Python Tkinter -

I am working on a program that receives the user index status when they are typing in a text widget in the tanker And it preserves it as a convertible. But whenever the index is 1.20 then it revolves around 1.2. Is there any way to ensure that the variable 1.20 in index 1.20 will be left? I have tried to use float (). Any thoughts? And thank you in advance. The solution is simple: never consider the index as a number, because it is not a number This is a string that looks like a number if you have a code that is rounding the value (or leaving indexed zeros), somewhere you are treating it as a number

ruby on rails - How do I setup ElasticSearch and Searchkick on my Nitrous.io box? -

I have added a search box to my GEMFILE and I have also installed elastic search 1.0 with autopters. Whenever I try to reuse one of my models, I still refused to get a connection. I am thinking that this is probably possible because my elastic server has not started. I'm sure this is how I started trying to run the order given below on Nitrous.io and how I got the error message ... Command rake searchkick: reindex class = player result to the rack Rejected! Connect to "localhost" port 9200 (2) - is so stupid as such ... I'm just trying and type elasticsearch in my console Nitrous.io and that command started my elasticsearch server and Then I was able to move forward. Thank you for anyone who saw me on this issue!

tinyMCE 4 instance after mceAddEditor really tall -

Pre-Note: This issue occurs if I already have a text on the page or not. I have a button that first triggers an AJAX request ... writing something for a database and returning the key I use that key in my ID for textarea Which is then dynamically linked to the page. Keep in mind that tinyMCE has already been started. tinymce.init ({selector: ".adder", setup: function (ed) {ed.on ('change', function (e) trigger ('checkform.areYouSure'); }; Ed.on ('init', function (e) {autoresize_max_height: 500})}}, plugins: ["Advlist auto link link responsivefilemanager lists printing preview hours anchor pagebreak spell-checker charmap", "searchreplace wordcount visualblocks Visualchars code fullscreen insertdatetime nonbreaking media "," save table contextmenu directionality template paste textcolor colorpicker responsivefilemanager autoresize "], toolbar:" back again | styleselect | bold italic | forecl "Back to the t...

Does a user to group (many-to-many) relational table in MySQL needs PRIMARY KEY? -

I did some research but could not get a clear answer. I have a simple multiple-to-many relational table, user_id will be foreign and group_id will be foreign, whether to add a primary key reason? What if you ever want to do something more interesting with that table (let's call it Table A Say), such as closing the satellite of A and connecting several other table B to another several-to-many tables? Maybe there is a time when you have a specific a fixed group_id ? Basically, if you ever want to referenced Table A, or Table A is a parent of another table, then user_id requires a primary key on table A. . And in my mind, in relational DB, it is very likely that you want to refer to it at some point. So I say add an auto-increment PK (assuming that you are ok with duplicate user_id, group_id rows, like @ leslie said in a comment Besides, note that if you give it an auto increment, then by entering an index on now user_id and

php - Degrading a jpg image quality each time a user visits a page? -

Image
I am trying to prepare the best way to downgrade the quality of JPG image in a web page like this Is there a server-side method that is saving and re-saving at lower quality, then the page is displayed every time? Thanks in advance. The following script will degrade the original page from 1 'quality point' on 1 pixel load, from 99 Will start. It is not very strong, but the concept should clearly demonstrate. Warning: this will replace the original image! Use a copy when the original is important! session_start (); If (empty ($ _ session ['quality']) $ _SESSION ['quality'] = 99; $ File = 'degrade.jpg'; Imagejpeg (imagecreatefromjpeg ($ file), $ file, $ _SESSION ['quality'] ); $ _SESSION ['Quality'] -; Header ('Content Type: Image / JPEG'); Echo file_get_contents ($ file); On first page load: Tenth page load: One hundred page loads:

c++ - How does one pass on parameters in assembly? -

im working on the hook in C ++ and ASM and at present I have just made an easy inline hook which is already Jumps in the direction of the target function which in this case the output debug string is for testing purposes only. This thing is that my hook fiancé works after about three days of research and how some things work, its bits and peaks are detected, but As you can see in my code I have tried, there is a problem. I do not know how to change the parameters that come in my "dummy" function. To change the parameter in C ++, but of course it does not work as a pop in all registers later: / Anyway this is my dummy function which is how to hook hook functions Jumps from: Fixed zero __declspec (naked) MyDebugString (LPCTSTR lpOutputString) {__asm ​​{PUSHAD} // Where I think I can run my code, but do not take anymore To interfere with the parameter: / lpOutputString = L "New Message!"; __asm ​​{POPAD MOV EDI, EID Push EBP MOV EBP, ESP JMP Adrer} Origina...

c++ - Are two-dimensional sequences possible with Boost.Preprocessor? -

Boost. PP views are limited to 256 elements. To work on this, I want to use a sequence of two-dimensional sequences or sequences, which will be defined as: ((0) (1) (2) ... (256) (256) (257)) Now, for a BOOST_PP_SEQ_FOR to supply algorithms, I make two nests of them Want: // inner loop #define ELEM_ID_OP (_, func, elem) func (elem) #define FOR_ELEM (func, seq) \ BOOST_PP_SEQ_FOR_EACH (ELEM_ID_OP, func, seq) // External Loop # SEQ_ID_OP (_, function, seq) FOR_ELEM (function, seq) #define FOR_SEQ (function, multiseq) \ BOOST_PP_SE Q_FOR_EACH (SEQ_ID_OP, function, multiseq) // Define the task with test #define MYFUNC (arg) \ constant integer arg = 0; FOR_ELEM (MYFUNC, (zero) (one) (two)) // works for an attraction FOR_SEQ (MYFUNC, ((zero) (one) (two))) // no: ( On each other, I have several errors regarding unauthorized identifier: Error C2065: 'ELEM_ID_OP': Undeclared identifier - Error C2065: 'MYFUNC': Undeclared identifier - Error C2065: 'Zero...

How to find a row in a table using jquery/css/selectors -

मेरे पास विभिन्न पंक्तियों के साथ एक टेबल है: ... & lt; tr class = "selectedrow" & gt; ... & lt; td & gt; 8/5/1987 & lt; / td & gt; ... & lt; / tr & gt; ... मुझे एक पंक्ति का पता लगाना और उसे एक वर्ग देना होगा: var पंक्ति = $ this.find ("tr: class = चुने गए ") {row.addClasss (" ui-state-default "); } क्या यह काम करने के लिए एक वाक्य रचना है? यदि आपके पास पहले से ही एक सीएसएस वर्ग वाले चयनित पंक्ति होती है तो उस पर लागू होता है तो उस पंक्ति का चयन करना तुच्छ है: var selectedRow = $ ('। Selectedrow') इसमें सीएसएस वर्ग को जोड़ना भी आसान है: selectedRow.addClass ('ui-state-default');

ios - fast method to get RGB data from UIImage (photo library) -

I want to get the RGB representation of the picture stored in the photo library (a Aelssset) iOS (iOS 8 SDK). I already get to try this method: CGContext attract CGImage [ALAssetRepresentation fullScreenImage] with a CGImage from ALAsset. This method works, I get an indicator for RGB data, but it is really slow (it has 2 conversions). The ultimate goal is to load the image quickly in an open gallon texture. my code to get an image from the photo library ALAsset * currentPhotoAsset = (ALAsset *) [self.photoAssetList objectAtIndex: _currentPhotoAssetIndex]; Elassette Report * Representation = [Current PhotoAsset Default Report]; // -> Really slowed UIImage * currentPhoto = [UIImage imageWithCGImage: [fullscreenized representation]]; My code to draw on CGContext: CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB (); NSUInteger bytesPerPixel = 4; NSUntaser bytesprero = BitParxel * TexturedWidth; NSUInteger BitsStechnicPoint = 8; CGContextRef reference = C...

objective c - How to generate a sound with specific frequency (and be able to change the frequency) -

I'm exploring a way to create a sound with a specific frequency in Objective-C. And to make sound effects, be able to change this frequency based on other factors. Try, which is a programming language that defines and therefore creates music file format of Csound .csd (or .orc and .sco). This music score and equipment are included. It is also available in iOS and Android platforms. You can download it from: Download the "iOS" version. In the zip, there is an example app. In this example, there is a test case called "Signal Test 1", which is The CCD reads the file.

java - modelandview object in jquery -

सभी को नमस्कार मेरे पास ModelAndView ऑब्जेक्ट है: @RequestMapping (मान = "/ चरण") सार्वजनिक ModelAndView चरण (HttpServletRequest अनुरोध, HttpServletResponse प्रतिक्रिया) IOException फेंकता {... ModelAndView मॉडल = नया ModelAndView (); model.addObject ( "विकल्प", "एक"); model.setViewName ( "उत्पाद / मंच"); वापसी मॉडल; } फ़ंक्शन लोड या एजेक्स का उपयोग करके मैं जेक्जरी से एक दृश्य "उत्पाद / चरण" का उपयोग कर सकता हूं, लेकिन, जेक्री से ऑब्जेक्ट "ऑप्शन" कैसे पहुंचा सकता है? आपकी मदद के लिए धन्यवाद।

In javascript how to add or remove 's' from a quantity string -

I have a string returned from the database such as 7 months 5 days . The problem occurs when 1 month is 1 day, it is still showing in 1 month 1 day , in the letter s Code> month and day . And I do not have permission to use such a bracket 1 month 1 day (days) . How can I make a condition that if it is less than 2 days then remove s ? Do not work below What do I do? JS var YYMM = '1 month 1 day'; // counterfeit data if (YYMM.indexOf ('1')> gt; -1) {YYMM.replace ('s', ''); Console.log ('YYMM:', YYMM); } Many thanks replace it with single regexp do it var reg = / b1 \ b \ s (month | days) s / g; Warning ('1 month 1 day'. Location (reg, '1 $ 1')); Warning ('11 Months 21 Days'. Location (reg, '1 $ 1')); Alert ('12 months 1 day'. Location (reg, '1 $ 1'));

mysql - php count table column -

I am trying to write a script / html page that displays the live company information internally, Which is to count the amount of live project from our database. The widget will need to look at the table called 'Project', then look at the 'Live' column and count how many times 'Live' is displayed, but my last problem is that we Companies operate, so first it has to be checked that 'E' is in the 'Company' of that column and then calculate the 'Live' column. I should not understand why my PHP skills are less than a novice ... like n00b! Try a simple count () similar to mysql query: SELECT SELECT SELECT * (*) as calculate with `Projects 'where back to value in the' live` = 'LIVE'` php file and In order to output it as a `code` html, you have to give output as html . To get the result of the query: $ result = mysql_query ("select count '(*) as calculated from projects' live '=' live ...

Swift - Unit testing functions that involve IBOutlets? -

I am setting up a unit test for my SWIFT project and I'm having trouble testing the class function in which Updating IBoletlet is included. I have a function, validateUrl, which expects to pass a string, then it validates if it is valid, it enables UIButton, if it is invalid, then it Disables UIButton when I run a test that calls this function, the app crashes on the line of code that enable or disable UIButton. Both the storyboard and the controllers have a proper test goal set. This line of code: self.submitButton.enabled = true // Enable the Submit button with this error Exits: Fatal error: Unexpectedly found zero while unwrapping an alternate value -text "itemprop =" text "> You have to start the view controller using the storyboard. See the document here: If you start the visual controller directly, then it will not have any connection because in this case the VC does not know about the storyboard itself.

ios - How to track a zooming UIScrollView? -

Image
I have the zooming UIScrollView and a non-zooming overlay view on which I animate the markers to mark these markers some of the UIScrollView Need to track the location of the material (the way the dropped pin needs to track a location on the map as you pan and zoom). I do this by triggering an update of the overlay view in response to the layout subviews of UIScrollView. It works, and while the zooming and panning, the overlay is completely tracked. But when the pinch gesture ends, the UICrol view automatically makes the final animation, and the overlay view is out of sync for the duration of this animation. / P> I have created a simplified project to isolate the problem, the UIScrollView contains an orange class, and the overlay view displays a 2-pixel red frame around the frame of this orange square. As you can see below, the red layout always goes to the place where after the touch has ended, except for a short period, when it appears on the final state of orange squar...

javascript - A way to hid a div when another div is open -

I have two divs , unless the button is clicked, only one The problem is I do not want to show them both at the same time. & lt; Div id = "SearchAddParams" class = "hidden" style = "color: orangered" & gt; & Lt; Label = 'txt search' for & gt; Road Number: & lt; / Labels & gt; & Lt; Input type = 'text' id = 'txtStreetNum' / & gt; & Lt; Label = 'txt search' for & gt; PREDISEER: & lt; / Labels & gt; & Lt; Input type = 'text' id = 'txtPreDir' / & gt; & Lt; Label = 'txt search' for & gt; Preetype: & lt; / Labels & gt; & Lt; Input type = 'text' id = 'txtPreType' / & gt; & Lt; Label = 'txt search' for & gt; Road name: & lt; / Label & gt; & Lt; Input type = 'text' id = 'txtStreetName' / & gt; & Lt; Label = 'txt search' for & gt; Suff dhether ...

Eclipse checkstyle plugin - Can I customize my .xml to apply different max value checks for java files? -

Is it possible to customize my .xml file in Eclipse Kepler to complete the task outlined below? If so, how is it done? My specific example is to help me with reference. Currently in my eclipse IDE, inside the Encrypted Complexity, Classify Optity, CyclomaticComplexity, StrictDuplicateCode, FileLength, checkstyle.xml file. I have a legacy Java file, where there are 44 violations of Classfanopt Complexity, but the maximum value for CFOC violation is set to 27 inside the checkstyle. Many other legacy Java files violate this checklist problem of more than 27 (33, 29, 55, etc.). All these files have been tested in Lingasi Java code which acts as intent. My work with Heritage Java is, without changing the Refactoring / Code Base, to ensure that each JAVAV file does not exceed the number of CURRENT violations in each violation and until these warnings are suppressed, Do not exceed the current number of violations, Actually, I need to suppress the existing violation for legacy Ja...

c# - Array objects of calls are set to NULL and not set to constructor values -

This question is already an answer here 28 replies I have a Class is a string of names like id, id, last name, public are the automatic properties and for this, I have defined a constructor for it and in the form of them as string.Empty Also defined. Now in the code I create an array of this class like this: AlternateAddressSummary [] alternateAddressSummaries = new AlternateAddressSummary [6]; Int adrsCounter = -1; Foreign Language (Address Address Address- Optional) {adrsCounter ++; Fill AlignAttressSmurridge (Optional Aspersor Schmidars [Edscontor], Eders); } and FillAlternateAddressSummaryObject simply fill the properties of each object for example: Private Zero FillAlternateAddressSummaryObject (AlternateAddressSummary Ala, Address Adrs) {alA.AlternateAdressLine1 = adrs.City; // ...} but why do I get an exception ala at NULL ? Even when I create those 6 array objects, they are started on NULL . Should they not be set to say in constructor ...

protocol buffers - toByeArray doesn't exist in my java protobuffer -

मैं protoc version 2.5 और protobuf-java-2.5.0.jar फ़ाइल का उपयोग कर रहा हूँ ताकि निम्न प्रोटॉब को संकलित किया जा सके // यह डिजिटल रीयल-एस्टेट संदेश प्रकाशक {आवश्यक स्ट्रिंग नाम = 1; आवश्यक int32 id = 2; // इस व्यक्ति के लिए अद्वितीय आईडी नंबर आवश्यक डबल ask_price = 3; वैकल्पिक स्ट्रिंग ईमेल = 4; Enum MediaType {WEB = 0; NEWSPAPER = 1; पत्रिका = 2; वैकल्पिक मीडियाटाइप मीडिया = 5; फोन फ़ोन टाइप करें {MOBILE = 0; होम = 1; कार्य = 2; } संदेश फोन नंबर {आवश्यक स्ट्रिंग संख्या = 1; वैकल्पिक फ़ोन प्रकार प्रकार = 2 [डिफ़ॉल्ट = होम]; } बार-बार फोन नम्बर फ़ोन = 6; } तब मेरे पास मेरे जावा कोड में निम्नलिखित पंक्ति है जो एक प्रकाशक। बिल्डर पर डेटा सदस्यों को सेट करके यादृच्छिक प्रकाशक वस्तु बनाता है और फिर कॉलिंग .build () और परिणाम लौट रहा है। प्रकाशक pub = genPubProtoBuf (); हालांकि, पब में "toByteArray ()" विधि नहीं है पब स्पष्ट रूप से एक प्रकाशक है जो जनरेटेड संदेश का विस्तार करता है जो एब्सटमेस्ज लाइट प्रदान करता है, जहां toByteArray () एक सार्वजनिक विधि है, इसलिए प्र...

can't get partial word search to work with haystack/elasticsearch -

I'm trying to work partial word and I've already seen but for some reason I do not have setup work. I am using a heap of elastic search with somebody can tell me what I am doing wrong. VendorIndex (indexes.SearchIndex, indexes.Indexable): text = indexes. EdgeNgramField (document = true, use_template = true) company_name = indexed. CHFIFF (model_tar = 'company_name', null = true) def get_model (self): back seller def index_queryset (using self, = none): "" "When the whole index is updated for the model . " .get_model (). Objects.all () EDIT: I have done this work using AutoComplete. However, I think this is a hack. But here's my code: class VendorIndex (indexes.SearchIndex, indexes.Indexable): text = indexes.CharField (document = true, use_template = true) company_name = indexes.CharField (model_attr = Get_model (self): return seller def index_queryset (self, using = none): "" "when the entire index for the model Is used...

asp.net - create dynamic controls on button click -

I'm trying to create a dynamic control by clicking on the button using the following code. It creates a text box for the first time, but it is not making control of 2, 3 or 4 etc. What could be the issue? & lt; ASP: Place Holder ID = "Place Holder 1" Runat = "Server" & gt; & Lt; / Asp: place holder & gt; & Lt; Asp: button id = "addText" runat = "server" text = "add" onclick = "addnewtext_Click" /> Protect Int Nanbrof Control ({} return (Int) Drishystet [ "Nukantrolols"];} set {viewstate [ "Nukantrols"] = value;}} private vain Pej_lod (object sender, Sistm.aventargs e) {if (! Page . Aispostbak) This.NumberOfControls = 0;} protected void addnewtext_Click (object sender, EventArgs e) {textBox tx = new textBox (); Tx.ID = "ControlID_" + Snkyaof control. Tostring (); PlaceHolder1.Controls. add (TX); Thisknumbrokntrols ++;} When you create such visual state should...

Perl `chop` removes two characters instead of one -

I am using the command line to pass a string to a Perl program. For example, this is "stackOveflow" to the Hello Hello "Stack Overflow" I use the @ARGV cut ($ ARGV [$ # ARGV]) to remove the last character from the last element; and then print it says "$ ARGV [$ # ARGV]"; I expect "stackOveflow in the output, but instead I can see stackOveflo Tell me why? Hello "Stack overflow" to execute the shell For the program Hello and pass it as a logic to the string stackOveflow (as my $ s = "stackOveflow"; Assigns the string stack overlove to $ x in Perl). St Removes the last character of the string, hence the value varies with stackOveflow stack overflow . $ perl -E'say $ ARGV [-1]; Cut ($ ARGV [-1]); $ ARGV [-1] "stack overflow" stack overflow stack overflow

Multiple overlapping changelists in perforce? -

I have seen but I still have lost enough I have a file that I want to be a part of many changes. I remember doing so many customers are built, but it is also stopping me. I can make the client right, but I can not understand how to "check out the client" "And to start making a separate CL in that client, which I have started is independent of CL in my native client. Any help will be highly appreciated! (It is also worth mentioning that I am working on a source control system which has been removed strongly, absolutely not correct). A file can only be part of multiple submitted changes if each variation is a different modification - e.g. If you add a file to the depot, its amendment # 1 is in a change list, when you edit it and submit that its revision # 2 is in another variation, and likewise the same file, different amendments . A file can be part of a number of pending challenges at the same time (all received from the same modification). If each change...

vbscript - Scripting with default windows tools (windows server 2008) -

I am using VbScript to automate some work at work. I am trying to do the following actions: Move the mouse to a specific point on the screen and click the & lt; --- No suitable metad was found Print screen is an application & lt; --- Sendkeys method is not permitted for this type of operation Suppose that I only have the default tool for Windows Server 2008. As the company's process of establishing external computer contents is very complex, I want to avoid it instead. My questions are: Am I able to code it without downloading it from external sources? (The only default tool available for Windows Server 2008) If not, what would you say to download me? Do I switch to VBSScript or better coding in a different language? I have read in some sources that I can use Net Object to code it in VBSScript, but I do not know how it fixes my problem or is absolutely Please, can someone explain me briefly? Thanks for all your reply;)

python - Programmatic way to list object properties and their values? -

I'm still relatively new to Python, so let me evict me that I'm missing something fundamental. / P> In the interest of easy debugging, I have used the habit of making show () process for each item. For example: class yourMom: def __init __ (manually ): Self.name = "" self.children = [] #Enit () Show DEF (self): Print "The name is '% s'"% (self.name) Print " Age for "% s" "% (self.age): For Children: Print" Children: '% s' "% (i) #and Show () #andMOM Class So my question is simple: do you need to write manually every time? No show () No Programmatik way to process? Edit: There is a similar question: But I am looking for values ​​in the list of objects with their properties. Yes, this is called a dragon bilton function

Google Analytics set up, beacon sent, Analytics shows nothing -

I have always installed Google Analitycs (UA) as I always do (ctrl-c - ctrl-v tracking code WordPress installation from analytics page). Everything is fine, but Google Analytics does not show anything, after the site has pasted the real-time preview (code), the site starts second tracking. The page has http I do not have any browser extensions like Disconnect or Adblock enabled. I opened my page from a mobile phone differently I have installed a GA debug, it shows accurate data and shows how the beacon was sent. I have no problem (HTML file verification) with GWT I I tested on the simple HTML page on the same server It looks like every time I have a new server - LAMP with PHP version 5.5.9-1ubuntu4.4. I have not left any idea what else can I check? Is it possible that the configuration of the server causes this problem? It works because I just left it because it was. Apparently Google needs some time to start tracking Real time previews have always work...

asp.net mvc - Login and logout via SignalR -

I have this signal R / MVC web application that I am making. I currently login and login the function using logout Ajax calls. I have to make those transits instead of the signalar. Is this possible? I understand how the ATH cookie is being handled. Currently my admin job does this [HTTP post] Public functions login () {var alias = request. Param ["nickname"]; Var password = request Perm ["password"]; // [some database stuff ...] form attestation.SetAuthCookie (AgencyMember.e. ToString (), true); } To try this, I have set up my logout function in my hub: public class Proto1: Hub {[Authorized (Needless = false)] Public string logout () {FormsAuthentication.SignOut (); Return "OK"; } This works, when I debug, I do not have "feedback in this context." Thank you!

javascript - Binding nested data to box plot / rectangles -

I'm still very new to D3, and trying to overlay some box plot over a line graph I am I currently have the code to overlay the box box - although I am having trouble finding out how to pair nested data to make rectangular elements all box plots. My data is nested in such a way: databox = object {key = "Mon Jan 01 2007 ...", values ​​= [32]}, Object {key = "Mon Jan 01 2008 ...", values ​​= [32]}, etc. and every value = [32] looks like [object {inst = 'inst1', value = 4}, object {Inst = ' Inst2 ', value = 6}, etc. yubox = []; Yutemp = []; (Var i = 0; i & lt; databox.length; i ++) for {tempdata = []; (Var j = 0; j & lt; databox [i] ['value']. ​​Length; j ++) {tempdata.push (databox [i] ['value'] [j] ['value']) yutemp Tempdata; } Yubox = yutemp [1] .sort (d3.ascending); Q1Val = d3.quantile (yubox, .25), intermediate val = d3 Quantile (yubox, .5), q3Val = d3.quantile (yubox, .75), iqr = q3val - q1val; ...

jquery - pdf417 Javascript Reading / Decoding -

I have been added to decoding / reading PDF 417 (Driving License) for a web based application. Input: Image of driving license. (400-600 dpi) Processing: PDF 417 Detecting / analyzing data Output: Pardes PDF 417 data. Limitations: Its a web based app: Running through IE, Chrome, Safari. I can not install anything on the local machine So I am checking for a few days and I have not found a good way to do this work. Ideally, the entire decoding will be on the client machine using Javascript / junkie. However I have not got any script / library that can do this. I've found that only the other option was probably a Java servlet or a php extension; Both of which are not ideal because upload time is going to push me on the allocation of my time Does anyone have a Javascript or JQuery library that can handle it? Or maybe there is a better way of incorporating this functionality which I am not seeing? My contribution is two times. First of all (good news!) I'm 100...

Change colour based on tags in Tumblr -

I am trying to create a type of IP statement, which uses Tumbler tags. Tumblers uses these shortcodes to output tags of each post: {block: tag} {tag} {/ block: tag} ... which will output it to: "tag1tag2tag3tag4etc" I have to create something like this ... If {block: tags} {tag} {block} tags include "red", come back to hex for red. If it contains "blue", then return the hex to blue, and if it returns "red", then return to red. I am feeling that this will require JavaScript, which I have never used, it should be quite simple, and any help would be greatly appreciated.

unix command line ...how to grep and show only file names that contain a string? -

I know I can find a string with this: grep -n -d recurse 'Snoopy' * * and then it displays each filename and example that contains the string, such as: file / name. Txt: 23 Some snip files here: file name 2 test: 59 other snop file / name2.txt: 343 some more snopies etc ... The problem is that with many incidents, The list is too large, how can I just show it the actual file name The front, including string, without duplicates and without incident? Only: file / name1.txt file / Name52.txt file / name 28293.txt any help Thanks a lot :) -l flag (or, BSD and GNU does both grep , - file-k-match ) do you want. From to: Write only the names of the files that are selected for the standard output, after every file is searched, the path name will be typed. If standard input is searched, POSIX locale will have the pathname of "(standard input)". In other local places, "standard input" can be replaced by some more suitable in those...

is using Bootstrap grid system is better than using css3 media queries? -

I am using Bootstrap Grid System in my website to get responsive layout, after margin and font size There are no break points like CSS3 media queries. Using Bootstrap Grid System means there is no reason to use CSS3 media queries ?? Or should I use both ?? And the answers will greatly appreciate. Breakpoints must be defined based on content. The bootstrap grid system is just a set of defaults, the default which will not apply to all (or perhaps more) use cases. You have to use a grid system with media queries that are correct - the size of your usage case

Is there a character that Java serialization doesn't use? -

I am trying to serialize the object from the server through the socket, and I use I would like to be able to send the command code with the object I want to send to the network package, so that the client knows what to do with the object, when he gets the problem is that every time I split the string message Chooses a character say, then I will sooner or later the air with the included serial object that character. I have tried "+", "*", "& amp;", "@" and many other characters and they work for a while, but eventually they are about to be used in the object. The only thing that works for me so far is using a character sequence like "| | | | | | | " Hopefully this will be one billion in the temporary form if it rotates in the serial object, but it will probably be with my luck. Any thoughts? >

emacs - Resizing root window of a frame to 80 characters -

I am trying to find an order that can resize the current frame "only one window is open" 80 Let the letter be wide I'm not trying to big or reduce the buffer, but rather instead just open the current buffer to fit into 80 character lines. Explain the work that works with the frame size in the following link for the AMACS document related to the frame Includes: The height and width can be set in the swoop by using a set-frame-size Can be determined by using pixels or using the height and width of functions such as set-frame-height and set-frame-width Can be set differently.

python - Server side execution (execution back-end image processing ) -

I tried to create a web app with Python django module. The job is if any link goes on, this image will process with the threshold and save it in the server folder. My code (views.py) is: - PIL Import import image as Tesseract import ctypes import from NP import CV2 import image django.http import HttpResponse import by numpy OS Import ImageDraw def index (request): im_gray = cv2.imread ( 'Rimage.jpg', cv2.CV_LOAD_IMAGE_GRAYSCALE) (correction, im_bw) = cv2.threshold (im_gray, 128, 255, cv2.THRESH_BINARY | cv2. THRESH_OTSU) thrashing = 100 im_bw = cv2.threshold (im_gray, toweling, 255, cv2.THRESH_BINARY) [1] cv2.imwrite ( 'bw_image.png', im_bw) return HttpResponse ( "Hello world. you are in the public opinion index. ") This code is not working: - tr Saback file "/usr/local/lib/python2.7/dist-packages/django /core/handlers/base.py" "file get_response 98. resolver_match = resolver.resolve (request.path_info)" / usr / local 343. In ...

validation - why use the blank validator rule in the model for the ID field? cakephp -

I am new to cake and I want to understand the logic behind it. I know that the blank rule is used to ensure that the field is left empty or that white space characters are present in its value, but do not we always want our ID to be equal to some numerical value Ho? When the user is submitting data that is used to create a new entry in the database, Then you want to let them choose ID when the id field is empty, then the database (or model) will automatically generate a new ID. Normally the rule 'on' = & gt; 'Create' : 'id' = & gt; The array ('rule' = & gt; 'blank', 'on' = 'gt;' create ') ... originally created, does not accept ID Users can select. "Without this rule, the user can select the database id or pass the existing one and overwrite the data.

bash - How can I concatenate the output of two commands? -

How can I add the output of pwd and ls and Can I add this file to F1? This is not working: pwd, ls> Use a compound command: {f1

Javascript Prompt() text is partially hidden in Internet Explorer 11 -

I am trying to display the "Normal than normal" text in a prompt () box. While calling the Javascript prompt () function in Internet Explorer 11, a large part of my text is hidden. It seems that only 2 rows of text are supported. Chrome, Firefox and Opera are working just fine. It's just an IE problem is. Here is a bella that shows the problem: Prompt ("Lorem Ipsum is the only dummy text of the printing and type-sitting industry since the 15th century, Lorum Ipsum is the standard dummy text of the industry, when an unknown printer installed a type of galley and was framed for making a type of sample book, it is not left for only five centuries, but there is a leap in electronic typeetting too, Essentially a Reversed balance. In the 1960s, with the introduction of Letraset Sheet with the Larsem Epsom route, and more recently, desktop publishing software such as LL.D. PageMaker was popular with versions of Lorem Ipsum.); I'm only able to see this lesson...

javascript - Manipulating CSS with JQuery -

This might be the first question .. I'm trying to create a shopping list app Allow me to remove items as well as check the item and un-check I have & lt; Li & gt; with id = "list" . I have a button with and ltd class = "remove" (so when I click on it, it will remove the entire list) ... So far I have done this work, when I click the word gray rotate how do I target it when I uncheck the checkbox it goes back to normal? Note: I am using an input type check-box instead of a button. ($ (This). CSS ("color", "gray"); $ (".remove"). CSS ( $ ('# list'). "Background color", "Gray");}); }); This is HTML: & lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; My awesome shopping list & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "css / style.css"...