₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,989 members, 8,448,112 topics. Date: Sunday, 19 July 2026 at 07:00 PM

Toggle theme

Csharpjava's Posts

Nairaland ForumCsharpjava's ProfileCsharpjava's Posts

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)

ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 9:49am On Feb 15, 2012
ceejayluv:
thats in an ideal case. I studied mechanical engineering and in my final year i helped some computer science folks out in their assignments and PROJECT, (C++/JAVA). Was also consulted by other peeps in civil and Elec. Engineering for softaware design (Using MATLAB).
I agree that comp sci and software eng eggheads have an edge in algorithm efficiency but if we were to design a mechanical system (say pipeline modelling) simulator i guess i will in my elements then,
You need to understand that every profession has something unique about them, just because you know how to make cement does not mean you are a structural engineer or an architect. There should have been no need for you to help the guys you've mentioned about with thier projects, all they need is the requirements for the mechanical system they are writing a program for and from this requirement they can then create the UML specification then the VDM specification and from this they can easily write the C,C++ or Java codes by themselves.

Software engineers don't just write algorithm, they develop software like engineers building a bridge, engineers building a bridge do not complete the bridge and then ask cars to drive over the bridge to see whether or not the bridge will fall down grin No before they start building the bridge they are sure it is safe.  Same thing in software engineering, before a software engineer writes a single code for a rocket etc, he will first have to create mathematical models in VDM-SL which will guarantee that the software he wants to write is safe.
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 11:37pm On Feb 12, 2012
worldbest:
What a st.upi.d post. Na your daddy they write syntax. st.upi.d man.
This is the problem when all the programming you know is self taught, you result to name calling rather than to come up with solid facts to back up your claim.
ProgrammingRe: Chat Room Application by csharpjava(m): 10:05pm On Feb 12, 2012
Here is a C# version of a multicast chat application. Follow this link for more info: C# / C Sharp » Network » Chat


/*
C# Network Programming
by Richard Blum

Publisher: Sybex
ISBN: 0782141765
*/
using System;
using System.Drawing;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Windows.Forms;

public class MulticastChat : Form
{
   TextBox newText;
   ListBox results;
   Socket sock;
   Thread receiver;
   IPEndPoint multiep = new IPEndPoint(IPAddress.Parse("224.100.0.1"wink, 9050);

   public MulticastChat()
   {
      Text = "Multicast Chat Program";
      Size = new Size(400, 380);

      Label label1 = new Label();
      label1.Parent = this;
      label1.Text = "Enter text string:";
      label1.AutoSize = true;
      label1.Location = new Point(10, 30);

      newText = new TextBox();
      newText.Parent = this;
      newText.Size = new Size(200, 2 * Font.Height);
      newText.Location = new Point(10, 55);

      results = new ListBox();
      results.Parent = this;
      results.Location = new Point(10, 85);
      results.Size = new Size(360, 18 * Font.Height);

      Button sendit = new Button();
      sendit.Parent = this;
      sendit.Text = "Send";
      sendit.Location = new Point(220,52);
      sendit.Size = new Size(5 * Font.Height, 2 * Font.Height);
      sendit.Click += new EventHandler(ButtonSendOnClick);

      Button closeit = new Button();
      closeit.Parent = this;
      closeit.Text = "Close";
      closeit.Location = new Point(290, 52);
      closeit.Size = new Size(5 * Font.Height, 2 * Font.Height);
      closeit.Click += new EventHandler(ButtonCloseOnClick);

      sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
      IPEndPoint iep = new IPEndPoint(IPAddress.Any, 9050);
      sock.Bind(iep);
      sock.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse("224.100.0.1"wink));
      receiver = new Thread(new ThreadStart(packetReceive));
      receiver.IsBackground = true;
      receiver.Start();
   }

   void ButtonSendOnClick(object obj, EventArgs ea)
   {
      byte[] message = Encoding.ASCII.GetBytes(newText.Text);
      newText.Clear();
      sock.SendTo(message, SocketFlags.None, multiep);
   }

   void ButtonCloseOnClick(object obj, EventArgs ea)
   {
      receiver.Abort();
      sock.Close();
      Close();
   }

