CakePHP: Undefined property: View::$Session after adding helper to the AppController 

I have got the error above after I have added a helper to the AppController. If I added the similar helper to all of my Controllers, everything had worked fine. Of course it is a workaround, so I have did some investigation, and I have figured out that the Session also acts as a helper not just as a component. After adding the Session to the helpers of the AppController the problem gone away.
[ hozzászólás ] ( 8 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 360 )
Freescale CodeWarrior for MobileGT 9.2 - MPC5125 under Linux 

Do you want to use Codewarrior for MobileGT 9.2 under Linux for debugging/developing to MPC5125?

The stock installation of the CW did not supports the MPC5125 and the MPC5123. You can download an upgrade to support these CPUs, but it is available for windows only. No problemo, after running some cabextract I was able to extract the upgrade contents. After some directory renaming and restructuring I had created the same directory structure as my Linux CW installation has.

The next archive could be extracted to the CodeWarrior main folder. (In my case this was the
/opt/Freescale/MGT-9.2/CodeWarriorIDE/CodeWarrior)

It will overwrite two files. Backup them before doing it this.
http://dl.dropbox.com/u/4295670/crio/Co ... PC5125.rar

Good luck to everyone who is using this stuffs!
[ hozzászólás ] ( 13 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 271 )
New Freescale Codewarrior USB-TAP disassembled 

The Freeescale support was very gently, so they are provided a free replacement for my dead USB-TAP. Of course I have disassembled it to check that did they added ESD protection to the USB lines.
Yes they did:



[ hozzászólás ] ( 5 megtekintés ) [ 0 trackbackek ] permalink ( 3.2 / 406 )
Freescale CodeWarrior USB TAP disassembled 

Let's get started with two pictures of the Freescale Codewarrior USB-TAP's PCB:




Read more...
[ hozzászólás ] ( 101 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 266 )
A few things what I setup when I create a new Qt Widget project 

1.Add the folowing to pro file:


OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
RCC_DIR=build

DESTDIR = bin

and the binaries won't mess up your sorce code directory

2. Make the following modifications in the main.cpp:


#include <QtGui/QApplication>
#include <QtCore/QTextCodec>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8";));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8";));

QCoreApplication::setOrganizationName("MM";);
QCoreApplication::setApplicationName("Mikrotik data miner";);
QCoreApplication::setApplicationVersion("0.1";);

QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}


Why?
The QTextCodec trick is neccessary because the sourcecode is UTF-8 encoded, and if I want to put a string from the code to somewhere I would need to use QString::fromUtf8(). If you do not believe check a generated ui_*.h file.

Always give set the name to your application and the application domain. This is useful when you are using QSettings, you do not need to give constructor arguments when creating a settings object. The settings object constructed in this way always use a separate data area specified by the platform. (.config/QCodeApplication::applicationDomain/QCoreApplication:applicationName.ini on Linux and registry on Windows)


[ hozzászólás ] ( 15 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 278 )

<< <Előző | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | Következő> >>

 
számláló