Posts

Showing posts from February, 2012

c# - Running ASP.NET MVC 6 Web API from IIS -

Image
i create mvc 6 web api project running expected visual studio, when i'm deploying production i'm getting a an error occured while starting application error. i did following on production machine installed asp.net 5 https://get.asp.net made sure production environment running same dnx version application published with installed httpplatformhandler 1.2 set application pool .net clr version no managed code pointed root location wwwroot folder is there else i'm missing? when run 500 errors, remember asp.net 5 application can self hosted, open command prompt browse application directory type in web.cmd i had reference problems within application listed in command prompt subsequently fixed , worked expected.

c# - Convert datetime ticks(String.Format("{0:D19}", DateTime.MaxValue.Ticks - DateTime.UtcNow.Ticks) to datetime -

i storing azure table storage rowkey in date time ticks format string.format("{0:d19}", datetime.maxvalue.ticks - datetime.utcnow.ticks); and want convert date time. if doing: string str = string.format("{0:d19}", datetime.maxvalue.ticks - datetime.utcnow.ticks); then have that // str = max - so // = max - str so datetime = new datetime(datetime.maxvalue.ticks - long.parse(str), datetimekind.utc);

Azure Stream Analytics job truncates data -

i'm having quite strange issue azure iot hub , azure stream analytics job. long story short: configured azure iot hub instance weather data raspberry pi 3 had sensor attached it; then, configured azure stream analytics job take data iot hub , put documentdb collection - during configuration phase, set sensorid being partition key. after running job 3 days, bought more sensors (that have different ids) , add them raspberry pi - data being collected , sent azure iot hub without issues 3 attached sensors (checked transmission device explorer). now comes weird part - data sent first sensor (the 1 run 3 days itself) getting through analytics job , sent documentdb - in portal see have lot of input events see 0 output events (though data getting through). in order exclude other issues, wrote small console application "listens" iot hub incoming messages , indeed, sensors sending data iot hub. the query used analytics job following: select sensorid, avg(h...

cq5 - AEM 6 + - Adobe sling login page should not show to users where session has timed out. Can I do it with the available config components? -

Image
how redirect custom page instead of sling login page when session has timed out? there configuration can used available config components? or should handle in code? you can configure location of login page through com.day.cq.auth.impl.loginselectorhandler setting auth.loginselector.defaultloginpage if need more complicated, making custom authentication handler .

c++ - How do I convert this array to a vector? -

const int num_digits = 7; int pin1[num_digits] = {2, 4, 1, 8, 7, 9, 0}; int pin2[num_digits] = {2, 4, 6, 8, 7, 9, 0}; int pin3[num_digits] = {1, 2, 3, 4, 5, 6, 7}; std::vector defines constructor takes in 2 inputiterators , default allocator with template <class inputiterator> vector (inputiterator first, inputiterator last, const allocator_type& alloc = allocator_type()); so can create vector array so, std::vector<int> vec(pin1, pin1 + num_digits);

django - AWS S3 upload. Invalid according to Policy: Policy expired -

i'm using django server hosted on ec2 singapore. i'm using s3 bucket save files uploaded through django admin panel. upload files, i'm using django-s3direct . when upload files using local machine on eastern american time, prevents me uploading files citing: <message>invalid according policy: policy expired.</message> i've tried solutions from: fine uploader getting "policy expired" message sending s3 some , here: https://github.com/fineuploader/fine-uploader/issues/1387 when check uploaded time , utc time, there's no difference. how fix error? edit: noted, upload works on localhost doesn't work on server hosted on aws ec2. similar issues refer inaccurate clock. should clock of client not server. suggest writing code check whether client's time in sync known , accurate time server. if time out of sync, friendly message can shown user update system's clock. if time in sync, can proceed upload.

c++ - Curly brackets after for statement -

