473,395 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

C# Website - Global Functions

When I wrote websites in VB .NET, I would often put functions in Global
for all the pages to call. Now, in C#, doing so results in "references
to non-static objects" and whatnot. I realize what that means and all,
but what I'm wondering is what's the best way around it? Say, for
example, I want a function that takes a username and a password and
returns true or false if it's a successful login, and I want any page or
usercontrol in the website to be able to call that function, where
should I put it and what syntax do I need?
Regards,
David P. Donahue
dd******@ccs.neu.edu
Nov 16 '05 #1
10 6733
You can add your method to Global.asax such as

public static bool Login()

{

private bool success = false;

// do some login stuff here and set success

return success;

}

and call it like

bool loggedIn = Global.Login();

But a better solution, I think, would be to create a helper class and put
the methods that you want globally available in that class.

HTH

DalePres
MCAD, MCDBA, MCSE
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl...
When I wrote websites in VB .NET, I would often put functions in Global
for all the pages to call. Now, in C#, doing so results in "references to
non-static objects" and whatnot. I realize what that means and all, but
what I'm wondering is what's the best way around it? Say, for example, I
want a function that takes a username and a password and returns true or
false if it's a successful login, and I want any page or usercontrol in
the website to be able to call that function, where should I put it and
what syntax do I need?
Regards,
David P. Donahue
dd******@ccs.neu.edu

Nov 16 '05 #2
Either of the methods you suggest definitely work. However, what if
some of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:
You can add your method to Global.asax such as

public static bool Login()

{

private bool success = false;

// do some login stuff here and set success

return success;

}

and call it like

bool loggedIn = Global.Login();

But a better solution, I think, would be to create a helper class and put
the methods that you want globally available in that class.

HTH

DalePres
MCAD, MCDBA, MCSE
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl...
When I wrote websites in VB .NET, I would often put functions in Global
for all the pages to call. Now, in C#, doing so results in "references to
non-static objects" and whatnot. I realize what that means and all, but
what I'm wondering is what's the best way around it? Say, for example, I
want a function that takes a username and a password and returns true or
false if it's a successful login, and I want any page or usercontrol in
the website to be able to call that function, where should I put it and
what syntax do I need?
Regards,
David P. Donahue
dd******@ccs.neu.edu


Nov 16 '05 #3
Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections of
session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are a couple
key things to remember:

First, add the session to the collection in from the Global.Session_Start()
method and then make sure you remove the session from your collection from
the Global.Session_End() method.

Second, be aware of the security risks involved in granting one session
access to code that is aware of, and able to communicate with, another
session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl...
Either of the methods you suggest definitely work. However, what if some
of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:
You can add your method to Global.asax such as

public static bool Login()

{

private bool success = false;

// do some login stuff here and set success

return success;

}

and call it like

bool loggedIn = Global.Login();

But a better solution, I think, would be to create a helper class and put
the methods that you want globally available in that class.

HTH

DalePres
MCAD, MCDBA, MCSE
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl...
When I wrote websites in VB .NET, I would often put functions in Global
for all the pages to call. Now, in C#, doing so results in "references
to non-static objects" and whatnot. I realize what that means and all,
but what I'm wondering is what's the best way around it? Say, for
example, I want a function that takes a username and a password and
returns true or false if it's a successful login, and I want any page or
usercontrol in the website to be able to call that function, where should
I put it and what syntax do I need?
Regards,
David P. Donahue
dd******@ccs.neu.edu



Nov 16 '05 #4
Ok, I can get the Session ID from the page, pass it to the Global
function as a string. Now how do I use it to specify a running session?

DalePres wrote:
Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections of
session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are a couple
key things to remember:

First, add the session to the collection in from the Global.Session_Start()
method and then make sure you remove the session from your collection from
the Global.Session_End() method.

