|
Unless you're planning on writing a compiler/assembler/optimizer... probably not worth spending more than a semester's worth of time on it. Like I said though... knowledge is power. I hate seeing people on this site that only know really abstract languages like C#, Java, and scripting... since they seem to lose touch with what's going on with their code behind the scenes.
|
|
|
|
|
I don't mind abstract languages. I don't like doing things that I don't understand the workings of though (to a degree). I learned c and c++ first, so I usually want understand how I would do it there.
I know c (none of the really fancy stuff), c++ - probably just intermediate, javascript, jquery, c#,vb.net, wcf (basics..only written one service professionaly), vba, vb6, vbscript, classic asp, some very basic dos batch stuff, bash scripting, perl, php, Java, sql, er.. off the top of my head that is it. I know, compared to the people here I'm a noob
I am working on understanding assembler, doing some cool game programming tinkering, and a few other things right now at home. I want to do some more data structures, write a -very- simple virtual machine and implement scripting (I saw a project similar to what I want to do with that here on cp).
In the future I want to be able to do my own implementation of a unix clone as seen here:
http://www.jamesmolloy.co.uk/tutorial_html/[^]
and by then I hope to have found other things that I missed out on. I may not have missed out, but a friend of mine was at a university and did all these things. I did not have the opportunity to go. I hope to gain a better understanding of computers and programming by doing these.
Ultimately my only real personal goal is to make a 3d game I'm behind on mathematics though, and need to do some things while I'm catching up!
|
|
|
|
|
Good luck on your endeavors! ...nice to see ambitious people around
|
|
|
|
|
Hi to all ,
I don't have sufficient idea about socket programming but what clear is that i want to create a pro gramme that do the live streaming. Means i want to display live recording from mobile to website.
I don't have much more idea about how to do that, can any one please help me. I know something about the java client-server application with socket programming. Even i can create socket and start recording from the mobile device but i can understand how to read and display that data in php.
Please help me and give me some guidance asap.
Thank you.
Regards,
Avani
|
|
|
|
|
What you mean is you want to do the streaming of video/audio.
Here is some issues you need to know
1. php is a server site scripting not server itself.
2. php will not do anything unless it get request from the client
3. you can build a server using php(!!!!!???) but it wont run long cause PHP itself dont let a script run more than certain period.
4. You need to learn how to build server.
5. You need to learn how to implement Real Time Streaming Protocol
6. You will need to know about video/audio file formats so that you can stream them
Finally I am not saying you cannot. I am saying it wont be a easy task. Good luck
Anyway, If you search on Google about stream you might get some free source code
|
|
|
|
|
Hi All,
I'm new in python. I want to make some changes in blender source code which is written by python. I want to change it's import part. Does any one know about it?
|
|
|
|
|
Their website has plenty of information also for developers. Why don't you start there? In case you are a missing a link: Dev:Contents - BlenderWiki[^].
Regards,
Manfred
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
Hi, I have an update query, which is working fine. When i click on edit button, then it shows the field with content inside it, which we want to edit or update. It is working fine with <input type="text" /> but i also want it with <select> tag.
code is like this
<select name='location' value="<?php echo $row['location']; ?>">
<option value=''> - Select - </option>
<option value='Anywhere' >Anywhere</option>
<option value='Ahmedabad' >Ahmedabad</option>
<option value='Bangalore' >Bangalore</option>
<option value='Chennai' >Chennai</option>
<option value='Delhi' >Delhi</option>
<option value='Delhi Region' >Delhi Region</option>
<option value='Gurgaon' >Gurgaon</option>
<option value='Hyderabad' >Hyderabad</option>
<option value='Kolkata' >Kolkata</option>
<option value='Mumbai' >Mumbai</option></select>
So i want whatever i city already chose, it should show on edit page, but in my case its not showing, i have to select again, if i am not selecting any city then it shows blank in the database.
Can anyone help me in this, what i do or what i have to change
|
|
|
|
|
Jaan, your error is that the select tag cant be set by value atribute.
The right method is sets the "selected" atribute in the option tag you wish to pre-select
Example
';
echo 'Valor'.$i;
echo '';
}
?>
In this example when $i has 8 value, echoes 'selected'.
Regards.
|
|
|
|
|
You are using your select tag wrong.
Here is an example of valid SELECT Tag
<SELECT name='location' id='location'>
<OPTION value='1' SELECTED>By Default this menu will be showed</OPTION>
<OPTION value='2' >This menu will be hidden</OPTION>
</SELECT>
SO the fact is the OPTION value that you want to select will have to contain the WORD "SELECTED"
|
|
|
|
|
Ok I have created a simple search form.
So I need a way in which when I input a search term, the form returns
result from google and displays them below the page.
Thanks.
|
|
|
|
|
You need to trigger it off of either the javascript events onblur, onkeyup or onkeydown and then use a ajax message to a serverside script to query google and then return the results to you page....or you can google, "on how to add a google search to your site", maybe "with autcomplete" as an additional search parameter.
Chris J
www.redash.org
|
|
|
|
|
Do you really want asyncronous results? If not, you can just handle the POSTed data back to the script...something like:
if(isset($_POST['search']))
{
}
else
{
}
Of course using AJAX would be pretty nifty
|
|
|
|
|
I should add that jquery can make the whole ajax thing much easier to do.
Chris J
www.redash.org
|
|
|
|
|
We have a partner site, so any member from that site when clicks on a link to our site should be automatically logged inn.
what is the best possible solution for this?
using web services or query string or any other approach?
|
|
|
|
|
Don't do it. Automated logon with a website is potentially dangerous to the integrity of your company data and to your company's reputation if such a security hole becomes common knowledge.
Tell them why ...
"Security, security and security"
But if they insist, get something in writing so instructing you so that at some future time you got something to fall back on when the website and no doubt the underlying databases gets hacked/corrupted/etc
modified 1-Aug-19 21:02pm.
|
|
|
|
|
As Richard wrote, this is very risky. Are you 100% certain that the partner site is dogged about security?
You may want to consult a IT Security Pro that has a lot of internet communication experience. The specifics of two sites sharing a common login is not good to have in a public forum.
Chris J
www.redash.org
|
|
|
|
|
Already two expert says it vulnerable and it is 100% true, But Yet here is a solution:
1. When User send a request first verify the user and confirm that the user is valid.
2. if valid then create a socket communication to the other server in port 80 or whatever you have chosen, then create the proper header for the other Server and send a login request to that server.
3. The other server will validate the request and send the data as usual. if success you will get a reply through the socket. Receive all data including the cookies.
4. Extract the session parameter from the cookie. save the cookie in your current server.
5. When user would click any link that forward to the other server then do not create direct link.
first send it to any local php file. In that file first set header value with cookie and then using herader location redirect it to the other server.
Perhaps you can save the retrieved session in uri of the forwarded link and then you would have to add a small process to restore session from external variable which I described in this link[^].
Even though two of the commentator demanded that its a violation of security. But the fact they missed is that to retrieve a session id you don't need to be a hacker. all you need is to learn how http behave. If you want to see what session ID now you are using then all you need to do is install live http with firefox and enjoy the act of firefox with header
|
|
|
|
|
Thanks for the solution. ok I understand that it is vulnerable to security. So may be we can follow different approach or at least I can put forward different approach. Instead of auto login - we can say, all the members from xyz site can log in to abc site with their xyz username and password.
Solution to this -
1.) Every time, we ask the partner site to provide us the data with username and encrypted passwords and we match it when user tries to log in but this isn't a good solution. We want the process to be automated.
2.) May be they create a web service and we communicate via that web service to let user log in etc.
How do other sites like spotify works? You can login to spotify using facebook login details?
Is there any better way to do this.
Thanks a lot.
|
|
|
|
|
|
If you are gonna do it, then to answer your question...and this is just "off the cuff", I would most likey set up a seperate server to act as a central store of user logins. All sites must have a registration themselves to access the server and share data. I would then develop a series of scripts with a few interfaces to do...
1) share registered user logins, I would plan on the partner sites maintaining their own and current signup data store, but just have the data sent to a script on this server to process for a shared login. Be certain to scrub the hell out of this regardless of of transport (i.e. - never trust user input, no matter who the user is)
2) a script would be needed to dump the current user logins to the shared login db too.
3) a script to alter a status of a user, ie users baned on one site must not be able to login at yours and vise versa.
4) You will also need a message scheme to notify the target site that site abc has a user that wants login access. I would imagine that this should be managed with a direct server to server communication. This should be like setting a flag for the user. So when the user goes to the new site the login is already done and waiting for them.
5) since logins are handled via session, I imagine a custom session handler is in order as I doubt the default one in php would work. You can google for code to act as a base for your code, or at least for ideas for making your own design.
In a sense this reminds me of have a single login for sites with multiple subdomains and different servers. Here are a few bookmarks of mine that may help shed some light on the session issues related to this and may be an issue to consider as you go forward.
http://shiflett.org/articles/the-truth-about-sessions[^]
http://www.josephcrawford.com/php-articles/going-deep-inside-php-sessions/[^]
I will say again, I have a number of security issues with this. Your going to have a lot of trust in your partners to pull this off and I suspect if your group takes off in popularity the security issues will become even more profound.
You can of course implement a google, or facebook, or some other 3rd party login system. But I can not comment on the pros and cons of them. Maybe someone in the CP forums can?
Chris J
www.redash.org
|
|
|
|
|
|
I dislike the new gnome. I only tried it a little, and it was just too alien. However, a coworker said something I couldn't let go. "You are too young to resist change" and it struck me that computer scientists should probably not resist change.
With this in mind, I went to upgrade my gentoo box to the new gnome. I was determined to try it until I got used to it to give it a fully educated review.
I went to the gentoo upgrade guide , and quickly changed my mind. I left out the default options being wierd. That was a given. The things that bothered me beyond that are quickly adding up. The eselects are long and cryptic, the gs configs are overly complicated, I no longer have a choice for audio and have to use pulse audio, there is no compiz support at all, many of the gnome2 apps have not been ported so they won't work, nvidia cards are pretty well not working and cause several errors, and there are many work arounds for things that don't work already.
I don't think it's a good time to change. What bothers me most about that is now I have to mask it to do a system update, and in a couple months they say they will no longer support the old gnome. If I don't mask it, I have to add lots of ~arch stuff in my update file, meaning it's not ezackery stable yet (though they say it's stable). Why do they make it stop my update?
I think I will keep it masked for now, and wait for it to actually become stable.
Anyone have thoughts on this?
|
|
|
|
|
It's a big change for gnome... every time a product makes a big evolutionary change, you can expect growing pains as well as people that are unhappy about where it's going. For now, I think you can safely continue to use the older versions of gnome, if you simply can't adjust to the new gnome in the future (once they stop supporting gnome 2), there's always kde.
|
|
|
|
|
I'd be more likely to switch to xfce or lxde.
I was prepared for the growing pains. It's just that it pretty well seems like nothing will work on my machine yet. I have a new nvidia graphics card, which pretty well shoots the new gnome in the foot.
|
|
|
|