Posts

c# - Disable certification validation on client side of wcf -

i have 2 apps running inside iis - client , service. service running fine, client isn't. they talk each other thru wcf message security relaying on certificates (it isn't transport security, it's message security). both using self-signed certificates. but client ends error: system.identitymodel.tokens.securitytokenvalidationexception: x.509 certificate ... not in trusted people store. x.509 certificate ... chain building failed. certificate used has trust chain cannot verified. replace certificate or change certificatevalidationmode. certificate chain processed, terminated in root certificate not trusted trust provider i know how disable certificate validation on service side , did it, how can disable ca validation on client side? if making request server client application, call below lines avoid certification check before making service request. using code bypass ssl validation error due self signed certificate. system.net.servicepointmanager....

html - What exactly changes in the css rendering, when desktop browsers zoom in or out on a website? -

in way design scaled or down? i'm trying figure out happens @ css level, , consequences different sizing methods ( px , em , rem , etc). by way, concerned zooming behaviour modern desktop browsers. (i suspect mobile browser straight enlargement of whole page after rendering normally, , know old fashioned browsers increment base font-size). isn't clear however, modern browsers (say latest versions of chrome or ff) when user presses ctrl + or ctrl - . do render page (i.e. @ 100%) , enlarge rendered image? because ff still seems respect % widths example, doesn't seem straight enlargement. zooming implemented in modern browsers consists of nothing more “stretching up” pixels. is, width of element not changed 128 256 pixels; instead actual pixels doubled in size. formally, element still has width of 128 css pixels, though happens take space of 256 device pixels. in other words, zooming 200% makes 1 css pixel grow 4 times size of 1 device pixels. (two times ...

linux - What does `!:-` do? -

i new bash scripting , in ubuntu\debian package system. today studying content of preinst file script executes before package unpacked debian archive (.deb) file. my fist doubt line containing this: !:- probably stupid question but, using google, can't find answer. insert last command without last argument (bash) /usr/sbin/ab2 -f tls1 -s -n 1000 -c 100 -t 2 http://www.google.com/ then !:- http://www.stackoverflow.com/ is same as /usr/sbin/ab2 -f tls1 -s -n 1000 -c 100 -t 2 http://www.stackoverflow.com/

java - Couldn't parse the HTML tags from live site in android -

we working on power shut down app in android domain particular region.so need live update details url.so need html tags live site.we got nothing. for example in app title live url , put in text view code comes here.we using jsoup values. package com.example.poweralert.app; import java.io.file; import java.io.ioexception; import java.io.inputstream; import java.lang.annotation.documented; import java.util.arraylist; import java.util.arrays; import java.util.hashmap; import java.util.list; import android.app.progressdialog; import android.provider.documentscontract; import android.support.v7.app.actionbaractivity; import android.os.bundle; import android.util.log; import android.view.menu; import android.view.menuitem; import android.view.view; import android.view.view.onclicklistener; import android.widget.button; import android.widget.listadapter; import android.widget.radiobutton; import android.widget.radiogroup; import android.widget.simpleadapter; import android.widget.tex...

content management system - What does Typo3 CMS offer (or can do) that WordPress 4 doesn't? -

this not opinion based question rather technical limits comparison one. from various comparison charts 2 cms couldn't find technical difference between 2 platforms. being long time wordpress developer find supplied arguments typo3 technical pros exist somehow in wordpress; achieve in 1 can achieved in other (plugins & extensions). let's take example latest versions of both 2 cms's, typo3 can wordpress can't plugins/extensions? update please instead of down voting question, provide @ least 1 reason vote. as write, technical pros exist somehow in wordpress. i think major advantage of typo3 extension framework extbase , template rendering engine fluid . developing (and maintaining) larger extensions becomes lot easier since introduction overall cleaner, object oriented code base. 3rd party extension written in technology easier adapt/customize extensions in wordpress mix procedural object oriented style. webpages multiple languages easie...

oracle - Why my LibraryCache gets locked with parallel queries? -

i using oracle 12c, needed understand, 1) facing issue of several sessions in locked state (librarycache). showing me parallel queries running, have not set parallel clause in ddl of table object. migration indexes created parallel clause create not understand why taking dml also. 2) if assume if case while running dml sqleditor executionplan shows me noting parallel. finally got answer through, http://blog.tanelpoder.com/2007/06/23/a-gotcha-with-parallel-index-builds-parallel-degree-and-query-plans/

how to create pagenation in dynamic table view in android -

paginationlayout paginationlayout = new paginationlayout(this); paginationlayout.setlayoutparams(new layoutparams(layoutparams.fill_parent, layoutparams.fill_parent)); // creates content sample tablelayout table = new tablelayout(this); table.setlayoutparams(new layoutparams(layoutparams.fill_parent, layoutparams.fill_parent)); table.setgravity(gravity.center_horizontal|gravity.center_vertical); tablerow row = new tablerow(this); row.setlayoutparams(new layoutparams(layoutparams.fill_parent, layoutparams.fill_parent)); table.addview(row); tablerow row2 = new tablerow(this); row2.setlayoutparams(new layoutparams(layoutparams.fill_parent, layoutparams.fill_parent)); table.addview(row2); for(int = 0; i< 50;i++){ button button = new button(this); button.settext("button " + i); if (i%2==0) { row.addview(button); } else { row2.addview(button); } } ...