Posts

android - How to set Default Cursor position to right of EditText -

Image
I have applied an edit text where I wanted to start it with text right, and I got it by the set gravity = true But the default cursor still appears on the left side of my text This is what I have done so far Have tried: & Lt; style name = "_ style_user_profile_editText" parent = "@ android: style / widget.EditText"> gt; item name = "and Roid: layout_width "& gt; mail_parente & lt; item name =" android: layout_hete "& gt; rap_community & lt; / item & gt; & lt; item name =" android: Item Name = "Android: Text Cursor Drawable" & gt; @ Drable / cursor_color_blue & lt; / item & gt; & lt; item name = "Android: Input Type" & gt; Text Not Suggestion, gt; Like Joe Jr. & Lt; / Item & gt; & Lt; Item name = "Android: Background" & gt; @Android: Color / Transparent & lt; / Item & gt; & Lt; / Style & gt; I tried & lt;...

bash - Shebang followed by rm command not a self deleting script -

I am referring to this tutorial to improve my knowledge, but I think that removing my script The script for the order is described in the website. Am I doing something wrong or is the code wrong? #! / Bin / rm # How to delete the script # It does not look like when you run it ... except that the file disappears. Until echo = 85 "This line will never be printed (beta!)." Eject $ $ $ # No matter the script will not be out here # Try echoing a $? After completion of the script, you will get a 0, not 85. I have also tried, #! / Bin / rm -f That too is not working. Shabang notation interprets interpreter when executed as script ( . / MyScript.sh ) is used. If you tell clearly interpreter - as, bash MyScript.sh - it overlays the Shebang line so I guess I am here that has happened.

spring - java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'addStudent' available as request attribute -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर यहाँ form.jsp और lt;% @ page language = "java" contentType = "text / html; charset = आईएसओ -885 9-1" पृष्ठ एन्कोडिंग = "आईएसओ -885 9 -1"% & gt; & Lt;% @ taglib uri = "http://www.springframework.org/tags/form" उपसर्ग = "फ़ॉर्म"% & gt; & LT;! DOCTYPE & gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; meta http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = आईएसओ -885 9 -1" & gt; & Lt; शीर्षक & gt; छात्र जोड़ें & lt; / title & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; प्रपत्र: form action = "addStudent" commandName = "addStudent" विधि = "पोस्ट" & gt; & LT; तालिका & gt; & LT; टीआर & gt; & Lt; td & gt; & lt; फ़ॉर्म: लेबल पथ = "नाम" & gt; नाम: & lt; / form: label & gt; & lt; / td & gt...

java - Refreshing Caches while under load with Spring/EHCache -

I have a caching problem on Spring Multi-Threaded Web Services with database backend and earch-based caching Many customers in the service All repeat requests to the same object, with dozens of requests per second. There are only a few things that are requested that often a large number of other objects are requested with no time, the objects can change every two minutes, so the TTL of the cash is set to one minute. Loading objects from the database is slow and takes at least several seconds. At first I used a simple implementation to get the object: Check that the object is in the cache. If yes, then return it to the cache. If not, then load it from the database, keep it in the cache and return it. It was working well while testing it locally but performance tests on fast servers are shown very poorly loaded spikes a few times, each time a more frequently requested object Ends in the cache. When this happens, for the next 10 seconds, all requests for that object will r...

Nsis: Change Title bar for Two installations in one installer -

There are two installation the installer to me: How can I customize the title bar (Setup) for the two establishments Am I / p> ! MUI.nsh included! WinMessages.nsh caption ""! Set MUI_PAGE_CUSTOMFUNCTION_SHOW lic1! Insertmacro MUI_PAGE_LICENSE "$ $ {__ FILE__}"! Set MUI_PAGE_CUSTOMFUNCTION_SHOW INST1! Insertmacro MUI_PAGE_INSTFILES! Set MUI_PAGE_CUSTOMFUNCTION_SHOW lic2! Insertmacro MUI_PAGE_LICENSE "$ {__ FILE__}"! Defined MUI_PAGE_CUSTOMFUNCTION_SHOW inst2! Insertmacro MUI_PAGE_INSTFILES! Insertmacro MUI_LANGUAGE English message function l11 Send $ HWNDPARENT $ {WM_SETTEXT} 0 "STR: Foo $ (^ LicenseSubCaption)" Fnkshnand function inst1 SendMessage $ HWNDPARENT $ {WM_SETTEXT} 0 "STR: Fu $ (^ installing esab caption)" Fnkshnand function Lycée 2 Sendmesj $ Acdbludiapiaarti $ {Dblyuem_siti TEXT} 0 "STR: time $ (^ LicenseSubCaption)" function and function inst2 SendMessage $ HWNDPARENT $ {WM_SETTEXT} 0 "STR: time $...

javascript - Angular JS retain scroll position after reload -

I have an ul & gt; Li list of items with a reload button at the top. If I suppress the reload button, async is added to item data model. Each time an item is added to the model, it appears in the view, and the browser scroll is at the top. This is a Cordoba app (HTML5). I can definitely remember the scrolling position and scroll back, but it can be seen and IOO is just a hack. How can I ensure that the status of the scroll remains in one place? You can click on the reload button I think the problem is: I suggest a solution, track it by $ track $$ . Angular ng-in repeat

two dates in php, for each loop between dates but reverse? -

This is related to another question, which asks here, that works right but I need to contradict it, Do you have any idea how to implement it? The basic question is here You can use the + methods: foreach (array_reverse (iterator_to_array ($ period) as $ day) {...}