i'm newbie. wrote code print sum of number 1 10. here's happened; for(a = 1; a<=10; a++) sum += a; cout<<sum; executing gave me correct answer i.e 55 when execute following: for(a = 1; a<=10; a++) { sum += a; cout<<sum; } it gives me complete different , wrong answer i.e 13610152128364555 why happen? goes wrong when put curly brackets after statement? i hope not silly question. if break apart big number: 1 3 6 10 15 21 28 36 45 55 you can see what's happening - it's outputting accumulated sum after every addition, because cout within loop. it's hard see because have no separator between numbers. you'll see difference if format code properly: for(a = 1; a<=10; a++) sum += a; // done each loop iteration cout<<sum; // done once @ end. for(a = 1; a<=10; a++) { sum += a; // done each loop iteration cout<<sum; // done each loop itera...

bit manipulation - Why java bitwise compliment not fliping properly? -

i have following code: int b1 = 0b1011; b1 = ~b1; system.out.println(integer.tobinarystring(b1)); but not getting expected result i.e. 100 what getting 11111111111111111111111111110100 . can 1 please explain this? you flipping integer consists of 4 bytes, i.e., 32 bits. first 28 bits 0. getting flipped, too, results in number get. before flipping: b1 = 0b00000000000000000000000000001011 after flipping: b1 = 11111111111111111111111111110100 in order rid of unwanted 1's logically , b1 after flipping bits: b1 = ~b1 b1 = b1 & 0b1111

jquery - How to select option with double click? -

