Stream

Join this community to post or comment

Eugene Mayevski

Help! Need input!  - 
 
Hello. I am in need to design the hierarchy of classes (up to 10 classes), and I am looking for some UML-like tool for this, which would generate the code at the end. There was ModelMaker long time ago (and we licensed it), but right now it's a one-time task, so I'd use something simpler and preferably free. Any suggestions, please?
1
Joseph Mitzen's profile photoEugene Mayevski's profile photo
7 comments
 
+Jeroen Wiert Pluimers
It's not about UML changes, but about tool usability changes and possible integrations (not saying that I don't have that old license anywhere, and I know how vendors feel when asked about ancient versions and ancient licenses, so I don't want to bother Gerrit with this).
Add a comment...

Nick Hodges

Community Management  - 
 
We crossed 8,000 members.
9
Joe C. Hecht's profile photoJoseph Mitzen's profile photo
6 comments
 
+Attila Kovacs Maybe we crossed back the other way?
Add a comment...

Jude De Silva

Discussion  - 
 
Hi
i am having issue to save PDF file to MS SQL Table, with following code and i am getting error (Error image has attach) please kindly some one help me to solve the issue, thanks


procedure TEmployProfile.AdvGlassButton6Click(Sender: TObject);
var
FileName: string;
FileStream: TFileStream;
BlobField: TBlobField;
const
SBlobFieldName: string = '';
begin
FileName := '';
if OpenDialog1.Execute then
FileName := OpenDialog1.FileName;
if FileName = '' then
Exit;
FileStream := TFileStream.Create(FileName, fmOpenRead);
QDocument.Open;
try
QDocument.Insert;
BlobField := QDocument.FieldByName('EMPDOCUMENT') as TBlobField;
BlobField.LoadFromStream(FileStream);
QDocument.Post;
finally
FileStream.Free;
end;
end;




1
Attila Kovacs's profile photoMike Shkolnik's profile photo
11 comments
 
TDBImage works with images only. If you need preview the PDF, you need use the TOLEContainer but Adobe Reader must be installed on computer.

Just save the content from BLOB field to temporary file and load in TOLEContainer
Add a comment...

Delphi Ruby

Tips & Tricks  - 
 
If someone wants the Tips & Tricks I have some nice in my site are available to all
http://www.delphiruby.it/tipsDelphi_ENG.htm

Knowledge appartien the world
2
Joseph Mitzen's profile photo
 
