Quantcast
Channel: Planet Object Pascal
Viewing all 1725 articles
Browse latest View live

The Wiert Corner - irregular stream of stuff: jpluimers

$
0
0

Converting SVN repositories to HG isn’t always as straight forward as you want to.

GExperts and GExperts-Formatter succeeded a while ago, but DSharp (a very nice library by Stefan Glienke) failed at first.

It so happens that in the mean time, I switched VM’s to Delphi XE5 with a fresh list of VCS installs:

That was the cause: this new setup caused a new SVN db format for local synced file based SVN repositories that HG cannot not cope with.

It worked fine when I went back to a VM that had this config:

So I won’t forget to keep an eye on progress, I filed this Bug 4043 – HG 2.7.x cannot convert a local file based SVN repository with db format 6 (works fine with db format 4):

HG 2.6.x and 2.7.x cannot convert SVN repositories with db format 6 that SVN 1.8.x defaults to.

(SVN db format list: see http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_fs_fs/structure)

This works fine when performing svnadmin/svnsync on SVN 1.7.5 (they will get a db format 4), but fails when performing svnadmin/svnsync on SVN 1.8.x (they will get a db format 6)

I’ve tried the matrix of SVN versions 1.7.5, 1.8.1 and 1.8.2 versus HG 2.6.2, 2.7 and 2.7. HG consistently fails with db format 6.

The error message you get is this:

file:///C:/Users/developer/Versioned/DSharp.svn does not look like a Subversion repository

from the command here:

C:\Users\developer\Versioned>hg convert --verbose file:///C:/Users/developer/Versioned/DSharp.svn DSharp
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a CVS checkout
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a Git repository
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a Subversion repository
file:///C:/Users/developer/Versioned/DSharp.svn is not a local Mercurial repository
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a darcs repository
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a monotone repository
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a GNU Arch repository
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a Bazaar repository
file:///C:/Users/developer/Versioned/DSharp.svn does not look like a P4 repository
abort: file:///C:/Users/developer/Versioned/DSharp.svn: missing or unsupported repository

Two of my tries that shows success/failure and got me in the right direction:

Success:

Failure:

.

–jeroen

via: Bug 4043 – HG 2.7.x cannot convert a local file based SVN repository with db format 6 (works fine with db format 4).


Filed under: Delphi, Development, DVCS - Distributed Version Control, Mercurial/Hg, Software Development, Source Code Management, Subversion/SVN Tagged: command line tools, software, technology

Firebird News: An update about Firebird on iOS

$
0
0
Based on a comment I made in response to someone asking about the availability of Firebird on IOS (after someone mentioned that the recent release of Delphi XE5 has support for an embedded version of InterBase for iOS and Android), I thought I would write a few more details of the hows and wherefores here.

while true do;: Sending Android Intents from Delphi (Part 1)

$
0
0
As you probably know, I work for the italian embarcadero representative (www.bittime.it), so last week, I’ve been in Milan (Italy) with the Delphi Product Manager Marco Cantù, to show the new Delphi XE5 for Android (and iOS…). Users (old and new) were enthusiastics. The Delphi-WAY combined with the Android openness and flexibility, is really a good [...]

Te Waka o Pascal: Permissions, Parallels and External Volumes – Update

$
0
0
I know after my previous post some people were concerned that upgrading to Parallels 9 might be ill-advised, so I am posting this update in part to alleviate such concerns. Over the past 2-3 days I have moved over 1TB of data from the volume where I was storing my virtual machines and templates, placing […]

Firebird News: Database .NET 9.4 released

$
0
0
Database .NET is an innovative, powerful and intuitive multiple database management tool. You can Browse objects, Design tables, Edit rows, Export data and Run queries with a consistent interface. What’s New (2013/09/27) Full support for Firebird database Updated to FirebirdSql.Data.FirebirdClient.dll 3.1.1 Added Highlight Search Terms Added Code Folding Added Additional Commands Added Quick Filter Added […]

Firebird News: Building Firebird client for Android

$
0
0
Here are the steps for Building Firebird Client only for Android (arm)

Firebird News: Just released JDBC driver : Jaybird 2.2.4-SNAPSHOT version

$
0
0
Just released a Jaybird 2.2.4-SNAPSHOT version with a fix for Netbeans Hibernate driver loading bug: JDBC-325 download at sourceforge New Jaybird 2.2.4 snapshot now also available on the sonatype public repository. News via Mark Rotteveel’s tweet

DelphiTools.info: Which Pascal environments do you use for WORK?

$
0
0
…or at Work if your prefer. This is a small poll to gauge the audience of this site,, try to answer about the environments you use for production, not for experimenting, testing or fiddling. If you use several version, feel free to check as many entries as you feel are relevant.

Dr.Bob's Delphi Notes: 4-6 Dec: Delphi Developer Days 2013 in London

$
0
0
A few days ago, Cary Jensen announced the next step (or stop) of the Delphi Developer Days 2013: on December 4-5, 2013 in London, UK.

twm’s blog: Installing Ubuntu Server

$
0
0

This is just a list of URLs I found useful while installing an Ubuntu 12.04 server.

That’s it for now, I’ll expand this list as I run into other issues.

Firebird News: LazSqlX New Version released with Firebird support

$
0
0
LazSqlX  New Version Released (4.0.0.1219) that added Firebird support and with other Bugfixes Already is requested to update the version in Softpedia, it will take a while there, but here it is in SourceForge area Download from SourceForge

Firebird News: Lazarus 1.1.99 pre release available for download

$
0
0
The Lazarus team would like to announce that it has started the release preparations for Lazarus 1.2. The release process will consist of several steps which you can find here.

Dr.Bob's Delphi Notes: FireMonkey Style Packs and iOS 7 Style Update

