Posts

Showing posts from May, 2014

ruby - Nested registration data in Rails 3.1 with Devise -

ruby - Nested registration data in Rails 3.1 with Devise - hello again, stackoverflow community! i'm working on writing simple blog scheme in rails, , i'm using devise authentication part. i got basic email/password registration going, , i've set one-to-one connection of users table (the basic 1 generated devise) , userdata table, containing things such username, permissions, about, , on. it's pretty easy - user table 100% devise vanilla, , has_one userdata. userdata belongs_to user. i tried expanding sign form generated devise, allow user enter, not e-mail , password, desired user name. way, when form sent, if names of form fields right (the right construction of nested hashes, such "email" user's email, , "userdata[name]" user's desired name), new user created automatically, , proper corresponding userdata entry should created automatically rails, correct? right now, i'm having huge issue userdata[name] field not appe...

c# - Confused between Web Application and Web Forms -

c# - Confused between Web Application and Web Forms - i purchased twilio business relationship , 888 business number, , working setup simple phone call scheme business. examples working fine, wish create c# web forms application run server. there c# based examples seem centered around asp.net web applications though, know nil about. can c# asp.net application self serving (standalone) .exe, or there way can create c# windows form application work instead? if needed, tutorial next , need implement... http://www.twilio.com/docs/howto/ivrs-the-basics i don't understand question but... twilio features require code running on webserver webserver can send requests to. standalone .exe isn't going that. asp.net web forms (though when run server twilio's server can reach). c# .net winforms webforms

vectorization - How can I populate the rows of an R data frame, in which each row represents a day, with a single common value for each day of a year? -

vectorization - How can I populate the rows of an R data frame, in which each row represents a day, with a single common value for each day of a year? - r: how can populate rows of info frame, in each row represents day, single mutual value each year? i have info frame consisting of date column, cost column , various other columns derived 2 columns. 1 of columns calculates, each day in given year, percentage alter in cost origin of year (this related before question). i want add together column holds, each day of given year, percentage alter in cost whole of year. so, if cost rose 10% first lastly day of 2009, column days of 2009 should hold value 10% (or 0.1). if cost fell 2% between first , lastly days of 2010, column each day in 2010 should hold value -0.02 , on. the code have far is: require(lubridate) require(plyr) # generate info set.seed(12345) df <- data.frame(date=seq(as.date("2009/1/1"), by="day", length.out=1115),price=...

sql server - Perl Module for Simplifying SQL Query -

sql server - Perl Module for Simplifying SQL Query - over years, i've noticed few issues sql queries in perl scripts: they're hard read most developers aren't sql. let's have next tables: pet pet_type color ======== ========== ============ pet_id pet_type color_id name description description owner pet_type color_id and, want find reddish dogs, i'll have produce next sql query. find pet_id, name, owner pet, pet_type, color color_id.description = 'red' , pet_type.description = 'dog' , pet.color_id = color.color_id , pet.pet_type = pet_type.pet_type i perl module simplify producing querying. allow me create database connection, predefine how tables linked. 1 time done, developer have simplified query. i imagine interface this: # # create new database connection # $db = some:module->new(\%options); # # describe how these tables relate each other. # ...

excel - The filename feed1.xls is not readable in php -