Second, be aware of the security risks involved in granting one session
access to code that is aware of, and able to communicate with, another
session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl...
Either of the methods you suggest definitely work. However, what if some
of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:
You can add your method to Global.asax such as

public static bool Login()

{

private bool success = false;

// do some login stuff here and set success

return success;

}

and call it like

bool loggedIn = Global.Login();

But a better solution, I think, would be to create a helper class and put
the methods that you want globally available in that class.

HTH

DalePres
MCAD, MCDBA, MCSE
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl...
When I wrote websites in VB .NET, I would often put functions in Global
for all the pages to call. Now, in C#, doing so results in "references
to non-static objects" and whatnot. I realize what that means and all,
but what I'm wondering is what's the best way around it? Say, for
example, I want a function that takes a username and a password and
returns true or false if it's a successful login, and I want any page or
usercontrol in the website to be able to call that function, where should
I put it and what syntax do I need?
Regards,
David P. Donahue
dd******@ccs.neu.edu

Nov 16 '05 #5
It depends on what you are really wanting to accomplish.

For instance, if you want to write to the Response object associated with a
specific Session then your global collection should hold Context objects.
Use a foreach loop to iterate through the collection, testing for a matching
Context.Session.SessionID value. When you have identified the correct
context, you can Context.Response.Write() to that context.

Can you give a description of what it is you're trying to accomplish?

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
Ok, I can get the Session ID from the page, pass it to the Global function
as a string. Now how do I use it to specify a running session?

DalePres wrote:
Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections of
session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are a
couple key things to remember:

First, add the session to the collection in from the
Global.Session_Start() method and then make sure you remove the session
from your collection from the Global.Session_End() method.

Second, be aware of the security risks involved in granting one session
access to code that is aware of, and able to communicate with, another
session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl...
Either of the methods you suggest definitely work. However, what if some
of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:

You can add your method to Global.asax such as

public static bool Login()

{

private bool success = false;

// do some login stuff here and set success

return success;

}

and call it like

bool loggedIn = Global.Login();

But a better solution, I think, would be to create a helper class and
put the methods that you want globally available in that class.

HTH

DalePres
MCAD, MCDBA, MCSE
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl.. .
>When I wrote websites in VB .NET, I would often put functions in Global
>for all the pages to call. Now, in C#, doing so results in "references
>to non-static objects" and whatnot. I realize what that means and all,
>but what I'm wondering is what's the best way around it? Say, for
>example, I want a function that takes a username and a password and
>returns true or false if it's a successful login, and I want any page
>or usercontrol in the website to be able to call that function, where
>should I put it and what syntax do I need?
>
>
>Regards,
>David P. Donahue
>dd******@ccs.neu.edu

Nov 16 '05 #6
I looked for the code where I had done this in the past and don't have it
any longer so I did some playing around.

I think the answer to your original question, about creating global objects,
create the object in the Global.asax.cs as a static method or object such
as:

private static ArrayList allContexts = new ArrayList();

public static ArrayList AllContexts

{

get { return allContexts; }

set { allContexts = value; }

}

public static void SendWebMessage(string sessionid)

{

ArrayList contexts = AllContexts;

for (int count = 0; count < AllContexts.Count; count++)

{

HttpContext context = (HttpContext)AllContexts[count];

if ((context != null)

&& (string.Compare(context.Session.SessionID, sessionid, false) == 0))

{

context.Response.Write("<BR>This is a message from the server!<BR>");

}

else

{

Global.AllContexts.RemoveAt(count);

}

}

}

///// Then, modify the following instance methods in your Global.asax.cs to
include the code below:

protected void Session_Start(Object sender, EventArgs e)

{

lock(Global.AllContexts)

{

Global.AllContexts.Add(Context);

}

}

protected void Session_End(Object sender, EventArgs e)

