User Profile

Collapse

Profile Sidebar

Collapse
bnashenas1984
bnashenas1984
Last Activity: Aug 19 '15, 02:56 PM
Joined: Sep 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bnashenas1984
    started a topic Communicating with USB port - VB6

    Communicating with USB port - VB6

    Hi everyone
    I have bought an electronic device for our company which I need to communicate with through the USB port.

    Does anyone know how to do it in VB6.

    Thanks
    See more | Go to post

  • Creating shortcut on the home screen of Android

    Hi everyone
    I'v been trying to find a way to create shortcuts with AS3 for a week now.

    I have found some script to do it with Java but is it possible to do it with AS3 and AIR for Android? Are there any ANEs to do it?

    Here's what I found:
    http://bit.ly/1J6urtM

    All I need to do is to let the user click a button and add shortcuts to different pages in my app.
    That means the created shortcut...
    See more | Go to post

  • bnashenas1984
    replied to PHP Socket server performance
    in PHP
    Anybody? Any suggestions will be highly appreciated...
    See more | Go to post

    Leave a comment:


  • bnashenas1984
    started a topic PHP Socket server performance
    in PHP

    PHP Socket server performance

    Hi everyone
    I really need some help with my socket server code.
    I'm using this code for gaming purpose which more than 20,000 users might be connected to at once.

    I know that the code works fine right now with 4 or 5 users connected for testing. But what happens when 30,000 players are connected? Will it still work or does it get slow or crash?

    I know this could be done with many other languages but right...
    See more | Go to post

  • bnashenas1984
    started a topic Receiving messages when the APP is closed

    Receiving messages when the APP is closed

    Hi everyone
    I'm new to android/iPhone development. I'm building a text chat APP with Adobe AIR.
    What i need to do is to show the users received messages in the notification bar even if the APP is closed.

    I have no idea how the notifications work or if such thing is possible with Adobe AIR.

    I'v been searching on google for a while with no luck.

    I appreciate your help
    Behzad
    See more | Go to post

  • Finally I got it fixed.
    I post it here for someone who might need

    Code:
    var currentPath = File.desktopDirectory;
    var dirListing:Array = currentPath.getDirectoryListing();
    var myLoader:Loader:Loader;
    var myFile:URLRequest;
    for (var i = 0; i < dirListing.length; i++) { 
        myLoader:Loader = new Loader();
        myFile = new URLRequest(dirListing[i].url);
        myLoader.load(myFile);
    ...
    See more | Go to post

    Leave a comment:


  • loading all images from the desktop to the stage (AIR)

    Hi everyone
    I'v been trying to open image files from local disk and putting them on the stage with no luck.

    Here's the code:
    Code:
    var currentPath = File.desktopDirectory;
    var dirListing:Array = currentPath.getDirectoryListing();
    This code returns the list of all files on the desktop. Now I need to load all JPG files and add them to the stage.

    I tried with URLRequest and...
    See more | Go to post

  • bnashenas1984
    replied to Explaining a little snippet
    in Java
    Thanks Anas Mosaad
    I appreciate your help
    See more | Go to post

    Leave a comment:


  • bnashenas1984
    started a topic Explaining a little snippet
    in Java

    Explaining a little snippet

    Hi everyone
    I don't have any knowledge in JAVA.
    Could anyone please explain what this JAVA class does?

    What does "Double.POSITIV E_INFINITY" do?
    Code:
    public class Fraga7{
    	public static double min (double[] tal){
    		double min = Double.POSITIVE_INFINITY;
    		for (int i = 0; i < tal.length; i++){
    			if (tal[i] < min) min = tal[i];
    		}
    		return min;
    ...
    See more | Go to post

  • I recently heard about long polling technics.
    Does anyone have any ideas which one is the best to go for?
    See more | Go to post

    Leave a comment:


  • URL request vs socket connection for online games

    Hi
    I need some expert advices.
    I'v been asked to build a card game which could run on Android, iPhone and web browsers and as AIR is a cross platform solution and i'v been working with AS3 for a while I decided to build it with AIR.

    It's a card game with 4 players on each table and of course there will be many tables running at the same time.

    As loading data from the server each second to get the new info...
    See more | Go to post

  • bnashenas1984
    started a topic FTP socket fails on 3G ntwork

    FTP socket fails on 3G ntwork

    Hi everyone
    I have written an AS3 socket script to retreive data from a FTP server .
    It works fine when the device is connected to WIFI.

    The problem is that most of the times it fails on 3G network.

    Code:
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.Socket;
    import flash.events.IOErrorEvent;
    import flash.errors.IOError;
    //
    var
    ...
    See more | Go to post

  • using HTACCESS rewrite rule to redirect to a folder

    Hi everyone
    I need to rewrite www subfolder to a folder. All other subdomains should not be affected by this rule.

    For example if the visitor goes to :
    http://anysubdomain.my site.com
    Nothing should be changed but if he/she goes to :
    http://www.mysite.com
    OR
    http://mysite.com
    Then rewrite rule should change it to :
    http://mysite.com/a_folder

    Please note that the...
    See more | Go to post

  • Thank you johny for the reply. How about passing variables between them?
    See more | Go to post

    Leave a comment:


  • Passing variables between PHP and ASP on the same page

    Hi everyone
    I'm editing a CCTV website which is built with ASP. But unfortunately I have no experience in ASP.

    My question is if it's possible to have both ASP and PHP on the same page and pass variables between them?

    Thanks / Behzad
    See more | Go to post

  • Is there a way to tell paypal server is down on postback?

    Hi everyone
    As you may know there's a callback mechanism in Paypal which posts the completed transactions details back to the server.

    For example: If we have a payment HTML form which redirects the user to paypal to pay for the product we can have a hidden field in the form to tell Paypal to post back the transactions details to our website by assigning a hidden field like this.

    Code:
    <input type='hidden'
    ...
    See more | Go to post

  • Thank you Dormilich
    Your code did the magic :)
    See more | Go to post

    Leave a comment:


  • bnashenas1984
    started a topic Editing DIVs with classname JQuery

    Editing DIVs with classname JQuery

    Hi everyone
    I'm using JQuery to add an onClick event to all DIV tags on my HTML page

    Here's the code:
    Code:
    $(document).ready(function(){
       var js = "alert(this.className); return false;";
       var newclick = new Function(js);
       $("div").attr('onclick', '').click(newclick);
    });
    This code works fine but the problem is that I only need DIV tags which...
    See more | Go to post

  • bnashenas1984
    replied to How to display european characters
    Thanks for the reply Dormilich
    I fixed it.
    I changed a line in the httpd.conf for Apache

    I changed :
    AddDefaultChars et UTF-8
    to
    AddDefaultChars et iso-8859-1

    For anyone who might need
    See more | Go to post

    Leave a comment:


  • bnashenas1984
    started a topic How to display european characters

    How to display european characters

    Hi everyone
    I have recently purchased a dedicated server which runs on linux CentOS and Apache

    I'm having a big problem with European characters.

    I have another hosting on a European company.

    When I put a simple file on the european server with these Swedish characters (åäö) I see them by visiting the page in a browser but when I upload the same file on my dedicated server these characters are...
    See more | Go to post
No activity results to display
Show More
Working...