[QUOTE=Tamschi;39753496]As this is relatively smooth and has many small round features, wouldn't it be better to change the fragment depth instead?
That's a honest question, I don't know how it compares to tessellated geometry in regards to performance.[/QUOTE]gl_FragDepth doesn't have an effect on where the pixel is afaik?
[QUOTE=Darwin226;39758898]Knowing nothing about it, I have a feeling that that means my language has to greatly resemble C#. As in, for has to be a loop, not a function. What about CodeBlock objects? How do I explain those in CIL? I don't know what I'm talking about though.[/QUOTE]
I don't know much about it either, but afaik it's a pseudo-assembly language so you can do whatever you want. If you want your loops to be functions then just output CIL functions.
[editline]1st March 2013[/editline]
I just checked and it doesn't even have loop constructs, so you're not going to be forced to use them.
[QUOTE=Lexic;39759722]I don't know much about it either, but afaik it's a pseudo-assembly language so you can do whatever you want. If you want your loops to be functions then just output CIL functions.
[editline]1st March 2013[/editline]
I just checked and it doesn't even have loop constructs, so you're not going to be forced to use them.[/QUOTE]
Yeah, but going by the argument that it's way easier than writing an interpreter...
What you're saying is that I'd need to write a compiler, and honestly that seems much harder to do.
[QUOTE=Tamschi;39756482]There should be a command for this, it looks like it's either git remote add origin (url) or git remote set-url origin (url), where (url) is your remote url.
I don't know exactly about Git (too inconvenient), but TortoiseHg can manage paths (the remote equivalent) so it's likely that your GUI has that ability too, somewhere.[/QUOTE]
I'm using EGit not the command line. I did google it and the command is git pull origin master and then when you push for the first time git push -u origin master. Doing this in EGit (i've now found out how) is somewhat more work.
[QUOTE]Expand your git repository tree from 'Git Repositories' view.
Right click on 'Remotes' and select 'Create Remote'
Select radio button 'Configure fetch' -> 'Ok'
Select 'Change' opposite 'URI' text box
Enter your git repository details and click 'Finish'
Select 'Save'[/QUOTE]
[QUOTE=Electroholic;39758995]RakNet is so fucking awesome. Easily the best library I have ever used. I've been using it for 5 years now and I absolutely love it.
Just wanted to get that off my chest.[/QUOTE]
What the fuck. Why have I never heard of this before.
Ive been trying to learn JavaScript but was wondering what you guys thought of
Dark Basic Professional and if its any good?
Ive used it before but am not quite sure how powerful it is.
Would like to have some input on this.
[QUOTE=Darwin226;39760069]Yeah, but going by the argument that it's way easier than writing an interpreter...
What you're saying is that I'd need to write a compiler, and honestly that seems much harder to do.[/QUOTE]
Yeah but you already wrote an interpreter and it sucked. :v:
It might be easier to make a compiler than to spend ages trying to find out how to make a non-sucky interpreter?
Holy shit
[url]https://twitter.com/hukl/status/307469987826761729[/url]
[img]http://puu.sh/2aknD[/img]
[editline]1st March 2013[/editline]
Also works on mac
Please remember that a lot of desktop environments allow any user to change the time/date for some reason.
[QUOTE=Mega1mpact;39761417]Holy shit
[url]https://twitter.com/hukl/status/307469987826761729[/url]
[img]http://puu.sh/2aknD[/img]
[editline]1st March 2013[/editline]
Also works on mac
Please remember that a lot of desktop environments allow any user to change the time/date for some reason.[/QUOTE]
Moral of the story: Don't leave your desktop unlocked when you're away.
[QUOTE=mobrockers2;39761513]Moral of the story: Don't leave your desktop unlocked when you're away.[/QUOTE]
Same goes for windows:
net user {username} {new password}
[QUOTE=Mega1mpact;39761522]Same goes for windows:
net user {username} {new password}[/QUOTE]
Someone told me about that a few months back, he tried to show me. Couldn't get it to work :v:
[QUOTE=Mega1mpact;39761417]Holy shit
[url]https://twitter.com/hukl/status/307469987826761729[/url]
[img]http://puu.sh/2aknD[/img]
[editline]1st March 2013[/editline]
Also works on mac
Please remember that a lot of desktop environments allow any user to change the time/date for some reason.[/QUOTE]
Explanation: This happens because sudo stores a timestamp to check the timeout. sudo -k does not require a password and it sets the timestamp to zero seconds past the UNIX epoch. Setting your clock to the UNIX epoch of 1970-01-01T00:00:00Z, then, means that sudo believes five minutes (or whatever the timeout has been set to) have not yet passed from the last time you used sudo and lets you use it without a password.
Durr.
[editline]1st March 2013[/editline]
So actually the issues are the design of sudo and letting unprivileged users change the time and date without a password.
[QUOTE=esalaka;39761734]Explanation: This happens because sudo stores a timestamp to check the timeout. sudo -k does not require a password and it sets the timestamp to zero seconds past the UNIX epoch. Setting your clock to the UNIX epoch of 1970-01-01T00:00:00Z, then, means that sudo believes five minutes (or whatever the timeout has been set to) have not yet passed from the last time you used sudo and lets you use it without a password.
Durr.
[editline]1st March 2013[/editline]
So actually the issues are the design of sudo and letting unprivileged users change the time and date without a password.[/QUOTE]
I understood...
...some of that...
[b]TL;DR:[/b] To protect yourself, don't let non-admins change the time and date (not sure how easy this is to actually do thought).
[QUOTE=T3hGamerDK;39759081]I looked it up and I can see why. It has some pretty great integration with a lot of things. It's a shame it's C++, but disregarding that, I really like what it offers.[/QUOTE]
It has a C# port or wrapper I believe, I've used it before.
[QUOTE=thomasfn;39761885]It has a C# port or wrapper I believe, I've used it before.[/QUOTE]
Might as well use Lidgren then.
[QUOTE=Mega1mpact;39761522]Same goes for windows:
net user {username} {new password}[/QUOTE]
I always used this like so:
net user {username} *
then it asks to type/retype new password.
I've found this pretty useful, from messing with school's computers in 7th grade to regaining access to admin accounts I had forgotten the password of...
[QUOTE=Dlaor-guy;39761919]Might as well use Lidgren then.[/QUOTE]
What if you want a RakNet server in C# to communicate with a RakNet client in C++?
[QUOTE=thomasfn;39762081]What if you want a RakNet server in C# to communicate with a RakNet client in C++?[/QUOTE]
Why would your server need to know about how your client deals with sendding/receiving data? as long as it knows the structure of the data
[QUOTE=Electroholic;39758995]RakNet is so fucking awesome. Easily the best library I have ever used. I've been using it for 5 years now and I absolutely love it.
Just wanted to get that off my chest.[/QUOTE]
The ReplicaManager3 is pure gold :v:
[QUOTE=esalaka;39761734]So actually the issues are the design of sudo and letting unprivileged users change the time and date without a password.[/QUOTE]
I don't see how you can blame the design of sudo. Clearly the problem here is that they're letting non-administrators change the system time. sudo -k is very useful for logout scripts.
[QUOTE=Mega1mpact;39761522]Same goes for windows:
net user {username} {new password}[/QUOTE]
Since Windows XP service pack 2, You can only create non administrator users if you are a normal user.
And in Windows Vista, Windows 7 normal users don't have the permission to create users at all by default.
[QUOTE=Richy19;39762205]Why would your server need to know about how your client deals with sendding/receiving data? as long as it knows the structure of the data[/QUOTE]
I'm pretty sure RakNet and Lidgren use different protocols for communication. They both use UDP, but they'll both use different message structures for connection packets, ping packets, reliability packets etc. RakNet has more features than Lidgren too (such as the mentioned ReplicaManager3).
[QUOTE=gparent;39762463]I don't see how you can blame the design of sudo. Clearly the problem here is that they're letting non-administrators change the system time. sudo -k is very useful for logout scripts.[/QUOTE]
It is a problem with sudo since sudo -k doesn't ask for a password.
[QUOTE=gparent;39762463]I don't see how you can blame the design of sudo. Clearly the problem here is that they're letting non-administrators change the system time. sudo -k is very useful for logout scripts.[/QUOTE]
It's a design issue if a command which is supposed to invalidate your credentials actually doesn't do so, but rather makes them valid for a specific time [i]in the past[/i].
Wait a second, don't you need sudo to change the date & time anyways?
[code]
Vector = new Object;
function Vector:Vector(x, y) // Constructor
{
self.x = x;
self.y = y;
}
function Vector:normalized()
{
len = sqrt(self.x^2, self.y^2);
norm = new Vector(self.x/len, self.y/len);
}
return Vector
[/code]
So I've been designing a language. The VM, lexer, and a bit of the parser is done. This is my current grammar/syntax target.
The language is in the same class of language as Lua, or Javascript, but it's been designed to combat what I see as serious issues with these languages:
Scoping: Both Lua and JS share this terrible scoping system that requires 'var' or 'local'. My language uses a C-like scoping system with closures having the ability to access variables in the environment they are created in. This means no more 'local' or 'var', and most importantly no more global namespace. There will most likely be a 'shared' or 'global' keyword to allow environments under the current one on the stack to access a variable they otherwise could not.
Modules: Each file in my language is a closure. This enforces a good 'module' system. Each file except the main file should be returning a value or object that the other file can use. Here's an example using the code I put above.
[code]
Vector = require "Vector";
b = new Vector(2, 0);
print(b.x);
[/code]
Object Orientation: Lua and JS suffer from fractured object orientation systems. Look at any given project and you will see a completely different scheme than the last. This language fixes that problem. The only way of creating a new object is through "new". "new" creates a prototype of the given object, passes that to the objects __constructor (syntax sugar for that is identifier:identifier()) and then hands it back to the user. Although objects are similar to Lua's tables there is no way to create a raw object, they must be made through 'new'. (Although barring a few things the Object object is pretty close to a raw object.)
Object Orientation (Lua): Unlike Lua everything in this language is an object. Numbers are a Number object, strings a String object, and even nil is a Nil object. These objects work like any other object, and there are no special rules. The actual value of these objects is held in a void* on the object which can be accessed from C.
If anyone is interested, I'll write more.
[editline]1st March 2013[/editline]
Also feel free to critique.
I'm in a love/hate relationship with unit tests right now. On one hand I love them because they are so useful. Especially since I am working on a DLR language. I can immediately see if any of my changes break existing language features. On the other hand I find them stressful. I'll be sitting here watching them going "Don't fail! Don't fail! Don't fail!". Suddenly a unit test fails and I flip my desk. Also I sometimes unknowingly use them as a crutch. Like I will just throw shit at a wall until something sticks because I know if something doesn't work the unit tests will(hopefully) catch it. I definitely feel like when I rely on unit tests my code quality goes down. Oh well, I am not going to stop using unit tests anytime soon. Being able to see if I broke an existing feature or see that a bug came back is wonderful.
[QUOTE=mobrockers2;39762743]Wait a second, don't you need sudo to change the date & time anyways?[/QUOTE]
Stuff like Gnome and KDE allow you to change the time without needing a password, presumably for the sake of convenience.
[QUOTE=mobrockers2;39762743]Wait a second, don't you need sudo to change the date & time anyways?[/QUOTE]
You [I]should[/I] need it but some systems/desktop environments allow for it without privileges.
Sorry, you need to Log In to post a reply to this thread.