Re: Nepomuk in 4.13 and beyond

2013-12-20 Thread Vishesh Handa
On Thursday 19 Dec 2013 18:20:59 François K. wrote: 
>
> I'm not sure I get it properly.
> I clearly understand that the URL can't be used as identifier since it can
> change.
> 
> But if SQLite is used to map the URL and the id, it means that we'll have to
> update the mapping each time the file URL changes, right ? Then what value
> does the mapping add ?
> 

We need to update the url each time the url changes, but its identifier stays 
the same.

Eg - /home/vishesh/a = file:5. If this file is moved/renamed, the identifier 
file:5 does not need to be changed.

> Wouldn't it be possible to :
>   * drop SQLite,
>   * build a unique identifier upon the file URL (md5, UUID, or whatever
> suitable) and update it directly in Xapian whenever the file URL changes ?
> 
> Also, wouldn't it be possible to use the inode number of the file as id ? If
> I remember well, the inode number isn't supposed to change when you mv a
> file (as long as it remains on the same filesystem). I'm not really sure
> about this, I'm really far from being a FS expert ! Just thought it might
> be an elegant solution.
>

The main problem is two way mapping. Here is what we need -

1. Given a url, return a unique identifier
2. Given a unique identifier, return the url

inodes satisfy (1), but not (2).

> 
> Okay, I'll try to take some time to have a look at it. And maybe take some
> more to dive into the code and see if I can give some feedback about the
> whole project. I certainly don't have the necessary knowledge to have
> something interesting to say, but, yep, we'll see.

I'm looking forward to it.

-- 
Vishesh Handa

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Re: Nepomuk in 4.13 and beyond

2013-12-20 Thread Sebastian Kügler
On Friday, December 20, 2013 12:17:57 Vishesh Handa wrote:
> 1. Given a url, return a unique identifier
> 2. Given a unique identifier, return the url
> 
> inodes satisfy (1), but not (2).

inodes don't satisfy even (1). They're only unique per filesystem, designing 
Baloo around "computers with only one filesystem" seems very limiting, well, 
broken.
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


background plasma crash

2013-12-20 Thread Dr.-Ing. Edgar Alwers
Hi,

I am using KDE-4.10.2 with linux from scratch 8.4, self compiled. 
When I try to change a picture background plasma ( default desktop settings )  
I get a crash and an automatic restart with the previous background setting.

This happens on three units ( PC's, Laptop ). However, it does not happen on 
my old partitions running KDE-4.8.2.

I am aware about Bug reports like Bug 277036, but in this case weather widgets 
were concerned ( gps ? ). I am only trying to change photos in jpg format.
According to the report, a solution cannot be expected before KDE-5: "Any 
Plasma developer is aware of this problem. However we cannot change it
until KDE 5.0"

Two questions: 
1.) is my problem included in the mentioned bug or is it a new problem ?
2.) Could I have a patch for the time until KDE-5 ?

Thank you very much for any advice. I know, the problem is not critical.

Edgar
-- 
Dr.-Ing. Edgar Alwers 
GPG Key ID:AD5C6F70

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Re: Nepomuk in 4.13 and beyond

2013-12-20 Thread François K .
> On Friday, December 20, 2013 12:17:57 Vishesh Handa wrote:
> > 1. Given a url, return a unique identifier
> > 2. Given a unique identifier, return the url
> > 
> > inodes satisfy (1), but not (2).
> 
> inodes don't satisfy even (1). They're only unique per filesystem,
> designing
> Baloo around "computers with only one filesystem" seems very
> limiting, well,
> broken.

That's true if you're using one index for every filesystem, and I suggested to 
have one index per filesystem, so (1) could be satisfied ;)

As for (2), I thought it would be easy to get the file path from the inode 
number but it seems it isn't at all. My lack of knowledge.

