Posts

css - Hiding Content from Mobile (SEO) -

do think hiding particular content mobile version of website can harm seo? have page has around 3 long paragraphs of content. on desktop, looks fine - on mobile there far content before being able click categories on page. i've decided write media query hide first paragraph in section. google think i'm trying use black-hat techniques or understand content visible on mobile? thanks! the {display:none} tag within css para you're trying hide read google. question here lies whether consider after parsing media query. highly doubtful considering read "present" code , not read multiple instances of it, recorded spider data code on html page without considering ifs , buts of css & js. imo, should not penalised long content unique , you're not indulging in black-hat tactics.

import - Why am I getting this error with BCP? -

i want import table while keeping identity column. in cmd, enter: bcp database.edg.hello in c:\users\tech\downloads\p.csv -c -e - s349024ijfpok.windows.net\mssqlserver -t which returns: a valid table name required in, out or format options is issue syntax? you need brackets database information. use colon " path sure. complete command: bcp [database].[edg].[hello] in "c:\users\tech\downloads\p.csv" -c -e -s 349024ijfpok.windows.net\mssqlserver -t

Custom hover-effect for WPF button with strange behaviour -

i have simple button containing image: <button x:name="helpbtn" width="25" style="{staticresource hoverbutton}" template="{staticresource hoverbuttontemplate}" click="onhelpbuttonclicked" tooltip="{x:static resx:language.helpbutton}" height="25" borderthickness="0" canvas.top="2" canvas.right="52" canvas.left="-77"> <image x:name="helpimg" source="resources/2_help.png" width="6" height="10" stretch="uniform"/> </button> then have contenttemplate: <controltemplate x:key="hoverbuttontemplate" targettype="{x:type button}"> <grid> <contentpresenter content="{templatebinding button.content}" /> <rectangle x:name="hoverrect2" fill="darkgreen" visibility="hidden" opacity="0...

html - Should I use px or rem value units in my CSS? -

i designing new website , want compatible browsers , browser settings possible. trying decide unit of measurement should use sizes of fonts , elements, unable find conclusive answer. my question is: should use px or rem in css? so far know using px isn't compatible users adjust base font size in browser. i've disregarded em s because more of hassle maintain, compared rem s, cascade. some rem s resolution independent , therefore more desirable. others modern browsers zoom elements equally anyway, using px not problem. i'm asking because there lot of different opinions desirable measure of distance in css, , not sure best. tl;dr: use px . the facts first, it's extremely important know per spec , css px unit does not equal 1 physical display pixel. has always been true – in 1996 css 1 spec . css defines reference pixel , measures size of pixel on 96 dpi display. on display has dpi substantially different 96dpi (like retina displays),...

Is java array with an element null is of length 1? -

below code: int[][][] @ = { {{9, 4}, null}, {null}, {{1, 2, 3}} }; system.out.println(at.length + " " + at[1].length); // 3 1 shows at[1].length 1 . is not that, length counted when have element of type int[][] @ second index in object pointed at ? if yes, why at[1] null of length 1? because null not of type int[][] similar example: mytype[] t = {null}; system.out.println(t.length); //1 for me t.length should 1 , when array has element {new mytype()} or element instance of subtype of mytype , like, mytype[] t = {new mytype()}; system.out.println(t.length); //1 yes. in fact, when declare , initialize array of object references, values inside null default. remember length of array never vary, despite contents ( null elements) in array. there's difference between length , size , length how many elements can stored in array, while size amount of valid elements in array. also, array is not list. example: string[] stringarray = {...

httprequest - Sending a post in android with bad encoding -

i'm sending post content server android. problem data @ server arrives wrong, encoding problems, example "{" arrives "%7b%". this code android: requestparams params = new requestparams(); params.put("alta", "{s}"); string ruta = "http://www.something.com/receive"; client.post(ruta, params, new asynchttpresponsehandler() { @override public void onsuccess(string response) { } } the server part receiving data, like: $data = $this->request->data; $data =file_get_contents('php://input'); this issue not directly related text encoding per se. as can seen docs requestparams , text values directly included in url. text included in urls has encoded include characters allowed in urls (ascii), text url encoded . asynchttpclient automatically encoding in background, receive strings in encoded form on php side. in order original text sent, can use...

javascript - Can I insert 3rd party marketing tags that use document.write() into Google Tag Manager (GTM)? -

i'm installing 3rd party marketing tags gtm (v2) container. tags real nuisance, making heavy use of document.write . though google tag manager claims support document.write , these tags throw javascript errors when fired. here's example of such tag. <script src="http://ib.adnxs.com/seg?add=1958353,6039160&t=1" type="text/javascript"> </script> this script seg?add=1958353,6039160&t=1 goes on call document.write twice: document.write('<scr'+'ipt type="text/javascript" src="https://js.b1js.com/tagcontainer.js?id=110386891486949186&type=1"></scr'+'ipt>'); document.write('<scr' + 'ipt src="http://cdn.adnxs.com/ib/async_usersync.js"></scr'+'ipt>'); if ask gtm support document.write tag, , set tag fire on pages, i'll error on page load: uncaught typeerror: cannot read property 'parentnode' of null uncaught #<o...