$
0
0
Registered users of Delphi / C++Builder / RAD Studio XE3 or higher can download a number of "additional (premium) style packs" for FireMonkey applications.

Te Waka o Pascal: VM’s on External Drives – Update Redux

$
0
0
My previous post declaring a successful resolution to the problems I was experiencing with Parallels 9 VM’s stored on an external USB HDD proved premature. The apparent success of being able to start / suspend / resume / shutdown / restart etc, something that had previously been impossible, was sadly misleading though my conclusion that […]

Behind the connection: Where is that MenuItem displayed ?

$
0
0
I had the need to display a form when the user clicks on an item in a menu. Easy! But the form, which is small had to be displayed where the MenuItem was displayed. After Googleling a little bit, I did not find what I needed. So I wrote it. Here is the result. In Delphi, a TMenuItem has no property to tell where is has been displayed. I had to find how to get that information. Among TMenuItem

The Podcast at Delphi.org: Sending a URL to Another App on Android and iOS with Delphi XE5

$
0
0

Here is the source code for my Open and View URL library from my CodeRage 8 session “Beyond the App”. Here is a download of the example app. I’ll see about posting it to a SVN repository too so it can grow and evolve. Thanks to Al Mannarino for his code that started this!

Note the code is using TidURL.URLEncode on all URLs. I found it is only required on the maps for iOS (iOS doesn’t like spaces) but may be causing trouble with the geo:// on Android.

Some example protocols

  • http, tel, sms, fb, mailto, twitter, geo, etc.

Example URLs

  • - Common to both iOS & Android -
  • http://www.embarcadero.com/
  • tel://(415)834-3131
  • sms://1234
  • http://twitter.com/coderage (This opens with the Twitter client on Android)
  • mailto://jim.mckeeth@embarcadero.com
  • twitter://user?screen_name=coderage
  • fb://profile/34960937498 (get the UID from http://graph.facebook.com/embarcaderotech or for whatever page you are looking for)
  • - iOS Specific -
  • http://maps.apple.com?q=5617 Scotts Valley Drive, Scotts Valley, CA 95066 (this needs the URL encode – Apple has some additional APIs that are recommended.)
  • - Android Only -
  • content://contacts/people/
  • content://contacts/people/1
  • geo://0,0?q=5617 Scotts Valley Drive, Scotts Valley, CA 95066
  • geo://46.191200, -122.194400 (I think this one doesn’t like the URLEncode)
unit OpenViewUrl;

interface

// URLEncode is performed on the URL
// so you need to format it   protocol://path
function OpenURL(const URL: string; const DisplayError: Boolean = False): Boolean;

implementation

uses
  IdURI, SysUtils, Classes, FMX.Dialogs,
{$IFDEF ANDROID}
  FMX.Helpers.Android, Androidapi.JNI.GraphicsContentViewText,
  Androidapi.JNI.Net, Androidapi.JNI.JavaTypes;
{$ELSE}
{$IFDEF IOS}
  iOSapi.Foundation, FMX.Helpers.iOS;
{$ENDIF IOS}
{$ENDIF ANDROID}

function OpenURL(const URL: string; const DisplayError: Boolean = False): Boolean;
{$IFDEF ANDROID}
var
  Intent: JIntent;
begin
// There may be an issue with the geo: prefix and URLEncode.
// will need to research
  Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_VIEW,
    TJnet_Uri.JavaClass.parse(StringToJString(TIdURI.URLEncode(URL))));
  try
    SharedActivity.startActivity(Intent);
    exit(true);
  except
    on e: Exception do
    begin
      if DisplayError then ShowMessage('Error: ' + e.Message);
      exit(false);
    end;
  end;
end;
{$ELSE}
{$IFDEF IOS}
var
  NSU: NSUrl;
begin
  // iOS doesn't like spaces, so URL encode is important.
  NSU := StrToNSUrl(TIdURI.URLEncode(URL));
  if SharedApplication.canOpenURL(NSU) then
    exit(SharedApplication.openUrl(NSU))
  else
  begin
    if DisplayError then
      ShowMessage('Error: Opening "' + URL + '" not supported.');
    exit(false);
  end;
end;
{$ELSE}
begin
  raise Exception.Create('Not supported!');
end;
{$ENDIF IOS}
{$ENDIF ANDROID}

end.

Te Waka o Pascal: VCL Threading – Synchronization

$
0
0
Although I am using Oxygene a lot these days, Delphi remains my tool of choice for Win32 (and x64) development, together with the VCL. Hence this post. A long time ago, in a galaxy far far away, Delphi was a Windows only development tool. 16 was the number of the bits with which it was […]

Te Waka o Pascal: Menu Items, APIs, Crackers and Hackers

$
0
0
Francois Piette recently posted a solution to obtaining the screen position of a menu item involving using a “hacker” class. There is however a safer, more direct mechanism which I hope Francois won’t mind me sharing and a far less safe related hacking technique that his post brought to mind. A Puzzle Wrapped in an […]

DelphiTools.info: Chrome Web Apps in Android

$
0
0
Chrome for Android 31 (currently in the beta channel) added the ability to add a web application to the home screen, which iOS fans will notice it had been available for years on their fruity phones. Upgrading a SmartMS application to allow installing on the Android Home Screen is very straightforward. Adding the Meta In…

Te Waka o Pascal: Unit Aliases and Build Configurations

$
0
0
Over on stackoverflow, Ann Gossard had a question about using an $ifdef in the project (DPR) uses list to use one unit in preference over another, specifically in debug builds. In this situation, it immediately occurred to me that unit aliases might be creatively deployed. What follows is a slightly expanded version of the answer […]
Viewing all 1725 articles
Browse latest View live