Image
how make select option selectable double click? e.g. double click "option text #3" , value of option 3 shall written hidden input field id="selectedoption". you can use dblclick way: $('select option').dblclick(function() { $('#selectedoption').val(this.outerhtml); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select size="4"> <option>option # 1</option> <option>option # 2</option> <option>option # 3</option> <option>option # 4</option> </select> <input type='text' id='selectedoption' value=''>

java - Why is my waiting thread not waking up even though it's being notified? -

i have client server tic-tac-toe game attempting run different thread (in different terminals) each player, have built in eclipse. my goal make each player make move, .notify() other player , .wait() other player make move, , alternate process until game done. tosync object used synchronization public static final object tosync = new object() and found in player class (which extended both xplayer , oplayer). the lines seem causing problem commented in xplayer , oplayer: both xplayer , oplayer have main methods, can run concurrently. x makes first move uses socket communicate move server. server passes move o, makes own move , passes server. alternates until game done. making first move x player works fine, once intial move made, o supposed display board , prompt user move. not happen: x makes move, , o supposedly notified, in fact never wakes up. curly brace ending while loop commented in oplayer never reached (which know true debugging i've done far). class xp...

How to copy files from one server to other server with powershell when the shared path contains '$' symbol -

i have 3 remote servers in hand. let server x, server y , server z. running powershell script local machine login remote server x. server x base server has access other 2 servers. want use server x base server , want copy files server y server z impossible through local machine because of access permissions. logged in server x using admin credentials has access 3 servers. after logging in, mentioning copy-item command copy files shared path of server y shared path of server z. this similar question many in website here goes twist. when debugging, showing completed not getting results. tried running powershell script directly in server x contains copy-item command , source , destination paths of shared folders. when debugging getting error that, user doesn't have permissions or path not found. when trying copy , paste files shared path manually using same credentials, working. through powershell script, it's working. know reason. it's because of symbol '$' in s...

objective c - How change the font of attributed string in iOS? -

this question has answer here: apply custom font attributed string converts html string 1 answer i have added attributed string on label.i displaying html text works fine default showing times new roman family. please tell how can change text family. nsattributedstring *attributedstring = [[nsattributedstring alloc] initwithdata:[inst.desc datausingencoding:nsunicodestringencoding] options:@{ nsdocumenttypedocumentattribute: nshtmltextdocumenttype } documentattributes:nil error:nil]; try this: nsattributedstring *attributedstring = [[nsattributedstring alloc] initwithdata:[inst.desc datausingencoding:nsunicodestringencoding] options:@{ nsdocumenttypedocumentattribute: nshtmltextdocumenttype } documentattributes:nil error:nil]; nsmutableattributedstring *newstring = [[nsmutableattributedstring alloc] initwithattributedstring:attributedstring]; nsrange ran...

xcode - How to connect sql server with swift -

i'm working on application ios (using swift), database exist in sql server. how use , connect it? need web service that? thanks . it recommended use web service since having application talk directly database means need include sql credentials in binary , copy of application can them , whatever wish in database. security point of view, bad. the correct approach have web server host "api" -- web application receive http requests app , translate them database queries , return response in format, such json. however, need careful. web services must use https , must first validate input in order protect against attacks such sql injection .

sas - split string to columns with content fill -

Image
i have data looks this: id sequence --------------------------------- 101 e6s,k11t,q174k,d177e 102 k11t,v245ekq i need add: a new column column heading each sequence, add prefix 'rt', drop letters following numeric part of sequence fill new column letters follow numeric part of sequence i need create this: id sequence rte6 rtk11 rtq174 rtd177 rtv245 ----------------------------------------------------------------------- 101 e6s,k11t,q174k,d177e s t k e 102 k11t,v245ekq t ekq i assume want sas data set , not report. anydigit makes pretty easy find last non-digit sub-string. data seq; infile cards firstobs=3; input id:$3. sequence :$50.; cards; id sequence --------------------------------- 101 e6s,k11t,q174k,d177e 102 k11t,v245ekq ;;;; run; proc print; run; data seq2v / view=seq2v; set seq; length w name sub $32 subl 8; =...

angular - Difference between inputProperty="data.x" and inputProperty="{{data.x}}" -

in application, have defined component, takes 2 variables: start , end . run in ngfor follows: <template ngfor #exampledata [ngforof]="data" #idx="index"> <div> <example-component start="exampledata.star" end="exampledata.end" *ngif="exampledata.start" ></example-component> </div> </template> you can see in plnkr as can see, code provides example-component string of either exampledate.start or exampledata.end . it run intended when add expression component that: <template ngfor #exampledata [ngforof]="data" #idx="index"> <div> <example-component start="{{exampledata.star}}" end="{{exampledata.end}}" *ngif="exampledata.start" ></example-component> </div> </template> my question is: why that? you leverage property binding paramete...

http - openssl s_client TLS connection through proxy with clientAuth -

i'd use openssl s_client open tls connection through proxy (squid) origin server using connect request method. using client certificate connect proxy server shown: openssl s_client -connect my_proxy:4443 -cafile /etc/ssl/ca/ca.crt -cert /etc/ssl/cert/client.crt -key /etc/ssl/key/client_key.pem after running above, connection information prints out fine , enter connect , methods, , works fine: connect www.google.com:80 http/1.1 host: www.google.com http/1.1 200 connection established get /search?q=ip+address http/1.1 host: www.google.com http/1.1 200 ok however, able establish tls (https) connection haven't been able work: connect www.google.com:443 http/1.1 host: www.google.com http/1.1 200 connection established get /search?q=ip+address http/1.1 closed what doing wrong here? before try openssl 1.1.x has -proxy parameter, i've tried that. note ca cert, client cert , client key on above command connection...

java - Changing the design of the report at runtime in ireport -

can change design of report in ireport @ runtime. to more specific , clear, if want appearance of table depends on data comes database @ runtime, if value exists table appear in report, otherwise don't want exist. is possible? for e.g.: select field_1, field_2, field_3 csg_table xxxkey1 = "a_certain_value" , xxxkey2 = "a_cartain_value" what if key xxxkey1 doesn't exists in database, dataset empty (but i've added table gets data db using query), if ireport doesn't allow me change design @ runtime table appear empty , don't want that!!

php - Send out email/campaign to a list when url is visited in mailchimp -

hello stackoverflow :) i'm building script client has e-paper comes out everyday. the e-paper build 3rd party , when publish it, can have system visit url of our choice. when system visits our url wan't mailchimp automated e-mail (with link e-paper) send out on 1 of our lists. so question is: can automated paid feature in mailchimp or need code script mailchimp api @ url take care of automated e-mail lists? , if latter methods should in documentation? not looking complete answer, pointing in right direction :) google hasn't helped me following queries: "send out email list when url visited", "send email campaign list when url visited" why turn :) thanks in advance generally speaking, use mailchimp's goal , automation features accomplish something this . however, you're dealing dynamically generated url needs included in email. far, haven't come accross way transfer information "goal page" mailchimp - othe...

javascript - facebook user location, birthday in node.js | Not Working -

unable location hometown , birthday of user (with access_token) in node.js though works in browser , graph api explorer . edit: using passport access_token following scopes : app.get('/auth/facebook', passport.authenticate('facebook', { scope : ["email", "user_location", "user_hometown", "user_birthday"] })); profilefields: ['id', 'emails', 'name', 'birthday', 'gender', 'location', 'hometown', 'locale', 'age_range'] browser url: https://graph.facebook.com/v2.5/me?fields=id,name,location,age_range,email,birthday,hometown,gender&access_token=access_token_here response: { "id": "7766..........", "name": "john doe", "location": { "id": "11..........", "name": "berlin, germany" }, "age_range": { "min...

php - Fatal error: Cannot use object of type stdClass as array in line 33 -

please help... seems error in $agentlist = array(); i want echo list in view please help... please help... please help... $this->load->model('home_model'); $agent= $this->home_model->getagent($data['userid']); $agentlist = array(); $listagent = ''; if($agent !== false) { foreach ($agent->result() $row) { array_push($agentlist, $row['agentcode']); $listagent .= "<option value='".$row->agentcode."'>".$row->name."</option>"; } } $listschool = $this->home_model->getallschool($agentlist); $listtd = ''; if($listschool !== false) { foreach ($listschool->result() $row) { $address = $row->address." ".$row->address2; $listtd .= "<tr...

jquery - How to temporarily stop the scroll event while dragging the uibmodal in mozilla? -

here directive using solution here - how can apply draggable directive bootstrap modal using angularjs? modal: $uibmodal.open({ templateurl: 'app/views/signs.html', controller: function ($scope, $uibmodalinstance, urls){ $scope.urls = urls; $scope.close = function(){ $uibmodalinstance.dismiss('cancel'); }; }, windowclass: 'windowclasscss', backdrop: 'true', resolve: { urls: function () { return home.getus(); }, signgroup: function(){ return home.getg(); }, } }); angular.module('myapp').directive('draggable', function ($docum...

python - Checking for existence of _id using and updating subdocument Pymongo -

i'm trying write mongodb backend puzzle website. i'm new pymongo , i've been struggling find way check unique key identifier , update subdocument if exits. layout this: { _id : jack "username": jack "puzzles": [ { "name": puzname, "rank": rank, "date": puzdate, "global score": score, "points": points } ], "attempts": 1 } if jack exists, this: { _id : jack "username": jack "puzzles": [ { "name": puzname, "rank": rank, "date": puzdate, "global score": score, "points": points } { "name": puzname2, "rank": rank, "date": puzdate, "global score": score, "points": points } ], "attempts": 2 } to populate fields, i'm ...

jquery - O365 SharePoint CEWP with Javascript Not Loading? -

i'm trying execute example using "etherson method" create web part javascript. want separate .html , .js files in custom library shown: files if keep js inline, code works expected: <!doctype html><html><head> <title></title> <script type="text/javascript"> $(function () { $.ajax({ url: "/moperations/_api/web/lists/getbytitle('demo list')/items", type: "get", headers: { "accept": "application/json;odata=verbose" }, }).success(function (data) { var listiteminfo = ""; $.each(data.d.results, function (key, value) { listiteminfo += "<strong>title: </strong>" + value.title + " <strong>description: </strong>" + value.description + "<br />"; }); $("#divhelloworld").html(listiteminfo); }); })...

create an DAO Access file in Excel VBA -

i unable create file using following commands, me in regard. error says invalid argument. got office 2010. my ref :ms office 14.0 access database object library sub dbcreate() dim db dao.database dim rs dao.recordset set db = dao.workspaces(0).createdatabase("d:\tblimport11.accdb", db_lang_general) db.close 'set rs = nothing set db = nothing end sub i tried: set db = dbengine.createdatabase("d:\tblimport11.accdb", db_lang_general) this gives same error the db_lang_general wrong parameter. use: set db = dbengine.createdatabase("d:\tblimport11.accdb", dblanggeneral)

javascript - Codelab(bitbucket.org) example step 6, not working across network -

i reposting question didn't working solution previously. sorry inconvenience caused. have hosted example (basic video chat application use node.js signalling) shown in step 6 of codelab webrtc demo tutorials on heroku try using across different networks. using xirsys stun/turn servers it. works fine when 2 systems on same network. when try connecting systems across different network, shows black screen on remote video. unable figure out problem here. attaching code main.js .any appreciated. 'use strict'; var ischannelready; var isinitiator = false; var isstarted = false; var localstream; var pc; var remotestream; var turnready; var pc_config = {'iceservers': [ {url:'stun:turn02.uswest.xirsys.com'}, { url: 'turn:turn02.uswest.xirsys.com:443?transport=udp', credential: 'my_credentials', username: 'my_username' }, { url: 'turn:turn02.uswest.xirsys.com:443?transport=tcp', credential: 'my_credentials...

Logging time taken by Sunspot and solr in Rails -

when request made, time taken sunspot , solr displayed started "/collections/aa1/items/001" 127.0.0.1 @ 2016-03-07 15:11:00 +1100 ... completed 200 ok in 220.1ms (views: 139.9ms | activerecord: 59.4ms | solr: 583.7ms) however, when put request made, time taken sunspot , solr displayed in various sub-lines, not @ end started put "/collections/aa1/items/001" 127.0.0.1 @ 2016-03-07 15:10:59 +1100 ... solr request (456.0ms) ... ... solr request (127.8ms) ... ... completed 302 found in 1192.9ms (activerecord: 211.4ms) this problem because when logging happens in production, sub-lines aren't displayed. how can list time sunspot , solr in final line, like completed 302 found in 1192.9ms (activerecord: 211.4ms | solr: 123.4 ms) ?

stl - How to read badly formatted input data in C++? -

i learning c++ , stuck on exercise. how read data not formatted correctly? example, given file need read data looks this: 1 z 2 1 xy 2 3 8000 e 1777 e 2001 the first, second, , third lines make "module". there lot of data many modules input through keyboard. program has accept of user's input (until user decides type "q" quit) , read input , manipulate data. ideally, input formatted correctly example above, data have whitespace, tabs, carriage returns, or start data previous module, this: 2 r 5001 e 4777 1 z 2 1 xy 2 3 8000 e 1777 e 2001 what best way read , manipulate input data bad formatting? in case want able extract 1 z 2 , 1 xy 2 , , 3 8000 e 1777 e 2001 , store in array or kind of stl container , able information later (like add, subtract, or multiply number based on whether there "a", "s", or "m" in front of number). my program has able recognize z , xy variables , z = 2 , xy = 2. ...

jquery - Creating bookmarks of titles while scroll -

im making bookmarks on scroll. concept: when scroll , title reaches top of screen script adds left appropriative bookmark. im using tweenmax add animation action. problem when scroll , forth around removed bookmarks not alwayes added left, throught 2-4 scrolls around it. can understand why. ideas? codepen here . , code itself: $(window).scroll(function () { $('h2').each(function(i){ var elementontop = $(this).offset().top, winsize = $(window).scrolltop(), title = $(this).text(), textid = 'title-' + i++ , linkto = $(this).attr('id'); if (winsize > elementontop) { if ($('.marks a:contains('+ title + ')').length == 0) { $('.marks').append('<a href="#' + linkto + '" id="' + textid + '">' + title + '</a>'); tweenmax.from('#'+textid, 1, {y: -20, opacity:...

Salesforce issue: XML document structures must start and end within the same entity -

i'm trying code work, error comes after running is: xml document structures must start , end within same entity. my code is: <apex:page> <center>log in , lets make sales world yours.</center> <apex.form> <apex:commandbutton value="log in" onclick="window.open('https://www.bluegreenvacations.com/');" /> </apex.form> <apex:page> looks forgot forward slash in line #4!? </apex:page>

elasticsearch - Updating the document in aliased index collection -

i trying figure out if there efficient way update document in aliased index collection .i create index alias names .when insert document index using access-event-logs_writer alias (which refers created index ) flows need update document. if update access-event-logs_writer alias, works if document in current index . if index rotation has occurred , document want update in other index , update access-event-logs_writer fails. i update access-event-logs alias, fails if there more 1 index alias name. one option query , find index in document resides , use index name update.also , in approach getting source document , can update in memory , index again same document id (no update / deletion). please let me know if there better way handle update? below how alias looks like. curl http://localhost:9200/_alias { "access-event-logs_2016-03-06t00:00:00-08:00": { "aliases": { "access-event-logs": {}, "access-event-logs_writer...

Create Date Object MongoDB new php driver -

i'm trying create date object create document in mongodb php. i saw in php documentation new mongodate() i'm using 'new' drivers mongodb php7 ( this doc ) , can't use this. i tried mongodb\bson\date got class 'date' not found i searched across new driver documentation & stackoverflow nothing ... does know how create date object 'new' php driver ? the name of class \mongodb\bson\utcdatetime : http://php.net/manual/en/class.mongodb-bson-utcdatetime.php

java - Data Structures -

i coding program going compute number of inversions in array. requirement use divide-and-conquer algorithm. have used merge sort afterwards stuck. need create method called count in order count inversions using recursion. here need help... thank in advance import java.util.*; public class inversions { public static void main(string[] args) { integer[] = {2, 6, 3, 5, 1}; mergesort(a); system.out.println(arrays.tostring(a)); } public static void mergesort(comparable [ ] a) { comparable[] tmp = new comparable[a.length]; mergesort(a, tmp, 0, a.length - 1); } private static void mergesort(comparable [ ] a, comparable [ ] tmp, int left, int right) { if( left < right ) { int center = (left + right) / 2; mergesort(a, tmp, left, center); mergesort(a, tmp, center + 1, right); merge(a, tmp, left, center + 1, right); } } priva...

mysql - Pushing sql statments from java to database, executeUpdate() returns NullPointerException -

so trying store information database java application, getting error: ""awt-eventqueue-0" java.lang.nullpointerexception" , can life of me not find reason. jave tried changing names of variables , have tried using "preparedstatment" aswell. yet nothing has worked far. public class db { public static final string driver ="com.mysql.jbdc.driver"; public static final string url = "jdbc:mysql://localhost:3306/oving8"; public static final string user = "root"; public static final string pw = ""; private static connection kobling; private static statement settoppstatment(){ try { class.forname(driver); connection tilkobling = drivermanager.getconnection(url, user, pw); return tilkobling.createstatement(); } catch (classnotfoundexception e) { system.out.println("can not find class in"); } catch (sqlexception e) { system.out.println("can not connect ...

java - unable to run the application after changing the project facet? -

Image
i have changed project facet , added dynamic web module it, after unable run application , getting err0r : 404. have attached screen shots. i guess problem due adding of dynamic web project. after have added dynamic web module project, eclipse created directory called webcontent in application. not maven likes. select project in eclipse , press alt + enter show project properties. search deployment assembly , click on add button , select "folder". click on "next". select folder /src/main/webapp , click on ok. make sure deploy path col directory '/'. can delete webcontent folder created eclipse , project can run on server

inno setup - How to disable NextButton when file is not selected on InputFilePage (CreateInputFilePage)? -

my inno setup program have custom "input file page" created using createinputfilepage . how can disable nextbutton in page until file path picked user? in other words, need make nextbutton unclickable while file selection form empty, , clickable when file selection form filled. thank you. the easiest way use nextbuttonclick validate inputs , display error message when validation fails. var filepage: tinputfilewizardpage; procedure initializewizard(); begin filepage := createinputfilepage(wpselectdir, 'caption', 'description', 'sub caption'); filepage.add('prompt', '*.*', '.dat'); end; function nextbuttonclick(curpageid: integer): boolean; begin result := true; if (curpageid = filepage.id) , (length(filepage.edits[0].text) = 0) begin msgbox('please select file.', mberror, mb_ok); wizardform.activecontrol := filepage.edits[0]; result := false; end; end; if wan...

Search On Website using php variable - DOM Parsing -

i want search on website pragmatically using php search on website manually, enter query on search box press search , result came out. suppose want search on website products names or model number stored in csv file. if products number or model number match website data result page should displayed .. i search on below question not able implement. creating 'robot' fill form pages in autofill form of website , send it please let me know how can php .. thanks you want create “crawler” websites. there things consider first: you code never generic. each site has proper structure , can not assume thing (example: craigslist “encode” emails simple method) you need select objective (emails ? items information ? links ?) php far 1 of worst languages that. i’ll suggest using c# , library called agilityhtmlpack. allows parse html pages xml documents (so can xpath expressions , more retrieve information). it surely can done in php, think take @ least...

javascript - Properly working with div heights - vh -

i have interesting issue revolving around page. should happen see nice red box on video, , inside box link buttons when clicked load text external file, , put 1 of sub divs. text shouldn't overflow box, , box should stretch bottom of viewport. issue works terribly on different devices. if have long chapter, , you're in smaller browser, can scroll down, can't scroll top. i looked many solutions, can see - followed countless stack overflow posts, somehow, sense issue may lie deeper in css, somehow i'm doing wrong. if take , maybe me down right track this, i'd appreciate it! in advance! html, body{ height: 100%; } .box{ background-color: rgba(112, 0 , 0, .85); width: 60%; height: 100vh; overflow: hidden; /* http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ */ position: relative; top: 50%; transform: translatey(-50%); -webkit-transform: translatey(-50%); -ms-transform: translatey(-50%); ma...

apigee - OAuth 2.0 And Google Cloud Print -

i created project called: "projectprint-123" https://console.developers.google.com/apis/credentials/oauthclient?project=projectprint-123 credentials web application name : projectprint-123 what ask can 1. authorized javascript origins 2. authorized redirect uris put empty? because testing localhost. ok. proceed empty. what oauth consent screen? fill in email address @ part. ok. proceed next. then try https://www.google.com/cloudprint/getauthcode ? printerid=5e0db751-9498-677d-9cf3-3a7284978279&oauth_client_id=254414591833-7lg4a5nnnh009g9ccf613notg8vceunp.apps.googleusercontent.com fail: { "success": false, "message": "unknown, used or expired token.", "request": { "time": "0", "params": { "oauth_client_id": [ "254414591833-7lg4a5nnnh009g9ccf613notg8vceunp.apps.googleusercontent.com" ], "...

how to load data to picker view inside custom tableview cell in ios, objective c -

i have table view , few custom cells.in 1 custom cell there picker view.i need load data picker view @ cellforrowatindexpath this cellforrowatindexpath method - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { nsstring *cellidentifierone = @"detailcell"; flightusertableviewcell *detailcell = [tableview dequeuereusablecellwithidentifier:cellidentifierone]; nsstring *cellidentifiertwo = @"detailcelltwo"; flightusersecondtableviewcell *detailcelltwo = [tableview dequeuereusablecellwithidentifier:cellidentifiertwo]; if (indexpath.section == 0) { if (indexpath.row ==0) { //detailcell.titlepickerview **here want load data ** return detailcell; } return detailcelltwo; } return detailcelltwo; } how can that.i know if load data picker view have implement it's delegate methods below. - (nsinteger)numberofcomponentsinpickerv...