[Show all top banners]

Ayus
Replies to this thread:

More by Ayus
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 IT -- Solutions Center[Forum]

[Please view other pages to see the rest of the postings. Total posts: 182]
PAGE: <<  1 2 3 4 5 6 7 8 9 10 NEXT PAGE
[VIEWED 84381 TIMES]
SAVE! for ease of future access.
The postings in this thread span 10 pages, View Last 20 replies.
Posted on 02-14-11 10:39 PM     Reply [Subscribe]
Login in to Rate this Post:     1       ?     Liked by
 


Shoot out your problems...
Lets share and expand the knowledge.....!!!!



We are open to share on(any IT related stuffs) :

- Javascript/JQuery/Ajax
- Java,JSP,Servlets and Frameworks
- WebServices
- Unix, Linux, Webserver Administration


+ many more !!!!

 
Posted on 02-28-11 10:35 AM     [Snapshot: 1635]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hey Ayus, do you know of any scripts to allow facebook type chat toolbar for website like sajha with user integration on MSSQL based site?

 
Posted on 03-01-11 9:39 AM     [Snapshot: 1699]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

@neo,

NOPE. I am aware of other plugings but not chat plugin. Btw, do you want to check out ur gf..?? just kidding....we have other ways to track....
Last edited: 01-Mar-11 09:40 AM

 
Posted on 03-01-11 11:42 AM     [Snapshot: 1715]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Ayus how difficult would it be to create something like that using jquery, ajax and a scripting language?

 
Posted on 03-01-11 1:13 PM     [Snapshot: 1730]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Lol for sure ne0 wants to check on his gf...

Anyway have you tried this?
http://www.123flashchat.com/web-messenger-demo.html

http://www.123flashchat.com/community/123-web-messenger-support/4526-how-add-im-website.html

I've not used this, but seems it matches with ur need.
Last edited: 01-Mar-11 01:14 PM

 
Posted on 03-01-11 1:20 PM     [Snapshot: 1736]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

BTW,
I wish to create an XML document in which one of its elements must be
defined with one of two known attributes, but not both.
 
For example, I would like to define a "socketHandler" element as follows:
 
<xs:element name="socketHandler">

    <xs:complexType>

        <xs:attribute name="hostName" type="xs:string"/>

        <xs:attribute name="hostAddress" type="xs:string"/>

        <xs:attribute name="port" type="xs:int" use="required"/>

    </xs:complexType>

</xs:element>


but I only want a user to be able to define either a hostName attribute
(e.g., hostName="<servername>") or a hostAddress (e.g.,
hostAddress="<IP_address>") attribute, but not both.  It appears that the
<xs:choice> construct accomplishes this for elements.  Is there a functional
equivalent for attributes, or is there a better way to approach this?


Does any one has better solution than following? I want to use W3C XML schema. I'm handling this in my code, but it would be awesome if i could use XML schema.

1) Change to a different schema dialect (I think RELAX-NG support this
functionality)
2) Express you co-constraint using an embedded schematron rule

In your example the latter could be expressed as the following Schematron rule
on your socketHandler element:

<xs:element name="socketHandler">
    <xs:annotation>
      <xs:appinfo>
        <sch:pattern  xmlns:sch="http://www.ascc.net/xml/schematron">
          <sch:rule context="socketHandler">
            <sch:report test="self::*[@hostName][@hostAddress]"
              > On a &lt;tag> element, if there is the attribute "attr", the
child element &lt;attr>  must be prohibited and vice versa.</sch:report>
          </sch:rule>
        </sch:pattern>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
        <xs:attribute name="hostName" type="xs:string"/>
        <xs:attribute name="hostAddress" type="xs:string"/>
        <xs:attribute name="port" type="xs:int" use="required"/>
    </xs:complexType>
</xs:element>

These constraints can be validated with the new Schematron Validator from
Topologi. The tool is free and can be downloaded from www.topologi.com.

Thanks in advance 
Last edited: 01-Mar-11 01:23 PM

 
Posted on 03-01-11 1:31 PM     [Snapshot: 1750]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

@neo bro, here is one more, but none of them seems to be free
http://www.envolve.com/
 
