[QUOTE=NovembrDobby;18764707]Opera has that :3:[/QUOTE]
Yeah, but some people don't want to use Opera.
I know there are numerous extensions like the one I plan to make except I feel they interfere with the experience too much. For example there's one extension which does the same thing as mine, but places edit boxes all over the page. My extension will allow the end user to simply hit a button and be able to edit the page.
Hopefully.
[QUOTE=CarlBooth;18763383]Shouldn't it be
[code]
<animations>
<animation name="idle" path="" repeating="1">
<frame />
<frame />
<frame />
</animation>
<animation name="running" path="" repeating="1">
<frame/>
</animation>
<animation name="pimpslap" path="" repeating="0" nextloop="idle" onexit="idle">
<frame />
<frame />
<frame />
</animation>
</animations>
[/code]
?
[editline]12:55PM[/editline]
I also agree with previous statements, XML is godawful.[/QUOTE]
My original way worked fine and is a bit more readable. I get that XML is sometimes bad. But in my case, I don't have to write a lot, I can easily modify it and make tools for animation and such things, it just works for me.
What do you guys think about JSON over XML?
[QUOTE=G@merGeek;18764800]Yeah, but some people don't want to use Opera.
I know there are numerous extensions like the one I plan to make except I feel they interfere with the experience too much. For example there's one extension which does the same thing as mine, but places edit boxes all over the page. My extension will allow the end user to simply hit a button and be able to edit the page.
Hopefully.[/QUOTE]
Even IE can do that, with a bookmarklet.
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
[QUOTE=Chandler;18761923]Thought I'd make a quick little video for you guys on what a buildit script looks like. It's nothing spectacular, but if any of you are interested in what does what, it wouldn't hurt to watch this. Also, realize the sound gets out of sync near the end. And Yes I'm talking.
[media]http://www.youtube.com/watch?v=HEU4WPHmOIA[/media][/QUOTE]
You have a nice clear voice.
[QUOTE=databee;18765844]You have a nice clear voice.[/QUOTE]
Thanks :)
[QUOTE=MultiPurpose;18765440]My original way worked fine and is a bit more readable. I get that XML is sometimes bad. But in my case, I don't have to write a lot, I can easily modify it and make tools for animation and such things, it just works for me.[/QUOTE]
If you're gonna use it (and that's entirely up to you) you should at least use it properly.
[QUOTE=Spoco;18753525]I thought Facebook was going to be good, but it has turned into a big bloated mess. Every app is about advertising, and require you to send ads to all your friends to use them.
I want a social networking site that doesn't include advertisement and shitloads of stupid quizzes.[/QUOTE]
Email.
[QUOTE=arienh4;18765760]Even IE can do that, with a bookmarklet.
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0[/QUOTE]
I'm aware of what can be done already. I'm simply trying other means of doing so.
For some it's inconvenient grabbing that code and typing it in. What I'm working on simplifies the process.
[QUOTE=Diaklu;18765743]What do you guys think about JSON over XML?[/QUOTE]
everything is better than anything xml-based, especially json.
[QUOTE=Diaklu;18765743]What do you guys think about JSON over XML?[/QUOTE]
[url]http://www.json.org/xml.html[/url]
[QUOTE=G@merGeek;18766215]I'm aware of what can be done already. I'm simply trying other means of doing so.
For some it's inconvenient grabbing that code and typing it in. What I'm working on simplifies the process.[/QUOTE]
Do you know what a bookmarklet is? I think dragging a button to a bar is easier than (installing a new browser and) installing an extension. It's just a matter of clicking the button.
[QUOTE=CarlBooth;18766138]If you're gonna use it (and that's entirely up to you) you should at least use it properly.[/QUOTE]
If it solves my problem and it works well, I am using it properly.
[QUOTE=arienh4;18768190]Do you know what a bookmarklet is? I think dragging a button to a bar is easier than (installing a new browser and) installing an extension. It's just a matter of clicking the button.[/QUOTE]
Praise the lord.
Lets put you in the position I am in.
I'm using a version of FF whereby I have 3000 bookmarks. Now there is a piece of JS which you can use to achieve the same thing I want to achieve. Supposed I bookmark a page with that bit of code on and need to use that code say a week later. How easy is it for me to sift through all my bookmarks to find that damn page.
What I am working on simplifies the process for people like my good self who use the code almost everyday. On the whole installing the extension makes it quicker for me overall, even if I save the code locally, which is an alternative to merely bookmarking it.
Got cURL working :D. Also made a basic/simple wrapper for it because I really dislike the writefunction shit.
[cpp]////////////////
// Hpp
////////////////
#pragma once
#include "curl/curl.h"
#include "curl/easy.h"
#include <string>
class EasyCurl
{
std::string Url;
std::string Content;
int Error;
public:
EasyCurl(std::string url);
~EasyCurl();
std::string Get();
int GetError();
//Used with EasyWrite
void AddContent(std::string str);
};
////////////////
// Cpp
////////////////
#include "EasyCurl.h"
static size_t EasyWrite(_In_count_x_(_Size*_Count) const void * _Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE * _File)
{
EasyCurl* ec = (EasyCurl*)_File;
ec->AddContent( std::string( (char*)_Str, (int)(_Size * _Count) ) );
return _Size * _Count;
}
EasyCurl::EasyCurl(std::string url)
{
Url = url;
}
std::string EasyCurl::Get()
{
Error = 0;
Content = "";
CURL* c = curl_easy_init();
if (Error = curl_easy_setopt(c, CURLOPT_URL, "http://google.com"))
return "";
if (Error = curl_easy_setopt(c, CURLOPT_FILE, this))
return "";
if (Error = curl_easy_setopt(c, CURLOPT_WRITEFUNCTION, EasyWrite))
return "";
if (Error = curl_easy_perform(c))
return "";
curl_easy_cleanup(c);
return Content;
}
int EasyCurl::GetError()
{
return Error;
}
void EasyCurl::AddContent( std::string str )
{
Content += str;
}[/cpp]
[QUOTE=high;18776363]-snip-[/QUOTE]
Might want to remove the useless copies by passing const std::string references instead of passing every string by value.
[QUOTE=gparent;18776429]Might want to remove the useless copies by passing const std::string references instead of passing every string by value.[/QUOTE]
Meh, I just wrote it up quickly to test curl :P. Thanks though
Lightning code out of boredom:
[IMG]http://img230.imageshack.us/img230/8504/lightningw.png[/IMG]
[QUOTE=s0ul0r;18780457]Lightning code out of boredom:
*img*[/QUOTE]
Would look better if it was a bit wider, how are you doing it?
Edit: When I say wider I mean more distance between the "sub-lightnings", not a wider light. :v:
[QUOTE=G@merGeek;18772066]I have 3000 bookmarks. ... How easy is it for me to sift through all my bookmarks to find that damn page.[/QUOTE]
I have the worrying\useful ability to remember URLs and other things I don't really want to very easily, so I don't really have any issue with 3000 bookmarks like you do. On the other hand, even if I didn't manage to remember URLs I'm pretty sure loading the list of 3000 bookmarks would take more time than most other methods of trying to find the site. Why do you even have that many? I doubt you'd be using all three thousand on a regular basis, I'm sure you could cull a few hundred or even a thousand or three of those and not miss anything.
In any case, I've got FireBug+Web Developer Toolbar+Firefox for development and the Chrome Inspector (which really pales in comparison to FireBug) for general web browsing.
[QUOTE=dezek;18780707]Would look better if it was a bit wider, how are you doing it?[/QUOTE]
Basically you take a line with 2 endpoints, divide it so that you have 2 lines and then move the middle point a random amount up or down (along the normal) and you do that for the number of generations given.
Then with every generation you also continue the first segment so that you end up with a third one (as the branches)
and voila, lightning:
[cpp]
Segment s = new Segment(sP, eP);
SegmentList.Clear();
SegmentList.Add(new Segment(sP, eP));
Random r = new Random();
double offset = 50;
int branchGenerations = 5, bg = 0;
List<Segment> RemoveList = new List<Segment>();
for (int generations = 0; generations < 7; generations++)
{
int length = SegmentList.ToArray().Length;
for (int i=0;i < length;i++)
{
Segment segment = (Segment)SegmentList.ToArray().GetValue(i);
RemoveList.Add(segment);
Vector3 midPoint = new Vector3((segment.startPos.X + segment.endPos.X) / 2.0, (segment.startPos.Y + segment.endPos.Y) / 2.0, 0.0);
segment.normal.Normalize();
midPoint += (segment.normal * (double)r.Next((int)-offset, (int)offset));
SegmentList.Add(new Segment(segment.startPos, midPoint));
SegmentList.Add(new Segment(midPoint, segment.endPos));
if (bg <= branchGenerations)
{
Vector3 direction = (midPoint - segment.startPos) * Matrix.RotationZ(r.Next(-10,10)*(Math.PI/180.0));
Segment splitEnd = new Segment(midPoint, midPoint+direction*0.7);
SegmentList.Add(splitEnd);
bg++;
}
}
foreach (Segment sg in RemoveList)
{
SegmentList.Remove(sg);
}
RemoveList.Clear();
offset /= 2.0;
}
[/cpp]
Does it start and gradually get to where it is? Or does it instantly appear?
It be pretty cool if you forked out, then when 1 branch hits the bottom of the area, it is instantly focused on and enhanced.
Much like actual lighting:
[media]http://www.youtube.com/watch?v=_X_7YRVGvtA[/media]
[media]http://www.youtube.com/watch?v=IgnebrbWKKw[/media]
Coding an entity input/output system like Valve's
I started working on a planet editor using wxWidgets, after getting used to wxWidgets I added some pretty useful functions and it's nice to have it a bit seperated from the rest instead of a in-game editor.
But do anyone know why the hell my visual studio crashes each time I right-click a wxWidget classname (Like wxMouseEvent)?
[QUOTE=s0ul0r;18781032]Basically you take a line with 2 endpoints, divide it so that you have 2 lines and then move the middle point a random amount up or down (along the normal) and you do that for the number of generations given.
Then with every generation you also continue the first segment so that you end up with a third one (as the branches)
and voila, lightning:
[cpp]//code
[/cpp][/QUOTE]
Wow, that's exactly how I did it some time ago. The only difference was that I didn't make branches.
[QUOTE=JSharpe;18781427]Does it start and gradually get to where it is? Or does it instantly appear?
It be pretty cool if you forked out, then when 1 branch hits the bottom of the area, it is instantly focused on and enhanced.
Much like actual lighting:
[media]http://www.youtube.com/watch?v=_X_7YRVGvtA[/media]
[media]http://www.youtube.com/watch?v=IgnebrbWKKw[/media][/QUOTE]
Yeah, I think I might recode it with xna, since well... gdi doesn't really feature glow and great animation potential :D
Oh and, it instantly appears when you move the mouse.
Working on a point and click adventure with a friend, should be fun.
[IMG]http://i49.tinypic.com/blwth.png[/IMG]
This is a media player i am working on too build up my knowledge of VB its going quite well but there is lots to do.
its based off the vlc activex2 plugin
[QUOTE=mak364;18784590]media player ... VB ... vlc activex2 plugin[/QUOTE]
heh no
[highlight](User was banned for this post ("Why reply if you have nothing constructive to add" - verynicelady))[/highlight]
Sorry, you need to Log In to post a reply to this thread.