Posts

terminal - how to enable the numeric keypad in xshell? -

The numeric keypad is not working in the X-Shell terminal application. Numeric keypad. In Google, I got to change the mode instead of Xterm. But some functionality was missing in the NC. Set the following settings in the x shell Go to terminal - & gt; VT mode - & gt; Initial NUMERIC KEYPAD MODE Select more options - & gt; Normally set Now your numeric keypad will work normally.

ipad - Lua not fitting the hash causes compiling errors? -

I am using a lua developer environment called Luah. I have this hash work and compile: imgs = {readImage (spriteexample1, pos.x, pos.y), readImage (spriteexample2, pos.x, pos.y), readImage (spriteexample3, pos.x, pos.y), readImage (Spriteexample4, pos.x, pos.y), readImage (spriteexample5, pos.x, pos.y), readImage (spriteexample6, pos.x, pos.y)} ( This is cut on the second line after spriteexample4 on my screen.) The problem is, when I go to the third line to add two more sprites as the value, then tell me Does that bother me on the first line that would help me stop? If I copy the code to you and run it (a fake readImage ( ) After defining) function and pos = {x = 0, y = 0} ), there is no problem, so there should be a strange character such as a UTF-8 The character that looks normal in your editor but try to open tools like Notepad ++ with the interpreter 'do not like the View tool. Simpo | Show all characters

Behavior of an array after sorting in Java -

I have to get some ideas on the behavior of the following programs: package head; Import java.util.Arrays; Public class stringgram {public static zero major (string agre []) {string a = "abba"; Four [] aArr = a.toCharArray (); Arrays.sort (aArr); // 1 Arrays.sort (a.toCharArray ()); // 2 System.out.println (aArr); // System.out.println (a.toCharArray ()); // unororted}} According to me there is a character array type referenced by aArr , but when it comes to statement 2, the character array is getting sorted But in some way the sorted array is not referred to by any variable, so the behavior is lost. Nobody can help me. Yes you are right. toCharArray () Each call actually creates a new array instance with characters in the string. In the case of > AARA , you actually refer to the new array instance, you use aArr to sort its array examples Specified by variable aAr that gets resolved. But when you pass a.toCharArray () to the Array.sort () me...

android - how to manipulate data in list view that is populated by custom cursor adapter -

I have drawn a list view using a custom cursor adapter, a checkbox And the button below. checkbox 1 button 1 checkbox2 button2. . . Now I want to navigate to any other activity when click on the button in the list view, now my problem is here when I click on button1 I want to see also the data in the checkbox 1 and similarly for other rows. Now how am I confused in the way to maintain a sync between the checkboxes and buttons and get click functionality, anyone can please tell me a path . Thank you Shiva You can do the following on button 's onClickListener if the button and checkbox share the same original boldButton.setOnClickListener (new OnClickListener) {@Override Public Zero Click on (View View) {View parent view = (see) view.getParent (); Checkbox = checkbox = (checkbox) parentView.findViewById (R.id.check); }}); This will give you the checkbox related to the clicked button .

sql server 2008 - Update specific records based on some group -

I am using SQL Server 2008 R2 I Near Database Table contains some user data: id UserId Sys Dia ReadType DataId IsDeleted 1 10 98 65 Final 1390556024216 0 2 10 99 69 Average 1390556024216 0 3 10 102 96 Final 1390562788540 0 4 10 102 96 Average 1390562788540 0 5 11 130 98 Final 1390631241547 0 6 11 130 98 Average 1390631241547 0 7 2 285 199 First 1390770562374 0 8 2 250 180 Last 1390770562374 9 2 267 189 Average 1390770562374 0 10 1 258 180 First 13 9 1191009457 0 11 1 258 180 Final 1391191009457 0 12 1 258 180 Avg 1391191009457 13 137 285 199 Extras 1391191009457 0 14 22 110 78 Final 1391549 208338 15 15 22 123 83 Previous 1391549208349 0 In this table, there are records that are similar to same data ID , but separate readings type . I want to set IsDeleted = 1 for the record containing ReadingType = 'last' and ReadingType = 'average' With the same data id, sis, die and user id . Then the desired result may be shaken: ID UserId read the Sys D...

r - How to filter an table by a value in row -

I am doing a script in r which is the csv file then To load my data I have to make these functions user data & lt; - read.csv ("info.csv", colClasses = "character") and my data looks like this abcd ... 1 "A" 3 4 ... 5 "b" 7 8 ... 9 "c" 7 4 ... 9 "c" 2 5 ... 9 "a" 1 6 ... How can I filter only "C" or "A" or both or any other string? For only one, you can try: Data Lonely and lieutenant; - Using the data [data $ B == "A",] or subset () command: Data For the A or C, you can use the % in% operator, and the Lieutenant-Subset (Data, B == "A") Are: data.ac> lt; - Data [data is $ B% C ("A", "C"),] , or data.AC

How to modify a group to be non system group in Linux -

I have added a group as a system group. Using an order groupadd -r I have also added this group to users. Now I want to convert the Theeus group into a non-system group..the general group says. How can this be achieved? One easy way to remove group id and reconstruct it with non-system permissions, but its With the same GID group code as suroot , use the following command: id = `cat / etc / group | GRP Surat | Sed -r 's /: / \ / g' | | EDIT: This is considered a RedHat-like Linux distribution.