Posts

Showing posts from April, 2010

javascript - JQuery change input field -

i working on webpage contains input field needs changed programmatically using stored string php variable. this jquery code , doing need. $(function(){ $('.start').click(function(e) { var currentpage = "<?php echo $name;?>"; $('input').val(currentpage); $('.textfield').prop("disabled", true ); $('.textfield').css('cursor','not-allowed'); }); }); when click start button name inserted input element, when click submit button, error message popup "field required". question is, why changed input value doesn't work. if add or remove letter submit button working , there no field message popup. thanks disabled fields won't submitted forms. hence, says "field required". there property can helpful in kind of situation. use readonly property. replace following line in code instead of disabled property. $('.textfield').prop("readonly", true ); ...

fatal exception in android studio after compiling -

hi beginner in android studio while performing fragment example in android studio got error while running of project while clicking button in app shows message "unfortunately app has stopped".i have checked in log shows following don't know how solve it.??? com.example.xxx.xxx e/androidruntime﹕ fatal exception: main java.lang.classcastexception: com.example.xxx.xxx.menufragment cannot cast com.example.xxxx.xxxx.textfragment @ com.example.xxxx.xxx.menufragment.onlistitemclick(menufragment.java:28) @ android.app.listfragment$2.onitemclick(listfragment.java:160) @ android.widget.adapterview.performitemclick(adapterview.java:301) @ android.widget.abslistview.performitemclick(abslistview.java:1584) @ android.widget.abslistview$performclick.run(abslistview.java:3399) @ android.widget.abslistview$1.run(abslistview.java:4653) @ android.os.handler.handlecallback(handler...

html - Combine several font tags by Javascript -

please me! i`m using ckeditor html text box editor ( http://ckeditor.com/ ) in system. when choose style text, editor generates several font tags text <font size="3"> <font color="#ffff00">header</font> </font> but system recognized format <font size="" color="" face=""> is possible change behavior ? my main idea write javascript onchange method editor. in method i`m going parse generated html text , convert necessary format. could please give advises ? in wrong case, best javascript solution parse generated html ? thanks advises.

ios - UINavigationBar disappears when performing segue -

i encountered problem in app. i have have uinavigationbar in pages, , created uinavigationcontroller 'embed in' first page. uinavigationbar appears on it, when perform segue first page (by instating new view controller , presenting it) navigation bar doesn't appear on second view controller. check segue presenting or pushing second page. check out segue properties, if it's presenting selection of 'modal' on segue property of attribute inspector. on presenting view controller won't navigation bar. navigation bar when push segue. and if want presenting animation on push using segue, can go custom segue. here link. http://www.appcoda.com/custom-segue-animations/

jquery - How to handle dynamically created tr in table -

