Posts

wordpress - how to create an interactive graph in a simple way? -

hi know wordpress plugin or tool allows me re-create in simple way interactive graph this: https://www.justpark.com/creative/sharing-economy-index/ ? thanks much. simple ? yea ! your answer data browser automatic chart creator based on existing data on sit 3 click https://wordpress.org/plugins/data-browser/stats/ enter image description here

android - Set last position when scroll load more recycleview -

i trying implement load more recycleview it's working fine when scroll recycleview @ time first item top of view, want next scrollable item @ top, how can solve problem, please me mainactivity.java public class mainactivity extends appcompatactivity { private int page_no = 0; private recyclerview mrecyclerview; private arraylist<notificationbean> musers = new arraylist<>(); private useradapter museradapter; private notificationbean mnotificationbean; private int loadmorearraylistsize; public int arraylistsize; // private linearlayoutmanager mlayoutmanager; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); musers = new arraylist<>(); mrecyclerview = (recyclerview) findviewbyid(r.id.recycleview); // mlayoutmanager = new linearlayoutmanager(this); // mrecyclerview.setlayoutmanager(mlay...

android - How to set custom date array in date picker dialog? -

i want set custom date array in date picker dialog. date array not in sequence date. how can set custom array in date picker. please help. here example forget datepickerdialog, build custom dialog numberpicker widget , add code numberpicker picker = new numberpicker(this); picker.setminvalue(0); picker.setmaxvalue(2); picker.setdisplayedvalues( new string[] { "belgium", "france", "united kingdom" } ); just replace new string[] { "belgium", "france", "united kingdom" } arraylist. here link simple number picker.

c# - Delimit concatenated columns -

i have following issue. i receive sql stored procedure columns. after exporting them in xls format in interface, log of info sql table after concatenating it. in c# concatenate number of columns using string.format method: ex: string.format("{0}+{1}", "column1", "column2"); output: column1column2 i want able insert pipe or other character between columns. output shoul this: column1|column2 this string.join intended for. string.join documentation on msdn string[] columns = {"column1", "column2"}; string output = string.join("|", columns); //output contains : "column1|column2"

html - two divs side by side with ellipsis - issue with min-width -

i have 2 divs side side. both divs must remain on same line (not 1 under other), despite length of contents of each div. so used css text-overflow: ellipsis on both divs (cobbled different jsfiddle). work, except 1 small issue. how can add min-width 2nd div class : .container > div:last-child (this div yellow background)? i have tried add min-width: 150px; css class, kills text-overflow: ellipsis; effect. i have attached jsfiddle example of trying achieve. .container { display: -webkit-flex; } .container>div:first-child { white-space: nowrap; -webkit-order: 1; -webkit-flex: 1; background: aqua; -webkit-flex: 0 1 auto; /*important*/ text-overflow: ellipsis; overflow: hidden; width: auto; } .container > div:last-child { white-space: nowrap; -webkit-flex: 1; -webkit-order: 2; background: yellow; -webkit-flex: 1 0 auto; /*important*/ text-overflow: ellipsis; overflow: hidden; width: 150px; } ....

c# - Serialize field as attribute of an element -

i have [xmlroot("root")] class person { [xmlattribute("name")] public strig name {get;set;} } after serialization get: <root name="..."> </root> any simple way get <root> <general name="..."> </root> ? options me are: make other class, using ixmlserializable, etc it's posible have below ? // code not valid [xmlelement("general")] [xmlattribute("name")] public strig name {get;set;} to element inside need use xmlelement attribute. if create 'general' class containing xmlattribute("name") property. can add person class. [xmlroot("root")] class person { [xmlelement("general")] public general general {get; set;} } class general { [xmlattribute("name")] public strig name {get;set;} }

codenameone - AutoCompleteTextField completion strings display issue -

i've made form in gui builder has 5 auto complete text fields. made in same way completion arrays set before form shown, in same way. first 2 fields work expected. second 2 fields show completion options after of picker components used on form (they in same container), , last 1 never shows completion options (or showing them off screen?). this looks related codename 1 - autocomplete popup window location in turn refers 2 open bugs both of scheduled release cycle: https://github.com/codenameone/codenameone/issues/1687 https://github.com/codenameone/codenameone/issues/1697