Hekkeljünk trafikszoftvert! - QTrafik 

Ha 2013-ban olyan szoftvert akarnak eladni neked ami nem megy 64 biten mondj nemet!
Ha meghallod a DBF szót egy szoftverrel kapcsolatban fuss.

Ezeket a jótanácsokat sajnos kénytelen voltam a magam bőrén kitapasztalni.

Adott tehát a feladat: készítsünk egy raktárkészletkezelő rendszert ami:
- Átverhető az NDN ZRt minősítési tesztjén (potom 55K HUF + fáért)
- Fut 64 biten
- Grafikus felülettel rendelkezik
- Mentes minden felesleges funkciótól, azaz R=1 userekenek könnyű használni

Az NDN speckókról röviden:
- Adott egy webservice amit a T-Systems üzemeltet.
- ASP.NET alapú, legalábbis ez érzik rajta.
- PKCS#12 local cert. alapú azonosítás van+ azért minden hívásnak át kell adni egy egyedi shopId-t ami boltonként egyedi.
- Az éles rendszereken gzip-el tömörített módon kell kommunikálni. Erre képes tesztrendszer is van, időbe tellett míg rájöttem hogy a megaditt webservice url-ben az /nd előtagot /ndc-re kicserélve jutok a tömörített url-re. .NEThez példakódot is adnak.
- Alapvetően háromféle adatforgalom van:
- Cikktörzslekérés
- Készletmozgás feltöltés (eladás, bevételezés, etc.)
- Napi nyitókészlet feltölktése
- A feltöltési interakciókat ütemezni kell egy lekérés eredménye szerint.

A terv a következő:
- C++, Qt.
- Sqlite backend
- SOAP KDSOAP-al: https://github.com/KDAB/KDSoap

Eddigi szívások:

A minősítési rendszerbe regisztráláshoz fel kellett mutatni weboldalt, amire a githubot vettem igénybe :D.
Anno feltoltam egy átnevezett ezeréves kódot, mert kellett egy céges weboldal:
https://github.com/martonmiklos/opentrafik

KDSOAP-nak voltak/vannak még problémái:
- Típusnevekben pontok (már fixálták a KDAB-sek):
https://github.com/KDAB/KDSoap/commit/3dd7cef10bf03c1e2df0fffa76a4cc1134857975
- Több wsdl-ből áll az NDN webservice ami ugye tartalmaz ugyanolyan típusneveket. A kwsdl2cpp integrálható qmake alá, de nam adható át namespace ami névütközést okoz, ezt magamnak workaroundoltam.
- A webservice más addressing módot használ, amit szintén workaroundoltam közepesen szofisztikáltan:
https://github.com/KDAB/KDSoap/issues/40

Készítettem wsdl complextype -> SQLITE schema generátort PHP-ban, mert ugye embertelen lenne 5 tábla 60 sorát kézzel felvinni ;)

[ hozzászólás ] ( 3 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 294 )
Genesis Pro GP6308S console output 

I have receieved a GenesisPro GP6308S DVR recorder. I have read in the user manual that it runs Linux, so I could not missed taking into pieces and check the console output on it.

At first a short HW overview:

HiSilicon HI3515SoC
256MB DDR2 RAM (2 pcs. Hynix H5PS5162GFR)
8 MB flash (Spansion S29GL064N90)
Realtek RTL8201CP NIC
2 pcs. NVP1114 4 ch video decoder
DS13072 RTC

Pics:




The CN5 and CN7 are USB ports.

Read more...
[ hozzászólás ] ( 714 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 408 )
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 ( 2.9 / 267 )
[Project announce] Linux kernelmodul az NI DAQCard-4050-hez 

Ma sikerrel portoltam az National Instruments 4050 PCMCIA DMM-hez gányolt gyári példaprogramokat egy Linux kernelmodullá.

Kód a szokásos helyen a googlekódon figyel:
http://code.google.com/p/ni4050/

Nem bírhattam ki hogy ne hegesszek hozá valami GUI-t Qt-ban természetesen:




[ hozzászólás ] ( 14 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 233 )
Mjpeg-streamer input plugin for Icamview based IP cameras 

Today I have managed to create an input plugin for the Mjpg streamer which grabs the JPG frames from my Asus Mimic CX200 IP camera trough it's properitary protocoll.

Q: Ok but what is it good for?
A: Originally this camera was purcashed by my father for survillance purposes. But the quality of the supported softwares, made it unusable to it. The client software could only record to AVI which means the PC have to deconvert the JPG frames, and compress them to the video format. With two cameras it was a challange for his old AMD Duron config. I am going to write a survillance output plugin to the mjpg-streamer which will allows to control the input plugins and the output_file plugin configuration in a comfortable way.


I send my greetings to all developers at the Megatec for their bullshit products.

[ 1 hozzászólás ] ( 88 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 436 )

<< <Előző | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | Következő> >>

 
számláló