{

lock(Global.AllContexts)

{

for (int count = 0; count < Global.AllContexts.Count; count++)

{

HttpContext context = (HttpContext)Global.AllContexts[count];

if ((context != null)

&& (string.Compare(context.Session.SessionID, Session.SessionID, false) ==
0))

{

Global.AllContexts.RemoveAt(count);

}

else

{

Global.AllContexts.RemoveAt(count);

}

}

}

}

//// Then, lastly, in your web page classes, you would send a message like
this:

Global.SendWebMessage(Session.SessionID);

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
Ok, I can get the Session ID from the page, pass it to the Global function
as a string. Now how do I use it to specify a running session?

DalePres wrote:
Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections of
session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are a
couple key things to remember:

First, add the session to the collection in from the
Global.Session_Start() method and then make sure you remove the session
from your collection from the Global.Session_End() method.

Second, be aware of the security risks involved in granting one session
access to code that is aware of, and able to communicate with, another
session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl...
Either of the methods you suggest definitely work. However, what if some
of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:

You can add your method to Global.asax such as

public static bool Login()

{

private bool success = false;

// do some login stuff here and set success

return success;

}

and call it like

bool loggedIn = Global.Login();

But a better solution, I think, would be to create a helper class and
put the methods that you want globally available in that class.

HTH

DalePres
MCAD, MCDBA, MCSE
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl.. .
>When I wrote websites in VB .NET, I would often put functions in Global
>for all the pages to call. Now, in C#, doing so results in "references
>to non-static objects" and whatnot. I realize what that means and all,
>but what I'm wondering is what's the best way around it? Say, for
>example, I want a function that takes a username and a password and
>returns true or false if it's a successful login, and I want any page
>or usercontrol in the website to be able to call that function, where
>should I put it and what syntax do I need?
>
>
>Regards,
>David P. Donahue
>dd******@ccs.neu.edu

Nov 16 '05 #7
The vast majority of my interaction with the Session object is
reading/writing session variables:

Session[stringName] = stringValue;
stringTemp = Session[stringName];

That sort of thing. Am I going to have to loop through the collection?
Or is there a way to jus specify a Session and access it?

DalePres wrote:
It depends on what you are really wanting to accomplish.

For instance, if you want to write to the Response object associated with a
specific Session then your global collection should hold Context objects.
Use a foreach loop to iterate through the collection, testing for a matching
Context.Session.SessionID value. When you have identified the correct
context, you can Context.Response.Write() to that context.

Can you give a description of what it is you're trying to accomplish?

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
Ok, I can get the Session ID from the page, pass it to the Global function
as a string. Now how do I use it to specify a running session?

DalePres wrote:
Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections of
session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are a
couple key things to remember:

First, add the session to the collection in from the
Global.Session_Start() method and then make sure you remove the session
from your collection from the Global.Session_End() method.

Second, be aware of the security risks involved in granting one session
access to code that is aware of, and able to communicate with, another
session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl. ..
Either of the methods you suggest definitely work. However, what if some
of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:
>You can add your method to Global.asax such as
>
>public static bool Login()
>
>{
>
> private bool success = false;
>
> // do some login stuff here and set success
>
> return success;
>
>}
>
>and call it like
>
>bool loggedIn = Global.Login();
>
>But a better solution, I think, would be to create a helper class and
>put the methods that you want globally available in that class.
>
>HTH
>
>DalePres
>MCAD, MCDBA, MCSE
>
>
>"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
>news:ON**************@TK2MSFTNGP12.phx.gbl. ..
>
>
>
>>When I wrote websites in VB .NET, I would often put functions in Global
>>for all the pages to call. Now, in C#, doing so results in "references
>>to non-static objects" and whatnot. I realize what that means and all,
>>but what I'm wondering is what's the best way around it? Say, for
>>example, I want a function that takes a username and a password and
>>returns true or false if it's a successful login, and I want any page
>>or usercontrol in the website to be able to call that function, where
>>should I put it and what syntax do I need?
>>
>>
>>Regards,
>>David P. Donahue
>>dd******@ccs.neu.edu
>
>