Oh, by the way, I was still trying to figure out how things would work (Xapian 
+ SQLite, etc.) and discovered Recoll (http://www.recoll.org/) which seemes 
pretty similar to what you are trying to do with Baloo.
There is a english description here : 
http://www.lesbonscomptes.com/recoll/usermanual/RCL.INTRODUCTION.RECOLL.html - 
Maybe it could be smart to get in touch with the dev ?

Cheers,

-- 
François

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Re: background plasma crash

2013-12-20 Thread Martin Graesslin
Hi Edgar,

thanks for your mail. Please be aware that we use bugzilla for managing bugs. 
It doesn't scale if everybody sends his questions to the mailing list. In your 
case I must point out that there are minor release updates to 4.10 and also a 
major release update to 4.11. Please try at least the latest version before 
asking for a patch.

Best Regards
Martin Gräßlin

On Friday 20 December 2013 15:38:56 Dr.-Ing. Edgar Alwers wrote:
> Hi,
> 
> I am using KDE-4.10.2 with linux from scratch 8.4, self compiled.
> When I try to change a picture background plasma ( default desktop settings
> ) I get a crash and an automatic restart with the previous background
> setting.
> 
> This happens on three units ( PC's, Laptop ). However, it does not happen on
> my old partitions running KDE-4.8.2.
> 
> I am aware about Bug reports like Bug 277036, but in this case weather
> widgets were concerned ( gps ? ). I am only trying to change photos in jpg
> format. According to the report, a solution cannot be expected before
> KDE-5: "Any Plasma developer is aware of this problem. However we cannot
> change it until KDE 5.0"
> 
> Two questions:
> 1.) is my problem included in the mentioned bug or is it a new problem ?
> 2.) Could I have a patch for the time until KDE-5 ?
> 
> Thank you very much for any advice. I know, the problem is not critical.
> 
> Edgar
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
> >> <<


signature.asc
Description: This is a digitally signed message part.

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Re: background plasma crash

2013-12-20 Thread Thomas Lübking
and don't forget to attach a backtrace to the bug in case you want to
know whether it's related or have it fixed ;-)

2013/12/20, Martin Graesslin :
> Hi Edgar,
>
> thanks for your mail. Please be aware that we use bugzilla for managing
> bugs.
> It doesn't scale if everybody sends his questions to the mailing list. In
> your
> case I must point out that there are minor release updates to 4.10 and also
> a
> major release update to 4.11. Please try at least the latest version before
>
> asking for a patch.
>
> Best Regards
> Martin Gräßlin
>
> On Friday 20 December 2013 15:38:56 Dr.-Ing. Edgar Alwers wrote:
>> Hi,
>>
>> I am using KDE-4.10.2 with linux from scratch 8.4, self compiled.
>> When I try to change a picture background plasma ( default desktop
>> settings
>> ) I get a crash and an automatic restart with the previous background
>> setting.
>>
>> This happens on three units ( PC's, Laptop ). However, it does not happen
>> on
>> my old partitions running KDE-4.8.2.
>>
>> I am aware about Bug reports like Bug 277036, but in this case weather
>> widgets were concerned ( gps ? ). I am only trying to change photos in
>> jpg
>> format. According to the report, a solution cannot be expected before
>> KDE-5: "Any Plasma developer is aware of this problem. However we cannot
>> change it until KDE 5.0"
>>
>> Two questions:
>> 1.) is my problem included in the mentioned bug or is it a new problem ?
>> 2.) Could I have a patch for the time until KDE-5 ?
>>
>> Thank you very much for any advice. I know, the problem is not critical.
>>
>> Edgar
>>
>> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>> >> unsubscribe
>> >> <<
>

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Re: Nepomuk in 4.13 and beyond

2013-12-20 Thread Kevin Krammer
On Thursday, 2013-12-19, 18:31:15, Andreas Hartmetz wrote:
> On Thursday 19 December 2013 16:16:32 Sebastian Kügler wrote:

> > To my knowledge, the list of filesystems with proper xattr support is
> > rather short.
> 
> From Wikipedia "In Linux, the ext2, ext3, ext4, JFS, ReiserFS, XFS, Btrfs
> and OCFS2 1.6 filesystems support extended attributes".
> That list includes all filesystems you are going to use on a desktop system.

I remember that at least at some point in the past the problem wasn't file 
system capability, but that it wasn't on by default, i.e. that one had to 
mount them in a certain way.

Has that changed?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Re: Nepomuk in 4.13 and beyond

2013-12-20 Thread Sebastian Kügler
On Thursday, December 19, 2013 18:31:15 Andreas Hartmetz wrote:
> > To my knowledge, the list of filesystems with proper xattr support is
> > rather short.
> 
> From Wikipedia "In Linux, the ext2, ext3, ext4, JFS, ReiserFS, XFS, Btrfs
> and  OCFS2 1.6 filesystems support extended attributes".
> That list includes all filesystems you are going to use on a desktop system.

It's more than common to have usb sticks inserted which only have FAT. Then, 
what about filesystems mounted over NFS and SMB?

I'm more than sceptical, also how well it would perform if you start through 
all of your files a few times...
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<