Posted on 03-02-11 10:46 AM     [Snapshot: 1791]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Nice job Prankster !!!

 
Posted on 03-02-11 1:31 PM     [Snapshot: 1812]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Need some help from programmer here in sajha....  Can any programmer show me how to start  with this problem. Your help will be highly appriciated...This is c# program.

 a program that produces a multiplication table form 2 numbers entered at the keyboard. Make sure that you right align your output so that columns will match. For example, if I entered 7 and 11 as the 2 numbers then I should see something like:

 

 

7

8

9

10

11

7

49

56

63

70

77

8

56

64

72

80

88

9

63

72

81

90

99

10

70

80

90

100

110

11

77

88

99

110

121


 
Posted on 03-02-11 2:38 PM     [Snapshot: 1832]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Dont have C#, hope following helps, its in C, there might be better way to do it,

http://codepad.org/tHtarDZI



Link: http://codepad.org/tHtarDZI    [ raw code | output | fork ] Save this paste 
Delete this paste

C, pasted just now: 
#include<stdio.h>
void main()
{
   int firstNumber = 7;
   int secondNumber = 11;
   int i;
   for (i = firstNumber; i <= secondNumber; i++)
   {
     printf("\t%d", i);
   }
   printf("\n");
   int j;
   for (i = firstNumber; i <= secondNumber; i++)
   {
       printf("%d\t", i);
       for (j = firstNumber; j <= secondNumber; j++)
       {
          printf("%d\t", i*j);
       }
       printf("\n");
   }
}


Output:
1
2
3
4
5
6
	7	8	9	10	11
7	49	56	63	70	77	
8	56	64	72	80	88	
9	63	72	81	90	99	
10	70	80	90	100	110	
11	77	88	99	110	121	


 
Posted on 03-02-11 2:44 PM     [Snapshot: 1823]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Try following logic :



/ Loop through all operands in the multiplication table.
        for (int a = 1; a < firstNumber; a++)
        {
            for (int b = 1; b < secondNumber; b++)
            {
                // Write the multiplied number.
                Console.Write((a * b).ToString("00 "));
            }
            // New line.
            Console.WriteLine();
        }



 
Posted on 03-02-11 2:55 PM     [Snapshot: 1833]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

dude can u show the output when u enter other inputs like (2,3) OR (0,0), (11,7) ?? I can write a C# program for you but i did not understand your question.

 
Posted on 03-02-11 2:58 PM     [Snapshot: 1839]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Hey prankster!!!

Thanks for you help!!!!! Even though its in C, now i got the concept that i can work with c#.

highly appriciate..prankstar.



 
Posted on 03-02-11 3:00 PM     [Snapshot: 1843]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

have fun dude..C to C# (only works will 7, 11)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace myConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            MultiplicationTable(7, 11);
        }

        public static void MultiplicationTable(int a, int b)
        {
            int i;
            Console.Write("\t");
            for (i = a; i <= b; i++)
            {
                Console.Write(i + "\t");
            }
            Console.WriteLine();

            for (i = a; i <= b; i++)
            {
                Console.Write(i + "\t");
                for (int j = a; j <= b; j++)
                {
                    Console.Write(i * j + "\t");
                }
                Console.WriteLine();
            }
        }
    }
}

 
Posted on 03-02-11 3:01 PM     [Snapshot: 1842]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Namastey!!! ANS
 
Thanks for your time...

thanks once again



 
Posted on 03-02-11 3:10 PM     [Snapshot: 1848]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

@ Kalo chasma!!!!

The out put should be like below..

For example, if I entered 7 and 11 as the 2 numbers then I should see something like:

 

 

7

8

9

10

11

7

49

56

63

70

77

8

56

64

72

80

88

9

63

72

81

90

99

10

70

80

90

100

110

11

77

88

99

110

121



 
Posted on 03-02-11 5:41 PM     [Snapshot: 1893]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Try this:{its in java but adjust it accordingly}
// it does work

public class Test {
   public  void Multiply(int a, int b){
            int i;
            System.out.println("\t");
            for (i = a; i <= b; i++){
                System.out.print(" "+" "+"\t"+i);}
                System.out.print("  "+" "+"\n");

            for (i = a; i <= b; i++){
                System.out.print(i + "\t");
                for (int j = a; j <= b; j++){
                    System.out.print(i * j+" " + "\t" +"");
                }
                System.out.print("\n");
            }
        }
    }