Nov 16 '05 #8
You can access the current session (or request, or response, or
whatever) by using HttpContext.Current.

<code>
public static string GetSessionID()
{
//You can also access the current Request, Response, or Server.
return HttpContext.Current.Session.SessionID;
}

//From somewhere else:
Response.Write(Global.GetSessionID());
</code>

HTH,
~d

DalePres wrote:
It depends on what you are really wanting to accomplish.

For instance, if you want to write to the Response object associated with a
specific Session then your global collection should hold Context objects.
Use a foreach loop to iterate through the collection, testing for a matching
Context.Session.SessionID value. When you have identified the correct
context, you can Context.Response.Write() to that context.

Can you give a description of what it is you're trying to accomplish?

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
Ok, I can get the Session ID from the page, pass it to the Global function
as a string. Now how do I use it to specify a running session?

DalePres wrote:
Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections of
session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are a
couple key things to remember:

First, add the session to the collection in from the
Global.Session_Start() method and then make sure you remove the session
from your collection from the Global.Session_End() method.

Second, be aware of the security risks involved in granting one session
access to code that is aware of, and able to communicate with, another
session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl. ..
Either of the methods you suggest definitely work. However, what if some
of this global code refers to things like the Session object? Same
problem of non-staticness. How would I be able to refer to the correct
Session?
Regards,
David P. Donahue
dd******@ccs.neu.edu

DalePres wrote:
>You can add your method to Global.asax such as
>
>public static bool Login()
>
>{
>
> private bool success = false;
>
> // do some login stuff here and set success
>
> return success;
>
>}
>
>and call it like
>
>bool loggedIn = Global.Login();
>
>But a better solution, I think, would be to create a helper class and
>put the methods that you want globally available in that class.
>
>HTH
>
>DalePres
>MCAD, MCDBA, MCSE
>
>
>"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
>news:ON**************@TK2MSFTNGP12.phx.gbl. ..
>
>
>
>>When I wrote websites in VB .NET, I would often put functions in Global
>>for all the pages to call. Now, in C#, doing so results in "references
>>to non-static objects" and whatnot. I realize what that means and all,
>>but what I'm wondering is what's the best way around it? Say, for
>>example, I want a function that takes a username and a password and
>>returns true or false if it's a successful login, and I want any page
>>or usercontrol in the website to be able to call that function, where
>>should I put it and what syntax do I need?
>>
>>
>>Regards,
>>David P. Donahue
>>dd******@ccs.neu.edu
>
>


Nov 16 '05 #9
That's _exactly_ what I needed! Thanks!
Regards,
David P. Donahue
dd******@ccs.neu.edu
D.W. Warlock wrote:
You can access the current session (or request, or response, or
whatever) by using HttpContext.Current.

<code>
public static string GetSessionID()
{
//You can also access the current Request, Response, or Server.
return HttpContext.Current.Session.SessionID;
}

//From somewhere else:
Response.Write(Global.GetSessionID());
</code>

HTH,
~d

DalePres wrote:
It depends on what you are really wanting to accomplish.

For instance, if you want to write to the Response object associated
with a specific Session then your global collection should hold
Context objects. Use a foreach loop to iterate through the collection,
testing for a matching Context.Session.SessionID value. When you have
identified the correct context, you can Context.Response.Write() to
that context.

Can you give a description of what it is you're trying to accomplish?

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
Ok, I can get the Session ID from the page, pass it to the Global
function as a string. Now how do I use it to specify a running session?

DalePres wrote:

Pass the SessionID as a parameter to your global method.

I have had to, in some cases, create Application scope collections
of session objects or SessionID strings so that global functions can
communicate across sessions. If you have to go that far, there are
a couple key things to remember:

First, add the session to the collection in from the
Global.Session_Start() method and then make sure you remove the
session from your collection from the Global.Session_End() method.

