Posts

php - How to make the featured image without a fixed position? -

i know how style featured image , give class, don't want have fixed position. instead, want have custom position every post (i set position manually every post). how possibly can achieve ? add code in post loop, make way want : <?php if ( has_post_thumbnail() ) the_post_thumbnail(); else echo '<img src="' . trailingslashit( get_stylesheet_directory_uri() ) . 'images/default- thumbnail.png' . '" alt="" />'; ?>

c# - How to get the value of dropdownlist on selection changed inside the repeater. -

i have 4 column inside repeater, expected , accpet , ddl & 1 panel not visible on page load if expect column value , dropdown selection value same want visible panel otherwise not. please me not getting value of dropdownlist beacuse on selection change whole repeater refilling not single value able get. can me this. any possible way me. css <style> .main { width: 100%; } .inner { width: 90%; } .fst { width: 20%; float: left; } .scnd { width: 20%; float: left; } .thrd { width: 20%; float: left; } .frth { width: 20%; float: left; } .reset-this { clear:both; } </style> html <div class="main"> <div class="inner"> ...

r - Wrap around subtraction -

i have these numbers: login.day$wday [1] 5 6 7 1 2 3 4 and want map them to: login.day$wday [1] 4 5 6 7 1 2 3 each number subtracted 1, , if answer 0, wrap around 7. embarrassingly simple can't figure out. attempt keeps giving me zero: > (login.day$wday + 6) %% 7 [1] 4 5 6 0 1 2 3 prefer solution in r. possible modulo arithmetic or must use if statement ? mathematically equivalent other solution, , explanation. (login.day$wday - 1 - 1) %% 7 + 1 the problem is hard modular arithmetic numbers starting @ 1 . we start doing -1 shift down 1 , have zero-based numbers ranging [0,6] . we subtract 1 , because trying begin with. next, take modulus, , add 1 shift range [1,7] .

android - Project not building in Titanium -

i made project in titanium, table. when tried run project on phone, failed saying "[error] application installer abnormal process termination. process exit value 1". it seems have error in processing of javascript. this got debug: traceback (most recent call last): file "c:\users\prodigy sml\appdata\roaming\titanium\mobilesdk\win32\3.2.2.ga\android\builder.py", line 2497, in <module> launch_logcat() file "c:\users\prodigy sml\appdata\roaming\titanium\mobilesdk\win32\3.2.2.ga\android\builder.py", line 124, in launch_logcat adb_location = androidsdk(android_sdk_location).get_adb() file "c:\users\prodigy sml\appdata\roaming\titanium\mobilesdk\win32\3.2.2.ga\android\androidsdk.py", line 49, in __init__ self.set_api_level(api_level) file "c:\users\prodigy sml\appdata\roaming\titanium\mobilesdk\win32\3.2.2.ga\android\androidsdk.py", line 53, in set_api_level self.find_platform_dir() file "c:\user...

database - SQL UPDATE Error in C# Console Application -

Image
using ms visual studio 2010, ms access 2010(database converted .mdb) , program based on c# console application. i'm new c# , on following: 1.i'm struggling following error: syntax error in update statement. i've tried can't seem find problem. i've looked @ possible error outside update statement still no luck. online not seem me problem , of regarding connection database server. for (int w = 0; w <= 9; w++) { string pn = names[w]; int lvl = convert.toint32(level[w]), dmg = convert.toint32(damage[w]), plek = w+1; connectionstring = @"provider=microsoft.jet.oledb.4.0;" + @"data source=c:\users\home\desktop\game\game.mdb"; //tried 1 // querystring = "update scores set playername=\""+pn+"\", level=\"" +lvl+"\", damagereceived=\""+dmg+"\" pos="+ plek; //ended 1 querystring = "update scores set playername= @ppn, leve...

asp.net - Passing dynamic variable in meta tag -

i trying declare dynamic meta content , try 2 different ways not working. kindly me. in advance. i using code this <meta name="description" content='<%#desc%>'/> and <meta name="description" content="<%=desc%>"/> both code not working, declaring desc variable public in c# code that won't work asp.net won't understand word you're providing variable or else , leave unused. in asp.net variables used using @ at rate of sign . can use this: @{ var desc = "this description"; } /* , in body part, use variable */ <meta name="description" content="@desc"/> now @desc rendered variable. , you'll result. you're new asp.net, need learn syntax of language first. please refer following link: http://www.asp.net/web-pages

javascript - how can I add a post identifier to my ajax -

i want add post identifier ajax. right way identify post checking if 1 of inputs present. here code: <input name="id" id="id" type="text"> if input name id present posted execute php code. here code: if(isset($_post['id'])){ the issue having want put multiple id posts in same page need sort them know post doing. want add post identifier. if(isset($_post['addlogin'])){ how can add post identifier ajax function. here code: $(function() { $("button#loginsubmit").click(function(){ $.ajax({ type: "post", url: "", data: $('form.loginform').serialize(), i wanted add {last_time:last_time} how can add post identifier? like this: data: { last_time : "test"}