Search Results

Search found 3210 results on 129 pages for 'steve wall'.

Page 6/129 | < Previous Page | 2 3 4 5 6 7 8 9 10 11 12 13  | Next Page >

  • Howto use FB Graph to post a message on a feed (wall)

    - by qualbeen
    I have created an app, and now i want to post a message on one of my friends wall with use of the new Graph API. Is this do-able? I am already using oAuth and the Graph-api to get a list of all my friends. The API at http://developers.facebook.com/docs/api tells me to cURL https://graph.facebook.com/[userid]/feed to read the feed, but it also tells me howto post a message: curl -F 'access_token=[...]' -F 'message=Hello, Arjun. I like this new API.' https://graph.facebook.com/arjun/feed Ofcourse this doesn't work! And I can't find out why.. Here are my PHP-code: require_once 'facebook.php'; // PHP-SDK downloaded from http://github.com/facebook/php-sdk $facebook = new Facebook(array(appId=>123, secret=>'secret')); $result = $facebook->api( '/me/feed/', array('access_token' => $this->access_token, 'message' => 'Playing around with FB Graph..') ); This code does not throws any error, and I know my access_token are correct (otherwise i could't run $facebook-api('/me?access_token='.$this-access_token); to get my userobject. Have anyone out there sucsessfully posted a message using Graph-api? Then i need your help! :-)

    Read the article

  • when compiling,I write " gcc -g -Wall dene2 dene2.c", then gcc emits some trace

    - by gcc
    when I compile my code,I write " gcc -g -Wall dene2 dene2.c" in the console. then gcc emits some things on the screen. I havenot understand what it is and I cannot consturct any meaning. I have sorted in google but I havenot seen any information about thing which gcc emits on screen I am not saying examining all of the things which is at below,just show me "how to catch fish". (I couldnot find meaningful title ,for that reason ,sorry,) dene2: In function `_start': /build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:65: multiple definition of `_start' /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o:/build/buildd/eglibc-2.10.1 /csu/../sysdeps/i386/elf/start.S:65: first defined here dene2:(.rodata+0x0): multiple definition of `_fp_hw' /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o:(.rodata+0x0): first defined here dene2: In function `_fini': (.fini+0x0): multiple definition of `_fini' /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crti.o:(.fini+0x0): first defined here dene2:(.rodata+0x4): multiple definition of `_IO_stdin_used' /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o:(.rodata.cst4+0x0): first defined here dene2: In function `__data_start': (.data+0x0): multiple definition of `__data_start' /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o:(.data+0x0): first defined here dene2: In function `__data_start': (.data+0x4): multiple definition of `__dso_handle' /usr/lib/gcc/i486-linux-gnu/4.4.1/crtbegin.o:(.data+0x0): first defined here dene2: In function `_init': (.init+0x0): multiple definition of `_init' /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crti.o:(.init+0x0): first defined here /tmp/ccMlGkkV.o: In function `main': /home/fatih/Desktop/dene2.c:5: multiple definition of `main' dene2:(.text+0xb4): first defined here /usr/lib/gcc/i486-linux-gnu/4.4.1/crtend.o:(.dtors+0x0): multiple definition of `__DTOR_END__' dene2:(.dtors+0x4): first defined here collect2: ld returned 1 exit status

    Read the article

  • Facebook and retrieving a users "wall"

    - by Neurofluxation
    I have been given the dubious task of working with the Facebook API. I have managed to get quite far with all the little bits and pieces (bringing in "fan pages" and "friend lists"). However, I cannot seem to import a users wall into my App using SOLELY Javascript. I have this code to bring in the users friends: var widget_div = document.getElementById("profile_pics"); FB.ensureInit(function () { FB.Facebook.get_sessionState().waitUntilReady(function() { FB.Facebook.apiClient.friends_get(null, function(result) { var markup = ""; var num_friends = result ? Math.min(100, result.length) : 0; if (num_friends > 0) { for (var i=0; i<num_friends; i++) { markup += "<div align='left' class='commented' style='background-color: #fffbcd; border: 1px solid #9d9b80; padding: 0px 10px 0px 0px; margin-bottom: 5px; width: 75%; height: 50px; font-size: 16px;'><fb:profile-pic size='square' uid='"+result[i]+"' facebook-logo='true'></fb:profile-pic><div style='float: right; padding-top: 15px;'><fb:name uid='"+result[i]+"'></fb:name></div></div>"; } } widget_div.innerHTML = markup; FB.XFBML.Host.parseDomElement(widget_div); }); }); }); /*******YOUR FRIENDS******/ FB.XFBML.Host.parseDomTree(); Any idea whether I can change this to retrieve the Walls? Thanks in advance you great people! ^_^

    Read the article

  • Problems uploading pictures to Facebook wall.

    - by Miguel Ángel Ortuño
    Hi, i'm trying to upload a JPEG picture to Facebook wall using libcurl. Appareantly the connection is established but cURL hangs when waiting for server response. The libcurl output is the following: About to connect() to api.facebook.com port 80 (#0) Trying 66.220.146.15... * connected Connected to api.facebook.com (66.220.146.15) port 80 (#0) POST /restserver.php?api_key=e57addd5a98ac4445e36359043ded182&call_id=3&caption=ddfg&format=JSON&method=facebook.photos.upload&session_key=a3fc731e4c0329201606daeb-723233322&sig=a3f32226cff3e49ec799cf7dcc17a57e&ss=1&v=1.0?method=photos.upload HTTP/1.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Host: api.facebook.com Accept: / Content-Type: multipart/form-data; charset=UTF-8; boundary=PPoSt_dElImTTer MIME-version: 1.0 Content-Length: 128033 Expect: 100-continue Done waiting for 100-continue And the C++ code is as follow: String post_header = "Content-Type: multipart/form-data; charset=UTF-8; boundary=PPoSt_dElImTTer\r\nMIME-version: 1.0\r\n"; // POST binary data curl_slist* chunk = NULL; chunk = curl_slist_append(chunk, post_header.c_str()); curl_easy_setopt(m_http, CURLOPT_HTTPHEADER, chunk); curl_easy_setopt(m_http, CURLOPT_POST, true); curl_easy_setopt(m_http, CURLOPT_POSTFIELDS, buf); curl_easy_setopt(m_http, CURLOPT_POSTFIELDSIZE, all_size); curl_easy_setopt(m_http, CURLOPT_URL, m_request.c_str()); curl_easy_setopt(m_http, CURLOPT_WRITEFUNCTION, Facebook::Request::httpCallback); curl_easy_setopt(m_http, CURLOPT_WRITEDATA, this); curl_easy_setopt(m_http, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"); curl_easy_setopt(m_http, CURLOPT_VERBOSE, true);

    Read the article

  • Facebook Invalid OAuth access token signature trying to post an attachment to group wall from PHP

    - by Volodymyr B
    I am an administrator (manager role) of a Facebook Group. I created an app, and stored its id and secret. I want my app to be able to post something on the Facebook group's feed. But when I attempt to post, I get the error 190 Invalid OAuth access token signature, even though I able to successfully obtain the access_token with publish_stream and offline_access scopes. It has the form of NNNNNNNNNNNNNNN|XXXXXXXXXXXXXXXXXXXXXXXXXXX, where N is a number (15) and X is a letter or a number (27). What should I do more to get this accomplished? Here is the code I am using: public static function postToFB($message, $image, $link) { //Get App Token $token = self::getFacebookToken(); // Create FB Object Instance $facebook = new Facebook(array( 'appId' => self::fb_appid, 'secret' => self::fb_secret, 'cookie' => true )); //$token = $facebook->getAccessToken(); //Try to Publish on wall or catch the Facebook exception try { $attachment = array('access_token' => $token, 'message' => $message, 'picture' => $image, 'link' => $link, //'name' => '', //'caption' => '', 'description' => 'More...', //'actions' => array(array('name' => 'Action Text', 'link' => 'http://apps.facebook.com/xxxxxx/')) ); $result = $facebook->api('/'.self::fb_groupid.'/feed/', 'post', $attachment); } catch (FacebookApiException $e) { //If the post is not published, print error details echo '<pre>'; print_r($e); echo '</pre>'; } } Code which returns the token //Function to Get Access Token public static function getFacebookToken($appid = self::fb_appid, $appsecret = self::fb_secret) { $args = array( 'grant_type' => 'client_credentials', 'client_id' => $appid, 'client_secret' => $appsecret, 'redirect_uri' => 'https://www.facebook.com/connect/login_success.html', 'scope' => 'publish_stream,offline_access' ); $ch = curl_init(); $url = 'https://graph.facebook.com/oauth/access_token'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $args); try { $data = curl_exec($ch); } catch (Exception $exc) { error_log($exc->getMessage()); } return json_encode($data); } If I uncomment $token = $facebook->getAccessToken(); in the posting code, it gives me yet another error (#200) The user hasn't authorized the application to perform this action. The token I get using developers.facebook.com/tools/explorer/ is of another form, much longer and with it I am able to post to the group page feed. How do I do it without copy/paste from Graph API Explorer and how do I post as a group instead of posting as a user? Thanks.

    Read the article

  • Steve Jobs élu "CEO de la Décennie" par MarketWatch, combien de trophées possède désormais le patron d'Apple ?

    Steve Jobs élu "CEO de la Décennie" par MarketWatch, combien de trophées possède désormais le patron d'Apple ? Mise à jour du 10.12.2010 par Katleen Steve Jobs peut rougir, voici une distinction de plus qui vient saluer sa carrière. En même temps, l'homme en a déjà tellement reçu qu'il pourrait finir complètement blasé. Après Fortune en 2009, c'est aujourd'hui MarketWatch qui lui décerne le prix du CEO de la Décennie. Rien de moins. Et le patron d'Apple est crédité de bien des qualités, le jury l'ayant même comparé à Thomas Edison, Alexander Bell et Walt Disney ! Outre d'être dirigé par un "génie" de l'informatique, Cupertino s'est également fait remarquer par la ha...

    Read the article

  • Microsoft pourrait présenter Windows 8 en janvier 2011, lors de la keynote de Steve Ballmer au CES

    Microsoft pourrait présenter Windows 8 en janvier 2011, lors de la keynote de Steve Ballmer au CES Mise à jour du 15.12.2010 par Katleen Cela fait près d'un an que Microsoft distille au compte goutte des informations sur Windows 8, son futur système d'exploitation. Et le sujet semble passionner les foules. Mais le peu de détails actuellement disponibles, et le grand nombre d'informations à ce sujet qui ne sont pour l'instant que des rumeurs, frustrent aussi beaucoup de monde. A quoi ressemblera Windows 8, quelles seront ses spécificités ? Nous pourrions bientôt en savoir plus. Le 5 janvier 2011, Steve Ballmer animera une keynote au CES (Consumer Electronics Show)... Et i...

    Read the article

  • L'ancien PDG de Sun dit « ce qu'il ne pouvait pas dire » sur les brevets logiciels, Steve Jobs et Bi

    L'ancien PDG de Sun dit "ce qu'il ne pouvait pas dire" Et s'en prend au brevet logiciel, à Steve Jobs et à Bill Gates Jonathan Schwartz, l'ancien PDG de Sun Microsystems qui vient juste de démissionner, a visiblement envie de faire parler lui. Et il s'y prend plutôt bien. Dans son blog, "Ce que je ne pouvais pas dire...", il vient en effet de publier un billet fleuve intitulé "Les bons artistes copient, les grands volent". Un titre doux-amère qui évoque directement Steve Jobs et Bill Gates. Les récentes sorties plutôt virulentes du PDG d'Apple contre Adobe et les poursuites qu'il lance contre HTC et Nokia n...

    Read the article

  • Steve Jobs animera la keynote d'ouverture de la WWDC 2010, l'iPhone 4G y sera-t-il dévoilé ?

    Steve Jobs animera la keynote d'ouverture de la WWDC 2010, l'iPhone 4G y sera-t-il dévoilé ? Le lundi 7 juin s'ouvrira la WWDC, la Worldwide Developers Conference d'Apple. Cette édition 2010 débutera à 10 heures (heure locale, soit 19 heures à Paris) et sera lancée par une keynote d'ouverture, qui sera présenté par Steve Jobs en personne. L'information a été officiellement confirmée par Apple, qui indique également que plus de 5000 développeurs assisteront à l'évènement qui a affiché complet 8 jours seulement après la mise en vente des billets. L'un des sujets principaux qui y sera abordé sera l'iPhone 4. Plus de détails devraient être divulgués sur l'appareils, sans oublier qu'Apple pourrait aussi y faire des anno...

    Read the article

  • Humour : Créez vos dialogues entre Steve Jobs et Bill Gates, en rajoutant des bulles sur les images

    Humour : Créez vos dialogues entre Steve Jobs et Bill Gates, en rajoutant des bulles sur les images Un site américain à eu la bonne idée de lancer un concours plutôt original : fournissant trois photographies qui se suivent d'une récente entrevue entre Steve Jobs et Bill Gates, il propose aux internautes d'y insérer leurs propres bulles pour donner vie à leurs propres dialogues. Partant de là, tout est possible, on peut même modifier l'ordre des images pour créer le dialogue le plus loufoque possible entre ces deux géants du marché de l'informatique. Voici les trois images de base, vierges : [IMG]http://www.gizmodo.fr/wp-content/uploads/2010/05/jobs-vs-gates.jpg[/IMG] Voici maintenant l'...

    Read the article

  • Steve Jobs est "un méchant dictateur" d'après un expert en nouvelles technologies, et vous, qu'en pensez-vous?

    Steve Jobs est "un méchant dictateur" d'après un expert en nouvelles technologies, et vous, qu'en pensez-vous ? Paul Graham, CEO de Y Combinator (entreprise qui investit dans des start-ups), a donné une interview à Bloomberg la semaine dernière. Lors de cet entretien, il n'a pas mâché ses mots. Parlant de l'industrie des nouvelles technologies, et donnant des conseils aux nouveaux entrepreneurs, il s'est ensuite penché sur le cas Apple. Il a alors déclaré que le monopole est toujours une mauvaise chose, par rapport au fait que la firme de Cupertino pourrait devenir le "Microsoft du mobile". Il a ensuite ajouté : "La situation est vraiment ironique et je me demande ce que Steve Jobs en pense. ...

    Read the article

  • L'iPad remplacera les PC et sauvera la presse d'après Steve Jobs, qui revient aussi sur le conflit a

    L'iPad remplacera les PC et sauvera la presse d'après Steve Jobs, qui revient aussi sur le conflit avec Flash Mardi soir se tenait à Rancho Palos Verdes (en Californie), le salon All Things Digital. Steve Jobs y était invité et, pendant de longues minutes, il a répondu aux questions de deux journalistes sur une estrade, devant un public captivé. Le patron d'Apple a parlé d'avenir et s'est exprimé sur sa vision du futur de l'informatique. Pour lui, les tablettes devraient prendre le pas sur les ordinateurs portables : «Quand nous étions une nation agraire, toutes les voitures étaient des camions. Mais à partir du moment où la population a commencé à migrer vers les villes, les gens ont commencé à utiliser des voitures. Je pense que...

    Read the article

  • Steve Jobs quitte la direction d'Apple pour raisons médicales, les actions de la compagnie chutent déjà suite à cette annonce

    Steve Jobs quitte la direction d'Apple pour raisons médicales, les actions de la compagnie accusent déjà des chutes en bourse suite à cette annonce C'est une information un peu grand public qui aurait plutôt sa place dans un journal people, mais au vu de la tonne d'encre qu'elle a déjà fait couler en moins de 24 heures, il me semblait important de la relayer. D'autant plus qu'elle en inquiète très sévèrement certains. Steve Jobs, le patron d'Apple, vient en effet d'annoncer qu'il se retirait momentanément de la direction opérationnelle d'Apple. Si l'homme en reste néanmoins CEO et impliqué dans les "décisions stratégiques majeures" à venir, il a délégué une grande partie de ses responsabilités à Tim Cook, comme cel...

    Read the article

  • Histoire : le fabuleux destin de la calculatrice graphique née dans la clandestinité de l'Apple sans Steve Jobs

    Histoire : le fabuleux destin de la calculatrice graphique Née dans la clandestinité de l'Apple sans Steve Jobs Entre le licenciement de Steve Jobs par la bande à John Sculley en 1985, et son retour en 1996, bien des histoires se sont passées à Apple, que l'Histoire n'a pas forcément choisi d'oublier. Cette période, marquée par une perte du sens de produit d'Apple au profit de la recherche du... profit, a conduit à la multiplication de produits, la scission entre les équipes et une dilatation des développements amenant l'entreprise au bord du gouffre. La suite de l'histoire, on la connaît. Mais d'un tel marasme, de bonnes choses sont nées. Comme NuCalc, plus commu...

    Read the article

  • Windows Phone 7 : plusieurs mises à jour en 2011 viennent d'être confirmées par Steve Ballmer, dont l'ajout du copier-coller

    Plusieurs mises à jour de Windows Phone 7 prévues en 2011 Steve Ballmer le confirme lors du CES 2011 Mise à jour du 06/01/11, par Hinault Romaric Steve Ballmer, le PDG de Microsoft, a, lors de sa keynotes d'ouverture du CES 2011, fait le point sur ses différents produits. Dont le nouvel OS mobile de Microsoft, Windows Phone 7. Le PDG a annoncé qu'une série de mises à jour seraient publiées au cours des prochains mois, mises à jour qui permettront ? c'est officiel - l'ajout du copier-coller, l'amélioration des performances du téléphone lors du chargement et un meilleur basculement entre les applications. Des mises ...

    Read the article

  • How do I prevent my platformer's character from clipping on wall tiles?

    - by Jonathan Hobbs
    Currently, I have a platformer with tiles for terrain (graphics borrowed from Cave Story). The game is written from scratch using XNA, so I'm not using an existing engine or physics engine. The tile collisions are described pretty much exactly as described in this answer (with simple SAT for rectangles and circles), and everything works fine. Except when the player runs into a wall whilst falling/jumping. In that case, they'll catch on a tile and begin thinking they've hit a floor or ceiling that isn't actually there. The player is moving right and falling downwards. So after movement, collisions are checked - and first, it turns out the player character is colliding with the tile 3rd from the floor, and pushed upwards. Second, he's found to be colliding with the tile beside him, and pushed sideways - the end result being the player character thinks he's on the ground and isn't falling, and 'catches' on the tile for as long as he's running into it. I could solve this by defining the tiles from top to bottom instead, which makes him fall smoothly, but then the inverse case happens and he'll hit a ceiling that isn't there when jumping upwards against the wall. How should I approach resolving this, so that the player character can just fall along the wall as it should?

    Read the article

  • Facebook FQL - How do I fetch the posts I made to a friend's wall

    - by simianarmy
    I have a facebook desktop app with some test users all having granted the stream_read & offline access permissions. I can easily retrieve posts to each users' stream & profile. What I cannot do easily is retrieve posts that a user has made to one of their friend's walls. In fact, this used to work with a rather complex multiquery, but has stopped working now, or is working only intermittently... Does anyone care to share their method if one exists or discuss what restrictions there might be to this type of complex querying?

    Read the article

  • ASP.Net and FaceBook Wall integration

    - by Jit
    Hi, I am new to FaceBook API. I like to send messages when I want from my aspx webpage. I used the different examples and used FaceBook API 3.1. I am getting error as "service temporarily unavailable". I have assigned AppKey, Secret Key and session key. My sample code is below. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Facebook; using Facebook.Web; using Facebook.Rest; using Facebook.Session; using Facebook.Utility; using Facebook.BindingHelper; using Facebook.Schema; using Facebook.Web.FbmlControls; using Facebook.Session.DesktopPopup; namespace FaceBookApp { public partial class _Default : System.Web.UI.Page { private const string ApplicationKey = "MY_APP_KEY"; private const string SecretKey = "MY_SECRET_KEY"; private Api fbAPI; private ConnectSession _connectSession; // private List<EventUser> _eventUsers; protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { _connectSession = new ConnectSession(ApplicationKey, SecretKey); _connectSession.SessionKey = "MY_SESSION_KEY"; if (!_connectSession.IsConnected()) { // Not authenticated, proceed as usual. //lblStatus.Text = "Please sign-in with Facebook."; } else { // Authenticated, create API instance fbAPI = new Api(_connectSession); string response = fbAPI.Stream.Publish("publish steven on facebook."); } } } } The error message is confusing. It must be a very simple solution. I don't know what I am missing. Pls help. Here is the facebook exception. {"Service temporarily unavailable"}

    Read the article

  • How to Insert a <a> tag link in a Facebook wall

    - by Diogo Hacka
    How can I insert a html link like the 2 posts below with the Facebook iOS SDK? Link to Image! In Train Conductor and "itunes.apple.com" for The Fleas post they use a bit.ly link. I tried to use the html tag <a href="www.mystuff.com">Whatever<\a but it didn't work. NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"My game in iTunes", @"name", @"http://www.mystuff.com", @"link", @"Check out this cool game for iPhone.", @"description", nil]; This code works but that is just a normal post.

    Read the article

  • C++: Vector3 type "wall" ?

    - by anon
    Say I have: class Vector3 { float x, y, z; ... bunch of cuntions .. static operator+(const Vector3&, const Vector3); }; Now, suppose I want to have classes: Position, Velocity, that are exactly like Vector3 (basically, I want typedef Vector3 Position; typedef Vector3 Velocity; Except, given: Position position; Vector3 vector3; Velocity velocity; I want to make sure the following can't happen: position + vector3; vector3 + velocity; velocity + position; What is the best way to achieve this?

    Read the article

  • La fabrication de l'iPad 2 a déjà commencée, il serait plus fin et plus léger que le modèle précédent, d'après le Wall Street Journal

    La fabrication de l'iPad 2 serait déjà en cours d'après le Wall Street Journal Les rumeurs vont bon train sur le net depuis quelques mois concernant la prochaine tablette d'Apple. Le Wall Street Journal dans un article vient confirmer quelque une de ces rumeurs. Le journal, des sources proches du projet a annoncé qu'Apple aurait déjà commencé avec la production de l'iPad 2. La nouvelle tablette d'Apple sera beaucoup plus fine et plus légère que la précédente. Elle comprendra un processeur plus rapide, une plus grande mémoire, une caméra intégrée pour la vidéoconférence et un écran analogue au modèle actuel (Les rumeurs faisaient état d'un nouvel écran Retina). Le...

    Read the article

  • How do you make a bullet ricochet off a vertical wall?

    - by Bagofsheep
    First things first. I am using C# with XNA. My game is top-down and the player can shoot bullets. I've managed to get the bullets to ricochet correctly off horizontal walls. Yet, despite using similar methods (e.g. http://stackoverflow.com/questions/3203952/mirroring-an-angle) and reading other answered questions about this subject I have not been able to get the bullets to ricochet off a vertical wall correctly. Any method I've tried has failed and sometimes made ricocheting off a horizontal wall buggy. Here is the collision code that calls the ricochet method: //Loop through returned tile rectangles from quad tree to test for wall collision. If a collision occurs perform collision logic. for (int r = 0; r < returnObjects.Count; r++) if (Bullets[i].BoundingRectangle.Intersects(returnObjects[r])) Bullets[i].doCollision(returnObjects[r]); Now here is the code for the doCollision method. public void doCollision(Rectangle surface) { if (Ricochet) doRicochet(surface); else Trash = true; } Finally, here is the code for the doRicochet method. public void doRicochet(Rectangle surface) { if (Position.X > surface.Left && Position.X < surface.Right) { //Mirror the bullet's angle. Rotation = -1 * Rotation; //Moves the bullet in the direction of its rotation by given amount. moveFaceDirection(Sprite.Width * BulletScale.X); } else if (Position.Y > surface.Top && Position.Y < surface.Bottom) { } } Since I am only dealing with vertical and horizontal walls at the moment, the if statements simply determine if the object is colliding from the right or left, or from the top or bottom. If the object's X position is within the boundaries of the tile's X boundaries (left and right sides), it must be colliding from the top, and vice verse. As you can see, the else if statement is empty and is where the correct code needs to go.

    Read the article

  • Oracle a réalisé d'excellents profits au second trimestre 2010, ils dépassent même les prévisions de Wall Street

    Oracle a réalisé d'excellents profits au second trimestre 2010, ils dépassent même les prévisions de Wall Street Oracle vient de révéler ses résultats financiers pour le second trimestre 2010. Les chiffres sont excellents, puisqu'ils surpassent les prévisions des analystes de Wall Street. Ainsi, les mises à jour de licences et les revenus liés aux produits ont augmentés de 12% (3.7 milliards de dollars). De leur côté, les achats de nouvelles licences de logiciels ont fait un bond de 21% (2 milliards de dollars). Les bénéfices net ont connu un pic de 34% (2.6 milliards de dollars), et les revenus totaux ont grimpé de 47% pour former la somme colossale de 8.6 milliards de dollars. Mark Hu...

    Read the article

< Previous Page | 2 3 4 5 6 7 8 9 10 11 12 13  | Next Page >