Posts

java - Error:Content is not allowed in prolog2.0 -

Image
when go make build project in android studio ,i found problem > new android studio ,pleas me! the error> error:content not allowed in prolog.

Netbeans Screen is too tiny -

Image
i installed netbeans, , when changed theme dracula, whole appearance changed tiny window. how change normal size?

spotify - Automate\Control Spofity remotely -

i looking way automate spotify, either through controlling desktop application or through api allow me access data directly. wanting send commands control play of music. know can through web automation, there other ways this. you can use spotify connect api control playback on spotify. can read more them here , documentation here .

python - django with apache - website doesn't show properly -

Image
i try handle website running on apache redirected django (wsgi). after full day of looking online able restart apache , achieve that: website: and default-ssl.conf: https://jpst.it/13qru any appreciated!

html - Get value from input and store it to the object Javascript -

how can value input , store object? when button clicked value input - should stored in object. thank lot in advance var testobject = { 'name': nameofbook.value, 'author': nameofauthor.value, 'year': year.value }; console.log(testobject); <input type="text" id="nameofbook" required="" placeholder="book name" /> <input type="text" id="nameofauthor" required="" placeholder="athor name" /> <input type="text" id="year" required="" placeholder="add year" /> <button id="addder" type="button">storeemail</button> here's working jsfiddle you. the relevant js code here. using id tags on html elements, got of elements , stored them variables. next, added event listener on button, , on click,...

function - onmouseover Event in For Loop JavaScript Supplies Incorrect Arguments -

this question has answer here: javascript closure inside loops – simple practical example 31 answers so, have loop , array. in each of elements in array buttons, want have onmouseover event. note: code simplified make point. for(i = 0; < array.length; i++){ var button = document.createelement("button"); button.onmouseover = function() {dosomething(i)}; } where dosomething accepts 1 parameter, i . when cursor hover on of butttons, argument supplied dosomething - i , length of array , regardless of button cursor hovering over. why happen, , can ensure correct arguments supplied function? you binding variable, not value. i.e. have created closure in functions utilize same variable i , not new variable value of i . what need lock in value , 1 way can create function generator , invoke current value of i . e.g. for(i = 0; <...

sql - Is there a nesting limit for `and` `or` in MySQL? -

here code understand question: select * table1 ((((field1=value1 , field2=value2) or field3=value3) , field4=value4) or field5=value5) ... the parse tree composed of and or . there nesting limit parse tree in mysql?