i working ajax user can request multiple ajax @ single time. each user request creating tr in table show current process of user request. user can request multiple file @ time. in table 2 files uploading multiple time linux command. and ajax code :- $('#mxf').on('submit', function(event){ event.preventdefault(); d = new date(); $.ajax({ url : $(this).attr('action'), type : $(this).attr('method'), datatype: 'json', data : $(this).serialize(), beforesend: function() { var row = '<tr>'; row += '<td>'+$('#fileid').val()+'</td>'; row += '<td>'+$('#ndrive').val()+'</td>'; row += '<td>date</td>'; ...

python - How to close contour over outline rather than edge - OpenCV -

Image
tl;dr: how measure area enclosed contour rather contour line itself i want find outline of object in below image , have code works cases. thresholding , adpative thresholding not work reliably ligthing changes. use canny edge detection , check area ensure found proper contour. however, once in while, when there gap cannot closed morphological closing, shape correct area of contour line instead of whole object. what use convexhull , returns contour around object. however, in case object curves inwards along top , convexhull isn't approximation area anymore. i tried using approxpolydp area gets returned of contour line rather object. how can approxpolydp return similar closed contour around object, convexhull function does? code illustrating using above picture: import cv2 img = cv2.imread('img_0.jpg',0) cv2.imshow('original', img) edges = cv2.canny(img,50,150) cv2.imshow('canny', edges) contours, hierarchy = cv2.findcontours(edges,...

fortran - The minimum and maximum floating point exponent of a real number -

how can minimum , maximum exponent 32- , 64-bit real numbers? doing work avoid underflows , overflows , need know numbers. i need base floating point numbers. is possible in fortran equivalent of ilmach ? for non-zero reals, numeric model looks s*b^e*\sum_{k=1}^{p}f_k*b^{-k} . to value of base b use radix() . minimum , maximum values of exponent e can found exponent combined tiny , huge . use, intrinsic :: iso_fortran_env, : real32, real64 print 1, "real32", radix(1._real32), exponent(tiny(1._real32)), exponent(huge(1._real32)) print 1, "real64", radix(1._real64), exponent(tiny(1._real64)), exponent(huge(1._real64)) 1 format (a," has radix ", i0, " exponent range ", i0, " ", i0, ".") end

linux - useradd command option [-c comment] does not work -

-c option of useradd command not work in linux. command is: useradd -c hello fyit here, hello comment , fyit username. press enter after typing command shows me related options of useradd command. please try like, useradd -c "hello" fyit

database - How to design this tables better? -

firstly, sorry title couldn't find better one. i have database stores devices depending on number: |-----------|-------------|-------------| | device_id | device_name | device_type | |-----------|-------------|-------------| each device has 2 types, 3-port , 1-port , each port has specific name, example: device 1122 type 3-port, port names (kitchen, living_room, bed_room). device 1123 type 1-port, port name (boiler). my imagination design is: |-----------|-------------|--------|-----------|--------| + device_id | device_name | port_1 | port_2 | port_3 + |-----------|-------------|--------|-----------|--------| | 1122 | first floor | kitchen|living_room|bed_room| |-----------|-------------|--------|-----------|--------| | 1123 | second floor| boiler | null | null | |-----------|-------------|--------|-----------|--------| but design not since if had 100 device of type 1-port leave 200 fields empty. can please me create better design ...

How can I get each character added in a form field using jQuery/JavaScript -

Image
i want show error message user, if enters more characters in text field specified , specification may change initial characters provided. along that, need process each character user enters business purposes. e.g. let's think of credit card field. different credit card types have different max lengths. stop users entering more characters in field credit card type allows. however, credit card type can detected when user provides few initial characters of credit card. my approach here try detect credit card on every key press, , set maxlength of field according credit card type detected. if not detected, keep max length 19 (which maximum all) what have tried --------------------------------------------------------------------- | event | problem | | ------------------------------------------------------------------| | | change not triggered until user | | onchange | moves out of field. since n...

c# - File not found exception/w3wp.exe issue in IIS on test server but no issues in IIS Express locally -

i needed upgrade google api oauth 2 (but still use old gdata apis) , used this post exclusively, works great locally via iis express. for convenience code is: using system; using system.io; using system.security.cryptography.x509certificates; using autofac; using d.core.intelligence; using google.apis.auth.oauth2; using google.gdata.analytics; using google.gdata.client; namespace d.analytics { public class analyticsmodule : module { private const string serviceaccountemail = "3504f5u6sqlm@developer.gserviceaccount.com"; private static readonly string keypath = path.combine(appdomain.currentdomain.setupinformation.privatebinpath ?? appdomain.currentdomain.basedirectory, "key.p12"); private static readonly x509certificate2 certificate = new x509certificate2(keypath, "notasecret", x509keystorageflags.exportable); private readonly serviceaccountcredential _credential = new serviceaccountcredential( new serviceaccountcrede...

c# - Selecting all contents of TextBox on clicking it -

i have 1 textbox. on clicking it, contents of textbox should selected. solution this? code have tried is: <textbox name="questiontitle_textbox" text="question title" previewmousedown="questiontitle_textbox_previewmousedown"/> the function questiontitle_textbox_previewmousedown defined as private void questiontitle_textbox_previewmousedown(object sender, system.windows.input.mousebuttoneventargs e) { questiontitle_textbox.selectall(); } this works <textbox name="questiontitle_textbox" text="question title" gotfocus="questiontitle_textbox_gotfocus" previewmouseleftbuttondown="questiontitle_textbox_previewmouseleftbuttondown"/> and in code behind private void questiontitle_textbox_previewmouseleftbuttondown(object sender, mousebuttoneventargs e) { textbox tb = (sender textbox); if (tb != null) { if (!tb.isfocused) { e.handled = true; ...

How do I select files in a folder based on part of filename and zip them in Powershell? -

Image
i'm new powershell(using powershell 2.0 btw) , trying make script several things(this 3rd script or so). have things in place last thing remaining group files of different types (xml, tfw , tif) in folder, based on first part of filename(first 3 characters) , zip these files several zip-files name first 3 characters, either in same location or in new one. sample of folder content: 001.tif 001.tfw 001.metadata.xml 002.tif 002.tfw 002.metadata.xml 003.tif 003.tfw 003.metadata.xml 003_svel.tif 003_svel.tfw 003_svel.metadata.xml wanted result: 001.zip containing 001.tif, 001.tfw, 001.metadata.xml 002.zip containing 002.tif, 002.tfw, 002.metadata.xml 003.zip containing 003.tif, 003.tfw, 003.metadata.xml, 003_svel.tif, 003_svel.tfw , 003_svel.metadata.xml i have installed 7-zip zipping , using commandline version. i've used 7-zip local on testfiles , got work, tif-files. have source folder search latest created folder , process files in it. have far(powershell 2.0): $...

javascript - too much recursion error in jQuery when trigger the checkbox -

i trying trigger unchecked checkbox, tried lot of google, still can't find solution, attempt 1: jquery(".checkbox").attr("checked", false).trigger("click"); when using attempt 1, no changes in op, attempt 2: jquery(".checkbox:checkbox").each(function() { var code = jquery(this).val(); var all_list = jquery("#all_listings").val().split(","); if (jquery.inarray(code,all_list) >= 0) { return false; } else { jquery(this).trigger("click"); } }); using attempt 2 returns error too recursion so how avoid error? or how trigger unchecked checkbox? thanks! solved: problem solved of @praveen kumar , attempt 2 changed if else, too recursion solved. jquery(".checkbox:checkbox").each(function() { var code = jquery(this).val(); var all_list = jquery("#all_listings").val().split(","); if(jquery.inarray(cod...

ios - Get url from images stored in Parse -

how can fetch url images stored in parse? i have made app can store images parse (works fine). how retrieve url image stored in parse can show in web browser typing url? can see url images stored in parse anywhere? i'm thinking this: https://www.parse.com/apps/classname/collections#class/photo/czegpxalzm you can url of image pffile object containing image this: nsstring *urlstring = yourimagefilefromparse.url;

javascript - Controller not receiver parameter passed by ajax POST in .Net MVC -

i want make ajax shopping cart, getcarts , addcart working, removerow not receiver parameter "strms". when alert(strms) in removerow(strms) js function, show right value of book id (equal 8). in cartcontroller/removerow debug, strms value null. think it's can problem routing, think route configs right! please me. the view _layout.cshtml, contain js code controller cartcontroller my routeconfig.cs public class routeconfig { public static void registerroutes(routecollection routes) { routes.ignoreroute("{resource}.axd/{*pathinfo}"); routes.maproute( name: "default", url: "{controller}/{action}/{id}", defaults: new { controller = "sach", action = "detail", id = "7" } ); routes.maproute( "cart", "{controller}/{category}/{ms}/{sl}", new { controller = "cart", action = "addcar...

ios - Parallax header for tableview and uiview below the header -

so want create tableview having parallax header imageview inside header , uiview below parallax header fixed above tableview, if there uiview above tableview. --navbar-- ----parallax header ----- ----uiview------ ---tableview-cells---- now scrolling become when scroll down (for more cells). --navbar--- ----uiview---- ----tableviewcells scrolling--- scrolling tableview upward decrease header, parallax header should do, limit upto uiview, after y of tableview wont decreased, , normal scrolling commence(of course tableview height increase origin y decreases.) any idea how achieve this? got sample code cocoacontrols, desired effect comes tableview goes up, uiview appears. here's link sample code on github

python - How do I get data from Nonin Xpod PulseOxy Sensor to Raspberry Pi -

i using raspberry pi 2 board , have connected nonin xpod pulseoxy sensor it. used pyusb module in python script access basic data of sensor vendor id , product id, etc. not able set configuration of device , proceed collection of readings. tried installing ftdi drivers provided http://www.ftdichip.com/ raspberry pi. d2xx module isnt getting imported in python script. new writing code devices. please me on how proceed. i tired following: import usb.core import usb.util dev = usb.core.find(idvendor=0x0424, idproduct=0x9514) dev.set_configuration() i getting error in set configuration. traceback (most recent call last): file "s1.py", line 18, in <module> main() file "s1.py", line 13, in main dev.set_configuration() file "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 799, in set_configuration self._ctx.managed_set_configuration(self, configuration) file "/usr/local/lib/python2.7/dist-packages/usb/core.py", line...

android - Xmpp connection failed with smack -

i have android application in use smack library connect xmpp server. application has worked in past, since today, tablet not connect server. on line : connection.connect(); i got error : w/system.err﹕ org.jivesoftware.smack.smackexception$connectionexception: following addresses failed: '192.168.57.100:5222' failed because java.net.connectexception: failed connect /192.168.57.100 (port 5222) after 30000ms: isconnected failed: ehostunreach (no route host) w/system.err﹕ @ org.jivesoftware.smack.tcp.xmpptcpconnection.connectusingconfiguration(xmpptcpconnection.java:596) 07-08 11:46:19.730 13812-14023/com.crisalid.ecrancuisine w/system.err﹕ @ org.jivesoftware.smack.tcp.xmpptcpconnection.connectinternal(xmpptcpconnection.java:830) 07-08 11:46:19.730 13812-14023/com.crisalid.ecrancuisine w/system.err﹕ @ org.jivesoftware.smack.abstractxmppconnection.connect(abstractxmppconnection.java:360) 07-08 11:46:19.730 13812-14023/com.crisalid.ecrancuisine w/system.err﹕ @ com.cri...

python - Create a triangular mesh using Delaunay methods -

Image
i'm trying create triangular mesh using python. know boundary points, think delaunay method more appropriated. tried use scipy. code simple from scipy.spatial import delaunay pixelpoints = np.transpose(np.nonzero(binaryimage)) tri = delaunay(pixelpoints) import matplotlib.pyplot plt plt.triplot(pixelpoints[:,0], pixelpoints[:,1], tri.simplices.copy()) plt.plot(pixelpoints[:,0], pixelpoints[:,1], 'o') plt.show() don't want this. i'd mesh inside image bounds. also, don't want mesh inside holes. can control number of triangles cover surface? there alternative way this? thank you. you can remove additional triangles using polygon.ispointinside(tcentroid) tcentroid triangle centroid. ispointinside() can derived this: http://geomalgorithms.com/a03-_inclusion.html .

javascript - File under views not accessible in grails -

we need use javascript license file commercial javascript library using in our grails application. license needs placed in same folder view, since doesn't support relative paths specification license file. our view located in grails-app/view/video. when put license file in folder can't access in browser like.. app-url/video/license.txt whereas when place in other folder, say: "../assets/libray/license.txt" able access through browser using url app-url/assets/library/license.txt since relative paths not supported js library, we're unable use technique. is there way access file located under views folder through url ? or there specific configuration setting required done ? suggestion , comments appreciated. thanks unless configure environment , map static files there have no other option setup urlmapping.groovy , serve static contents there. in urlmappings.groovy add: "video/license.txt"(controller: 'view', action: 'lic...

c++ - CMake 'no rule to make target' with external library -

i trying link 1 of programs libevent . using cmake build system. project structure follows: my_project ├── cmakelists.txt ├── readme.md ├── build │  └── build stuff └── software ├── readme.md ├── cmakelists.txt ├── include ├── libraries │   ├── libevent │ │   └── cmakelists.txt │   └── anotherlibrary │      └── cmakelists.txt ├── prog1 │   ├── cmakelists.txt ├── prog2 │   ├── cmakelists.txt └── prog3 └── cmakelists.txt cmakelist.txt of prog1 (the 1 that's needs linked libevent) cmake_minimum_required(version 2.6) project (prog1) file(glob prog1 "*.h" "*.cpp" ) include_directories("${project_include_dir}/libevent/include") add_executable(${project_name} ${prog1}) target_link_libraries(${project_name} event_core) but when build project make can't find library build libevent. searched for: libraries/libevent/lib/libevent_core.a wrong path since libevent builds libs...

ios - Add UIPageViewController in present app -

i have app in working state in have 3 screens 1,2,3 each of screen associated uicollectionview created programatically want modify current implementation & add collection views uipageviewcontrollers. i tried find many tutorials related pageviewcontroller collectionviews not able find anything. can me out in implementing or can give me reference related this. i have referred this tutorial , hard luck me :( just follow of page view controller tutorials, , when point of instantiating child view controllers, make children collection view controllers. in example tutorial using uiimageview try replacing uicollectionviews & achieve want. do tell if face difficulties. happy coding!

amazon web services - URL shortening for AWS S3 Bucket data -

for website, storing user data in amazon s3 . problem amazon s3 link length , want shorten url. anybody knows how shorten url aws? the short answer don't aws. can chose use that's out there , proven work shorten url or depending on requirements you're gonna have build own.

xml - executing VBscript after installation on target machine -

i trying run executable vbscript (.exe) after files placed on target machine. installer being used made in visual studio 2013 wix toolset. tried couple of examples different sources technet , website. none me since lot of articles/post around 2008 , don't seem apply anymore. currently using piece of code try archieve goal: <fragment> <customaction id="runinstallscript" directory="installfolder" execommand="[installfolder]installation script.exe" execute="commit" return="ignore" /> <installexecutesequence> <custom action="runinstallscript" before="installfinalize" /> </installexecutesequence> </fragment> even though compiler doesn't see errors , compiles fine code isn't working. file needs executed placed in installation folder, file present. thing left execute once during installation and/or de-installatio...

java - How to get values from pojo list -

i storing values of below query list having type pojo class. need each videos vlist.and wants how can retrive in loop. dao.java @suppresswarnings("unchecked") @override public list<videos> getfullvideolist(long albumid) { // todo auto-generated method stub // albumid=11; session=sessionfactory.opensession(); tx=session.begintransaction(); query query = session.createquery( "from videos videostatus=1"); query.setparameter("albumid", albumid).setparameter("videotype","vdsg");; list<videos> vlist=query.list(); tx.commit(); session.close(); return vlist; } simply iterate using loop if size of list large, don't use .list() method. may outofmemory error. instead use statelesssession , scrollable resultset. more fast , efficient.

java - LibGDX Big FreeType MipMapped font looks pixelated -

i've been developing game android on libgdx, , i've found problem seems no 1 had before. searched answers on how smooth text, , 2 things: use freetype fonts. use mipmap texture filter. so, used freetype font, , applied mipmap, , i'm pretty sure filter scaling font down (so, using mipmap), since font of size 200 , real screen absolutely not big. i don't know if i'm making kind of stupid mistake or something, can't figure out why happening, since did seems thing solves issue other people. so, that's did: i have assets class things want load, (forgetting sprites) looks this: public static bitmapfont font; public static void load(){ freetypefontgenerator fontgen = new freetypefontgenerator(gdx.files.internal("vaques/opensans-bold.ttf")); //free font fontsquirrel.com freetypefontparameter fontpar = new freetypefontparameter(); fontpar.size = 200; fontpar.color = color.valueof("ffffff"); fontpar.genmipma...

c++ - Using a .def in Visual Studio instead of dllimport/dllexport with global variables -

in pluginloader.exe's main.cpp: int lives = 9; the project contains .def file exports lives variable (mangled c++): exports ?lives@@3ha using dependency walker, verified when opening pluginloader.exe ?lives@@3ha indeed being exported. .lib being exported should contain stubs can link against in other projects. using dumpbin.exe on stub pluginloader.lib get: 4 ?lives@@3ha 1 __import_descriptor_pluginloader 2 __null_import_descriptor 4 __imp_?lives@@3ha 3 ⌂pluginloader_null_thunk_data pluginloader loading simpleplugin.dll using loadlibrary / getprocaddress. simpleplugin.dll has main.cpp looks this: extern int lives; extern "c" __declspec(dllexport) void pluginmain() { ++lives; } simpleplugin links against stub pluginloader.lib. when trying increment lives, crash access violation. appear simpleplugin.dll pseudo getting own version of lives variable, though linked against stub. if change simpleplugin's lives to: __declspec(dllimport) extern int ...

java - Convert linked list in arrayList -

i want convert linkedlist arraylist date datainizio = new date(); linkedlist<node> queue = new linkedlist<node>(); int n = combinazioni.size(); arraylist<elemento> temp = new arraylist<elemento>(); temp.add(combinazioni.get(0)); queue.add(new node(0, temp)); // add different integers queue once. (int = 1; < n; ++i) { if (combinazioni.get(i - 1) == combinazioni.get(i)) { continue; } temp = new arraylist<elemento>(); temp.add(combinazioni.get(i)); queue.add(new node(i, temp)); } // bfs until have no elements while (!queue.isempty()) { node node = queue.remove(); if (node.lastindex + 1 < n) { node newnode = new node(node); newnode.lastindex = node.lastindex + 1; newnode.currentlist.add(combinazioni.get(node.lastindex + 1)); queue.add(newnode); } (int = node.lastindex + 2; ...

regex - Android regular expression -

i have searched lot regular expression or pattern work me, haven't found any. in edit text want allow first 4 digit , 2 uppercase letters, ihave created pattern: private final pattern spattern = pattern.compile("^[0-9]{0,4}[a-z]{0,2}"); but allows first 2 capital letters, too. if change pattern private final pattern spattern = pattern.compile("^[0-9]{0,4}[a-z]{4,6}"); i not able rright. please me this. thanks. you need careful limiting quantifier. remove 0, allows less 4 digits or 2 uppercase letters: ^[0-9]{4}[a-z]{2} this require 4 digits @ beginning , 2 letters after. see demo for live validation, can use ^[0-9]{0,4}(?:(?<=[0-9]{4})[a-z]{0,2})? it allow user input 0 4 digits , 0 2 english uppercase letters only if there 4 digits before them. mind if input can contain these max 6 characters, can add $ end-of-string anchor @ end.

How to remove old 32 bit registry after updating to 64 bit with install4j Add/Remove Feature? -

i have created setup install4j. tho older version of application 32 bit, 64 bit. want older 32 bit versions updated 64 bit. the problem is, when execute 64 bit setup on system 32 bit version installed, there 2 entries in software registry "programs , features" afterwards. think 64 bit setup not find earlier installations 32 bit. is there configuration in install4j or have remove entry manually? thanks. as of install4j 6.0.3, upgrades between 64-bit , 32-bit installers not modify registry of other bitness. if want remove 32-bit entry, have remove call com.install4j.api.windows.winregistry .

sql server - Grouping in analytical query -

i have table return records : name total_case_count user_case_count p_count rej_count ppp_count other_count abc 20 10 03 abc 20 10 05 abc 20 10 02 xyz 20 10 05 xyz 20 10 02 xyz 20 10 01 xyz 20 10 02 but need result : name total_case_count user_case_count p_count rej_count ppp_count other_count abc 20 10 03 05 02 xyz 20 10 05 02 01 02 means sum of user count & other count come in same row. i'm using query: select distinct result.name, result.user_account_id,total_case_count,user_case_count,p...

sql - Can I concatenate certain fields of a table in a multitable SELECT in MYSQL? -

i have table users, other table user experiences , other jobs (and more). want select users applied job new field formed concatenation of experiences of user, that: select users.*,jobs.id, jobs.name users left join users.id = users_jobs.userid left join jobs.id = users_jobs.jobid left join users.id = user_experiences.userid i need add field select experiences concatenated of each user. trying group_concatenate returns me row. any idea please? not sure understood question correctly, here attempt : select users.*, jobs.id, jobs.name, group_concat(user_experiences.the_field_you_want_to_concatenate) concatenated_field users left join users.id = users_jobs.userid left join jobs.id = users_jobs.jobid left join users.id = user_experiences.userid group users.*, jobs.id, jobs.name;

ios - Issue while playing video in full screen mode using MPMoviePlayerViewController -

i have problem while playing video in full screen mode using mpmovieplayerviewcontroller (works in normal mode). code: if (playv) { self.previewview.hidden=no; self.videocontroller =[[mpmovieplayercontroller alloc] initwithcontenturl:self.videourl]; [self.videocontroller.view setframe:self.previewview .frame]; self.videocontroller.view.center=self.playbtn.center; [self.previewview addsubview:self.videocontroller.view]; [[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(videoplaybackdidfinish:) name:mpmovieplayerplaybackdidfinishnotification object:self.videocontroller]; self.videocontroller.scalingmode = mpmoviescalingmodeaspectfit; self.videocontroller.controlstyle = mpmoviecontrolstylenone; [self.videocontroller play]; } i got solution - hope others well. add line of code in playbtnaction method: - (ibaction)playbtnaction:(id)sender { [self.videocontroller setfullscreen:yes animated:yes]; } an...

x11 - Middle click paste at cursor position in GUI programs -

in terminal applications (e.g. konsole) 1 can select text mouse. middle click pastes @ current cursor position . same happens when pasting shift + ctrl + v . in gui text editors (e.g. kate) 1 can select text mouse. middle click pastes @ current mouse pointer position . pasting ctrl + v instead pastes @ current cursor position . this difference in behaviour annoys me. i'd able paste @ cursor position @ times, in gui text editors (i use kate that's i'm concerned about). can done in way? realize seems built-in x feature it's difficult work with. i'm 1 of kate developers, , setting text cursor on middle mouse button click is design : 2737 case qt::midbutton: 2738 placecursor(e->pos()); 2739 2740 if (doc()->isreadwrite()) { 2741 qstring clipboard = qapplication::clipboard()->text(qclipboard::selection); 2742 m_view->paste(&clipboard); 2743 } if want different behavior, please vote exist...

Alternative to BugSense for Windows Phone -

it seems bugsense abandoned windows phone. still see statistics in dashboard, can't find sdk windows phone in docs (thats why thought bugsense windows closed). are there alternative viewing error/trace reportings dashbord, showing internal information without needing me mark logging? i'd encourage check out crittercism. it's actively being developed , supported (last update week ago): https://www.nuget.org/packages/crittercism http://docs.crittercism.com/windows/windows.html

jquery - Using Flexslider to play Youtube videos -

i'm trying integrate playing youtube video flexslider . it's got vimeo integration (which works) youtube doesn't play @ all. how can integrate it? // can used $(document).ready() $(window).load(function() { // vimeo api nonsense var player = document.getelementbyid('player_1'); $f(player).addevent('ready', ready); function addevent(element, eventname, callback) { if (element.addeventlistener) { element.addeventlistener(eventname, callback, false) } else { element.attachevent(eventname, callback, false); } } function ready(player_id) { var froogaloop = $f(player_id); froogaloop.addevent('play', function(data) { $('.flexslider-project').flexslider("pause"); }); froogaloop.addevent('pause', function(data) { $('.flexslider-project').flexslider("play"); }); } // call fitvid before flexslider initializes, proper initial height can ...

javascript - Foundation 5 Dropdown button not working in nested table row -

dropdown button not working if dropdown button inside nested table row. please refer example in jsbin: http://emberjs.jsbin.com/yesaguwoli/edit?html,output click on header 1 show expanded table row. then, click on dropdown button 1 . dropdown menu does not appear after button clicked. click on header 2 show expanded table row. then, click on + button. dropdown menu does not appear after button clicked. however, if dropdown button located in table row itself, dropdown button work fine in both places, (ie. in table row , in nested table row) refer example: http://emberjs.jsbin.com/mozudezewo/edit?html,css,js,output click on dropdown button 1 . dropdown menu appears after button clicked. click on header 2 show expanded table row. then, click on + button. dropdown menu appears after button clicked. i'm not sure why dropdown button behaving in such way. resolve issue appreciated. thank you! i have taken working example, , wrapped in same {{if}} s...

javascript - How to filter ng-repeat data by time range? -

i'm creating app give flight list using third party api. have problem filtering between 2 time different date , time format, have gone thorough lot of tutorials there using date need filer using time different date , time format. json "combination": [ "outboundleg" :{ "departuredatetime": "07/14/2015 12:00" } "outboundleg" :{ "departuredatetime": "07/15/2015 10:55" } "outboundleg" :{ "departuredatetime": "07/18/2015 12:10" } "outboundleg" :{ "departuredatetime": "07/14/2015 10:10" } "outboundleg" :{ "departuredatetime": "07/18/2015 12:00" } ] html <div ng-repeat="data in combination | filterbtwntime: ??? "> <td>{{data.outboundleg.departuredatetime}}</td> </div> how a...