Posts

javascript - JQuery append() adding quotes and newlines and I don't know why -

i have append statement adds single character @ time span. (the characters pulled string treating array: text[i] , such.) feel should giving me this: <span id="outputid0">text</span> but instead it's giving me this: <span id="outputid0"> "t" "e" "x" "t" </span> i guess makes sense, , not real problem @ moment, bit awkward-looking , i'm not sure why it's happening. can explain 1 me? edit: here's link jsfiddle , showing example of talking about. thank ᾠῗᵲᄐᶌ, seems have diagnosed , solved problem fine without that. if else see it, there is. append adds child node after last child node each character going text node , why separated if want add character @ time you're better off taking whats there , concatenating char string that's there you can using jquery's .text(function(){}) function // = index , v = current text value $('#outputid0...

python - "No such file" error when running an autoscript -

i working on project suppose open during start of raspberry pi. can open several other scripts on start up, script trying open during start not open. note : code works when run through idle, not work when test through lx terminal. when test script under auto run script gives me error. another note : image files in same folder script. here code: from tkinter import * pil import image, imagetk random import randint import rpi.gpio gpio root = tk() root.overrideredirect(true) root.geometry("1920x1080+0+0") image=image.open('bikebackground.png') background_image = imagetk.photoimage(image) background_label = label(root, image=background_image) background_label.place(x=0, y=0, relwidth=1, relheight=1) speed = 4 class biker(label): def __init__(self, master, filename): im = image.open(filename) seq = [] try: while 1: seq.append(im.copy()) im.seek(len(seq)) # skip next frame except eoferror: pass # we...

Declare an array in Fortran with the name of a parameter in another module -

i'm pretty new in fortran world. piece of code, find difficulty in understanding it. let's in module a, var declared parameter of integer type: integer, parameter :: var = 81 then in module b, array name var declared: integer :: var(2) when these modules used in third module c: use use b won't there conflict in names? or 2 members of array var take value 81? there compile time error when attempt access variable var in described case. specific error like: error: name 'var' @ (1) ambiguous reference 'var' module 'a' are variables meant globally scoped? can declare 1 (or both) of them private scoped module , not pollute global scope. in case though, module c not able use private variable. option limit imported in use statement with: use a, only: some_variable1, some_other_variable use b, only: var this let var b scope of c, , hide var a. if have have both variables in module c, can rename 1 when use modu...

java - creating array of objects -

i try create array object stock, wrote code create stock object s , add array. private stock s = new stock("name", "price", 22); stock[] d =new stock[2]; d[0]= s; d[1]= s; i these errors : ']' expected d[0]= s; illegal start of type d[0]= s; if you're outside method, you'll need initializer block (or use constructor) - private stock s = new stock("name", "price", 22); private stock[] d = new stock[2]; { d[0] = s; d[1] = s; } if you're inside method, can - stock s = new stock("name", "price", 22); stock[] d = new stock[2]; d[0] = s; d[1] = s; // stock[] d = new stock[] { s, s }; // <-- or

Mathematical and special characters on mysql -

i need mysql database accept characters following: ≈ ≅ ≆ ≠ ⊂ ⊃ ⊄ ⊅ ⊆ ⊇ ⊈ ⊉ ⋅ ∥ ∣ √ ∛ ∜ ∞ ∓ ± ∑ ∌ ∋ ∈ ∉ ∅ ∃ ∄ ∀ ∁ ∩ ∪ ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁿ ⁺ ⁻ ⁼ ⁽ ⁾ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎ → ← ↔ ↚ ↛ ⇆ ⇋ ⇌ Γ Δ Θ Λ Π Φ Ω α β γ δ ε η θ λ μ ℳ π ρ σ τ φ Ϙ ϙ Ϝ ϝ Ϻ ϻ ϼ Τ does know how achieve it? [edit]: tried using utf-8: alter schema `acessoed_portal_student` default character set utf8 collate utf8_general_ci; alter table `question` default character set utf8 collate utf8_general_ci; alter table `question` change `description` `description` text character set utf8 collate utf8_general_ci; alter table `question_response` default character set utf8 collate utf8_general_ci; alter table `question_response` change `description_response` `description_response` text character set utf8 collate utf8_general_ci; what html encoding? can write symbol corresponding escape sequence example ∞ infinite symbol.

Oracle external tables -

i'm struggling oracle external table, although researched oracle forums. still, no success. let's suppose have simple table describe products name null type ------------------------------ -------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- id not null number name varchar2(30) ...

android - FB.Event.subscribe does not work when click fb like or unclick -

i fb or unlike event in android . fb.event.subscribe method not fire . strange because javascript code work on https://developers.facebook.com/tools/javascript-console/ not application. know question ask other people . still problem. try many condition , not work. how can solve it. here webview code.. <div id="fb-root"></div> <script> window.fbasyncinit = function() { fb.init({ appid : '578995225546624', status : true, xfbml : true }); fb.event.subscribe('edge.create', function(response) { var likeflag = "1"; alert('you liked url: ' + response); android.showtoast(likeflag); } ); fb.event.subscribe('edge.remove', function(response) { var likeflag = "0"; alert('you unliked url: ' + response); android.showtoast(likeflag); } ); }; (function(d, s, id) { var js, fjs = d.getelementsbytagname(s)[0]; if (d.getelementbyid(id)) re...