Second, be aware of the security risks involved in granting one
session access to code that is aware of, and able to communicate
with, another session.

HTH

DalePres
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:e1****************@TK2MSFTNGP15.phx.gbl...
> Either of the methods you suggest definitely work. However, what
> if some of this global code refers to things like the Session
> object? Same problem of non-staticness. How would I be able to
> refer to the correct Session?
>
>
> Regards,
> David P. Donahue
> dd******@ccs.neu.edu
>
>
>
> DalePres wrote:
>
>
>> You can add your method to Global.asax such as
>>
>> public static bool Login()
>>
>> {
>>
>> private bool success = false;
>>
>> // do some login stuff here and set success
>>
>> return success;
>>
>> }
>>
>> and call it like
>>
>> bool loggedIn = Global.Login();
>>
>> But a better solution, I think, would be to create a helper class
>> and put the methods that you want globally available in that class.
>>
>> HTH
>>
>> DalePres
>> MCAD, MCDBA, MCSE
>>
>>
>> "David P. Donahue" <dd******@ccs.neu.edu> wrote in message
>> news:ON**************@TK2MSFTNGP12.phx.gbl...
>>
>>
>>
>>> When I wrote websites in VB .NET, I would often put functions in
>>> Global for all the pages to call. Now, in C#, doing so results
>>> in "references to non-static objects" and whatnot. I realize
>>> what that means and all, but what I'm wondering is what's the
>>> best way around it? Say, for example, I want a function that
>>> takes a username and a password and returns true or false if it's
>>> a successful login, and I want any page or usercontrol in the
>>> website to be able to call that function, where should I put it
>>> and what syntax do I need?
>>>
>>>
>>> Regards,
>>> David P. Donahue
>>> dd******@ccs.neu.edu
>>
>>
>>


Nov 16 '05 #10
Assuming you are using Visual Studio and are writing your app using
code-behinds, then simply create a class in any *.cs file in the project, or
create a new *.cs file in the project. Any page can simply create the
object and call the method, or, if you declare the method as "static" then
any code can simply call the method without creating an object first.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl...
When I wrote websites in VB .NET, I would often put functions in Global
for all the pages to call. Now, in C#, doing so results in "references to
non-static objects" and whatnot. I realize what that means and all, but
what I'm wondering is what's the best way around it? Say, for example, I
want a function that takes a username and a password and returns true or
false if it's a successful login, and I want any page or usercontrol in
the website to be able to call that function, where should I put it and
what syntax do I need?
Regards,
David P. Donahue
dd******@ccs.neu.edu

Nov 16 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

88
by: Tim Tyler | last post by:
PHP puts most of its functions into a big flat global namespace. That leads to short function names - but creates a namespace minefield for programmers. Lots of the functions are legacies from...
11
by: Capstar | last post by:
Hi, I am working on an application, which will run embedded without an OS. The app is build up out of a couple of well defined parts. At first I wanted to keep those parts seperated and use...
7
by: Michael | last post by:
Hi newsgroup, as the subject indicates I am looking for an advice using global variables. I am not if this problem is more about style then C. If its wrong in thi group, sorry. So I have a...
1
by: mc | last post by:
When I run Code analysis on my website I always get 4 errors, one from each of my Global.asax functions Application_Error,Application_Start, Session_End, Session_Start. the error is "'Function...
10
by: Charles O'Flynn | last post by:
As a complete newcomer (2-3 days) to PHP, although not to programming in general, I have 'dived in' to start a small project to read and parse an XML data stream. I have already worked out most of...
9
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
5
by: vunet | last post by:
I have some properties data to be loaded for the site use, such as: website url, admin email, mailing component to use, etc. for my ASP website. They will be stored in a database, or I also...
3
by: DavidPr | last post by:
I made a website for a group of people and they want a visitor counter on it. I don't like hit counters because if the site is dead everyone will know it. But, it's their website. I did an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.