excel - The filename feed1.xls is not readable in php - hi want parse excel file using zend framework. went zend developer zone , found solution download phpexcelreader. downloaded code set project @ localhost , run code. when treid read .xlsx file generates error the filename feed1.xlsx not readable i saved file in .xls format , run code parsed file successfully. want implement in project developed in zend framework . created model, , in project , require_once ed excelreader @ top of project this. require_once 'excelreader/excel/reader.php'; class excelreadermodel extends zend_db_table { function readfile() { $data = new spreadsheet_excel_reader(); // set output encoding. $data->setoutputencoding('cp1251'); //$data->read('excelreader/excel/feed1.xls'); $data->read('feed1.xls'); echo '<pre>'; print_r($data); echo '</pre>'; } } i called model function in controller....

iphone - Core Data Fetch Request -

iphone - Core Data Fetch Request - i have datamodel looks this: i show list of customers on tableview, when user selects customer, shows list of rooms client - works fine. the problem getting when seek , show detail view room. when user selects room, shows view values of room. (well should do). have working extent, if have 2 rooms named same ie - "bedroom 1", 2 different customers doesnt show right room data. here code using: appdelegate_shared *appdelegate = [[uiapplication sharedapplication] delegate]; nsmanagedobjectcontext *context = [appdelegate managedobjectcontext]; nsentitydescription *entitydesc = [nsentitydescription entityforname:@"rooms" inmanagedobjectcontext:context]; nsfetchrequest *request = [[nsfetchrequest alloc] init]; [request setentity:entitydesc]; nspredicate *pred = [nspredicate predicatewithformat:@"(room = %@)", titlestr]; [request setpredicate:pred]; nsmanagedobject *matches = ...

sql - Calculating the length of each record in the table -

sql - Calculating the length of each record in the table - possible duplicate: how find rowsize in table how calculate length of each record in table (sql server 2008) try len() instead of datalength() select len(yourcolumnname) lengthofentry yourtablename this gives length of each entry in column just string them every column entries entire table example: select len(yourcolumnname) column1, len(yourcolumnname2) column2 yourtablename you can utilize sum() total of every character in column select sum(len(yourcolumnname)) column1, sum(len(yourcolumnname2)) column2 yourtablename sql sql-server-2008 tsql

c++ - better way of making sure 4 random values are not equivalent at all? -

c++ - better way of making sure 4 random values are not equivalent at all? - i have qt form has multiplication problem , 4 buttons. 4 buttons (choices) randomly generated , question. i want randomize 4 choices random none of them equivalent other choices. how doing right now, it's not working well: while (choice1 == choice2 || choice1 == choice3 || choice1 == choice4) choice1 = (rand() % max) + 1; while (choice2 == choice1 || choice2 == choice3 || choice2 == choice4) choice2 = (rand() % max) + 1; while (choice3 == choice1 || choice3 == choice2 || choice3 == choice4) choice3 = (rand() % max) + 1; while (choice4 == choice1 || choice4 == choice2 || choice4 == choice3) choice4 = (rand() % max) + 1; does else have improve way? since number of elements fixed , small, overall approach pretty reasonable. however, implementation buggy. here how can fixed: choice1 = (rand() % max) + 1; { choice2 = (rand() % max) + 1; } while (choice2 == choice1); ...

c# - How to do "like" on dictionary key? -

c# - How to do "like" on dictionary key? - how can "like" find dictionary key? i'm doing: mydict.containskey(keyname); but keynames have additional word appended (separated space), i'd "like" or .startswith(). comparisons this: "key1" == "key1" //match "key1" == "key1 someword" //partial match i need match in both cases. you can utilize linq this. here 2 examples: bool anystartswith = mydict.keys.any(k => k.startswith("key1")) bool anycontains = mydict.keys.any(k => k.contains("key1")) it worth pointing out method have worse performance .containskey method, depending on needs, performance nail not noticable. c# .net linq

android - Rethrow UncaughtExceptionHandler Exception after Logging It -

android - Rethrow UncaughtExceptionHandler Exception after Logging It - in application class trying grab forcefulness close before happens, can log , rethrow android can handle it. since users not study forcefulness closes. i developing in eclipse, , eclipse not allowing me rethrow exception. shows error saying "unhandled exception type throwable: surround try/catch". how can rethrow exception? public class mainapplication extends application { @override public void oncreate() { super.oncreate(); seek { //log exception before app forcefulness closes thread.currentthread().setuncaughtexceptionhandler(new uncaughtexceptionhandler() { @override public void uncaughtexception(thread thread, throwable ex) { analyticsutils.getinstance(mainapplication.this).trackevent( "errors", // category "mainactivity...

postgresql error PANIC: could not locate a valid checkpoint record -

postgresql error PANIC: could not locate a valid checkpoint record - when load postgres server (v9.0.1) panic prevents starting: panic: not locate valid checkpoint record how can prepare this? it's looking checkpoint record in transaction log doesn't exist or corrupted. can determine if case running: class="lang-sh prettyprint-override"> pg_resetxlog datadir if transaction log corrupt, you'll see message like: the database server not shut downwards cleanly. resetting transaction log might cause info lost. if want proceed anyway, utilize -f forcefulness reset. you can follow instructions , run -f forcefulness update: class="lang-sh prettyprint-override"> pg_resetxlog -f datadir that should reset transaction log, leave database in indeterminate state explained in postgresql documentation on pg_resetxlog : if pg_resetxlog complains cannot determine valid info pg_control, can forcefuln...

c# - JavaScript method not working in ASP.NET User Control -

c# - JavaScript method not working in ASP.NET User Control - i asked question before javascript code can see here : how can scroll downwards multiline textbox's bottom line, javascript's scrollintoview not working this. well, solved , accepted reply working. afterwards had move code part can see in question user command looked : <%@ command language="c#" autoeventwireup="true" codebehind="livechatpart.ascx.cs" inherits="beyzamcomarayuz.livechatusercontrol.livechatpart" %> <%@ register src="/livechatusercontrol/genelodaflashpart.ascx" tagname="genelodaflash" tagprefix="gof" %> <script language="javascript" type="text/javascript"> function buttonclicked() { // var el = document.getelementbyid("txtbxodamesajlari"); var textbox = $get("txtbxodamesajlari"); textbox.scrolltop = textbox.scrollheight; // ...

Hadoop. About file creation in HDFS -

Hadoop. About file creation in HDFS - i read that whenever client needs create file in hdfs (the hadoop distributed file system), client's file must of 64mb. is true? how can load file in hdfs less 64 mb? can load file reference processing other file , has available datanodes? i read whenever client needs create file in hdfs (the hadoop distributed file system), client's file must of 64mb. could provide reference same? file of size can set hdfs. file split 64 mb (default) blocks , saved on different info nodes in cluster. can load file reference processing other file , has available datanodes? it doesn't matter if block or file on particular info node or on info nodes. info nodes can fetch info each other long part of cluster. think of hdfs big hard drive , write code reading/writing info hdfs. hadoop take care of internals 'reading from' or 'writing to' multiple info nodes if required. would suggest read next 1 ...

jsp - Struts1 project won't run on Tomcat v7.0 -

jsp - Struts1 project won't run on Tomcat v7.0 - i have struts 1 project runs fine on tomcat v6.0. on tomcat v7.0 won't render jsp files. for example: my index.jsp: <?xml version="1.0" encoding="iso-8859-1" ?> <jsp:root xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/jsp/page" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:bean="http://struts.apache.org/tags-bean-el" xmlns:html="http://struts.apache.org/tags-html-el" xmlns:room="http://www.uni-passau.de/roomplanner/taglib" version="2.0"> <jsp:output doctype-root-element="html" doctype-public="-//w3c//dtd xhtml 1.0 strict//en" doctype-system="http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd" /> <jsp:directive.page contenttype="text/html; charset=iso-8859-1" language="java"...

yahoo disable links when sent from smtpclient .net -

yahoo disable links when sent from smtpclient .net - i'm building web application sends emails throw smtpclient in .net application working fine, emails sent gmail accounts , hotmail accounts, when sent emails yahoo business relationship delivered successfully, links set in message disabled yahoo. yahoo somehow rewrites links , totally remove "href" property, dunno do, i've tried every format know no good. here code utilize send messages. objemail = new system.net.mail.mailmessage(); objemail.to.add(new mailaddress(contact.value.tostring(),null)); objemail.from = new mailaddress(from, null); objemail.subject = subject; objemail.body = body; objemail.isbodyhtml = true; smtpclient client = new smtpclient(); client.send(objemail); and here definition of smtpclient in web.config file <system.net> <mailsettings> <smtp deliverymethod="network"> <network enablessl="true" h...

decompression - Automate zip file reading in R -

decompression - Automate zip file reading in R - i need automate r read csv datafile that's zip file. for example, type: read.zip(file = "myfile.zip") and internally, done is: unzip myfile.zip temporary folder read file contained on using read.csv if there more 1 file zip file, error thrown. my problem name of file contained zip file, in orded provide read.csv command. know how it? update here's function wrote based on @paul answer: read.zip <- function(zipfile, row.names=null, dec=".") { # create name dir we'll unzip zipdir <- tempfile() # create dir using name dir.create(zipdir) # unzip file dir unzip(zipfile, exdir=zipdir) # files dir files <- list.files(zipdir) # throw error if there's more 1 if(length(files)>1) stop("more 1 info file within zip") # total name of file file <- paste(zipdir, files[1], sep="/") # read file re...

php - How to make Form send simple HTML email and not Plain text -

php - How to make Form send simple HTML email and not Plain text - ok, i've asked question before didn't clear reply , time explain better. i've got contact form when submitted, submission email received in plain text not want. want submission have @ to the lowest degree style , neater (using own html below). i've tried work before no success, , need outside assistance. here's process php form: <?php if (!isset($_session)) session_start(); if(!$_post) exit; if (!defined("php_eol")) define("php_eol", "\r\n"); $address = "email@domain.com"; $bcc = "email@domain.com"; $twitter_active = 0; $twitter_user = ""; $consumer_key = ""; $consumer_secret = ""; $token = ""; $secret = ""; $name = $_post['name']; $email = $_post['email']; $phone = $_post['phone'...

PDF thumbnails in Delphi -

PDF thumbnails in Delphi - i wondering if there easy of generating thumbnails of pdf files in delphi. want render first page of pdf little bitmap (say 100x100 or similar). see 2 options 1 utilize pdf component, 2 somehow tap how explorer generates previews/thumbnails. using library quickpdf or gnostice easiest option. i'm sure pdf thumbnails in explorer generated whatever pdf software installed such adobe. unless can guarantee proper pdf reader installed on every workstation thought of using thumbnails might not valid. edit: here's finish application using quickpdf render first page of given pdf file bmp file. @ 10 dpi output bmp file 85 pixels wide 110 pixels high. program pdftobmp; {$apptype console} uses sysutils, quickpdf; var q : tquickpdf; begin q := tquickpdf.create; seek q.loadfromfile(paramstr(1), ''); q.renderpagetofile(10 {dpi}, 1 {pagenumber}, 0 {0=bmp}, changefileext(paramstr(1),'.bmp')); q.free; end;...

xslt - Problems pre-sorting xml prior to transforming -

xslt - Problems pre-sorting xml prior to transforming - using code illustration on stackoverflow we've got paginated print study headers , footers (yes, old chestnut) working nicely, doing (where results_row has got multiple kid nodes): <xsl:variable name="n" select="number(4)"/> <xsl:template match="results"> <body> <div id="page"> <output> <xsl:apply-templates select="results_row"/> </output> </div> </body> </xsl:template> <xsl:template match="results_row"> <p/> [html page start] <br/> <xsl:for-each select=". | following-sibling::results_row[position() &lt; $n]"> <xsl:value-of select="item43"/><!--lots more goes in here --> <br/> </xsl:for-each> [html page end] <p/> </xsl:template...

c# - How to save the dynmaically created checkboxes selected values in DB -

c# - How to save the dynmaically created checkboxes selected values in DB - i have matrix of checkboxes created dynamically 2 database tables(tblprivileges,tblviews) shown in image: vertical records tblprivileges , horizontal 3 records tblviews. here code above matrix: protected override void oninit(eventargs e) { int rowcnt; int rowctr; rowcnt = 1; con.connectionstring = configurationmanager.connectionstrings["con"].connectionstring; sqldataadapter adp1 = new sqldataadapter("select * tblviews", con); dataset ds1 = new dataset(); adp1.fill(ds1); datatable g = new datatable(); adp1.fill(g); (rowctr = 1; rowctr <= rowcnt; rowctr++) { tablerow trow = new tablerow(); privilegetable.rows.add(trow); foreach (datarow checkboxtitle in g.rows) { tablecell tc = new tablecell(); //system.we...

html - How to pull text from a Div on an external page with javascript? -

html - How to pull text from a Div on an external page with javascript? - on page have ticker load text div on external page. trying have titles articles have on separate page loaded ticker, understand how load them ticker need know how pull text external div (and load within div). my external page <div id="boundry2"> <h5> <div class="title"> title: </div> <div class="date"> date </div> </h5> article text <br/> </div> my ticker <a href="#"> <div id="myhtmlticker" class="tickerstyle"> <div class="messagediv"> text title </div> <div class="messagediv">text title </div> </div> </a> my ticker references external javascript code id makes each div class messagediv appear. want text <div class="title">title:</div> on external page loaded onto <div class="messagediv...

Compiling / running Java from one folder up -

Compiling / running Java from one folder up - i have next directory structure: folder1/ folder2/ compiler.java for school assignment, have able run next commands from folder1: javac folder2/compiler.java java folder2/compiler the compilation javac works. when seek run above java command, exception in thread "main" java.lang.noclassdeffounderror: folder2/compiler (wrong name: compiler) you have 2 options. if class compiler in default bundle this. (no bundle declaration) javac folder2/compiler.java java -cp folder2/ compiler otherwise, if class compiler in bundle folder2 this. javac folder2/compiler.java java -cp . folder2.compiler you can set complier in folder2 bundle putting bundle declaration @ top of compiler.java package folder2; java

Parse mailto urls in Python -

Parse mailto urls in Python - i'm trying parse mailto urls nice object or dictionary includes subject , body , etc. can't seem find library or class achieves this- know of any? mailto:me@mail.com?subject=mysubject&body=mybody seems might want write own function this. edit: here sample function (written python noob). edit 2, cleanup feedback: from urllib import unquote test_mailto = 'mailto:me@mail.com?subject=mysubject&body=mybody' def parse_mailto(mailto): result = dict() colon_split = mailto.split(':',1) quest_split = colon_split[1].split('?',1) result['email'] = quest_split[0] pair in quest_split[1].split('&'): name = unquote(pair.split('=')[0]) value = unquote(pair.split('=')[1]) result[name] = value homecoming result print parse_mailto(test_mailto) python mailto url-parsing

java - 403 Forbidden when downloading an FLV directly from YouTube -

java - 403 Forbidden when downloading an FLV directly from YouTube - i'm writing java application download video , convert mp3 (i know there's ton of similar stuff out there, bit of learning experience.) i'm @ point retrieves list of formats , urls, , downloads videos in mp4 format fine (the thing accomplish straight download url given in stream format map.) however, youtube gives me 403 forbidden error whenever seek download flv video (which quite big issue since lot of videos available in flv format.) after quick inspection using chrome developer tools turns out there's cookie called activity beingness sent server when starting actual video download, , value similar timestamp received original phone call /watch, 3 digits more accurate (so milliseconds). i'm not sure if problem; generate_204, request caught attending in chrome developer tools. please don't point me complicated unreadable python/etc. examples. dislike python , i'm not @ lev...

ios - Swipe-based navigation -

ios - Swipe-based navigation - i'm hoping hear thoughts people have on how architecture swipe based menu/selection. basically, want create portion of screen can swiped (left or right) select between 1 of 5 images. example, server deliver 5 images reflect "headlines" or "stories" when user clicks on individual image, send user new view can display related content. user switch between images swiping either left or right. i want lazily update images , supplemental info forwards , backward image minimize delay user. i can imagine how set info back upwards swiping action , send info selected view can displayed. what i'm curious people think best method of designing actual swipable menu be. know when apps provide, example, swipable images there give-and-take using uiscrollview , updating images way. or, utilize uiviewcontroller containment create 5 or separate views swapped between based on user swipe. or, there may much improve wa...

php - Joining Three Tables -

php - Joining Three Tables - i'm trying take info 3 different tables , output using few queries , little php code possible. listed below tables have , columns in each (only listing relevant columns). exp_members (a) columns: member_id, group_id exp_brandrelations (b) columns: member_id, brand_id exp_du_mktgmats (c) columns: du_id, brand_id, date i want loop through members belong group_id='5' (from a), determine brands assigned each fellow member (from b), , list of du_ids (from c) correspond each member, have been inserted in lastly 24 hours. so far, can list of members in grouping 5: select member_id, brand_id exp_brandrelations where member_id in (select member_id exp_members group_id = 5) and can list of du_ids lastly 24 hours: select du_id exp_du_mktgmats where date >= date_sub(now(), interval 1 day) but i'm not sure how best tie together. this should it! select m.member_id, b.brand_id, d.du_id exp_members...

android layoutinflater NullException -

android layoutinflater NullException - i'm trying create layout inflater, app crashes , gives nullexception error in log cat... here code.... <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/toast_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:padding="100dp" android:background="#daaa"> <textview android:id="@+id/customt2" android:layout_width="wrap_content" android:layout_height="fill_parent" android:textcolor="#fff"/> </linearlayout> and programme code.... final imageview text2 = (imageview) findviewbyid(r.id.text2); text2.setonclicklistener(new onclicklistener() { @override public void onclick(view v) { // todo auto-generated method stub la...

jquery - scattering images within a defined space so they don't overlap -

jquery - scattering images within a defined space so they don't overlap - hello coders of quality , others! i using jquery script (author: marco kuiper - www.marcofolio.net) randomly places images within defined space. using mouse images can dragged around on screen, clicked enlarge. the problem when page viewed on iphone, images cannot dragged if images overlapping cannot tapped , enlarged. thought create array of random coordinates @ to the lowest degree width of each image away each other while still fitting confines of enclosing div. images same dimensions. 1 time array created, utilize it's values position images. here's current script places images: $(".polaroid").each (function () { var tempval = math.round(math.random()); if(tempval == 1) { var rotdegrees = randomxtoy(330, 360); } // rotate left else { var rotdegrees = randomxtoy(0, 30); } // rotate right var position = $(this).parent().offset(...

JQuery Mobile strange behavior, select's onchange event goes back all the time (only on SAFARI IPHONE) -

JQuery Mobile strange behavior, select's onchange event goes back all the time (only on SAFARI IPHONE) - i've developed dynamic website local paper in hellenic republic , have next unusual behavior on mobile edition (jquery mobile): i have select on top of every page categories (top right) , when select there category, grab onchange event , take value of alternative contains destination url. page changed goes original (caller) page. i have within page list view same urls top select (categories) , if click on links (from list view) everythings goes fine. 3. behavior can reproduced iphone safari browser. i read answers more or less same problem, workaround has worked me. url of mobile version is: http://m.stagonnews.gr thanks. do not utilize $(document).ready() function! jquery mobile docs offer documentation this! fires everytime alter page , because poping dialog doesn't record history can redirect it, probably. doc here use live initaliz...

NHibernate - mapping two collections of the same type to database -

NHibernate - mapping two collections of the same type to database - nhibernate mapping question. have entity called user , entity called menu. user contains 2 collections of menus. public class user { public list<menu> history {get; set;} public list<menu> favourites {get; set;} } public class menu { public string name {get; set;} ... } is there anyway could, without creating new entity, generate 2 relationship tables user , menu (userhistory , userfavourites probably...), each contains mapping userids menuids? can done mappings only(fluentnhibernate mapping if possible)? or there improve way trying here? thank you. i'd utilize public class usermap : classmap<user> { references(m => m.history).column("historyid"); references(m => m.favourites).column("favouritesid"); } in users and sub class menu userhistory , userfavourites. public class menumap : classmap<menu> { p...

javascript - How do I correctly zoom to bounds in MapQuest? -

javascript - How do I correctly zoom to bounds in MapQuest? - i'm attempting utilize mqa.tilemap.zoomtorect set view-port of given bounding box. var cust; var rect = new mqa.rectll(); (var = 0, len = custs.length; < len; i++) { cust = custs[i]; poi = new mqa.poi({lat:cust.lat, lng:cust.lng}); map.addshape(poi); // works rect.extend(poi.latlng); // nil `rect'. } map.zoomtorect(rect, false); // fails it appears rect values remain 0,0 both lr , ul properties. phone call results in next output in firebog "networkerror: 500 internal server error - http://coverage.mqcdn.com/coverage?format=json&jsonp=mqa._covcallback&loc=nan,nan,nan,nan&zoom=2&projection=sm&cat=map%2chyb%2csat" edit: i've added notes illustration adding shape works fine, poi object fine, inspecting poi.latlng fine. if set poi's in collection can utilize collections getboundingrect method. example: var collection = new ...

ios - Audio Route Button - AirPlay -

ios - Audio Route Button - AirPlay - i playing sound through audioqueues. allow users connect airplay devices. if create mpvolumeview , utilize 'showsroutebutton' display route button can connect. is there way alter sound route airplay without using mpvolumeview? or simpler apple view route button? i don't think there other way show airplay route button (at to the lowest degree in current sdk ios 5.1).. if want show airplay options have utilize mpvolumeview.. ios audio airplay audioqueue

Trouble verifying paypal notify data with PHP -

Trouble verifying paypal notify data with PHP - i'm trying check info paypal sends notify_url after transaction has been paid (in case using sandbox). i've tried sample code paypal fsockopen couldn't work properly. tried curl manually giving certificate, didn't turn out either. however after changes, managed find solution : <?php $_post = array('mc_gross' => '9.90', 'protection_eligibility' => 'eligible', 'address_status' => 'confirmed', 'payer_id' => '5pk5h93be5raq', 'tax' => '0.00', 'address_street' => '1 main st', 'payment_date' => '12:13:29 jan 12, 2012 pst', 'payment_status' => 'pending', 'charset' => 'windows-1252', 'address_zip' => '95131', 'first_name' => 'test', 'address_country_code' => 'us', 'address_name' =...

code generation - Are those dia2sql tools sheet-specific? -

code generation - Are those dia2sql tools sheet-specific? - i using dia v0.97.1 draw diagrams database modelings. 1 thing hope advice experienced members dia2sql tools. automatically parse .dia document (xml document in essence) saved , generate sql statements you. however, according of documentations seem work uml sheet. if include er boxes, undermine whole thing , render unreadable dia2sql tools.? if is, unfortunately, case, there way around that? many thanks. i happy tedia2sql, first-class perl dia parser. http://metacpan.org/pod/parse::dia::sql code-generation dia

How to use git (on windows) to contribute code to svn? -

How to use git (on windows) to contribute code to svn? - i wish contribute code http://svn.r-project.org/r/ have experience using git (through windows gui), , no experience svn. i see this thread, possible to: the easiest way found utilize git gui, , add together git svn dcommit , git svn rebase command tools menu. if install msysgit, set 'git gui here' command in context menu. this has advantage of not requiring additional software apart git itself, , work on every platform git (gui) runs on. however, says: i guess menu shows 1 time open existing repo. @ to the lowest degree initial git svn clone have utilize commandline. can please instruct me on how step done? (or of different solution, if there simple 1 that) i think tutorial may helpful you: http://trac.parrot.org/parrot/wiki/git-svn-tutorial git svn

c# - How to not lock two files with Assembly.Load -

c# - How to not lock two files with Assembly.Load - if re-create file file.copy(src, dst); and load copy var asm = assembly.loadfile(dst); why both files locked process? if delete src before load dst, , recopy dst src desired end result. delete , re-create seem little unnecessary. file.copy(src, dst); file.delete(src); var asm = assembly.loadfrom(dst); file.copy(dst, src); yes building plugin-design application. yes using appdomains shadow re-create (http://msdn.microsoft.com/en-us/library/ms404279.aspx). yes have manage own type cache (as each assembly load give different type far appdomain concerned). these not answers question. note src , dst strings. no other stream opened on files. it may source file in assembly resolution path application, , loaded automatically. seek making src c:\temp or other path has nil application's folder, , see if same thing occurs. c#

jQuery slideToggle not behaving properly when used with fadeTo -

jQuery slideToggle not behaving properly when used with fadeTo - i alter opacity of div , slide or downwards view contents sliding animation behaving strangely, can seen here: http://jsfiddle.net/nsytr/ if remove fadeto in click function however, sliding works should. what missing here create #user_box div alter opacity , slide? markup: <div id="user_bar"></div> <div id="user_box"> <a href="#">blah</a> <a href="#">blah</a> <a href="#">blah</a> </div> js: $("#user_bar").hover(function(){ $(this).fadeto(100, 0.5); }, function(){ $(this).fadeto(100, 0.7); }); $("#user_bar").click(function(){ $("#user_box").fadeto(0, 0.5); $("#user_box").slidetoggle(); }); css: #user_bar { height: 10px; width:100%; position: fixed; top: 80px; left: 0; right: 0; ...

c# - Indentation shortcuts in Visual Studio -

c# - Indentation shortcuts in Visual Studio - i'm new visual studio 2010 , c#. how can indent selected text left/right using shortcuts? in delphi ide equivalents ctrl+shift+i , ctrl+shift+u tab , shift+tab that. another cool trick holding downwards alt when select text, allow create square selection. starting vs2010, can start typing , replace contents of square selection type. absolutely awesome changing bunch of lines @ once. c# visual-studio-2010 delphi indentation