I thought this was a link to integrating Ruby with Delphi. :-(
Add a comment...

Marco Cantù
moderator

Blog Post  - 
 
Blog post "Resuming the DelphiRazor Library Project" at http://blog.marcocantu.com/blog/2016-september-delphirazor-resuming.html
September 30, 2016. Resuming the DelphiRazor Library Project. Given I've updated the library for 10.1 Berlin for a personal project, and also added a few new features, I decided to make my Delphi Razor HTML scripting library public again. Given I've updated the library for 10.1 Berlin for a ...
6
Ivan Revelli's profile photo
 
the same like our store with indy and boostrap. http://makerzone.genius-lab.store/
or
http://synaptica.genius-lab.store

for more info http://www.genius-lab.it




Add a comment...
 
Does anyone have experience using the APIs at https://market.mashape.com/spoonacular?

I am trying to POST some data and use the Response.

They do not have a Pascal example. I think I have used Indy10 to post. However, all the POST examples show the URL with a "/dosomething.php" or something similar.
Then the HTTP component adds a "?name=value&one=two&" and so on for all the headers and data.

The API call I want to use does not have this, "http://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/visualizePriceEstimator"

When I send the request it sends ...Estimatorx-mashape-key=xxxxxx... The response is "missing key".

Can someone show me how to do this?

Win 10, Delphi XE7 Pro.
1
Maciej Wierzbowski's profile photoDan Statham (GreatDayDan)'s profile photo
5 comments
 
OK, this helped me. Thanks
Add a comment...

Stefano Carfagna

Interesting Link  - 
DOCSHARE20 è il software per condividere i documenti semplificato per la piccola e media azienda.
1
Stefano Carfagna's profile photoLars Fosdal's profile photo
2 comments
 
Did you write this application?
Add a comment...

Nancy Lescouhier

Third Party  - 
 
A new version of our ORM framewok for Delphi has been released with several new features!
What's new in TMS Aurelius v3.4.0.0: http://www.tmssoftware.com/site/aurelius.asp?s=history

TMS Aurelius is part of TMS Business Subscription: http://www.tmssoftware.com/site/bipack.asp
Users with an active license to TMS Business Subscription receive TMS Aurelius v3.4 free.
5
Fabio VITALE's profile photoWagner Landgraf's profile photo
3 comments
 
Thank you +Stéphane Wierzbicki and +Fabio VITALE. It's always rewarding to read spontaneous and positive comments like that.
Add a comment...

Ole Harald

Job Opportunity  - 
 
Jeg ønsker å komme i kontakt med en utvikler som har erfaring med å integrere et system mot Altinnportalen.

Logge inn, sende skjemaopplysninger og hente kvittering. Gjelder særlig innsending av lønnsopplysninger og mva.

Ønsker 100% Delphikode.

Kontakt post at teltec no
 ·  Translate
1
Lars Fosdal's profile photoOle Harald's profile photo
2 comments
 
Hei Lars
I wrote this in Norwegian because I would very much like to get in touch with a Norwegian developer. As you say, it's very specific to Norway.
Add a comment...
 

sorry my starter and I still use Delphi 7
I am confused how to lock the main menu .. if not logged in then the main menu can not be used ... how its Delphi code
1
David Heffernan's profile photoLars Fosdal's profile photo
4 comments
 
+David Heffernan You are right. You can probably defer the createform of the main form to after login. In our case, the main form create kicks off some background threads to prepare stuff before the user logs in

Also - good tip on using Actions.
Add a comment...

Aleksandar Djurovic

Help! Need input!  - 
 
so,
how to get last inserted mongo documents, objectID ?
1
Aleksandar Djurovic's profile photoA. Bouchez's profile photo
Add a comment...

About this community

A community for people who write their software using Embarcadero's Delphi development tools. #delphi #objectpascal #programming Be constructive, informative and helpful. Avoid flame wars, please. This community is not StackOverflow. Well formulated questions with sufficient detail are preferred, but not an absolute requirement. Don't be afraid to ask. OBS: The Community Search is now working well, and it is possible to find posts where the keywords you search for are in the comments only. You should still use the post categories, and add #tags to specify more context where desirable. Want: To deal with the things we can solve, instead of dwelling on what we can't. To help people solve coding related issues and discover new tools, components, techniques, blogs, jobs, etc. Want not: Posts that go very far off-topic, are of an incendiary nature, or posts that are related to Embarcadero policies or practices, or in general deal with issues that are beyond the control of the members of this community - should be posted on the Official forums - or in our rant and rage department known as Unit Number5 - or elsewhere. Our moderators may remove or lock such posts. Is this censorship? It is done to ensure that this community doesn't turn into another Non-Tech, so I guess it is. I hope most of you find these guidelines to be acceptable. As always, no rules without exceptions. ... or exception handling. Posting in English is encouraged and preferred. If you post a link to an article in a different language, please translate the Google+ description of the article for the convenience of the Community. Posts that only contain links or videos without any description in the post, will be removed. OBS *** Please share your rage and rants about EMBT in unit number5 instead of here.
 
dzMdbViewer 1.0.2 released
4
1
Add a comment...
 
A new blog has been posted:
Delphi and iPhone helping vision impaired people
http://www.tmssoftware.com/site/blog.asp?post=362

Assemble this cool iPhone app powered with Delphi 10.1 Berlin and the TMS FMX Cloud Pack in 15 minutes!
1
Add a comment...

Jude De Silva

Discussion  - 
 
Hi
Can you tell me how can i save PDF file to MS SQL Table in Delphi 10.1 ?
1
jeff weir's profile photoLevente Valent's profile photo
22 comments
 
On the blob field, you must crate a blob stream, and load t from file.
I do not have delphi right now, but something
With http://field1.createblobstream do
Try
Loadfromfile(filename);
Finally
Free;
End;
http://Table1.post;

Sorry, i write from phone, please correct the syntax errors :)

Add a comment...

Horácio Filho

I made this!  - 
 
Hello guys,

Some days ago I started a project aiming decrease the gap in the integration between Delphi and Objective-C, it is the first time I own an iPhone device (it was a gift, I am a poor guy :P) and my first contact with Delphi wrapping Objective-C APIs, it is pretty good however the integration between the two languages is not pleasant, using TOCGenericImport and TOCLocal is not much beautiful.