public class testTest {
 public static void main(String[] args){
   Test t = new Test();
   t.Multiply(7, 11);
 }
}
Last edited: 02-Mar-11 05:42 PM

 
Posted on 03-02-11 6:08 PM     [Snapshot: 1906]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Awesome, now we have solutions on C, C# and Java.
Few questions,
 @kalo_chasma:
Do we really need following imports(in java term)? All of them?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

Will it be better to write

            for (int i = a; i <= b; i++)
            {
                Console.Write("\t" + i);
            }
            Console.WriteLine();

I tried for (int i = a; i <= b; i++) but looks like codepad C doesnt support it, or may be C doesnt support it.


@Ayus,
   We can for sure do
    for (int i = a; i <=b; i++)  in java right?
    Also isn't it better to use   String.format()  in java?
    why are all those " " + " " , is it even necessary? 

Just few comments.
 

 
Posted on 03-02-11 6:38 PM     [Snapshot: 1915]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

we do not need those using statements ..i actually copied and pasted complete class file so all of them came along
Yes if we do Console.Write("\t" + i); first tab will be printed then value...
you can customize the code and make it look whatever you want after you have the alogirthm :)

 
Posted on 03-02-11 7:28 PM     [Snapshot: 1925]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hey guy"s, I can see that program is only for value (7,11) and it will output. it even won't ask user to put the the value. What if user wants to input some other value for example : (6, 10) or ( 10, 16).

Thanks guys
 
Posted on 03-02-11 8:43 PM     [Snapshot: 1937]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Teti ta afai garana bro,
tutorial is below: http://www.csharp-station.com/Tutorials/Lesson01.aspx

Interacting via the Command-Line

Besides command-line input, another way to provide input to a program is via the Console. Typically, it works like this: You prompt the user for some input, they type something in and press the Enter key, and you read their input and take some action. Listing 1-3 shows how to obtain interactive input from the user.

Listing 1-3. Getting Interactive Input: InteractiveWelcome.cs
// Namespace Declaration
using System;

// Program start class
class InteractiveWelcome
{
    // Main begins program execution.
    public static void Main()
    {
        // Write to console/get input
        Console.Write("What is your name?: ");
        Console.Write("Hello, {0}! ", Console.ReadLine());
        Console.WriteLine("Welcome to the C# Station Tutorial!"); 
    }
}

In Listing 1-3, the Main method doesn't have any parameters -- mostly because it isn't necessary this time. Notice also that I prefixed the Main method declaration with the public keyword. The publickeyword means that any class outside of this one can access that class member. For Main, it doesn't matter because your code would never call Main, but as you go through this tutorial, you'll see how you can create classes with members that must be public so they can be used. The default access is private, which means that only members inside of the same class can access it. Keywords such as public and private are referred to as access modifiers. Lesson 19 discusses access modifiers in more depth.

There are three statements inside of Main and the first two are different from the third. They are Console.Write(...) instead of Console.WriteLine(...). The difference is that the Console.Write(...)statement writes to the console and stops on the same line, but the Console.WriteLine(...) goes to the next line after writing to the console.

The first statement simply writes "What is your name?: " to the console.

The second statement doesn't write anything until its arguments are properly evaluated. The first argument after the formatted string is Console.ReadLine().  This causes the program to wait for user input at the console. After the user types input, their name in this case, they must press the Enter key. The return value from this method replaces the "{0}" parameter of the formatted string and is written to the console. This line could have also been written like this:

string name = Console.ReadLine(); 
Console.Write("Hello, {0}! ", name);

The last statement writes to the console as described earlier. Upon execution of the command-line with "InteractiveWelcome", the output will be as follows:

>What is your Name?  <type your name here> [Enter Key]
>Hello, <your name here>!  Welcome to the C# Station Tutorial!


 


 



PAGE: <<  1 2 3 4 5 6 7 8 9 10 NEXT PAGE
Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 30 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
ढ्याउ गर्दा दसैँको खसी गनाउच
From Trump “I will revoke TPS, and deport them back to their country.”
wanna be ruled by stupid or an Idiot ?
To Sajha admin
How to Retrieve a Copy of Domestic Violence Complaint???
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters