Posts

Showing posts from September, 2014

javascript - Super div set value -

main code: <div is="superdiv"> </div> superdiv_prototype.createdcallback = function(){ this.innerhtml = "init value"; } //register element but can not work. any 1 can me? your missed prototype statement superdiv_prototype.prototype.createdcallback = function(){ this.innerhtml = "init value"; }

osx - Storing keyboard Input in x64 assembly (Mac OS/X) -

i have been trying time number keyboard , comparing value on stack. if correct print "hello world!" , if incorrect, should print out "nope!". however, happens no matter input "jne" called, nope printed, , segfault. perhaps 1 of lend hand. .section __data,__data str: .asciz "hello world!\n" sto: .asciz "nope!\n" .section __text,__text .globl _main _main: push %rbp mov %rsp,%rbp sub $0x20, %rsp movl $0x0, -0x4(%rbp) movl $0x2, -0x8(%rbp) movl $0x2000003, %eax mov $0, %edi subq $0x4, %rsi movq %rsi, %rcx syscall cmp -0x8(%rbp), %edx je l1 jne l2 xor %rbx, %rbx xor %rax, %rax movl $0x2000001, %eax syscall l1: xor %rax, %rax movl $0x2000004, %eax movl $1, %edi movq str@gotpcrel(%rip), %rsi movq $14, %rdx syscall ret l2: xor %eax, %eax movl $0x2000004, %eax

java - Android XML Generating NoSuchFieldError -

i updated build.gradle of latest android appcompat libraries , receiving below error message. appears related material design don't understand causing error: 04-18 20:35:57.227 2018-2018/com.sourcey.materialloginexample e/androidruntime: fatal exception: main process: com.sourcey.materialloginexample, pid: 2018 java.lang.nosuchfielderror: no static field abc_ic_ab_back_material of type in class landroid/support/v7/appcompat/r$drawable; or superclasses (declaration of 'android.support.v7.appcompat.r$drawable' appears in /data/data/com.sourcey.materialloginexample/files/instant-run/dex/slice-slice_4-classes.dex) @ android.support.v7.widget.toolbarwidgetwrapper.<init>(toolbarwidgetwrapper.java:91)

How does Acumatica calculate LastDateTimeModified -

i have noticed retrieving lastdatetimemodified (through webservice api) acumatica gives me date , time in different time zone - guessing gmt time. however when view through generic inquiry seems showing correct time - based on time zone set in user profile. is there way lastdatetimemodified in correct time zone when retrieving web service api. have attempted changing time zone sdk user no success thanks, g for screens, except few crm screens, lastdatetimemodified , createddatetime stored in same time zone database server machine. when reading using web services, retrieving raw value form database, no timezone conversion. convert desired timezone. the help->audit history panel manual conversion current user time zone. have not been able generic inquiry show time mention in question; showing date.

python - Writing Lines to a Different File -