The idea here is consume Objective-C APIs in a more friendly way, using the max of Delphi code possible :D It is hosted here (https://github.com/fofoflylandia/Raco) in very very early phase, at this time it is just an experiment.

If you are interested on it, please let me know :D

Thanks in advance and thanks for +Chris Rolliston and +David Nottage for answering my question here :D
5
Horácio Filho's profile photoChris Rolliston's profile photo
5 comments
 
My 2p is that the existing Delphi to Objective C bridge is pretty good for calling Cocoa APIs, albeit with blocks being a not insignificant gap. That said, I can just about get away with doing blocks manually on OS X, assuming it's only the odd usage case involved.

However, using the bridge for Objective-C subclassing is horrible for a variety of reasons, independent from the fact the bridge is implemented at the library level with no special compiler support (which is itself a big limitation). My main bugbear is having two independent reference counts, one controlling the Objective-C part of the object and one controlling the Delphi part, especially given the two counts do not share the same basis - Objective-C objects begin with a reference count of 1, Delphi ones with a reference count of 0 that only become 1 on the first assignment.

All in all, over time, I've come to realise that the FPC approach - implement the Objective Pascal dialect - is fundamentally superior, even if Objective Pascal code looks weird from Delphi (or indeed normal FPC) eyes. If you're doing anything serious with direct calls to OS X or iOS APIs, you're just going to have to learn and follow the conventions, otherwise you end up continually having to mentally translate between idioms. And yes, that means I now even prefer typing TNSString.stringWithCharacters over StrToNSStr ;-)
Add a comment...

Aleksandar Djurovic

Help! Need input!  - 
 
how to find document in mongodb collection, if i have ObjectID as string?

i tried some variants, but without success

.Match('"_id" : ObjectId("57EB7FD37E58C0C489BFF6F2")')
and

.Match
.BeginObject('_id.$oid')
.Add('$eq', '57EB7FD37E58C0C489BFF6F2')
.EndObject

both does not work.....
1
Aleksandar Djurovic's profile photo
3 comments
 
or
FCon[DBName][MyCollection].Dereference(TJsonOid.Create('57EB7FD37E58C0C489BFF6F2'));

Both are ok,
first one better for complex querys on server side.

Add a comment...

Ilya S

Discussion  - 
 
8,000 Delphi Developers community members count has passed! Congratulations!
29
Ilya S's profile photojeff weir's profile photo
7 comments
 
8K by Update 2 or bust!
Add a comment...

David Berneda

Third Party  - 
 
 
#TeeChart World maps can now be rendered in 3D (VCL: GDI, GDI+, OpenGL and Firemonkey: all platforms). Very fast rotation and zoom
15
1
Attila Kovacs's profile photoJoe C. Hecht's profile photo
8 comments
 
+David Berneda said "still supporting D7" - *THANK YOU SIR" - I am reminded that many years ago when coding graphics engines - our engineers coded using the least performing hardware the code was expected to run on. Most likly, that is why that engine went on to replace the one used by that company with the mouse ears (and we were rewarded appropriately). Good job +David Berneda - know there are plenty dev using "Legacy Delphi". My largest customer still uses D6 for production even though we have every version installed and running.
Add a comment...

Tommi Prami

Third Party  - 
 
Lasse has released new version of TBCEditor.

Lately he has been included pretty good optimizations also. For some cases it's faster than SynEdit (With big file, keep in mind that SynEdit has "native" pascal code highlighters and TBCEdit has dynamic highlighting)

If you have need for syntax highlighting or already use one, you really should check this out. And I think it would be good choice even if you do not need highlighting at all.

https://github.com/bonecode/TBCEditor/releases/tag/v1.7.0

PS. not my project ;)
6
Tommi Prami's profile photoStefan Glienke's profile photo
16 comments
 
To me the response linked by Alex sounds more like a threat than a denial of a feature request tbh.
Add a comment...

Dany Marmur

Community Management  - 
 
<rant>Became used to the Material Design Google+ thingy but then comments started to act up, so switched back to classic, but classic shows the posts in more than one column so my non-american eye can not see the ordering, so i make the browser narrower, and that's ok, but when i follow a link (in a new tab) i forget and make the window wide again and when i'm back i do not know where to scroll. Grraahh!</rant>
2
Attila Kovacs's profile photoDany Marmur's profile photo
13 comments
 
Yes, +Attila Kovacs​ :(
Add a comment...