   void packetReceive()
   {
      EndPoint ep = (EndPoint)multiep;
      byte[] data = new byte[1024];
      string stringData;
      int recv;
      while (true)
      {
         recv = sock.ReceiveFrom(data, ref ep);
         stringData = Encoding.ASCII.GetString(data, 0, recv);
         results.Items.Add("from " + ep.ToString() + ":  " + stringData);
      }
   }

   public static void Main()
   {
      Application.Run(new MulticastChat());
   }
}
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 8:39pm On Feb 12, 2012
paulo882:
Guy this is a pointless argument. If you have the opportunity and money to get degrees etc, by all means do it, it helps to develop you as a human. But just know that as far as programming is concerned, your paper qualification alone is not good enough to get you into the best jobs. The ppl with more experience even though no paper qualification will grab the best jobs and opportunities.
Programming today has moved away from just writing syntax. The cartoon in this thread is true for many of those who are self taught as all they know is about writing syntax. They have no clue that something like Formal Methods in Software Engineering do exist, this is required for writing mission critical software for rockets, aroplanes, life support machines and so on. Though I will not discourage anyone from learning programming on their own but they should be aware that programming today is more than just writing syntax.
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 7:59pm On Feb 12, 2012
paulo882:
You are so funny, Bill Gates, Steve Jobs and Mark Zuckerberg don't have a life/money ? I hope you have more money and better life than them :-)
Check the career section of the website of Microsoft, facebook and Apple which were started by the guys you have mentioned and see the people they employ. So why don't they advertise jobs for college drop out/self taught programmers?
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 7:21pm On Feb 12, 2012
paulo882:
[color=#990000]
In any case, both Software Engineer and Computer Science students when they first graduate from Uni are no where as good as the college drop out/self taught dude that has been programming for years, they will require several years of experience and training to catch up with the college drop out/self taught dude. In practise, if all 3 were to apply for a Senior Programmer role, the college drop out/self taught will most likely get the job based on his experience and past contributions to projects. So it doesn't really matter what you study.
Well you are right the college drop out/self taught will get a job but will end up with NO LIFE AND NO MONEY.
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 5:46pm On Feb 12, 2012
A programmer from a software engineering or computer science background has A LIFE AND PLENTY OF MONEY but a self taught programmer has NO LIFE AND NO MONEY.
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 5:27pm On Feb 12, 2012
paulo882:
Hehehe, I am waiting for your explanation.
Not my explanation but that of a professional in the software industry:

[quote author=omo_to_dun link=topic=715466.msg8749421#msg8749421 date=1311112544]One particularly useful book was Professional Software Development. Chapter 4 can be read here: PSD: Chapter 4 .

A quote from the above link: A computer science graduate " might spend two days hand-tuning a sorting algorithm instead of two hours using a code library or copying a suitable algorithm from a book. The typical computer science graduate typically needs several years of on-the-job training to accumulate enough practical knowledge to build minimally satisfactory production software without supervision." On the other hand software engineering gratuates have already received this training during their studies at Uni.
[/quote]
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 5:06pm On Feb 12, 2012
paulo882:
Software Engineering and Programming are both branches of Computer Science. A Software Engineer by their profession deals with managing all the processes involved software development, from architecting the system, requirements gathering  to project managing it etc but has nothing to do with writing the actual software, that's the job of a programmer. So they are two different things. I would think employers would prefer a programmer with computer science instead of Software Engineering because a computer science graduate has had more hands on experience with coding than their Software Engineering counterpart. That's my take.
You are very wrong, but this is not the right thread to discuss this further.
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 5:24pm On Feb 10, 2012
delomos:
@csharpjava
A way to start a serious argument and derail the thread, for starters, definition(s) of professional >> http://www.merriam-webster.com/dictionary/professional
I only used the word professional programmer to differentiate between the two. Though programmers are not regulated like Doctors, Lawyers etc, but with the way IT is going Software Engineers and Computer Scientist may be regulated in the future. Read this: Time to regulate the software industry? I only made my comment to help those who may feel that becoming a programmer is rewarding anymore.
ProgrammingRe: Humour: Does This Realy Say's Truth Abt Programmers by csharpjava(m): 1:16pm On Feb 10, 2012
Something that is now happening is that even non programmers cannot stay away from a computer with internet connect, so the chatty people who has nothing else to do than chat all day, who use to laugh at programmers, don't have a life anymore thenselves as they cannot stay away from the internet.

There is a difference between a programmer and a professional programmer. A professional programmer is one that have studied Software Engineering or Computer science while a programmer can be anyone who just picks up a book learn some syntax and then call themself a programmer.
ProgrammingRe: Simple Code Challenge: C#, Java, C, C++ by csharpjava(m): 12:14pm On Feb 10, 2012
I have made some improvements to the code given by Whoelse and I feel this is still the best code so far. See the full Java code below:


public class whoelseNumberPetternRun {
   

       
     public static String Check(int[] searchArrayIn, int[] fullArrayIn)
     {   
       
       
    int j = 0;
    String result = "";
   
    for (int i=0; i<fullArrayIn.length - 4wink       
    { 

           int x = i + j;
           
    if (j < 5 && fullArrayIn[x] == searchArrayIn[j])
               {           
                    j++;                   
               }                   
                   else
               {
                                         
                       j = 0;
                       i++;
               }
               
                       
               
               if (j == searchArrayIn.length - 1)
               {
                    System.out.println("Found at Location: " + i);
                    result += Integer.toString(fullArrayIn[i]) + ",";
                    result += Integer.toString(fullArrayIn[i+1]) + ",";
                    result += Integer.toString(fullArrayIn[i+2]) + ",";
                    result += Integer.toString(fullArrayIn[i+3]) + ",";
                    result += Integer.toString(fullArrayIn[i+4]) + ",";
               }             
                                     
     }
            return result;
         
        }


    public static void main(String[] args) {
       
      int[] searchArray ={1, 3, 0, 0, 8};
      int[] fullArray =  {1,3,0,0,8,0,8,1,0,0,0,8,6,7,8,9,5,2,6,3,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,3,1,3,0,0,8};   
      int[] fullArray1 = {0,8,1,0,0,1,3,0,0,8,0,8,6,7,8,9,5,2,6,3,0,7,4,1,3,0,0,8,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,3};
      int[] fullArray2 = {0,8,1,0,0,0,8,1,3,0,0,8,6,7,8,9,5,2,6,3,1,3,0,0,8,0,7,4,1,1,0,0,7,0,0,8,6,7,8,9,5,9,1,1,3};   
       
    System.out.println("fullArray " + Check(searchArray, fullArray));
    System.out.println();
    System.out.println("fullArray1 " + Check(searchArray, fullArray1));   
    System.out.println();
    System.out.println("fullArray2 " + Check(searchArray, fullArray2));   
    }
}
ProgrammingRe: Programming Gurus I Need Ur Advice! by csharpjava(m): 12:10am On Feb 04, 2012
Bill Gates' Early Life
At 13 he enrolled in the Lakeside School, an exclusive preparatory school. When he was in the eighth grade, the Mothers Club at the school used proceeds from Lakeside School's rummage sale to buy a Teletype Model 33 ASR terminal and a block of computer time on a General Electric (GE) computer for the school's students. Gates took an interest in programming the GE system in BASIC, and was excused from math classes to pursue his interest. He wrote his first computer program on this machine: an implementation of tic-tac-toe that allowed users to play games against the computer. Gates was fascinated by the machine and how it would always execute software code perfectly. When he reflected back on that moment, he said, "There was just something neat about the machine. " After the Mothers Club donation was exhausted, he and other students sought time on systems including DEC PDP minicomputers. One of these systems was a PDP-10 belonging to Computer Center Corporation (CCC), which banned four Lakeside students—Gates, Paul Allen, Ric Weiland, and Kent Evans—for the summer after it caught them exploiting bugs in the operating system to obtain free computer time. At the end of the ban, the four students offered to find bugs in CCC's software in exchange for computer time. Rather than use the system via Teletype, Gates went to CCC's offices and studied source code for various programs that ran on the system, including programs in FORTRAN, LISP, and machine language.
Source: Wikipedia.

My advice for you will be to take some programming classes at uni if you can. Unless you only want to write a 'hello world program' then you can teach yourself with online resources.
ProgrammingRe: Which Programming Language Should I Start With And Why? by csharpjava(m): 11:42am On Jan 25, 2012
@Poster
Since you are already a web designer, it is best you learn C# and ASP.Net which will quickly allow you develope web applications that are ready to be deployed online.
ProgrammingRe: Differences between Software engineering and Computer science. by csharpjava(m): 1:08pm On Jan 23, 2012
Ok. Maybe this might help :

From the same book on Professional Software Development. Chapter 4 can be read from here: PSD: Chapter 4 .

Universities award computer science degrees, and they normally expect their computer science students to obtain software development jobs in which they will immediately begin solving real-world problems. Only a small fraction of computer science undergraduates go on to graduate school or research environments in which they are advancing the state of knowledge about software or computers.

This puts computer science students into a technological no-man’s land. They are called scientists, but they are performing job functions that are traditionally performed by engineers, without the benefit of engineering training. The effect is roughly the same as it would be if you assigned a physics Ph.D. to design electrical equipment for commercial sale. The physicist might understand the electrical principles better than the engineers he is working with. But his experience in building equipment is in creating prototypes that are used to advance the state of knowledge in a laboratory. He does not have experience or training in designing rugged, economical equipment that provides practical solutions in real-world settings. We would expect the equipment designed by the physics Ph.D. to work, but perhaps to lack some of the robustness that would make it usable or safe outside a laboratory. Or the equipment might use materials in a way that’s acceptable for a single prototype but extravagantly wasteful when units are manufactured by the thousands.
PoliticsRe: The Masses Are The Cause Of The Problems In Nigeria! by csharpjava(m): 2:02pm On Jan 22, 2012
2sexy:
If you can get webhosting company to register the domain, let me know and I will set up the site(blog). Not so many people know what we discuss here.
I agree with you, we can use this domain
ProgrammingRe: Differences between Software engineering and Computer science. by csharpjava(m): 6:07pm On Jan 17, 2012
Here is a good reply for this post:

[quote author=omo_to_dun link=topic=715466.msg8749421#msg8749421 date=1311112544]One particularly useful book was Professional Software Development. Chapter 4 can be read here: PSD: Chapter 4 .

A quote from the above link: A computer science graduate " might spend two days hand-tuning a sorting algorithm instead of two hours using a code library or copying a suitable algorithm from a book. The typical computer science graduate typically needs several years of on-the-job training to accumulate enough practical knowledge to build minimally satisfactory production software without supervision." On the other hand software engineering gratuates have already received this training during their studies at Uni.
[/quote]
ProgrammingRe: Pls Help Vb: How Bind Data In Href Link by csharpjava(m): 7:16pm On Jan 09, 2012
Try this:
[ <a href=Profile.aspx?Artistname=<%=Eval("Artistname"wink%>>View Profile</a> ]
ProgrammingRe: C# - Capturing File Name From A FileUpload Control In Asp.net by csharpjava(op):
@Kobojunkie

Thanks for the link but thier solution does not solve it. Google is my best friend o, I always use it before coming to NL.

This link from a google search shows how to Post filename in a label from Fileupload control the innerHTML of the label is what is needed.

And with a few google search I was able to create this code to add only the the file name to a CheckBoxList. I have added the code below for anyone interested. The only problem is that you must manually create at least one Check Box Item first like this
<asp:listitem Value="1">Item 1</asp:listitem>
before the script will work. Does anyone have a better way so as to avoid manually creating at least one Check Box Item first? or is AJAX the only solution?
ProgrammingRe: C Please Help by csharpjava(m): 7:32am On Jan 05, 2012
If you can watch videos try: Switch Statement
ProgrammingRe: [Help Request ] I Want To Learn Programming, what are the requirements by csharpjava(m): 1:34pm On Jan 04, 2012
If you can watch videos online this will be a go place to start learning C the mother of all programming languages: C Programming Tutorial 1 Learn C Programming and then follow all the videos series.
ProgrammingRe: C# - Capturing File Name From A FileUpload Control In Asp.net by csharpjava(op): 11:39am On Jan 02, 2012
@Gomez

The code in my initial post uses javascript from the sever side, it displays the full file path in a textbox when the user selects a file, but when I try using a label nothing is displayed. Why does it work with a textbox, but now I want it displayed in CheckBoxList or similar when a user selects a file.

Thanks for the link I will try their sample code, which uses a CheckBoxList instead of a label this is even better as the user can delete a file from the list.
ProgrammingRe: C# - Capturing File Name From A FileUpload Control In Asp.net by csharpjava(op): 8:56pm On Jan 01, 2012
@Gomez
Thanks for the code. I have tried it but it won't show the filename in a label when the user selects a file.
ProgrammingC# - Capturing File Name From A FileUpload Control In Asp.net by csharpjava(op): 4:09pm On Jan 01, 2012
Happy new year to all NL programmers.

I'm looking for a way to capture the file name from a FileUpload control, I can get the full path if I use TextBox1.CliectID in the code below. But how do I capture just the file name a CheckBoxList or similarl?

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        { FileUpload1.Attributes["onchange"] = String.Format("document.getElementById('{0}').value=this.value;", TextBox1.CliectID);}
         
    }
EducationGreat Educational Videos For Students by csharpjava(op): 1:21pm On Dec 31, 2011
khan Academy
Great educational videos on all subjects
ProgrammingRe: Help! I Want To Learn Python by csharpjava(m): 1:55pm On Dec 17, 2011
Try these Python video tutorials:

Python video tutorials
ProgrammingRe: Female Programmer Here: Please Help (c Language) by csharpjava(m): 7:06pm On Dec 11, 2011
@Poster

You'll find a lot of sample codes on this site: C Tutorial
WebmastersRe: Calling On All Web Designers/developers: Redesign Of Nigeria.gov.ng by csharpjava(m): 1:01pm On Sep 19, 2011
[size=13pt]The domain Nigeria.bz and website hosting is available for the new website for Nigeria. let us show naija government we the people we can do a better job.[/size]
WebmastersRe: Calling On All Web Designers/developers: Redesign Of Nigeria.gov.ng by csharpjava(m): 6:52pm On Sep 17, 2011
Good initiative guys, but if no one in the government will listen to you to redesign Nigeria.gov.ng well all is not lost as I'm ready to allow you to build a similar website for Nigeria with this domain name: Nigeria.bz
ProgrammingRe: Fibonacci - Nature by Numbers Challenge by csharpjava(op): 8:51am On Sep 12, 2011
Fayimora:
Any one that tries to do something like that in a language like Java or any u mentioned above is a saddist. . . . Lol seriously. . . You can decide to use flash tho which would make it more interesting but to infinity? Man your system would suffer, BUt for some reason i didn't really get the connection btw the fibo. . . and the vid tho
[size=13pt]Thanks for your observations, I have updated my initial post, to include the golden ratio and the the quality of the display.[/size]
ProgrammingFibonacci - Nature by Numbers Challenge by csharpjava(op): 4:23pm On Sep 11, 2011
[flash=600,400]
https://www.youtube.com/watch?v=P0tLbl5LrJ8?[/flash]

[size=13pt]
Updated
Just wondering if we can write the Fibonacci sequence i.e: 0+1=1+1=2+1=3+2=5+3=8+5 to as high as your computer can handle, then find the golden ratio from the sequence above, like this 1/1, 2/3, 3/5, 5/8 to as high as the above sequence and the code that will create a graphical display though not to the same quality as above from the Fibonacci sequence and the golden ratio. Java, C#, VB.NET, Python or C++ will be fine.[/size]
ProgrammingRe: I Want To Start A Career In Programming Pls Help by csharpjava(m): 8:41pm On Sep 04, 2011
okeyxyz:
u are talking about project management .
[size=13pt]Yes project management, a professional programmer is expected to have this knowledge as well. Project Management is included when you study software engineering.[/size]

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)