Posts

Showing posts from June, 2011

internet explorer - PNG images look a jagged on IE, added bicubic style... no fix -

internet explorer - PNG images look a jagged on IE, added bicubic style... no fix - link: http://www.nationalpaymentcard.com/zipline/ i have completed page whenever load page on ie load issues pngs. importantly cant logo not jagged. fine on browsers except ie. i have tried using -bicubic styles images still no luck. im hoping can help me figure issue. have utilize kraken.io compress images after much compression site still has load issues on mobile browsers , on ie the image big (height 751px) , showing height of 30px, apparently ie isn't other browsers scaling image. try edit image editor (ie gimp) , scale desired size. save bandwith. internet-explorer load png known-issues

javascript - Highcharts: saving canvas image as local file in IE -

javascript - Highcharts: saving canvas image as local file in IE - i'm trying code javascript function takes highcharts image, converts canvas, , downloads file image locally (without going server). my problem ie. tried using mssaveblob blob , msblobbuilder; in first case file downloads content wrong (the image damaged when opened). fist code uses blob/mssaveblob (see jsfiddle, run ie): var image = canvas.todataurl("image/jpeg"); if (navigator.mssaveblob) { homecoming navigator.mssaveblob(new blob([image],{type:"image/jpeg"}),"file23.jpeg"); } second code uses msblobbuilder/mssaveblob doesn't generate file (see jsfiddle, run ie): var image = canvas.todataurl("image/jpeg"); if (window.msblobbuilder) { var bb = new msblobbuilder(); bb.append(image); homecoming navigator.mssaveblob(bb, "file24.jpeg"); } any ideas how create of these work? there preferred method? understand work ie10+

ruby - Why do you need to subtract from size of array? -

ruby - Why do you need to subtract from size of array? - when seek run sec line without subtracting size of array, won't work. why not? values = [10, 9, 11, 2, 45] max_element = values.size - 1 first = values[0] in 0..max_element while first < values[i] first = values[i] end end p "the largest value #{first}" besides methods on enumerable or array such each , for iterator loops on collection of elements? because array indices zero-based, in c or java: values = [10, 9, 11, 2, 45] values.size #=> 5 values[0] #=> 10 (1st element) values[4] #=> 45 (last element) values[5] #=> nil (this beyond lastly item) you can utilize ... (three dots) exclude range's end: for in 0...values.size # ... end furthermore, while should if : if first < values[i] first = values[i] end # or first = values[i] if first < values[i] ruby loops for-loop

ipad - Check for active internet connection throughout the app in ios using Reachability class -

