Posts

extjs3 - how to avoid the automatic rounding of decimal value in extjs ? -

how avoid automatic rounding of decimal value in extensible java script? example if enter 2.003 rounded 2 or times if enter 2.039 accepting 2.0388888887 please me out. for numberfields can use decimal precision config the maximum precision display after decimal separator (defaults 2) technically tofixed: fixprecision : function(value) { var nan = isnan(value); if (!this.allowdecimals || this.decimalprecision == -1 || nan || !value) { return nan ? '' : value; } return parsefloat(parsefloat(value).tofixed(this.decimalprecision)); },

Filtering sql data with multiple filter vb.net (winform) -

i want filtering data sql datagrid. i have : 1 table (tablex) 3 columns col1 col2 col3 1/x/10 bjb 1/20/20 1/y/10 bjb 1/20/30 1/x/10 bjb 1/20/30 1/y/10 bjb 1/20/20 2 datagrid (dg1, dg2) i want insert : dg1 col1 "1/x/10" , col3 "10/20/20" dg2 col1 "1/y/10 , col3 "10/20/20 i can filter 1 col3 "select col1, col2, col3 tablex col3='10/20/20'" how filter col1 witch contain "x" or "y" , col3? ========================================================================== o yeah.. answer. this dg1 ("select col1, col2, col3 tablex col1 ('%/x/%') , col3='10/20/20'") and dg2, different x , y..lol ("select col1, col2, col3 tablex col1 ('%/y/%') , col3='10/20/20'") select col1, col2, col3 tablex col3='10/20/20' , (col1 '%/x/%' or col1 '%/y/%')

How to get geolocation of facebook status using facebook graph API -

so i'm trying latitude , longitude of facebook statuses map them, can give me idea on how that. thanks ... firs make api call - /me/statuses status of user. permission required: user_status demo you'll response as- { "data":[ { "id": "10152044171758611", "updated_time": "2014-02-15t12:12:59+0000" }, { "place": { "id": "xxxxxxxxxxxxx", "name": "xxxxxxx", "location": { "city": "xxxxxxx", "country": "xxxxxx", "latitude": 28.573024614741, "longitude": 77.230443565217, "street": "xxxxxxxxxx", "zip": "xxxxxxxx" } }, "id": "xxxxxxxxx"...

html - Make a image in division responsive -

i having images in carosuel effect keeps images in division.i want make images responsive.despite of adding class="img-responsive" to img tag image not giving responsive effect can 1 me? , wanted know if there way make division responsive? yes there is, <style> @media screen , (max-width: 980px) { .img-responsive { //insert css 980 width lower }} @media screen , (max-width: 700px) , (min-width : 400px) { .img-responsive { //insert css 700 width lower //css not work @ lower 400px } } </style> note can change value of max width depending on want change div. can set min-width determine minimum width css take effect cheers

responsive design - Changing .text() depending on the window size with jQuery -

i've got simple function finds , shows first sentence of every paragraph: function firstsentence(){ $('p').each(function(){ var p = $(this).text(); var s = p.split('.'); var f = s[0]; $(this).text(f + '...'); }); } and use when window size less 600: $(window).resize(function(){ if ($(window).width() < 600) { firstsentence(); } else { // normal please! } }); however, when user resizes window above 600, content not change back. what best way content reverted, if user resizes larger window ( > 600 )? before else, need store original text in each paragraph. e.g. this: var originaltexts = $('p').map(function () { return $(this).text(); }); and then, "back normal code": $('p').each(function (key) { $(this).text(originaltexts[key]); });

nsis - How to change Progress bar length in MUI instfiles page and arrange button position? -

i'm using mui page instfiles in installer , want change length of progress bar , position of "show details" button in it. possible still using mui page or have make own custom page nsdialogs ? you can use resource hacker edit ${nsisdir}\contrib\uis\modern.exe , use new ui resource: !define mui_ui mynewui.exe !include mui2.nsh ... the other alternative call setwindowpos or movewindow system plugin @ run-time bit harder do...

microcontroller - GPIO programming of MSP430? -

i going through datasheet of msp430 series. my doubt : there register enabling or disabling pull , pull down registers.(pxren) my question , if configure pin input , disable internal pull , pull down registers using register pxren , state of pin @ time , tri stated? yes. when configure pin gpio input high-z, i.e. tri stated. that's perfect input pin, external hardware define level. when enable rxen resistor pull or down. depends on value in out register.