Posts

iOS - Facebook getting all events just by url -

iOS - Facebook getting all events just by url - my aim ios app load events facebook. i'd collect url's events , set them database. app should take url's , load content. my approach app/server recognizes event-id url , load them via facebook sdk. sdk work need access token, right? that token can code here: getting events facebook page it great if guys can tell me work or have improve ideas? thanks much , best regards germany, chris ios facebook facebook-graph-api

stored procedure sql server 2008 -

stored procedure sql server 2008 - i working on project , using stored procedure. i'm getting error: line: 939 error: sys.webforms.pagerequestmanagerservererrorexception: invalid object name 'it_assets'. transaction count after execute indicates mismatching number of begin , commit statements. previous count = 0, current count = 1. please find below stored procedure code: alter procedure [itassets_sp_it_assets] -- add together parameters stored procedure here (@mode varchar(12)='add', @id integer , @assetcode nvarchar(20)=null, @description nvarchar(70)=null, @site nvarchar(10)=null) begin if @mode='add' begin begin tran insert [it_assets] ([id] ,[assetcode] ,[description] ,[site]) values (@id, @assetcode, @description, @site ) if @@error <> 0 rollback tran else commit tran select @id end else begin begin tran update [...

c# - defining order of elements inside the code -

c# - defining order of elements inside the code - using visual c# defining set of button , set of richtextbox within code (not visually) , here output. i want alter order of elements such richtextbox above button (unlike image behind button). how can programmatically ? just bringtofront: richtextbox rtb = new richtextbox() { ... }; // ... rtb.bringtofront(); or senttoback: rtb.sendtoback(); c# visual-studio

Exception when run the code collect tweets in java -

Exception when run the code collect tweets in java - this question has reply here: java.lang.noclassdeffounderror main (wrong name : com/leslie/quiz/main) 1 reply i used next code collect tweets. when compile there no error. when compile programme shows exceptions. package com.crowley.simplestream; import twitter4j.filterquery; import twitter4j.status; import twitter4j.statusdeletionnotice; import twitter4j.statuslistener; import twitter4j.twitterstream; import twitter4j.twitterstreamfactory; import twitter4j.user; import twitter4j.conf.configurationbuilder; import twitter4j.stallwarning; public class simplestream { public static void main(string[] args) { configurationbuilder cb = new configurationbuilder(); cb.setdebugenabled(true); cb.setoauthconsumerkey("*********************"); cb.setoauthconsumersecret("...

java - Scanner class skipping over code -

java - Scanner class skipping over code - so have method isn't complicated @ all, seems skipping on 2 lines of code in while loop have. have tried do-while , normal while loop, neither of help. here code: { system.out.println("enter building material add together :: "); string first = keyboard.nextline(); system.out.println("how many of material add together ::"); int sec = keyboard.nextint(); int = (int)item.getid(first); //long section of code here. it's not necessary system.out.println(""); system.out.println("lumber - " + lumber); system.out.println("plywood - " + plywood); system.out.println("cinderblocks - " + cinder); system.out.println("mortar - " + mortar); system.out.println("tank traps - " + tanktrap); system.out.println("metal poles - " + metalpol...

jquery - Audio playback in Safari iOS with HTML 5 -

jquery - Audio playback in Safari iOS with HTML 5 - i'm having problem getting sound tag play on safari ios. i'm trying play file using sound tag. next code works on safari mac chrome android. aware of 'bandwidh conservation' in ios requiring user interaction initiate download have overcome calling next code click interaction callback. $("#myspinner") instance of spin.js (http://fgnass.github.io/spin.js/) library this.audioelement = $('#myaudio'); this.audioelement.empty(); var currenttrack = // .. track backbone model ....... var source = $('<source></source>', { type: 'audio/mpeg', src: currenttrack.get('url'), }).appendto(this.audioelement); this.audioelement.appendto('#container'); console.log("added new track sound tag"); // $("#myaudio")[0].load(); $("#myaudio").on('canplay', function() { $("#myaudio")[0].play(); $("...

How to get a document in mongodb only if at least 3 columns have non null values -

How to get a document in mongodb only if at least 3 columns have non null values - i have collection in mongodb pupil attributes id, name, standard, marks, average. want write query documents @ to the lowest degree 3 attributes contain non-null values. all documents contain non null value in (name, standard, marks) or (name,marks,average) or (name,standard,marks,average) or (id, name, standard, marks, average) should printed. if document contains (name,standard) non null or (standard,marks) should ignored. i have said given "students" documents this: class="lang-js prettyprint-override"> { name: "a", standard: "b", marks: 10 }, { name: "b", marks: 5, average: 2 }, { id: 2, name: "c", marks: 10, average: 7 }, { name: "c", standard: "b" }, { standard: "c", marks: 3 } then "ideally" this: class="lang-js prettyprint-override"> db.students.find({ ...