i reading content file (scores.txt) , have formatted data need , write lines new file. new file writing top_scores.txt. below code desired output. not entirely sure how print file. infile = open('scores.txt', 'r') linelist = sorted(infile.readlines()) lines in linelist: newline = lines.replace('\n', '') splitlines = newline.split(',') studentnames = splitlines[0] studentscores = splitlines[1:] studentslist = [] in studentscores: studentslist.append(int(i)) topscore = max(studentslist) print(studentnames.capitalize() + ': ', studentslist, 'max score =', int(topscore)) sample scores.txt: pmas,95,72,77,84,86,81,74,\n sample desired input new file: pmas: [95,72,77,84,86,81,74], max score = 95\n here correct way achieve want : with open("scores.txt", 'r') infile, open("top_score.txt", 'w') outfile, open("top_score2.txt&quo

App built with xCode 7.3 won't install on iPhone 4/iOS 7.3.1 -

i have app built , deployed app store xcode 7.3, not install on iphone 4 ios 7.1. supported architectures arm64, armv7, armv7s , ios deployment target set ios 5.1.1. any ideas other settings affect ability of app installed on iphone 4/ios 7.1 when built xcode 7.3. previous versions built xcode 6 worked ok. ok turns out app installing crashing on startup due use of api not supported in older ios 7.1 maximum ios version can upgraded on iphone 4. invalid method being used nsstring contains: one challenge testing on iphone 4 devices testflight doesn't install on devices (testflight needs ios 8.0+) , xcode 7.3 doesn't support download of ios 7.1 simulator build. manual install onto physical device required reproduce.

php - XAMPP - SELECT command denied to user ''@'localhost' for table 'users' -

awhile deleted , messed around functions in xampp. i reinstalled , moved/renamed folder other files have new xampp directory that's empty , fresh. but when try use database functionality gives me error(s) 1 below: select command denied user ''@'localhost' table 'users' what's wrong? thanks. the user has not been given privileges read tables. when creating user database through cpanel of host, can give user privileges. or read documentation through mysql command, http://dev.mysql.com/doc/refman/5.1/en/grant.html

Coding Raspberry Pi with an ADC - SPI -

i trying connect analogue digital converter raspberry pi. far able understand, rpi doesn't support bi-directional spi mode. adc using says spi compatible has inputs sclk, cnv , outputs clkout+ , clkout- , sd0+ , sd0-. leads me understand work bi-directional spi there serial data out. thinking of using pwm cnv (which think ce), gpio clock sclk , interrupt on falling edge of gpio clock digitally read each bit adc. don't understand spi in detail i've read quite requires sending data in order receive it. know if setup mentioned (without using spi) work? or missing spi , adc work while not in bi-directional mode? we using raspberry pi 3 b adc - http://cds.linear.com/docs/en/datasheet/232316fa.pdf thanks can provide. read data sheet carefully, in particular pages 8 , 9. suggest tie cmos/lvds pin ground enable cmos mode. use "+"-pins. use sck spi clock, sd01+ spi data input rpi. connect gpio pin cnv. observe rpi runs @ 3.3v, , adc's max rating 3v3,

webpack - After updating node getting error MethodNotAllowedError -

after updating node m getting error: {"code":"methodnotallowederror","message":"get not allowed"} node version@ 4.4.3 webpack version@ 1.13.0 webpack-dev-server version@ 1.14.0 os window 8

dataset - Conditional Prob in R -

i have large data set having more 45 categories of drugs. how find out conditional probability of category ab given ac there every id. 1, 2,3, etc., unique ids. my dataset looks like id1.ab ad ac fg ab dc gm ac id2.ab ac dg gm id3.ab dg gm ac can in r. tried using prob function in r giving me error. ps: categories not consecutive. considering each category unique every id irrespective of no of times appears. i may confused looking for, simple conditional probability seems following: # create dataset mystring = c("ad", "ac", "bd", "dc") k = null for(i in 1:45){ samp = sample(mystring, 3, replace = t) k = c(k,paste(samp, collapse = " ") ) } st = data.frame(1:45, k, stringsasfactors = f) library(stringr) # number of strings contain both groups or # occurances of intersection alpha = str_detect(st[,2],"ac") & str_detect(st[,2],"ad") # occurances of ac beta = str_detect(st[,2], "

sitecore8 - Sitecore - How to remove a Profile Card assigned to an Item? -

Image
how remove (customized) profile card assigned sitecore item? easy way, delete it: you should click on profile , set values 0 complex way, understand how saved: enable "raw values" , "standard fields" checkboxes on "view" tab find "advanced" section "tracking" field this field xml able remove required "profile"node

Failed to load the LayoutLib: com/android/layoutlib/bridge/Bridge : Unsupported major.minor version 52.0 -

Image
org.jetbrains.android.uipreview.renderingexception: failed load layoutlib: com/android/layoutlib/bridge/bridge : unsupported major.minor version 52.0 @ org.jetbrains.android.uipreview.layoutlibraryloader.load(layoutlibraryloader.java:90) @ org.jetbrains.android.sdk.androidtargetdata.getlayoutlibrary(androidtargetdata.java:180) @ com.android.tools.idea.rendering.renderservice.createtask(renderservice.java:164) @ com.intellij.android.designer.designsurface.androiddesignereditorpanel$7.run(androiddesignereditorpanel.java:514) @ com.intellij.util.ui.update.mergingupdatequeue.execute(mergingupdatequeue.java:337) @ com.intellij.util.ui.update.mergingupdatequeue.execute(mergingupdatequeue.java:327) @ com.intellij.util.ui.update.mergingupdatequeue$3.run(mergingupdatequeue.java:271) @ com.intellij.util.ui.update.mergingupdatequeue.flush(mergingupdatequeue.java:286) @ com.intellij.util.ui.update.mergingupdatequeue.flush(mergingupdatequeue.java:244) @ com.intellij.util.ui.update.

python - I have a defined variable but the code says it is not defined -

enter image description here i trying add option tell player if have won or loss in frame. your function guess() declared inside function, main scope doesn't recognize it. must implement functions in main scope.

database - Command for granting Access on MySQL -

what command granting access mysql database new users want connect? consider statement: create user 'java'@'localhost' identified 'password'; grant on javabase.* 'java'@'localhost' identified 'password'; here localhost able connect database. can write '*' instead of 'localhost' ? grant on javabase.* 'java'@'%' identified 'password'; work hosts

How to close all the open application on windows using java? -

i have made package of exe installer of following code close open application on windows platform. exe working fine on machine on written i.e. windows 8.1 pro (32 bit os / x64 based processor) same exe not working on windows 7 or different machine. try { string line; process p = runtime.getruntime().exec("tasklist.exe"); runtime rt = runtime.getruntime(); bufferedreader input = new bufferedreader(new inputstreamreader(p.getinputstream())); while ((line = input.readline()) != null) { if (line.tolowercase().contains(".exe".tolowercase()) && line.tolowercase().contains("console".tolowercase())) { system.out.println(line); string pocesskill = line.substring(0, line.indexof(".exe")); pocesskill = pocesskill + ".exe"; if (pocesskill.equalsignorecase("netbeans.exe"

c - How to distinguish zero from very small number in floating-form -

i develop scientific calculator. question is: how can distinguish 0 result small numbers using float number? for example, 0.3 - 0.2 - 0.1, result 1e-19, not pure 0 (precision problem, of course). want print out result (0.0). use epsilon comparison zero. the problem is, calculation: 3e-19 - 2e-19 result should 1e-19. should print out result (though small) 1e-19. if still use epsilon comparison, result forced zero. so, again, question is: how can check 0 , small numbers? this inherently not possible if use binary floating point datatype. instead, if want precise control on numeric precision , rounding, should use decimal number library, example gnu multiprecision (gmp) or boost.multiprecision .

python - Cannot click on Login using Appium ,Can click manually -

appium 1.5.0 xcode 7.3 ios 10.11.4 osx ei capitan using on:simulator ios 8.1 facing strange issue.i can click via touchpad not through appium . appium logs: [debug] [instruments] [inst] 2016-04-19 04:30:54 +0000 debug: got new command 14 instruments: au.tapbyid('3') [debug] [instruments] [inst] 2016-04-19 04:30:54 +0000 debug: evaluating au.tapbyid('3') [debug] [instruments] [inst] 2016-04-19 04:30:54 +0000 debug: uiabutton.tap() [debug] [instruments] [inst] 2016-04-19 04:30:54 +0000 debug: uiabutton.scrolltovisible() [ioslog] [ios_syslog_row] apr 19 10:00:54 macbook.local securityd[29291]: sectaskcopyaccessgroups no keychain access group specified whilst running in simulator, falling default set [ioslog] [ios_syslog_row] apr 19 10:00:54 macbook.local tt mobile[29305]: *** -[nskeyedunarchiver initforreadingwithdata:]: data empty; did forget send -finishencoding nskeyedarchiver? [ioslog] [ios_syslog_row] apr 19 10:00:54 macbook.local securityd[29291]: sectas

javascript - Rotating a group of objects while keeping their orientation intact -

basically have container object 'children' modified relative parent, , want rotate of objects changing parent's rotation value, while keeping orientation of individual children stable. (as in, rotate whole object) feel i'm not explaining well, here 2 examples. physicsjs: http://wellcaffeinated.net/physicsjs/ (see first example, 0.7 , balls -- notice how when 0 or 7 rotated after collision overall shape of object maintained. same goes example in phaserjs ( http://phaser.io/examples/v2/groups/group-transform-rotate ) robot. now, see if could, tried duplicate aforementioned physicsjs example own library -- https://jsfiddle.net/khanfused/r4lgl5y9/ (simplified brevity) art.prototype.modules.display.rectangle.prototype.draw = function() { // initialize variables. var g = art.prototype.modules.display.rectangle.core.graphics, t = this; // execute drawing commands. g.save(); g.translate(t.parent.x ? t.parent.x + t.x : t.x, t.parent.y ? t.parent.y + t.y

SQL Server join table -

i have sql server database 2 tables below. first 1 called "goal_group" , second 1 called "goal".(original tables has fields more this). every goal has goal group. 2 tables linked (have foreign key) ggid. **table goal group** ggid | ggname | ggdescription 1 operational operational description 2 development development description **table goal** gid | gname | ggid 1 test1 1 2 test2 1 3 test2 1 4 test2 1 i want create view display goal goal groups. view should below. **final view** gid | gname | ggid | ggname but though goal table doesn't have row ggid of 2, want have row in view goal group of ggid=2 null values othe fields. when create view left join below, select b.gid, b.gname, a.ggid, a.ggname goal_group left join goal b on a.ggid=b.ggid it doesn't give me row ggid of 2. am doing wrong. please me this. you missing outer clause

mysql - php notification templating using xml or anything -

sorry if question little confusing, have made notification system using php codeigniter framework working good. using helper create notifications , check new notifications. in case there 1 notification of ie.. payment remainder checks due date , adds notification db. what trying create form admin-user able create notifications without need of programming helper everytime. please let me know best way apporach situation. regards max

How to display single record in the database if duplicate records are available using hibernate -

my table is: sid fname lname subject phno --- ----- ----- -------- ----- 1 vvk v math 4444 1 vvk v read 4444 2 hari h math 5555 2 hari h read 5555 3 kalyan k math 6666 3 kalyan k read 6666 how can display single record student has take subject math or read, this: 1 vvk v math 4444 how write query in hibernate above output? the table contains composite id on sid , subject fields mysql mapping file is student.hbm.xml: <composite-id> <key-property name="sid" column="sid" type="string"/> <key-property name="subject" column="subject" type="string"/> </composite-id> with kind of composite key, create instance of student , set attributes key. can load desired row instance session.load() method. follow example: student stude

bash - ls files with associated types -

i list contents of pwd ls but bunch of names. , don't know directories , aren't. how list out contents of folder each item's associated filetype? you can use $ ls -f or $ ls --file-type

vb.net - Crystal Reports - MS Access to SQL Server Migration -

my project created on following specifications : windows 7 (32 bit). visual studio 2010. windows form vb.net application. microsoft access 2007 backend. using crystal reports reporting tool (version visual studio 2010) due storage size limitation of database, have divided tables 5 databases. my problem reporting tool, having multiple databases i.e 5 ms access databases. therefore not able use queries , therefore not able use datasets. i pass parameters report , heavily dependent on record selection in reports relies on multiple databases. now, want migrate application's backend microsoft sql server. i worrying if need create bunch of reports once more in conditions not able use datasets. kindly suggest easiest method migrate crystal reports sql server database considering situations stated above. thank you.

angularjs - Protractor - beforeAll and afterAll undefined -

i using protractor jasmine. protractor version 3.2.2 , found using command protractor --version . how find jasmine version used protractor. when read updgrade doc , couldn't find steps upgrade jasmine, found add jasmine2 in configuration file. my configuration file looks this exports.config = { framework: 'jasmine2', .... } but still not able use beforeall , afterall . missing here. since beforeall , afterall undefined think version of jasmine used protractor not 2x. any appreciated. thanks. protractor 3.2.2 of 20th april 2016 bundled jasmine 2.4 a fresh install of protractor should fetch 2.4 version, , can verify while looking @ npm install dependency tree log (the npm output after finished installing module), search jasmine in tree , should see 2.4 version being reported. also, correct config used is: framework: 'jasmine'

applinks - Android App Deeplinking using assetlinks.json -

i trying link app url, open app directly without selector option. i added below code in android manifest file still not opening app directly. <intent-filter android:autoverify="true"> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" /> <data android:scheme="http" android:host="domain.com" /> <data android:scheme="https" android:host="domain.com" /> </intent-filter> after app installation check ran below command adb shell dumpsys package domain-preferred-apps but still showing status undefined app package. package: <"package name"> domains: <"domain.com"> status: undefined setting manifest half of process —

c++ - Determining whether a circular number is nearly equal to another -

i'm working radians within range of [-pi, pi]. values outside range converted valid values following function double radian::convert(double input) { if (input > rad_upper_bound) return rad_lower_bound + fmod(input, rad_upper_bound); if (input < rad_lower_bound) return rad_upper_bound + fmod(input, rad_upper_bound); return input; } my question is: how can implement logic check whether radian within x in either direction of radian b. want specifiy x when calling function. assuming = 3.0; b = -2.5; x = 1; function should return true because , b less x apart. i'm assuming there standard way of handling type of problem. the main trick here realize values can't more half total span away each other. bool iswithindistance(double a,double b,double within_distance) { assert(a >= rad_lower_bound); assert(a <= rad_upper_bound); assert(b >= rad_lower_bound); assert(b <= rad_upper_bound);

php filiter out special characters for userids and passwords -

i prevent new users including apostophes, quotations , other special characters in userids , passwords i've found these can create unexpected problems down road. rather anticipate every 1 of these problems, i'd rather prohibit users including characters when signing in first place. there lot of questions , stuff on web in how escape them put them in database not issue. want throw error msg says enter different. i have tried: $username = $_post['username']; if (preg_match ("/[&<>%\*\,\.\'\"]/i", $uid)) { $strerror="your userid may not contain special character. please try again."; } but throwing error no ending delimiter ''' found. would appreciate suggestions. thanks. i think going wrong way. instead of blacklisting special chars try whitelisting letters , digits e.g. $username = $_post['username']; if (!preg_match('/^[\w\d]$/', $uid)) { $strerror="your userid may

jquery - JqueryUI Autocomplete item focus does not work using arrow keys -

Image
in jquery autocomplete widget, reason, list items selected using mouse , mouse hover event works apply css , change item background appropriately. when using arrow keys navigate autocomplete list item not focused. default action , populates input box value of item (i have prevented default action not populate input box) item not focused (see screenshot). css: .ui-menu-item:hover{ cursor: pointer; background: #d6dff2; } javascript: $.widget("ui.autocomplete", $.ui.autocomplete, { options: { maxitems: 2 }, _rendermenu: function (ul, items) { var = this, count = 0; $.each(items, function (index, item) { if (count < that.options.maxitems) { that._renderitemdata(ul, item); } count++; }); } }); var initializeautocomplete = function () { $('#example-links').autocomplete({ source: $('#hidden-action-autocomplete').val(), maxitems: 10, delay: 750, minl

linux - execute python file- No such file or directory -

i try execute python file through terminal ssh (the file not in computer). i following: ./playg.py and get: ": no such file or directory" i in right directory sure (when write cat playg.py can see content of file| the file has r/w/x properties: -r-xr-xr-x first go playg.py existing folder. then type python playg.py

Using R shiny for automation -

i want automate process of refreshing dashboard data prepared in shiny application. idea start refresh when user clicks on particular button in app. need way start running batch file when button clicked. idea how incorporate batch file execution in r shiny app?

c# - Call controller's action method from middleware -

my middleware class in different class library project , controller in different project. trying do, if specific condition not meet redirect custom controller/action method middleware. however, not able response.redirect method. how can in middleware class ? any on appreciated ! rohit it seems you're using middleware wrong reasons. i recommend either have middleware return (very minimal) 404 writing response stream (instead of forwarding next() ), or don't in middleware @ instead in globally registered iactionfilter in mvc app. i've explained rationale above advice in comments, think it's important enough lift actual answer: in middleware pipeline, want each component independent possible. couple of things enable loose coupling in owin: the input to, , output from, each component has same format, whether there 10 other middleware components before it, or none @ all the convention each part of pipeline can 1 or more of 3 things, in order

android - set Custom Programatically created drawable to radioButton for states -

i wanted set programatically created drawable radio button checked , unchecked states, not working code follows, code draw rectangular box, public static gradientdrawable squareview(int backgroundcolor, int bordercolor) { gradientdrawable shape = new gradientdrawable(); shape.setshape(gradientdrawable.rectangle); //shape.setcornerradii(new float[] { 8, 8, 8, 8, 0, 0, 0, 0 }); shape.setcolor(backgroundcolor); shape.setstroke(3, bordercolor); return shape; } code set programatically created view(squareview) set stated radiobutton, public static void setchecked_selector(context context,radiobutton view) { try { drawable pressed=squareview(contextcompat.getcolor(context,r.color.colorblue),contextcompat.getcolor(context,r.color.colorred));//new badgedrawable(context,colorpressed); drawable normal=squareview(contextcompat.getcolor(context,r.color.colorwhite),contextcompat.getcolor(context,r.color.colorred)); statelistdrawable s

java - Need to switch between different screens in swing -

Image
i'm trying create program runs game of go. want 1 screen asks size of go board in question, 1 plays game, , 1 lets decide play again or not. effective way using swing? saw people talk using cardlayout on other questions understanding user can switch between screens on demand, isn't want. i using eclipse if native gui builder in eclipse work better i've never figured out how make work. a less modal approach allow user select , play 1 of several common games. using button based memory game example, enumerate supported game features. add instances of enum values jcombobox . handle changes using remove() , validate() , repaint() update game board. in example, jlabel serves placeholder game. alternatively, leave game view in place, update observable game model, described here , , arrange listening view respond required. import java.awt.borderlayout; import java.awt.color; import java.awt.dimension; import java.awt.eventqueue; import java.awt.event

javascript - Store Firebase url in an external properties file? -

i want put firebase url external text file , reference value within javascript file. currently in files have var ref = new firebase("https://<your-firebase-app>.firebaseio.com"); want this: var ref = new firebase("https://" + fbappname + ".firebaseio.com"); this don't have replace firebase app name <your-firebase-app> every time push changes github account. i'd easier have url referenced in external file , add file git ignore. you use angular constant. see example angular.module('app', []); .value('movietitle', 'the matrix'); .controller('mycontroller', function (movietitle) { expect(movietitle).toequal('the matrix'); })

Q: Login SQL Injection -

so have here classic login select statement: select * users username = '{var}' , password = md5('{var}') attack: select * users username = 'admin' -- ' , password = md5('{var}') my question still susceptible sql injection if use statement: select * users password = md5('{var}') , username = '{var}' yes just set user name variable xxx' or 1=1-- becomes ...and username = 'xxx' or 1=1-- parametrise correctly

Django ModelForms: cleanest way to hide fields and enforce defaults -

let's have single modelform can filled out different tiers of users. admin can edit field of form; other users, need have fields pre-defined, , read-only and/or hidden. using cbv's get_form_kwargs method, have made form aware of user that's bringing up, and, in __init__ method react accordingly, tweaking form's exclude , , fields' required , initial properties; , then, in view's form_valid , further enforce values. but, frankly, i'm neither sure every operation needed, nor whether there's gaping hole i'm not aware of. so, what's best, cleanest way of doing this? assuming there aren't lot of combinations, create different form meets different needs of users. override def get_form_class , return correct form based on needs. keeps different use cases separate , gives flexibility if need change things in future without breaking other forms. # models.py class foo(models.model): bar = model.charfield(max_length=100)

c# - Serialization of list inside parent node (flattening of collection) -

i have generate xml structured (using .net serialization): <person> <name>john</john> <address>address1</address> <address>address2</address> <address>address3</address> </person> currently, have class person name list<string> addresses inside. i think xmlserializer create default <addresses> node holds every address child element, get, instead: <person> <name>john</john> <addresses> <address>address1</address> <address>address2</address> <address>address3</address> </addresses> </person> that is not need. my question is, possible flatten addresses inside <person> ? use xmlelement instead of xmlarray code below. xmlarray adds layer of tags. [xmlroot("person")] public class person { [xmlelement("name")] public

etl - What is Snaplogic? -

as per wikipedia : snaplogic commercial software company provides integration platform service (ipaas) tools connecting cloud data sources, saas applications , on-premises business software applications. some consider competitor informatica , others different altogether. have rough understanding used data integration it. is etl tool? if yes, merely etl tool or have other functionality? and, ipaas tools? please answer or comment if have failed follow norms of stackoverflow or missed details supposed mention. well, best place learn snaplogic website, https://www.snaplogic.com/ here video of snaplogic: https://www.youtube.com/watch?v=kyjk7bjola0 a simple developer friendly example: let's want search twitter feeds posted particular hashtag particular person , write data database of choice or amazon s3. snaplogic allows me without learning twitter api , aws. snaplogic takes care of abstraction user can focus on business logic of things. the demos available

wordpress - How do I translate custom fields in WP? -

Image
i using extension: https://wordpress.org/support/view/plugin-reviews/qtranslate-x . i want translate custom fields. default not working. please check image. as can see changed db value of label with: [:ro] , [:ru] but not working if click on tab(ro or ru). works title . there way translate custom fields?

html - Why does a google font load differently on safari than chrome, and how do I fix it? -

Image
chrome , safari both load same font in different manners, , it's annoying, there way fix it? they aren't big differences, in cases, in others, main content it's big. actually absolutely normal , can't "fix it". every client has own specificity , hardly have same render in every browser (this why front dev have nor more hair). if want can specific css each browser conditional rules such [if ie] .box { font-weight: 900; } for ie in example of course. for chrome can use : @media screen , (-webkit-min-device-pixel-ratio:0) { body {...} .class {...} } careful tough affect safari, epiphany...

java - Showing CustomViews properly in Graphical Layout of android xml -

i have made simple custom textview. works fine in android device. on graphical layout of eclipse can see class name written instead of textview original text. how can test in eclipse graphical layout? below code public class mytextview extends textview { public mytextview(context context, attributeset attrs, int defstyle) { super(context, attrs, defstyle); init(); } public mytextview(context context, attributeset attrs) { super(context, attrs); init(); } public mytextview(context context) { super(context); init(); } private void init() { //if (!isineditmode()) { typeface tf = typeface.createfromasset(getcontext().getassets(), "helveticaltstd-bold.otf"); settypeface(tf); this.settextcolor(color.parsecolor("#ffd200")); this.setshadowlayer(1, 1, 1, color.black); } } i had same p

php - finding javascript errors from external page, output results to file -

i have been tasked created script performing health checks on web page, for part can information need using curl , couple of other tools. so set up. i have php class on server a, cron job on server executes php script begins health check loading page on server b, using curl can timeout information, response codes etc, stuck when comes discovering if given web page has javascript errors (that appear in console); , appreciate give. is there way make api call via php contact page on server b, load page, load error console entries text file? these details available via browser, browser generates these errors or can use script fool script thinking browser , grab errors? i help! thank you. in javascript can use phantom.js read console message. var webpage = require('webpage'); var page = webpage.create(); page.onconsolemessage = function(msg, linenum, sourceid) { console.log('console: ' + msg + ' (from line #' + linenum + ' in "

javascript - How to keep pop up open and after running php script -

hi developing website , want login forms on pop windows, stuck because pop closed after running php script on pop window. due unable echo error messages on same popup (like incorrect password , user exists). i using php 5.4 through easy php , due same issue ended creating pages instead of pop ups, can me demos understand how can worked you should use ajax achieving functionality. here's reference best example: http://www.codingcage.com/2015/11/ajax-login-script-with-jquery-php-mysql.html

android - Can't detect star/multiply or comma being pressed -

title pretty clear guess.i tried many ways,onkeylisteners,dispatchkeyevent, onkeydown...none work keycode_numpad_multiply , keycode_star , keycode_comma , keycode_numpad_comma . what's issue ? it's working fine enter , back .here of ways i've tried detect.i'm trying on nexus 10,if matters. @override public boolean onkeydown(int keycode, keyevent event) { if ((keycode == keyevent.keycode_back)) { showdialog3(); return true; } if ((keycode == keyevent.keycode_numpad_comma)) { edittext eddd = (edittext) getcurrentfocus(); eddd.append("."); return true; } if ((keycode == keyevent.keycode_numpad_multiply)) { enter(); return true; } return super.onkeydown(keycode, event); } another try : @override public boolean dispatchkeyevent(keyevent event) { if (event.getkeycode() == keyevent.keycode_enter) { if (event.getaction() == keyevent.action_up) { en

Solr - Can't search when term ends with "y" -

this problem seems ridiculous. 0 results when searching entries end "y". know exist. 0 results: barthy tony maxy x results: barth ton max with of last 3 desired results ( barthy b , tony banderas , maxy doe , ...) words contain don't end "y" totally fine ( rayman , ...) what happening? achieved schema (if yes, how? can search it) any other idea start looking? remove porterstemfilterfactory or snowballporterfilterfactory fieldtype. as porter transforming algorithm english language reduces of forms of word such walks, walked walk .