Posts

node.js - Unable to install bower on Openshift -

i unable install bower on openshift. keep on getting errors like remote: npm err! error: enoent, lstat '/var/lib/openshift/537xxxxcd/app-root/runtime/repo/node_modules/bower/node_modules/mout/array/intersection.js'[k remote: npm err! if need help, may report log at:[k remote: npm err! <http://github.com/isaacs/npm/issues>[k remote: npm err! or email to:[k remote: npm err! <npm-@googlegroups.com>[k you can see full deployment logs https://s3.amazonaws.com/archive.travis-ci.org/jobs/26291843/log.txt [from travis here]. i tried several approaches: 1) , without .bowerrc file case:1 { "directory": "~/app-root/runtime/repo/public/libs" "storage": { "cache": "~/app-root/runtime/repo/node_modules/bower/cache", "completion": "~/app-root/runtime/repo/node_modules/bower/completion", "git": "~/app-root/runtime/repo/node_modules/...

configuration - Raspberry Pi: able to access through own network but not internet -

i'm learning how set web server using raspberry pi diy project. i followed instructions on guides around internet (maybe thats why screwed because combined instructions different guides). port forwarding , uploading of files done able access website through network (lan , wireless) not able access threw internet. solutions? first of all, before check else, forwarding correct ports correct i.p. address? after check that, there firewalls in place on raspberry pi might close down connections form outside network. another thing might want check if isp (internet service provider) allows portforwarding on ports wish use (typically 80 , or 443). if not case, may want try forward port , connect outside network through port (you add :portnumber after url or i.p. address in browser). if else fails, install web server (apache) sudo apt-get install apache2 -y on vanilla raspbian image , follow this tutorial explains how toset port forwarding (in greater detail have done). ...

excel 2010 - Databar Appears only when cell edit made -

Image
i have exported data datagridview excelsheet using epplus library for = 0 analysis.dgv1.columns.count - 1 worksheet1.cells(1, + 1).value = analysis.dgv1.columns(i).headertext next = 0 analysis.dgv1.rows.count - 1 j = 0 analysis.dgv1.columns.count - 1 worksheet1.cells(i + 2, j + 1).value = analysis.dgv1.rows.item(i).cells(j).value next next using range = worksheet1.cells(2, 4, analysis.dgv1.rowcount, 5) range.style.numberformat.format = "#,##0" end using column 4,5 numeric column have added databar excelsheet using using range = worksheet1.cells(2, 4, analysis.dgv1.rowcount, 5) range.conditionalformatting.adddatabar(system.drawing.color.lightgreen) end using in exported excelsheet data shows fine but, databars appears when cell edit made here screenshot of image 84,83 cell entered in edit mode other un touched it's because databar needs numeric value , here entering number string try converting number before insert...

jsf - EnvironmentCapable Not available Spring 3.2.3 -

am trying integrate spring 3.2.3 jsf 2.2.1 , getting error caused by: java.lang.noclassdeffounderror: org/springframework/core/env/environmentcapable class available in classpath (spring-core-3.2.3.release.jar) not sure why error occurs. it worked fine when removed project server, clean/build , restarted again. thanks.

java - Meaning of the hs_gc profiler counters in JMH -

i'm using jmh benchmarking tool hs_gc hotspot profiler. the issue i'm having unsure output counter values mean , cannot find reference on net. would able point me in direction of specification or explain these values? i have pasted example output below: hs(gc) | difference: { sun.gc.collector.0.invocations=16, sun.gc.collector.0.lastentrytime=37106821, sun.gc.collector.0.lastexittime=37109336, sun.gc.collector.0.time=1528884, sun.gc.collector.1.invocations=6, sun.gc.collector.1.lastentrytime=34419368, sun.gc.collector.1.lastexittime=35532892, sun.gc.collector.1.time=6721387, sun.gc.generation.0.space.0.used=872712984, sun.gc.generation.1.space.0.used=5721334504, sun.gc.generation.2.space.0.used=4848, sun.gc.policy.avgbasefootprint=5312, sun.gc.policy.avgmajorintervaltime=-667, sun.gc.policy.avgmajorpausetime=-41, sun.gc.policy.avgminorintervaltime=-557, sun.gc.policy.avgminorpausetime=1, sun.gc.policy.avgoldlive=88064, sun.gc.policy.avgpromotedavg=421184, sun...

security - Is XSS dangerous even if the cookie doesn't store user credentials? -

whenever talks dangers of xss, mention 'bad guys' can access user credentials. if store session id on cookie, , authenticate user based on session id, there other ways xss can used access user credentials? yes. xss means foreign or malicious script running on page. there bunch of ways dangerous. session hijacking even if cookie doesn't store user credentials (and shouldn't). stores enough information server consider bearer of cookie particular user (http stateless use cookies/sessions remember users). so if steals session id can use impersonate , server might none wiser. safeguarding ip in original question asked level of security: verifying ip address tied session. yes, cuts down attack avenue. yes, ip addresses can faked. you're no longer lowest hanging fruit attackers. @ same time security , convenience opposites legitimate users might frustrated when ip address changes no longer signed in. other attacks stealing cookie/sessio...

c# - Why onTextChanged not working in ASP.net -

this question has answer here: why asp.net ontextchanged not working 2 answers i have following textbox in asp.net page: <asp:textbox ontextchanged="maxchar" id="txtname" width="95%" runat="server"></asp:textbox> the following in code-behind: protected void maxchar(object sender, eventargs e) { if (txtname.text.length > 25) { lblisvalid.text = "only 25 characters allowed"; } } when enter text in textbox , exceed 25 character nothing displayed in label. how can fix it? in case, max lenght, should use property of asp:textbox called maxlength="25". but, if want send message user, recomend use jquery, it's easy: $('#txtname').keydown(function(){ if($(this).length >= 25){ //you alert }; });