ipad - Check for active internet connection throughout the app in ios using Reachability class - i'm building app required sync offline info server whenever net connection active. if net connection lost in between while pushing info server saved in database , whenever connection active force info server. i'm using new reachability class version: 3.5 apple. per illustration particular view controller can this - (void)viewdidload { [[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(reachabilitychanged:) name:kreachabilitychangednotification object:nil]; self.internetreachability = [reachability reachabilityforinternetconnection]; [self.internetreachability startnotifier]; [self updateinterfacewithreachability:self.internetreachability]; } /*! * called reachability whenever status changes. */ - (void) reachabilitychanged:(nsnotification *)note { reachability* curreach = [note object]; nsparameterassert([curreach is

make - Makefile conditional not respecting target-specific variables -

make - Makefile conditional not respecting target-specific variables - is there way utilize native makefile if-else conditional , have respects target-specific variables re-assignments? example makefile: #!/usr/bin/make config = debug .phony: test printme test: override config=release test: printme @echo "done." printme: ifeq "$(config)" "debug" @echo "should debug -> $(config)" else @echo "should release -> $(config)" endif running make test prints next output: should debug -> release done. the output i'm looking should release -> release how can accomplish that? need utilize shell conditionals instead? this behavior seems logical me: @ time of parsing makefile, config defined debug . ifeq conditional uses value of config knows @ time. hence chooses ifeq branch outputs "should debug". the target-specific variable defined release target test . prerequisite

html - Why big image cat no stay top all thumbnail dog image When test on ie 7? -

html - Why big image cat no stay top all thumbnail dog image When test on ie 7? - why big image cat no remain top thumbnail dog image when test on ie 7 ? i test on other , big image cat remain top of thumbnail dog image, but when test on ie , big image cat not remain top of thumbnail dog image, how can move big image cat remain top of thumbnail dog image on ie ? http://jsfiddle.net/e2hosyoj/ <div style=" float: left; position: relative;"> <span style="position: absolute; left: 0px; z-index: 999;"> <div tyle="left: 99px; opacity: 1;"> <img src="http://www.catchannel.com/images/kitten-older-cat.jpg"> </div> </span> <span style="list-style: none; float: left; margin: 7px; width: 80px;"> <div style=" float: left; height: 80px; "> <img border="0" src="http://www.catchannel.com/images/kitt

add ArrayList to multiple ArrayList in java -

add ArrayList to multiple ArrayList in java - hi have problem arraylists have 3 lists arraylist1<integer>=[1,2,3] arraylist2<integer>=[] arraylist3<arraylist<integer>>=[] arraylist1 elements used adding values arraylist2 example for(int i:arraylist1) { for(int a=0;a<i;a++) { arraylist2.add(a); } } and works fine no problem there want every element in arraylist1 add together arraylist2 arraylist3 have come not work for(int i:arraylist1) { for(int a=0;a<i;a++) { arraylist2.add(a); } arraylist3.add(arraylist2); } simply utilize addall , , collections.fill . example list2.addall(list1); list3 = new arraylist<arraylist<integer>>(list1.size()); collections.fill(list3, list2); note list3 filled same instance of list2 . this means every alter list2 reflected in each element of list3 . if not behavior you're expecting, iterate on length of list1 , add

Split rule of args in main function in Java? -

Split rule of args in main function in Java? - here unusual problem ran into: i create single programme print received args, here code: public class test { public static void main(string[] args) { (int = 0; < args.length; ++) { system.out.println(args[i]); } } } then built jar file of , ran next command: java -jar test.jar test&1 however, didn't print "test&1" expected. result of is: test '1'is not recognized internal or external command,operable programme or batch file. so question is: seperation of args? if need receive "test&1", should do? thanks! it's nil java. & character special windows shell (i can tell it's windows error message): separates 2 commands on 1 line, you're doing telling shell run java -jar test.jar test , run 1 . if want pass test&1 java, you'll have set in quotes: java -jar test.jar "test&1&quo

Send Email Without authentication in java using gmail smtp server and javamail -

Send Email Without authentication in java using gmail smtp server and javamail - i using javamail api , gmail smtp server send mail service in java without giving password. have using below code. here using javax.mail jar file properties props= new properties(); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port", 587); props.put("mail.transport.protocal", "smtps"); //put below false, if no https needed props.put("mail.smtp.starttls.enable", "false"); props.put("mail.smtp.auth", "false"); session session = session.getinstance(props); i getting below error must issue starttls command first. b4sm3005855pdh.2 - gsmtp is there wrong in implementing code? posssible implement without password ? pls 1 help me on this first, name of property "mail.smtp.starttls.enable". second, no, can't send m

python - While-Loop does not work correctly -

python - While-Loop does not work correctly - i little bit confused, i'm trying write script modify cell values in raster. next loop should list coordinates of raster (249x249 cells). unfortunately, variable i not change. i = xminf j = yminf zaehler = 0 while(i < xmaxf): while(j < ymaxf): arcpy.addmessage("check in-while, klappe nr: " + str(zaehler)) zaehler += 1 arcpy.addmessage(str(i) + " " +str(j)) j += cellsizef += cellsizef this output: check in-while, klappe nr: 0 33322321.35 6011434.28 check in-while, klappe nr: 1 33322321.35 6011436.07602 check in-while, klappe nr: 2 33322321.35 6011437.87205 . . . check in-while, klappe nr: 248 33322321.35 6011879.69398 check in-while, klappe nr: 249 33322321.35 6011881.49 so 249 positions in fact 1 column of raster. know why code not work? thanks help! i = xminf zaehler = 0 while(i < xmaxf): j = yminf while(j < ymaxf):

graphics - Is there an equivalent of soft pen in GDI+? -

graphics - Is there an equivalent of soft pen in GDI+? - i need draw soft wide outline gdi+ graphicspath. this: a path border shown in red. i'd utilize wide pen smooth. need ability command smoothness of pen. i tried utilize gradient brush pen couldn't find solution works. i can accomplish desired result drawing outline black solid pen , applying gaussian smoothing filter on top of result image, want avoid because it's slow when have process whole image quite large. is there way draw smooth path outline? there no standard way in gdi+ provides functionality have create it. you track line segments , draw fuzzy, filled circle along segments. drawling fuzzy circle 1 time bitmap should easy , fast blit continuously. blending on time canvas can create nice effect , allow user command intensity , maybe size of circle. graphics gdi+ graphicspath

android - listview not updated baseadapter -

android - listview not updated baseadapter - i working baseadapter. have 2 datetimeformat 09/01/2014 , 09/10/2014.i checked days between there datetimes public string getdatediffstring(date dateone, date datetwo) { long timeone = dateone.gettime(); long timetwo = datetwo.gettime(); long oneday = 1000 * 60 * 60 * 24; long delta = (timetwo - timeone) / oneday; if (delta > 0) { (int = 0; < delta; i++) { } homecoming string.valueof(delta) ; } else { delta *= -1; homecoming string.valueof(delta); } } and wrote funtciton alter there datetimes format 09/01/2014 changed 1 sep public static string dateformatterforlukka(string inputdate,int lenght) { string inputformat = "mm/dd/yyyy"; string outputformat = string.valueof(lenght)+"mmm"; date parsed = null; string outputdate = ""; seek { simpledateformat df_input = new simpledateformat(inpu

python - SQLAlchemy : column name prefixed on the subquery of union_all of 3 tables -

python - SQLAlchemy : column name prefixed on the subquery of union_all of 3 tables - here mssql code snippet cnt = func.count(pvr_svc.ic_idn).label('cnt') x = session.query(pvr_svc.inc_type_md, cnt, cast(pvr_svc.crt_dt,date) .label('crt_dt')) .filter(pvr_svc.inc_type_md.in_(['pm','om','op-hu'])) .group_by(cast(pvr_svc.crt_dt, date), pvr_svc.inc_type_md) y = session.query(pvr_svc.inc_type_md, cnt, cast(pvr_svc.crt_dt,date) .label('crt_dt')) .filter(pvr_svc.gold_idn==2) .group_by(cast(pvr_svc.crt_dt, date), pvr_svc.inc_type_md) and trying is from sqlalchemy import union_all u1 = x.union_all(y) # ----- 1 the column names in "u1" extracted follows >>>[i['name'] in u1.column_descriptions] >>>['inc_type_md', 'cnt', 'crt_dt'] # column names now if want utilize 'u1' in future do >&g

c++ - split a sentence so that adds each word in an array item -

c++ - split a sentence so that adds each word in an array item - i have sentence, want split sentence adds each word in array item. have done next code still wrong. string str = "welcome computer world."; string strwords[5]; short counter = 0; for(short i=0;i<str.length();i++){ strwords[counter] = str[i]; if(str[i] == ' '){ counter++; } } i'm answering since should larn mistakes: utilize += string operator , code work: // strwords[counter] = str[i]; <- alter strwords[counter] += str[i]; <- to remove spaces (if don't want append them) alter order of space check, like: for (short = 0; i<str.length(); i++){ if (str[i] == ' ') counter++; else strwords[counter] += str[i]; } anyway i'm suggesting utilize duplicate link how split string in c++? too c++ arrays split

SQL Server 2012 Full Text Search on RTF -

SQL Server 2012 Full Text Search on RTF - i have database running on sql server 2012. 1 column of table contains rtf text. datatype of column nvarchar(max). i want setup total text search column analyses rtf , searches in real text, don't rtf tags result. as understand, parsing rtf should part of sql server. don't working :-( i did following: create total text catalog select column containing rtf , add together full_text index but still wrong results select * mytable contains(myrtfcolumn,'rtf') --> still columns, 'rtf' keyword any ideas doing wrong? have activate rtf-search sql server or similar? a total text search works on text columns. inserting database binary stuff -> rtf. when have chosen nvarchar told sql server want store text, storing binary stuff. binary stuff utilize varbinary(max) instead. the problem still remain, because index routines don't know how interpret richtext - command chars content. let

fortran - LAPACK inversion routine strangely mixes up all variables -

fortran - LAPACK inversion routine strangely mixes up all variables - i'm programming in fortran , trying utilize dgetri matrix inverter lapack package: http://www.netlib.org/lapack/explore-html/df/da4/dgetri_8f.html but strangely seems messing variables. in simple example, matrix initialised @ origin of programme changes dgetri applied, though dgetri doesn't involve a… can tell me going on? thanks! program solvelinear real(8), dimension(2,2) :: a,ainv real(8),allocatable :: work(:) integer :: info,lwork,i integer,dimension(2) :: ipiv info=0 lwork=10000 allocate(work(lwork)) work=0 ipiv=0 = reshape((/1,-1,3,3/),(/2,2/)) ainv = reshape((/1,-1,3,3/),(/2,2/)) phone call dgetri(2,ainv,2,ipiv,work,lwork,info) print*,"a = " i=1,2 print*,a(i,:) end end programme solve linear this output: = 1.0000000000000000 0.0000000000000000 -1.0000000000000000 0.33333333333333331 you have co

css3 - Select elements by data * attribute in CSS -

css3 - Select elements by data * attribute in CSS - this question has reply here: css selector elements type of info attribute? 1 reply i pretty confident not possible. how can target elements info attribute. tr[data-*] //target data's neither docs on attribute selectors, or docs on info attributes gives illustration or clue feature this. instead splicitly states attribute selector composed by [attr=value] [attr] represents element attribute name of attr. with variants in equality comparision (such "starts with", "ends with", etc) value, never on attr name. so, if aim add together custom cursor every data-something element, you'd need different approach, maybe giving them specific classes. css css3

activiti - activity: how to know if an execution is linked to an instance of (sub)process? -

activiti - activity: how to know if an execution is linked to an instance of (sub)process? - i'm trying out simple scenario: process 1 has 2 tasks (task -> task b) process 2 has 1 "call activity" block (calling process 1). so, started process 2. , goes straight state have 2 executions: the 1 straight maps instance of process 2. let's say: 123 the 1 associated "call activity". let's say: 456 the question is: how find task process 1 at? (it should task a). well, can rest queries: first query executions belong process 2: runtime/executions?processinstanceid=123 here get: [{id: 123}, {id: 456, activityid: "calling_subproc"}] well, know 456 execution of sub process, next query is: runtime/process-instances?superprocessinstanceid=123&includeprocessvariables=true here get: [{id: 789, activityid: "task 1"}] but..., can because know sub-process, designed model. ... otherwise, how programme (ignorant of

knockout.js - Cannot Init Late Binding Knockout -

knockout.js - Cannot Init Late Binding Knockout - i have main view model has sub models these used on same page. want load hidden sub view when button click. bu it's not working that: function mainviewmodel() { var self = this; self.modulein = createsubviewmodel(moduleviewmodel); self.module1 = ko.observable(); // module loaded after menu click self.loadmodule1 = function() { // create first effort if (typeof self.module1 == 'function') { self.module1 = createsubviewmodel(module1viewmodel); } } } ko.applybindings(new mainviewmodel); here action button <div data-bind="click: loadmodule1.bind($data)">module 1</div> my goal fill view, no alter in it? <div data-bind="with: module1"> ... </div> module1 observable have set appropriately, overriding it. function mainviewmodel() { var self = this

ios - Updating a value in an NSMutable Array -

ios - Updating a value in an NSMutable Array - i trying update specific key in nsmutablearray . array called listfortable , trying update key statusreport. there 4 objects in array. trying update first.the next causing error: [listfortable replaceobjectatindex:[[listfortable objectatindex:0] objectforkey:@"statusreport"] withobject:@"no edits"]; the array created in next way: [listfortable addobject:[nsdictionary dictionarywithobjectsandkeys: itemname, @"itemname", @"", @"statusreport", nil]]; can explain why? the error message is: *** terminating app due uncaught exception 'nsrangeexception', reason: '*** -[__nsarraym replaceobjectatindex:withobject:]: index 1087320 beyond bounds [0 .. 3]' *** first throw phone call stack: (0x2c57df87 0x39f1ac77 0x2c49b331 0xbe9bb 0x2f9fc86d 0x2f9fc5dd 0x300511f7 0x2fcc5b51 0x2fcdd933 0x2fcdf8cb 0x2fadc615 0xab051 0x2fa2d497 0x2fa2d439 0x2fa1804d 0x2fa2ce69 0x2f

javascript - Run client socket.io on terminal -

javascript - Run client socket.io on terminal - i searching if there way run node.js & socket.io client on terminal. goal both client & server run on terminal. work in webpage no in terminal, ideas? you utilize phantomjs run headless browser on terminal , have javascript socket.io client in page loaded phantomjs. javascript node.js socket.io

calendar - weekly Calender in android as horizontal listview -

calendar - weekly Calender in android as horizontal listview - i'm new android , have create calender weekly in horizontal list view can help me out situation. have code monthly view not weekly. android calendar weekday

apache - while stress test, all requests goes to only 1 node -

apache - while stress test, all requests goes to only 1 node - kindly need help me in weird issue facing. deploying web application on jboss eap 6. configured 2 jboss nodes on same machine ( server 1 - server 2 ) , configured them become cluster environment. configured apache mod_cluster work load balancer. when tried test environment different machines phone call application, worked fine, 2 nodes worked , load evenly distributed on 2 nodes. problem occured when started using microsoft visual studio 2012 web load, simulates concurrent request application. noticed requests recieved 1 node while other nodes stays idle !. tried problem shooting editing standalone-ha.xml in both nodes , edited next lines class="snippet-code-html lang-html prettyprint-override"> <subsystem xmlns="urn:jboss:domain:modcluster:1.1"> <mod-cluster-config advertise-socket="modcluster" connector="ajp"> <simple-load-provider

c++ - Debug without debugger -

c++ - Debug without debugger - i've come across question in ubisoft test give admit students of courses. i'm giving question on paper, don't blame me if it's vague. name 2 ways solve crash without debugger. thinking it print statements c++ debugging

ios - Swift error about consecutive declarations on a line -

ios - Swift error about consecutive declarations on a line - i don't understand what's wrong code in view controller, bottom line (with single } bracket) keeps getting 2 errors, 1 states "consecutive declarations on line must separated ';'" , "expected declaration". when add together semicolon directs me still says expected declaration error....but what? can find wrong it? import uikit class viewcontroller: uiviewcontroller { override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. var testobject = pfobject(classname:"testobject") testobject["foo"] = "bar" testobject.saveinbackgroundwithtarget(nil, selector: nil) var votecount = pfobject(classname:"votecount") votecount["votes"] = 0 votecount["optionname"] = "crepes" votecount.incrementkey("votes") votecount.saveeventually

android - Handle result from share application -

android - Handle result from share application - i writing application share info sharing applications such facebook, twitter, google+, whatsapp. launching chooser dialog using action_send intent in android list share applications , allow take whichever application user want share. getting 0 result in onactivityresult() callback. know whether info shared or not , need maintain track of total share count. googled lot , everywhere mentioned there no way handle result action_send intent. please help me how can accomplish this?. @ to the lowest degree need know whether share successful or not?. android share

session - Stateless with cookie vs statefull -

session - Stateless with cookie vs statefull - i found sth this: "stateful – maintain track of stored info used current transaction. stateless – every transaction performed if beingness done first time. there no stored info used current transaction. in purely stateless environment wouldn’t need session id. each request contain info server need process. many applications need maintain state maintain track of whether or not session authenticated view content or maintain track of user doing. wouldn’t want send user credentials on wire each request." i'm quite confuse. if stateless session cookie maintain state it's mean that: stateless session cookie= session stateful ? another think. found info session stateless client side session , stateful server side session. how can discuss client side session if stateless session not maintain session ? every answers. in purely stateless environment dont need sessions or cookies. both sessions , cook

java - How to add a Sliding Drawer in my mobile messaging Android app? -

java - How to add a Sliding Drawer in my mobile messaging Android app? - i'm new in android development. developer asking huge money rs. 40,000 add together "sliding drawer" in mobile messaging app, still developed himself. i've shoe-string budget. can pls help me add together 1 "sliding drawer" in app. i'm much fascinated "sliding drawer" of gaana app. here official guide on how implement navigation drawer: creating navigation drawer java android eclipse mobile

iphone - How to prevent alertview from rotating on IOS 8 orientation change -

iphone - How to prevent alertview from rotating on IOS 8 orientation change - i making application ios 8 platform using cordova & xcode 6. installed cordova plugin called [org.apache.cordova.dialogs]. app meant work in portrait mode. problem facing is, when device rotated, app stays portrait , alertview rotates. works fine ios 7. there way solve issue. help appreciated. thanks you need set <preference name="orientation" value="portrait" /> in config.xml , should sort it, tell os not allow part of app rotate landscape. iphone cordova ios8 uialertview

jquery - access specific data from fetched json file -

jquery - access specific data from fetched json file - hi i'm new frontend development, have fetched json info , added html list <li> items problem when click on list format json want specific info that particular link clicked logged console window. class="snippet-code-js lang-js prettyprint-override"> var data1={"users":[ { "deptime":"21:30", "arrival":"23:30", "duration":"1h 45m", "price":"2,400", "planename":"auditore", "stops":"non-stop", "image":"indiago" }, { "deptime":"21:30", "arrival":"23:30", "duration":"1h 45m", "price":"2,400", "planename":"auditore", "stops":"non-stop", "image":"indiag

java - Error while starting GoldFish server: Ubuntu 13.10 -

java - Error while starting GoldFish server: Ubuntu 13.10 - i consulted here , here not problem solved. when type on terminal /opt/glassfish4/glassfish/bin/asadmin start , next result: remote server not hear requests on [localhost:4848]. server up? unable remote commands. closest matching local command(s): restart-domain restart-local-instance start-database start-domain start-local-instance command start failed. similarly, when type /opt/glassfish4/glassfish/bin/asadmin --port 5656 start-domain , get java.io.ioexception: couldn't lock /opt/glassfish4/glassfish/domains/domain1/logs/server.log @ java.util.logging.filehandler.openfiles(filehandler.java:389) @ java.util.logging.filehandler.<init>(filehandler.java:287) @ com.sun.enterprise.admin.launcher.gflauncherlogger.addlogfilehandler(gflauncherlogger.java:98) @ com.sun.enterprise.admin.launcher.gflauncher.setup(gflauncher.java:191) @ com.sun.enterprise.admin.server

api - Testing async POST requests that go into queue to be processed with JMeter -

api - Testing async POST requests that go into queue to be processed with JMeter - using jmeter attempting load test async post requests. 1 time request gets made, mongodb documents gets set worker farm queue processed. not want thread move forwards until queue gets processed. there way wait status of complete. my thread steps this. log in create event (post) add video event (post) process event (async post) "this request puts video in queue processing, can on event , see status of video "status" : "encoding" or "status" : "ready"." watch video (get) delete event (delete) i tried adding while controller in thread maintain checking event status , move out if status ready didn't seem work loops 3 times , did nothing, may using wrong though. this while controller looks like. while controller w/ status ${__javascript(${status}!="ready")} event status http header manager json path extra

javascript - Add Series value in legend for pie charts -

javascript - Add Series value in legend for pie charts - using highcharts.js - want add together series value legend , don't think need utilize label formatting function ( tried using ). here code have unable see charts below code. pretty sure doing little mistake. can please point out doing mistake. $(function () { $(document).ready(function () { // build chart $('#container').highcharts({ chart: { plotbackgroundcolor: null, plotborderwidth: null, plotshadow: false }, title: { text: 'browser market shares @ specific website, 2014' }, tooltip: { pointformat: '{series.name}: <b>{point.percentage:.1f}%</b>' }, plotoptions: { pie: { allowpointselect: true, cursor: 'pointer', datalabels: { enabled: false },

yodlee - getMFAResponseForSite stop working -

yodlee - getMFAResponseForSite stop working - today integration tests started fail because after 15 attempts delay 5 sec phone call getmfaresponseforsite i've received next response { "ismessageavailable": false, "timeouttime": 0, "itemid": 0, "memsiteaccid": 10040168, "retry": true } test log: [site]: siteid: '12287' name: 'anz (new zealand)' url: 'http://www.anz.co.nz/' siteaccid: 10040168 mfarefresh started... [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 0 [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 1 [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 2 [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 3 [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 4 [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 5 [getmfaresponse] errorcode: , ismessageavailable: false, retryno: 6 [getmfaresp

html - How to update a form dropdown menu with PHP? -

html - How to update a form dropdown menu with PHP? - i have been trying update form's dropdown menu list of entries have in database. database has been created mysql. have been looking solution over, , not sure why, none has worked. latest version have used this: <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>untitled document</title> </head> <body> <form method="post" action="submitrequest.php"> staff id: <br> <input type="text" name="stfid" value=""> <br><br> e-mail: <br> <input type="text" name="email" > <br><br> select choice: <br> <select name="choice" value="select" size="1"> <?php $server= '*******'; $user = '*******'; $password

How to decrypt sys.fn_sqlvarbasetostr MD5, SQL Server 2008 -

How to decrypt sys.fn_sqlvarbasetostr MD5, SQL Server 2008 - have day everybody, i'm working sql server 2008, developing simple login. i'm encrypting password funtion substring(sys.fn_sqlvarbasetostr(hashbytes('md5', @cont)),3,32) it's work perfect, if set pass = 123 homecoming 202cb962ac59075b964b07152d234b70, need know how decrypt , homecoming 1 time again 123 i hope can help me, thanks md5 hash, identifier of value, might or might not contain actual data. sql-server sql-server-2008 encryption

r - Stuck with a 2 data frames row copy -

r - Stuck with a 2 data frames row copy - i have decided larn r , going through introduction scientific programming in r book (http://www.ms.unimelb.edu.au/spurs/) i stuck on chapter 7 question 3 of book, question is: consider next simple genetic model. population consists of equal numbers of 2 sexes: male , female. @ each generation men , women paired @ random, , each pair produces 2 offspring, 1 male , 1 female. interested in distribution of height 1 generation next. suppose height of both children average of height of parents, how distribution of height alter across generations? represent heights of current generation dataframe 2 variables, m , f, 2 sexes. command rnorm(100, 160, 20) generate vector of length 100, according normal distribution mean 160 , standard deviation 20 (see section 16.5.1). utilize randomly generate population @ generation 1: pop <- data.frame(m = rnorm(100, 160, 20), f = rnorm(100, 160, 20)) the command sample(x, size = length(x)) ho

vb.net - String Padding not producing desired even alignment -

vb.net - String Padding not producing desired even alignment - my desired end result alter strings (used in message box) from... kiwi: greenish orange: orange ...to... kiwi: greenish orange: orange applying padright() first column (e.g. "kiwi:" ) almost works, however, default font, microsoft sans serif, doesn't have evenly spaced characters sec "column" isn't applied. does there exist prepare aligning sec "column"? other attempted solutions: i haven't been able figure out how alter font (i.e. character width font) of message box though undesirable in inconsistent rest of application. programmatically generating list view or grid view container in programmatically generated dialog box seems long-winded. i'm hoping simpler alternative. if constructing own messagebox seems bit excessive, seek this: messagebox.show(string.format("kiwi:{0}green{1}orange:{0}orange", vbtab, vbnewline))

apache - redirect a domain with http to different domain with https -

apache - redirect a domain with http to different domain with https - i have question regards redirecting domain http different domain https. have installed ssl certificate on domain www.some.com ( isn't wildcard, right www, , without on domain ), if go on https://www.some.com or http://www.some.com work correctly, request redirected https://www.some.com . then have bought other domain, example, test.org, if want redirect domain https://some.com browser alert me ssl certificate valid some.com . correct rewrite status have inserted was: rewritecond %{http_host} ^test\.org$ [or] rewritecond %{http_host} ^www\.test\.org$ rewriterule ^/?$ "http\:\/\/some\.com\/" [r=301,l] how can solve this? you can utilize that: rewritecond %{http_host} ^(www\.)?test\.org$ rewriterule ^/?$ http://some.com/ [r=301,l] or final url (test.org/xxxx/yyy...) rewriterule ^/?(.*)$ http://some.com/$1 [r=301,l] but, don't know problem, or error...

Dynamic Nodes and relationship creation in Neo4j -

Dynamic Nodes and relationship creation in Neo4j - i storing hierarchy info in neo4j. want store history of node. consider have label called grouping , before name "marketing" has been changed "market123". want create new node name market123 , create relationship other connected node same older node named "marketing"... want dynamically instead of passing other nodes name , relationship value in cypher query. please suggest me how can done. you can add together versioning graph nodes. here graph gist time-based versioning may adapt needs. http://www.neo4j.org/graphgist?608bf0701e3306a23e77 neo4j

maven-compiler-plugin does not do annotation processing when fork=true is specified? -

maven-compiler-plugin does not do annotation processing when fork=true is specified? - i'm using maven-compiler-plugin in maven project perform annotation processing on code. working until added <fork>true</fork> configuration option. the pom.xml file has following: class="lang-xml prettyprint-override"> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>2.5.1</version> <dependencies> <!-- add together dependency on annotation processor --> <dependency> <groupid>x.y.z</groupid> <artifactid>my-processor</artifactid> <version>1.0</version> </dependency> </dependencies> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> the my-processor-1.0.jar file conta