archive-ro.com » RO » A » ALEXPETA.RO

Total: 36

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Real Time web applications in ASP MVC 4 with SignalR RONUA Presentation Part 2
    and the meeting place change our new meetingplace is now Ubisoft s headquarters present and I just want to say thank you for coming I hope I wasn t too boring and I promise that next time I will try to do better and present more interesting stuff About the code presented the small chat app I think isn t that valuable by itself and if you got the idea about how things are working then I advise you to visit my Github repo for the TicTacToe Game and download fork the code there and test it out or if you want to add changes I ll be happy to accept your pull requests If you want to take the game for a spin its already hosted on AppHarbor at http tictactoe 8 apphb com As for the slides I have uploaded a zip archive for you to download here Note its made in html css3 with reveal js and animate css so for full compatibility open it in a modern browser I suggest Chrome Now let me just point out a few things I ve learned by doing this presentation Its always the small projects that are the most

    Original URL path: http://www.alexpeta.ro/blog/post/real-time-web-applications-in-asp-mvc-4-with-signalr-ronua-presentation-part-2 (2016-05-01)
    Open archived version from archive


  • Real Time web applications in ASP MVC 4 with SignalR RONUA Presentation
    short presentation at the local NET user group on Tuesday the 8th of January 2013 The official event announcement is here http ronua ro CS groups ronua bucuresti default aspx My talk will be about how to build real time web applications in ASP MVC 4 using the newly integrated SignalR framework As an example I have coded a small Tic Tac Toe game I will showcase it and present

    Original URL path: http://www.alexpeta.ro/blog/post/real-time-web-applications-in-asp-mvc-4-with-signalr-ronua-presentation (2016-05-01)
    Open archived version from archive

  • Bodybuilding and High Intensity Training
    Brandenburg Minden Pictures I ve been keen on starting to write about my bodybuilding experience and that I have learned since first days in the gym up until now and I want to start this series of blog posts by posting a video here about High Intensity Training HIT The guy presenting is Drew Baye I haven t heard much of him up until lately but his explanations really nails

    Original URL path: http://www.alexpeta.ro/blog/post/bodybuilding-and-high-intensity-training (2016-05-01)
    Open archived version from archive

  • Exporting a Cangeset in Team Foundation Server TFS using Team Foundation Power Tools TFPT Part 2
    class Logger region Private Members public static bool HasEncounteredError false private static FileInfo file endregion region Constants public static string LogName ExportChangesetLog public static string LogFullPath string Format 0 1 log Environment GetFolderPath Environment SpecialFolder Desktop Logger LogName endregion region Constructors public Logger if LogFileExists CreateLogFile endregion region Private Methods private bool LogFileExists try FileInfo logFile new FileInfo Logger LogFullPath if logFile Exists file logFile return true return false catch Console WriteLine Could not check if file exists Logging will be disabled return false private void CreateLogFile try if file null FileInfo file new FileInfo Logger LogFullPath FileStream fileStream file Create file file fileStream Close catch Exception Console WriteLine Could not create log file Logging will be disabled Logger HasEncounteredError true endregion region Statics public static void WriteEntry string entry if string IsNullOrEmpty entry Logger HasEncounteredError try if file null using var writer file AppendText writer WriteLine writer WriteLine writer WriteLine string Format 0 DateTime Now writer WriteLine entry writer WriteLine writer WriteLine catch Console WriteLine Error writing to log file Logging will be disabled Logger HasEncounteredError true endregion Main Application Body includes checking user inputs and handling the export class Program private static int startChangesetNumber 0 private static int endChangesetNumber 0 static void Main string args Timer GetElapsedTime init logger Logger logger new Logger check for command line args if HasCommandLineArgs args check user inputs GetUserInputChangesets export Export region Private Methods private static void GetUserInputChangesets string firstUserInput string Empty do Console WriteLine First changeset number firstUserInput Console ReadLine while ValidInput firstUserInput out startChangesetNumber string secondUserInput string Empty do Console WriteLine Second changeset number secondUserInput Console ReadLine while ValidInput secondUserInput out endChangesetNumber private static void Export Console WriteLine Console WriteLine System Environment NewLine Logger WriteEntry Starting Export int currentChangeset startChangesetNumber while currentChangeset endChangesetNumber try Process process new Process process StartInfo

    Original URL path: http://www.alexpeta.ro/blog/post/exporting-a-cangeset-in-team-foundation-server-tfs-using-team-foundation-power-tools-tfpt-part-2 (2016-05-01)
    Open archived version from archive

  • Building a Pinterest like Image Crawler
    with the fact that instead of URL s in a anchor tag we can also run Javascript instead of the HREF attribute then we can conclude that we can run Javascript from the toolbar Our bookmark button is an anchor tag withe the following HREF attribute javascript void function var 20e document createElement script e setAttribute type text javascript e setAttribute charset UTF 8 e setAttribute src http alexpeta ro scripts imageCrawler js r Math random 99999999 document body appendChild e onclick alert Drag and drop this button to your browser bookmarks toolbar return false This piece of code does the following things creates a new script tag html element sets the script tag type to javascript sets the charset attribute gets the javascript that will be injected in target page by setting the SRC attribute note I have added here after the file name a random number to prevent the browser from getting the file from cache and force it to get a new file each time append the formed SCRIPT tag to the document another thing to note here is how browsers behave each time they see an IMG or SCRIPT tag they look for the SRC path attribute and perfom a GET operation this will trigger the browser to run the javascript The imageCraler var imageCrawler containerName imageCrawlerContainer GenerateContainer function return div class imageCrawler container id imageCrawler containerName table tr td span Hey Joe here are the images span td td style width 160px padding top 5px a href javascript imageCrawler SaveBookmark title Add to ImageCrawler Add To ImageCrawler a td tr tr td table imageCrawler InsertImages table td tr table div DeleteContainer function var element document getElementById imageCrawler containerName var body document getElementsByTagName body 0 body removeChild element HasJquery function try var jqueryIsLoaded jQuery jQueryIsLoaded true

    Original URL path: http://www.alexpeta.ro/blog/post/building-a-pinterest-like-image-crawler (2016-05-01)
    Open archived version from archive

  • Archive
    Mattison Minden Pictures Vintage Fashion and Non Recursive Hierarchical SQL Queries C Fashion Vintage Hierarchical SQL Modeling Posted by Alex Peta on November 29 2013 Localizing your Views in ASP MVC ASP MVC C Posted by Alex Peta on June 27 2013 Calculating the Distance Between two GPS Coordinates C Posted by Alex Peta on March 02 2013 My First Windows Phone App Location Based Notifications Part 1 C Windows

    Original URL path: http://www.alexpeta.ro/blog/archive/1 (2016-05-01)
    Open archived version from archive

  • Archive
    TFS using Team Foundation Power Tools TFPT Uncategorised Posted by Alex Peta on September 04 2012 Unit Testing your ASP MVC HtmlHelper Methods ASP MVC C Posted by Alex Peta on August 18 2012 Adding Watermark to an image using C in ASP MVC ASP MVC C Posted by Alex Peta on July 22 2012 Internet Explorer CSS Rotations and Transformation starting with 5 5 CSS Posted by Alex Peta

    Original URL path: http://www.alexpeta.ro/blog/archive/3 (2016-05-01)
    Open archived version from archive

  • Unit Testing JavaScript with QUnit
    the test runner looks like DOCTYPE html html head meta charset utf 8 title QUnit Example title link rel stylesheet href qunit css head body div id qunit div div id qunit fixture div script src qunit js script script src code to test js script script src tests js script body html We are going to add all of our tests in a javascript file named tests js and the code that we will test will be in the file code to test js The code to test Due to the lack on imagination and out of pure laziness I ll be testing a function that adds two numbers together and also I ve defined a custom exception that I am throwing custom ArgumentException function ArgumentException message this Message message this Name ArgumentException Method to test function Sum a b if typeof a number typeof b number throw new ArgumentException Function only accepts number params return a b And here are the tests the first one is a test for the logic of the function and the second tests the parameters if the method throws correctly an exception when non numeric parameters are passed I m using the same

    Original URL path: http://www.alexpeta.ro/blog/post/unit-testing-javascript-with-qunit (2016-05-01)
    Open archived version from archive