Wow, google really fell down on the job with this one, using the basic windows/IE connection settings for the internet, I know it’s easier that way, but that’s an inconvenience I don’t need.
Chrome is faster, but lacking such a basic feature really makes me not want to use it. It’s almost the principal of the thing.
Whenever I make a form, it’s a bit of a hassle to add in the php support. That is, if the page gets reloaded of sent back, we want to insure that all the valid data that was entered before is maintained.
And easy way to do this is:
Here is an easy way, tested in jedit, but should work with little to no modification in other regex capable editors:
Find: \<input name=”([\w]+)” value=”([\w]+)” />
Replace: <input name=”$1″ value=”<?= isset(\$_POST['$1']) ? \$_POST['$1'] : ‘$3′ ?>” />
I was mucking about in Flash CS5 and got this error when I typed include “ClassName.as”. Note, I normally use FlashDevelop for flex stuff, so I was trying to use the CS5 interface. I got the error, and was like what? So I hit google and got this response:
Try this first save the AS file as Starter_1.as
Next make a new fla and save it in the same folder as the Starter_1.as
Now in the fla in properties look for Document class: and write >> Starter_1 << and test it.
answer from here
I was like, what? Aw hell no.
And then the other braincell that I was blessed with kicked in.
try import
so yes, you can just put import ClassName; on an actions frame and it works.
I can be pretty dense now and again. Hope this helps others avoid being a dumbass like I was.
About the only reason I kept jEdit around was because of the search function, it was nice using that multi file search when you are on a time crunch and have to mod someone elses code. No more of that shit.
I installed ubuntu on a VM, and was like shit, jEdit’s recursive open plugin isn’t working, what am I going to do, and then I was like duh, grep.
grep -ir “def function_name” *
Get’s it done.
I am normally not much of an evangelist, but after working with Qt C++ on a few different apps, (my first experience was back when it was still trolltech and I was running KDE on Mandrake Linux, ahh the good ol days.) and all I can say is: This is C++?
Qt is the C++ framework of the future, and those who haven’t adopted it should, now, as soon as possible.
A little case study will suffice. I have been working on a project for a few months now and a few days ago it came up that there needed to be plugin architecture integrated into the software so that third party vendors could easily add functionality to the program. Sounds fun huh?
The answer was simple, Qt already has a signals and slots mechanism, asking third party vendors to use Qt isn’t unreasonable, its a dead easy framework to use, and no, it’s not that bloated.
Here were the steps:
- Create a standard message definition that can be used to communicate steps and program state
- Create a general purpose relay QObject (I called it Telegraph) with a send and receive. It sends, whatever it receives.
- Pass the relay object to the library allowing them to connect to the send/receive methods on the object
The entire plugin architecture was up and running in less than an hour, and tested, it hasn’t had an issue yet, though I am sure something might need some finaigling before it ships.
The great thing about it is, plugins can be made in pure Qt with only one header file, the message definitions! Since the hooking up of signals and slots is an abstract process, 3rd party devs just extern a register function that receives a QObject or void * object and the casts it to QObject* and connects the signals and slots. If we decide to change or add in some functionality to the telegrapher, it won’t affect old plugins, and new plugins can subscribe to new features without having to include any code.
extern "C" OSSHARED_EXPORT void RegisterPlugin(void * object)
{
Os* wo = new Os();
wo->telegraph = (QObject*)object;
wo->init();
}
void Os::init() {
connect(this->telegraph,SIGNAL(send(int ,void*)),this,SLOT(router(int,void*)));
}
void Os::router(int m, void * object) {
switch (m) {
case Messages::JavaScriptCleared:
QWebFrame* w = (QWebFrame*)object;
w->addToJavaScriptWindowObject("Os",this);
qDebug() << "Os attaching...";
break;
}
} |
Plugins can also connect to the Telegraphs receive slot, which relays whatever it receives to send signal, so any application objects that want to be exposed to plugins can define their own receive slot and connect it to the telegraphs send signal. Any interested party will be notified of an “event” and can choose what to do based on the message and the void * passed with it.
This has already been tested with two way communication, communicating from a Dialog box to the main window etc.
Working with Qt is sometimes like working in Flex/AS3, the signals and slots idea is exactly like event listeners, well more or less. The difference is, you get this functionality for free in a C++ app, and that in and of itself is tremendously useful.
People say that developing C/C++ apps takes along time and that’s why things like RIAs and web based apps will overtake them, that’s partially true, but when you get right down to it, C++ has never been this easy to use, and making an extremely cool app in C++ can take days in Qt whereas without it, it might take months, or even never happen.
So yeah, I feel pretty comfortable making with a little Qt evangelism right now, as it’s really made my life a whole lot easier.
/j
I had this problem while running sudo gem install anything, like sudo gem install sqlite3-ruby or what not, albeit while running Ubuntu in VirtualBox. The fix that worked for me was editing /etc/resolv.conf and using google’s public dns nameservers of 8.8.8.8 and 8.8.4.4
Now it works fine… Go figure.
Well, There’s not much more I can add than this: Die Flash, Die from the pink crow. Read it, learn it, love it. He also get’s extra points for using the word Shadenfreude, which is german for “the feeling of delight you feel when learning of the misfortunes of others, especially enemies or those you dislike.”
I know, I know, don’t I love flash?
Somewhat, it can be great, and I do post a lot of flash related stuff, especially flex/as3.
I also know C# and Asp.net, doesn’t mean I like those languages or products, it just means that when a Client says “Can you do it in…”, I can 90% of the time say “yes, if you want, but…” And the but is where I usually recommend a better, more maintainable and less proprietary option.
Don’t get me wrong, Adobe is making effort to opensource, which is why I have kind of reserved judgment for a little later. However so far, it only seems a bit half assed. They should remember the old fable of the child and the nettles:
A Boy was stung by a Nettle. He ran home and told his Mother, saying, “Although it hurts me very much, I only touched it gently.” “That was just why it stung you,” said his Mother. “The next time you touch a Nettle, grasp it boldly, and it will be soft as silk to your hand, and not in the least hurt you.”
Whatever you do, do with all your might.
While there are a few things about HTML 5 that suck, mainly that it’s being made by a committee that will diddle it to death before it’s ever actually released. Flash is still however the refuge of facist corporations for content delivery because it implements it’s own RTMP client functionality, allowing content providers to maintain a choke hold on their copyrighted products.
I don’t want to see Flash die, personally, I think it’s a fine medium for doing alot of great stuff, I just hate that there is no competition on the market.
In this case though, it’s like Carly Simon says, “Nobody does it better, makes me feel sad for the rest…”
C#.
No, it’s not because the language is bad, it’s actually pretty damn cool. It’s the name. Every time I search on google for information related to C/C++, I get hundreds of thousands of hits for C#. If I were using C#, I wouldn’t mind, but I am not. Like they couldn’t have come up with a better name? I always forget to type -C#. Well, to google’s credit, at least they have that option…
Here’s the best and quickest solution I could find:
dpkg -r dovcot-common dovecot-pop3d etc…
apt-get install popa3d
And you’re done.
Not, etc.. isn’t a package, just dpkg -r the ones you installed, like dovecot-imapd or such.
Fixes the issue everytime.
I am really getting tired of the unrealistic eCommerce platforms.
They all seem to be centered around this sexy web-forms backend, like real people have time to sit at their computer and just manually enter in data. It boggles my mind entirely.
Every time I have ever used a store software, rails, or php, the first question I get asked by customers is: Isn’t there a better way?
I have built so many freaking excel/csv/tsv importing scripts that I am at my wits end that no one offers this ability out of the box. My customers have thousands of items, some run into the 20-30 thousand items. Who’s gonna manually update those?
I am so close to just building my own from the ground up. The thing that stops me: payment gateways. I don’t want to have to my own integration code for them.
The main issue I have is, all of these systems are user friendly, not programmer friendly. They aren’t designed on an easy to use/understand/implement programming idiom, they are philosophically accessible to the lowest common denominator, which means under the hood, they are so convoluted as to be nigh incomprehensible. When I say incomprehensible I mean incomprehensible when you are working on a deadline, like program me a shoppe and get it done by the end of the week. When you have to spend a week hacking on a code base and reading the reams of user friendly documentation, that’s a waste of time and money.
Don’t get me wrong, I could just be stupid, maybe it’s easier for other developers, but I doubt it when perusing the forums and help lists of these pieces of software. No one seems to be interested in coding a solution that is the most direct path to success, for programmers only. Who cares if grandma moses can use your software.