Posts

html - Can't seem to hover the drop-down menu via CSS -

to upfront, started web designing module in school, hence i'm quite new stuff. here's thing, attempted create css drop-down menu i'm not sure why drop-down menu isn't appearing. "display"/"visibility"/"opacity" property in "ul li ul" element causing trouble, or it's thing? /* navigation */ header nav ul { list-style: none; float:right; margin-right: 50px; } nav ul li { position: relative; display: inline-block; float:left; font-family: 'open sans condensed', sans-serif; padding-top: 15px; padding-bottom: 15px; margin-right: -5px; background: #fff; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); } nav ul li a{ color: #000000;; text-decoration: none; -webkit-transition: 0.2s; -moz-transition: 0.2s; -ms-transition: 0.2s; -o-transition: 0.2s; transition: 0.2s; letter-spacing: 2px; font-size: 25px; padding: 15p...

regex - Restrict Access to one of subdomains, excluding a directory with .htaccess & .htpasswd -

i'm have several websites different subdomains. have common .htaccess file. example: sub1.domainname.com sub2.domainname.com sub3.domainname.com exclude.domainname.com sub4.domainname.com ... and restrict access 1 of them, lets exclude.domainname.com . the problem want allow access different static files may served /files folder (ex: exclude.domainname.com/files/images/image.png ). i've fininshed 1 solution, now, when i'm trying access exclude.domainname.com , after entering username , password i'm getting server error message, static files can accessed without restrictions. i appreciate help. perhaps probelm setenvif or general logic . thank in advance. ## password protection & authentification ## authtype basic authname "access protection" authuserfile "/path/to/the/.htpasswd" require valid-user # exclude environments # set env deny access setenvif host ^exclude\.domainname\.com$ ...

javascript - save selected options [<select> values in database -

Image
i need save selected options values in database . in form, need include select options inside input type , have code. <form method="post"> <td>designer order number </td> <td> <div id="ordernumbers"> <select> <option>select order</option> </select> </div> </td> <input type="text" name="duedate" value=""/> <input name="register1" type="submit" id="btnsubmit" value="update" onclick="return updatepayment(); "/> </form> to include select option inside form , tried link1 did't worked me. than i followed below code in mentioned in link2 <form> <td> <div id="ordernumbers"> <input type="text" name="designerorder_id" list="citynames...

pivot table - PivotTables Won't Update excel vba -

what missing?! i've got workbook set link external csv file. there formulas link values in pivot table. if you've got doc open , refresh manually/wait values in pivot tables/formulas update, programmatically stay same (both pivot , resultant formulas)? application.displayalerts = false dim wbk workbook dim pt pivottable set wbk = workbooks.open(filepath, true) each pt in wbk.pivottables pt.refreshtable next pt wbk.worksheets.application.calculate am using wrong kind of refresh? tried adding in wait time, did nothing. calculations set automatic. should refreshing pivot data source rather tables themselves??

database normalization - Decomposition into ABC & CDE and preserving functional dependencies -

consider relation r 5 attributes abcde. assume r decomposed 2 smaller relations abc , cde. define s relation (abc naturaljoin cde). a) assume above decomposition lossless join. dependency guarantees lossless join property. b) give additional fd such “dependency preserving” property violated decomposition. c) give 2 additional fd's preserved decomposition. question seems different me because there no fd given , asking: a) r1=(a,b,c) r2=(c,d,e) r1∩r2 =c (how can control dependency now) f1' = {a->b,a->c,b->c,b->a,c->a,c->b,ab->c,ac->b,bc->a...} f2' = {c->d,c->e,d->e....} then find f' ?? b,c) how check , need possible fd's r1 , r2 the question assuming things hasn't said clearly. abcde subject jd *{abc,cde} while not being subject nontrivial fds @ all. but suppose relation subject fds , isn't subject jds other ones imply. if c ck join lossless. c -> abcde holds, because ck dete...

excel - VBA formula too long, ways to shorten it -

goodafternoon all, currently facing vba issue, "record macro" function work, when try rerun it, gives me 1004 error. recall 3 things: split formula in parts, refer next part in formula (ie part 2= abc+def+ghi, formula 123+3456+ ____, replace ____ part 2) put formula text in different cells, refer cells in formula (formula cell("a1").value(?) + cell("b2").value(?) give parts of code specific name, shorten formula (ie abc = 'input - motc!' refer abc in formula especially part 2 use with, since don't know exact reference, , can @ formula in excel instead of going vba. the formula is: activecell.formular1c1 = _ "=if(weekday(rc2)=6,countifs('input - motc'!c90,""confirmed"",'input - motc'!c101,""1"",'input - motc'!c74,""500"",'input - motc'!c86,""<>c"",'input - motc'!c47,""<""...

python - Use HTTP session in Django Channels -

i have following problem. have django web application , need upload csv files , stream them using django-channels. decided save path of uploaded csv file in http session. from django-channels documentation understood can access http session object inside websocket, using following code returns object not have file path added earlier. @http_session def ws_connect(message): print("connected on data websocket") print(message.http_session.__dict__) group("data").add(message.reply_channel) result of printing http session is: {'modified': false, 'accessed': false, '_sessionbase__session_key': '92zcls0hxqlk1352xwja6tvytjebjfw7', 'serializer': <class 'django.core.signing.jsonserializer'>} my question is, can access http session in websockets? or should consider way of doing this?