Re: [PATCH] Revert "drm/amd/display: Adjust the MST resume flow"

2023-12-13 Thread Oliver Schmidt
On 13.12.23 02:21, Mario Limonciello wrote:
> By chance do you have access to any other dock or monitor combinations that
> you can conclude it only happens on this dock or only a certain monitor, or
> only a certain monitor connected to this dock?

Mario, that was a good suggestion! I indeed had access to another docking
station, although it's the same type. I than tried this docking station with my
AMD X13 Thinkpad and it was working there.

It turned out, the working docking station had newer firmware. So I updated the
firmware and now it works :-)

Firmware Update: ThinkPad Docking Station Firmware Utility v3.3.4
(cs18dkfw334_web.exe) from https://pcsupport.lenovo.com/us/en/downloads/DS505699

How to resolve my issues on freedesktop.org and bugzilla.kernel.org?

Thank you for your support!

On 13.12.23 02:21, Mario Limonciello wrote:
> On 12/12/2023 18:08, Oliver Schmidt wrote:
>> Hi Wayne,
>>
>> On 12.12.23 17:06, Mario Limonciello wrote:
>>> I looked through your bugs related to this and I didn't see a reference to 
>>> the
>>> specific docking station model.
>>> The logs mentioned "Thinkpad dock" but no model.
>>> Could you share more about it so that AMD can try to reproduce it?
>>
>> Yes, it is a ThinkPad Ultra Dockingstation, part number 40AJ0135EU, see also
>> https://support.lenovo.com/us/en/solutions/pd500173-thinkpad-ultra-docking-station-overview-and-service-parts
>>
>>
> 
> By chance do you have access to any other dock or monitor combinations that 
> you
> can conclude it only happens on this dock or only a certain monitor, or only a
> certain monitor connected to this dock?
> 
>> Best regards,
>> Oliver
>>
>> On 12.12.23 17:06, Mario Limonciello wrote:
>>> On 12/12/2023 04:10, Lin, Wayne wrote:
>>>> [Public]
>>>>
>>>> Hi Mario,
>>>>
>>>> Thanks for the help.
>>>> My feeling is like this problem probably relates to specific dock. Need 
>>>> time
>>>> to take
>>>> further look.
>>>
>>> Oliver,
>>>
>>> I looked through your bugs related to this and I didn't see a reference to 
>>> the
>>> specific docking station model.
>>> The logs mentioned "Thinkpad dock" but no model.
>>>
>>> Could you share more about it so that AMD can try to reproduce it?
>>>
>>>>
>>>> Since reverting solves the issue now, feel free to add:
>>>> Acked-by: Wayne Lin 
>>>
>>> Sure, thanks.
>>>
>>>>
>>>> Thanks,
>>>> Wayne
>>>>
>>>>> -Original Message-
>>>>> From: Limonciello, Mario 
>>>>> Sent: Tuesday, December 12, 2023 12:15 AM
>>>>> To: amd-gfx@lists.freedesktop.org; Wentland, Harry
>>>>> 
>>>>> Cc: Linux Regressions ; 
>>>>> sta...@vger.kernel.org;
>>>>> Wheeler, Daniel ; Lin, Wayne
>>>>> ; Oliver Schmidt 
>>>>> Subject: Re: [PATCH] Revert "drm/amd/display: Adjust the MST resume flow"
>>>>>
>>>>> Ping on this one.
>>>>>
>>>>> On 12/5/2023 13:54, Mario Limonciello wrote:
>>>>>> This reverts commit ec5fa9fcdeca69edf7dab5ca3b2e0ceb1c08fe9a.
>>>>>>
>>>>>> Reports are that this causes problems with external monitors after
>>>>>> wake up from suspend, which is something it was directly supposed to 
>>>>>> help.
>>>>>>
>>>>>> Cc: Linux Regressions 
>>>>>> Cc: sta...@vger.kernel.org
>>>>>> Cc: Daniel Wheeler 
>>>>>> Cc: Wayne Lin 
>>>>>> Reported-by: Oliver Schmidt 
>>>>>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=218211
>>>>>> Link:
>>>>>> https://forum.manjaro.org/t/problems-with-external-monitor-wake-up-aft
>>>>>> er-suspend/151840
>>>>>> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3023
>>>>>> Signed-off-by: Mario Limonciello >>>>> 
>>>>>> ---
>>>>>>     .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 93 +++--
>>>>> -- 
>>>>>>     1 file changed, 13 insertions(+), 80 deletions(-)
>>>>>>
>>>>>> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>>>>>> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>>>>>> index c146dc9cba9

Re: [PATCH] Revert "drm/amd/display: Adjust the MST resume flow"

2023-12-13 Thread Oliver Schmidt
Hi Wayne,

On 12.12.23 17:06, Mario Limonciello wrote:
> I looked through your bugs related to this and I didn't see a reference to the
> specific docking station model.
> The logs mentioned "Thinkpad dock" but no model.
> Could you share more about it so that AMD can try to reproduce it?

Yes, it is a ThinkPad Ultra Dockingstation, part number 40AJ0135EU, see also
https://support.lenovo.com/us/en/solutions/pd500173-thinkpad-ultra-docking-station-overview-and-service-parts

Best regards,
Oliver

On 12.12.23 17:06, Mario Limonciello wrote:
> On 12/12/2023 04:10, Lin, Wayne wrote:
>> [Public]
>>
>> Hi Mario,
>>
>> Thanks for the help.
>> My feeling is like this problem probably relates to specific dock. Need time
>> to take
>> further look.
> 
> Oliver,
> 
> I looked through your bugs related to this and I didn't see a reference to the
> specific docking station model.
> The logs mentioned "Thinkpad dock" but no model.
> 
> Could you share more about it so that AMD can try to reproduce it?
> 
>>
>> Since reverting solves the issue now, feel free to add:
>> Acked-by: Wayne Lin 
> 
> Sure, thanks.
> 
>>
>> Thanks,
>> Wayne
>>
>>> -Original Message-
>>> From: Limonciello, Mario 
>>> Sent: Tuesday, December 12, 2023 12:15 AM
>>> To: amd-gfx@lists.freedesktop.org; Wentland, Harry
>>> 
>>> Cc: Linux Regressions ; sta...@vger.kernel.org;
>>> Wheeler, Daniel ; Lin, Wayne
>>> ; Oliver Schmidt 
>>> Subject: Re: [PATCH] Revert "drm/amd/display: Adjust the MST resume flow"
>>>
>>> Ping on this one.
>>>
>>> On 12/5/2023 13:54, Mario Limonciello wrote:
>>>> This reverts commit ec5fa9fcdeca69edf7dab5ca3b2e0ceb1c08fe9a.
>>>>
>>>> Reports are that this causes problems with external monitors after
>>>> wake up from suspend, which is something it was directly supposed to help.
>>>>
>>>> Cc: Linux Regressions 
>>>> Cc: sta...@vger.kernel.org
>>>> Cc: Daniel Wheeler 
>>>> Cc: Wayne Lin 
>>>> Reported-by: Oliver Schmidt 
>>>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=218211
>>>> Link:
>>>> https://forum.manjaro.org/t/problems-with-external-monitor-wake-up-aft
>>>> er-suspend/151840
>>>> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3023
>>>> Signed-off-by: Mario Limonciello >>> 
>>>> ---
>>>>    .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 93 +++--
>>> -- 
>>>>    1 file changed, 13 insertions(+), 80 deletions(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>>>> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>>>> index c146dc9cba92..1ba58e4ecab3 100644
>>>> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>>>> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>>>> @@ -2363,62 +2363,14 @@ static int dm_late_init(void *handle)
>>>>  return detect_mst_link_for_all_connectors(adev_to_drm(adev));
>>>>    }
>>>>
>>>> -static void resume_mst_branch_status(struct drm_dp_mst_topology_mgr
>>>> *mgr) -{
>>>> -   int ret;
>>>> -   u8 guid[16];
>>>> -   u64 tmp64;
>>>> -
>>>> -   mutex_lock(>lock);
>>>> -   if (!mgr->mst_primary)
>>>> -   goto out_fail;
>>>> -
>>>> -   if (drm_dp_read_dpcd_caps(mgr->aux, mgr->dpcd) < 0) {
>>>> -   drm_dbg_kms(mgr->dev, "dpcd read failed - undocked during
>>> suspend?\n");
>>>> -   goto out_fail;
>>>> -   }
>>>> -
>>>> -   ret = drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL,
>>>> -    DP_MST_EN |
>>>> -    DP_UP_REQ_EN |
>>>> -    DP_UPSTREAM_IS_SRC);
>>>> -   if (ret < 0) {
>>>> -   drm_dbg_kms(mgr->dev, "mst write failed - undocked during
>>> suspend?\n");
>>>> -   goto out_fail;
>>>> -   }
>>>> -
>>>> -   /* Some hubs forget their guids after they resume */
>>>> -   ret = drm_dp_dpcd_read(mgr->aux, DP_GUID, guid, 16);
>>>> -   if (ret != 16) {
>>>> -   drm_dbg_kms(mgr->dev, "dpcd read failed - undocked during
>>> suspend?\n");
>>>&

Re: Fwd: Thinkpad X13 AMD: Problems with external monitor wake up after suspend

2023-12-01 Thread Oliver Schmidt


On 01.12.23 12:37, Thorsten Leemhuis wrote:
> Maybe one of the developers among the recipients has a idea. Oliver, but
> if none of them replies any time soon, it would be best if you'd check
> if 6.6 (and/or 6.7-rc) is affected as well; and if reverting it there
> fixes it, too.

OK, I checked it: compiled a 6.6.3 kernel and got the same suspend-resume
problem as with the 6.1.57 and 6.1.64 kernels. I also was able to revert the
changes of commit ec5fa9 "drm/amd/display: Adjust the MST resume flow" in the
6.6.3 kernel and the problem was solved as in the 6.1.x kernels (however it
seems that resuming with the 6.6 kernel needs a little more time until the
monitor gets signal).

Best regards,
Oliver




[ceph-users] Re: `ceph features` on Nautilus still reports "luminous"

2023-05-25 Thread Oliver Schmidt



> To be honest I am not confident that "ceph osd set-require-min-compat-client 
> nautilus" is a necessary step for you. What prompted you to run that command?
> 
> That step is not listed here: 
> https://docs.ceph.com/en/latest/releases/nautilus/#upgrading-from-mimic-or-luminous

You're correct indeed, it's neither listed in the docs for upgrading to Mimic 
nor Nautilus. It apparently just slipped over from my Luminous upgrade 
checklist, which I based the Nautilus upgrade steps upon.

Anthony D'Atri 
> features *happen* to be named after releases don't always correlate 1:1.  

That somehow makes sense, but can be a bit confusing. It's good to hear that 
apparently I did not miss any steps. I wonder whether this should be documented 
somewhere, and where the chances of folks actually finding it are the best. 
(docs, manpage)

Kind regards
Oliver
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: `ceph features` on Nautilus still reports "luminous"

2023-05-25 Thread Oliver Schmidt
Hi Marc,

> 
> I think for an upgrade the rocksdb is necessary. Check this for your monitors
> 
> cat /var/lib/ceph/mon/ceph-a/kv_backend

Thanks, but I already had migrated all mons to use rocksdb when upgrading to 
Luminous.

~ # cat /srv/ceph/mon/ceph-host1/kv_backend
rocksdb

Is this what you expect here?

Best regards
Oliver
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] `ceph features` on Nautilus still reports "luminous"

2023-05-25 Thread Oliver Schmidt
Dear Ceph community,

on our way towards getting our cluster to a current Ceph release, we updated 
all hosts and clients to Nautilus 14.2.22. But despite setting `ceph osd 
set-require-min-compat-client nautilus`, the release reported by `ceph 
features` is still "luminous".

Is this supposed to be like this? If not, does anyone have an idea what might 
be missing to make the features being reported as "nautilus" as well?

```
~ # ceph mon dump
epoch 66
fsid b67bad36-3273-11e3-a2ed-020311bf
last_changed 2022-12-12 12:20:39.244333
created 2013-10-11 14:57:32.291514
min_mon_release 14 (nautilus)
0: [v2:172.20.4.10:3300/0,v1:172.20.4.10:6789/0] mon.host1
1: [v2:172.20.4.100:3300/0,v1:172.20.4.100:6789/0] mon.host2
2: [v2:172.20.4.101:3300/0,v1:172.20.4.101:6789/0] mon.host3
dumped monmap epoch 66

~ # ceph features
{
"mon": [
{
"features": "0x3ffddff8ffec",
"release": "luminous",
"num": 3
}
],
"osd": [
{
"features": "0x3ffddff8ffec",
"release": "luminous",
"num": 14
}
],
"client": [
{
"features": "0x3ffddff8ffec",
"release": "luminous",
"num": 137
}
],
"mgr": [
{
"features": "0x3ffddff8ffec",
"release": "luminous",
"num": 3
}
]
}
```

All the best

-- 
Oliver Schmidt · o...@flyingcircus.io · Systems Engineer
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Leipziger Str. 70/71 · 06108 Halle (Saale) · Deutschland
HR Stendal HRB 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick




___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] ceph osd new: possible inconsistency whether UUID is a mandatory argument

2023-03-30 Thread Oliver Schmidt
Hi everyone,

I discovered a documentation inconsistency in Ceph Nautilus and would like to 
know whether this is still the case in the latest ceph release before reporting 
a bug. Unfortunately, I only have access to a Nautilus cluster right now.

The quincy docs state [1]:
> Create the OSD. If no UUID is given, it will be set automatically when the 
> OSD starts up. The following command will output the OSD number, which you 
> will need for subsequent steps:
>
>ceph osd create [{uuid} [{id}]]

But the man pages [2] state that `ceph osd create` is deprecated in favour of 
`ceph osd new {} {} -i {}`, with both uuid and id still 
being marked as optional parameters.

But when actually running `ceph osd new` without a specified UUID, I get

```
Invalid command: missing required parameter uuid()
osd new  {} :  Create a new OSD. If supplied, the 
`id` to be replaced needs to exist and have been previously destroyed. Reads 
secrets from JSON file via `-i ` (see man page).
Error EINVAL: invalid command
```

under Nautilus. Is this still the case under Quincy, can someone reproduce this 
for me?

Best regards
Oliver Schmidt

[1] https://docs.ceph.com/en/quincy/rados/operations/add-or-rm-osds/
[2] https://docs.ceph.com/en/quincy/man/8/ceph/#osd

-- 
Oliver Schmidt · o...@flyingcircus.io · Systems Engineer
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Leipziger Str. 70/71 · 06108 Halle (Saale) · Deutschland
HR Stendal HRB 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick




___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Changing daemon config at runtime: tell, injectargs, config set and their differences

2022-09-23 Thread Oliver Schmidt
Hi everyone,

while evaluating different config options at our Ceph cluster, I discovered 
that there are multiple ways to apply (ephemeral) config changes to specific 
running daemons. But even after researching docs and manpages, and doing some 
experiments, I fail to understand when to use which of the commands. Even 
worse, the behaviour of these commands appears to depend on the actual config 
option that is changed.

DISCLAIMER: I did my experiments on a Ceph Luminous cluster. While this clearly 
is a deprecated Ceph release, I am still interested in the subtleties of the 
individual commands even when you can only answer this for current Ceph 
releases. 


To my understanding, there are at least 4 commands to change ceph daemon config 
at runtime:

- `ceph tell  injectargs --option_name=value`
- goes via monitor, mon intructs the daemon to do the injectargs
- `ceph daemon  config set "config option" value`
- local daemons only, via adminsocket
- also allows a `config get`
- `ceph tell  config set "option name" value`
- `ceph config set "config option" value`
- via some central monitor config store
- `config get` not yet implemented in Luminous

Is this overview correct, or do I have some misconceptions?

My experiments have shown that the behaviour of the commands differs depending 
on the config option changed:

Experiment 1: changing "osd max backfill" to 5 on daemon osd.6 and looking 
whether the value returned by `ceph daemon config get "osd max backfill" has 
changed.

the value has changed after:  `ceph tell injectargs`, `ceph tell config set`, 
`ceph daemon config set`
the value has not changed after: `ceph config set`

Experiment 2: changing "mon pg warn max object skew" to 5 on daemon 
mon.cartman09 and looking whether the value returned by `ceph daemon config get 
"mon pg warn max object skew" has changed.

the value has changed after:  `ceph tell injectargs`, `ceph daemon config set`
the value has not changed after: `ceph tell config set`, `ceph config set`

Even more confusing, in a cluster with a MANY_OBJECTS_PER_PG warning, only 
`ceph config set "mon pg warn max object skew" 20` resolved that warning, while 
a `ceph tell mon.\* injectargs --mon-pg-warn-max-object-skew=20` did not 
resolve the warning.


Can someone explain the subtle differences of these 4 commands to me? How does 
the central monitor config store relate to individual daemon configurations?
The full experiment logs can be found at the end of the mail.

Big thanks in advance

-- 
Oliver Schmidt · o...@flyingcircus.io · Systems Engineer
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Leipziger Str. 70/71 · 06108 Halle (Saale) · Deutschland
HR Stendal HRB 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick





Experiment 1:

```
~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "2"
}

~ # ceph tell osd.6 injectargs --osd-max-backfills=5
osd_max_backfills = '5' rocksdb_separate_wal_dir = 'true' (not observed, change 
may require restart)

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "5"
}

~ # 

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "2"
}

~ # ceph tell osd.6 config set "osd max backfills" 5
Set osd_max_backfills to 5

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "5"
}

~ # 

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "2"
}

~ # ceph daemon osd.6 config set "osd max backfills" 5
{
"success": "osd_max_backfills = '5' rocksdb_separate_wal_dir = 'true' (not 
observed, change may require restart) "
}

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "5"
}

~ # 

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "2"
}

~ # ceph config set "osd max backfills" 5
Set osd_max_backfills to 5

~ # ceph daemon osd.6 config get "osd max backfills"
{
"osd max backfills": "2"
}
```

===

Experiment 2:

```
root@cartman09 ~ # ceph daemon mon.cartman09 config get "mon pg warn max object 
skew"
{
"mon pg warn max object skew": "10.00"
}

root@cartman09 ~ # ceph tell mon.cartman09 injectargs 
--mon_pg_warn_max_object_skew=20
injectargs:mon_pg_warn_max_object_skew = '20.00' (not observed, change may 
require restart)

root@cartman09 ~ # ceph daemon mon.cartman09 config get "mon pg warn max object 
skew"
{
"mon pg warn max object skew": "20.00"
}

root@cartman09 ~ # 

root@cartman09 ~ # ceph da

Re: [mapserver-users] Problem with UNION layer and labelling

2019-10-21 Thread Oliver Schmidt
Hi Sven,

the complex SQL statement is not the problem at all - it works fine when using 
the non-UNION layer. This mapfile originates from the PostNAS project which is 
rather complex.
I asked Armin already, his office is on my corridor. He doesn't know why it 
doesn't work and in his opinion there is no error in the mapfile. Perhaps I 
found a bug here?

Thanks also to Lars for your reply. Removing the German Umlaute didn't solve 
the problem - but you're right that this shouldn't be in used in a mapfile!

Greetings,
Oliver

> Sven Schroeter  hat am 21. Oktober 2019 um 08:57 
> geschrieben:
> 
> 
> 
> Hi Oliver,
> this is a complex SQL statement and I would always store such things in 
> a view on the database. Then you can visually check if all data comes as 
> it should.
> Otherwise it could be due to the encoding of the data records, I 
> sometimes had problems with it in the past.
> By the way, you can just ask Armin Retterath in your house, he will find 
> every error ;-)
> Greetings also to Armin
> Sven
> 
> **
> NETGIS GbR
> Benediktinerstr. 32a
> 54292 Trier
> Tel.: 0651-1704731
> Fax: 0651-1704733
> schroe...@netgis.de
> www.netgis.de
> 
> 
> Am 18.10.2019 um 13:56 schrieb Oliver Schmidt:
> > Hi list,
> >
> > I tried with MapServer 7.0.4 and 7.4.2 to get labels on an UNION layer. The 
> > labels are OK when I loaded the source layer itself into QGIS, but the 
> > UNION layer returns an empty picture (using LABELITEM) or the name of the 
> > label field including the brackets is placed instead of the data (using 
> > TEXT inside LABEL).
> > Furthermore, the variable settings for ANGLE, FONT, SIZE and POSITION don't 
> > seem to be handled correctly in the UNION layer. The font size and the 
> > position aren't identical to the source layer. Layers with polygons and no 
> > labels are drawn correctly!
> >
> > Does anyone got an idea what is going wrong here? One example with just one 
> > layer:
> >
> >
> >  LAYER NAME "Beschriftung Flurstuecke"
> >  CONNECTIONTYPE UNION
> >  CONNECTION "bfn"
> >  TYPE POINT
> >  STATUS ON
> >  STYLEITEM "AUTO"
> >  EXTENT 25 542 50 5648000
> >  MAXSCALEDENOM 25000
> >  METADATA
> >  wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 
> > EPSG:3857"
> >  wms_layer_group "/Flurstueck"
> >  wms_title "Beschriftung Flurstuecke"
> >  END
> >  CLASS END
> >  PROJECTION "init=epsg:25832" END
> >  END
> >
> > .
> >
> >  LAYER NAME "bfn" # Flurstücke / Nummern / Beschriftungen
> >  CONNECTION "dbname='db' host=host port=5432 user='user'"
> >  CONNECTIONTYPE POSTGIS
> >  DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS 
> > color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' 
> > THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN 
> > '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' 
> > ELSE '-'||(fontsperrung/0.25)::int END AS 
> > font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE 
> > coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 
> > 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE 
> > coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 
> > 'linksbündig' THEN 'L' WHEN 'rechtsbündig' THEN 'R' ELSE 'C' END AS 
> > position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN 
> > alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN 
> > alkis_farben f ON s.farbe=f.id WHERE thema='Flurstücke' AND modell && 
> > ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN 
> > ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil'))
> >  AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
> >  EXTENT 25 542 50 5648000
> >  #   LABELITEM "text"
> >  MAXSCALEDENOM 5000
> >  METADATA
> >  wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 
> > EPSG:3857"
> >  #   wms_layer_group "/Flurstücke/Nummern"
> >  

[mapserver-users] Problem with UNION layer and labelling

2019-10-18 Thread Oliver Schmidt
Hi list,

I tried with MapServer 7.0.4 and 7.4.2 to get labels on an UNION layer. The 
labels are OK when I loaded the source layer itself into QGIS, but the UNION 
layer returns an empty picture (using LABELITEM) or the name of the label field 
including the brackets is placed instead of the data (using TEXT inside LABEL).
Furthermore, the variable settings for ANGLE, FONT, SIZE and POSITION don't 
seem to be handled correctly in the UNION layer. The font size and the position 
aren't identical to the source layer. Layers with polygons and no labels are 
drawn correctly!

Does anyone got an idea what is going wrong here? One example with just one 
layer:


LAYER NAME "Beschriftung Flurstuecke"
CONNECTIONTYPE UNION
CONNECTION "bfn"
TYPE POINT
STATUS ON
STYLEITEM "AUTO"
EXTENT 25 542 50 5648000
MAXSCALEDENOM 25000
METADATA
wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 
EPSG:3857"
wms_layer_group "/Flurstueck"
wms_title "Beschriftung Flurstuecke"
END
CLASS END
PROJECTION "init=epsg:25832" END
END

.

LAYER NAME "bfn" # Flurstücke / Nummern / Beschriftungen
CONNECTION "dbname='db' host=host port=5432 user='user'"
CONNECTIONTYPE POSTGIS
DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS 
color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN 
'-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN 
'-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE 
'-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS 
size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 
'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE 
coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbündig' 
THEN 'L' WHEN 'rechtsbündig' THEN 'R' ELSE 'C' END AS 
position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN 
alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN 
alkis_farben f ON s.farbe=f.id WHERE thema='Flurstücke' AND modell && 
ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN 
('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil'))
 AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
EXTENT 25 542 50 5648000
#   LABELITEM "text"
MAXSCALEDENOM 5000
METADATA
wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 
EPSG:3857"
#   wms_layer_group "/Flurstücke/Nummern"
wms_layer_group "/Flurstücke"
#   wms_title "Beschriftungen (Punkte)"
wms_title "Beschriftungen (Flurstücke)"
#   wms_enable_request "* !GetCapabilities"
END
PROCESSING "CLOSE_CONNECTION=DEFER"
PROJECTION "init=epsg:25832" END
SIZEUNITS INCHES
STATUS ON
SYMBOLSCALEDENOM 1000
TYPE POINT
UNITS METERS
CLASS
LABEL
ANGLE [drehwinkel_grad]
ANTIALIAS TRUE
FONT [font_umn]
SIZE [size_umn]
BUFFER 2
COLOR [color_umn]
FORCE TRUE
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 2 
POSITION [position_umn]
        PRIORITY 10
TYPE TRUETYPE
TEXT '[text]'
END
END
END


--
Dipl.-Geogr. Oliver Schmidt


LANDESAMT FÜR VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ


Von-Kuhl-Straße 49
56070 Koblenz
Telefon 0261 492-346
Telefax 0261 492-492
oliver.schm...@vermkv.rlp.de
www.lvermgeo.rlp.de
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

broken pipe to m4 when trying to build certain file

2018-02-20 Thread Oliver Schmidt
Hi,

I've got a weird problem: When trying to build the file conf-parse.y (attached) 
from libsemanage, a `bison conf-parse.y` doesn't produce any output but get's 
killed with a SIGPIPE (see attached strace log), apparently while trying to 
write to m4.

Interestingly this only happens with the bison-3.0.4 from the distro Mer (using 
either m4 1.4.16 or 1.4.18), but not with bison-3.0.4 + m4-1.4.18 from openSUSE.
So apparently something seems to be wrong with the Mer build (see [1]) of bison 
or m4, does someone have any idea what that could be?

confused regards,
Oliver Schmidt

[1] https://git.merproject.org/mer-core/bison/* Authors: Jason Tang <jt...@tresys.com>
 *  James Athey<jat...@tresys.com>
 *
 * Copyright (C) 2004-2006 Tresys Technology, LLC
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

%{

#include "semanage_conf.h"

#include 
#include 
#include 

#include 
#include 
#include 
#include 

extern int semanage_lex(void);/* defined in conf-scan.c */
extern int semanage_lex_destroy(void);/* defined in conf-scan.c */
int semanage_error(const char *msg);

extern FILE *semanage_in;
extern char *semanage_text;

static int parse_module_store(char *arg);
static int parse_store_root_path(char *arg);
static int parse_compiler_path(char *arg);
static void semanage_conf_external_prog_destroy(external_prog_t *ep);
static int new_external_prog(external_prog_t **chain);

static semanage_conf_t *current_conf;
static external_prog_t *new_external;
static int parse_errors;

#define PASSIGN(p1,p2) { free(p1); p1 = p2; }

%}

%name-prefix "semanage_"

%union {
int d;
char *s;
}

%token MODULE_STORE VERSION EXPAND_CHECK FILE_MODE SAVE_PREVIOUS SAVE_LINKED TARGET_PLATFORM COMPILER_DIR IGNORE_MODULE_CACHE STORE_ROOT
%token LOAD_POLICY_START SETFILES_START SEFCONTEXT_COMPILE_START DISABLE_GENHOMEDIRCON HANDLE_UNKNOWN USEPASSWD IGNOREDIRS
%token BZIP_BLOCKSIZE BZIP_SMALL REMOVE_HLL
%token VERIFY_MOD_START VERIFY_LINKED_START VERIFY_KERNEL_START BLOCK_END
%token PROG_PATH PROG_ARGS
%token  ARG
%type  verify_start_tok

%%

config_file:config_line config_file
|   /* empty */
;

config_line:single_opt
|   command_block
|   verify_block
;

single_opt: module_store
|   version
|   target_platform
|   store_root
|   compiler_dir
|   ignore_module_cache
|   expand_check
|   file_mode
|   save_previous
|   save_linked
|   disable_genhomedircon
|   usepasswd
|   ignoredirs
|   handle_unknown
	|	bzip_blocksize
	|	bzip_small
	|	remove_hll
;

module_store:   MODULE_STORE '=' ARG {
if (parse_module_store($3) != 0) {
parse_errors++;
YYABORT;
}
free($3);
}

;

store_root: STORE_ROOT '=' ARG  {
if (parse_store_root_path($3) != 0) {
parse_errors++;
YYABORT;
}
free($3);
}
;

compiler_dir:   COMPILER_DIR '=' ARG  {
if (parse_compiler_path($3) != 0) {
parse_errors++;
YYABORT;
}
free($3);
}
;

ignore_module_cache:	IGNORE_MODULE_CACHE '=' ARG  {
			if (strcasecmp($3, "true") == 0)
current_conf->ignore_module_cache = 1;
			else if (strcasecmp($3, "false") == 0)
current_conf->ignore_module_cache = 0;
			else {
yyerror("disable-caching can only be 'true' or 'false'");
			}
			free($3);
		}
;

version:VERSION '=' ARG  {
current_conf->policyvers = atoi($3);
free($3);
if (current_conf->policyvers < sepol_policy_kern_vers_min() ||
current_conf->policyver

[Dev] SMACK, Cynara: How does the Three Domain Model reduce complexity?

2018-01-22 Thread Oliver Schmidt
Hi,

I'm currently diving in to Cynara, SMACK and their usage in Tizen. According to 
the wiki pages, because of the high complexity of SMACK policies in Tizen2 you 
invented the Three Domain Model for Tizen3 to reduce complexity.

But I still don't see how this model can reduce complexity:

Apps for example get assigned to the "User" domain, that means they get 
assigned a SMACK label of the form "User::App::AppID" which is also used by 
Cynara for identifying permission requests from this app. [1]

But as SMACK labels don't have any hierarchy and labels just being ASCII 
strings in a flat namespace, isn't it necessary to create new policy rules for 
exactly this new label, too? So how do the 3 domains reduce the complexity and 
needed amount of policy rules?

Am I just misunderstanding something?

BR
Oliver Schmidt

[1] https://wiki.tizen.org/Security/Overview

signature.asc
Description: This is a digitally signed message part.
___
Dev mailing list
Dev@lists.tizen.org
https://lists.tizen.org/listinfo/dev


[Dev] SMACK, Cynara: How does the Three Domain Model reduce complexity?

2018-01-22 Thread Oliver Schmidt
Hi,

I'm currently diving in to Cynara, SMACK and their usage in Tizen. According to 
the wiki pages, because of the high complexity of SMACK policies in Tizen2 you 
invented the Three Domain Model for Tizen3 to reduce complexity.

But I still don't see how this model can reduce complexity:

Apps for example get assigned to the "User" domain, that means they get 
assigned a SMACK label of the form "User::App::AppID" which is also used by 
Cynara for identifying permission requests from this app. [1]

But as SMACK labels don't have any hierarchy and labels just being ASCII 
strings in a flat namespace, isn't it necessary to create new policy rules for 
exactly this new label, too? So how do the 3 domains reduce the complexity and 
needed amount of policy rules?

Am I just misunderstanding something?

BR
Oliver Schmidt

[1] https://wiki.tizen.org/Security/Overview

signature.asc
Description: This is a digitally signed message part.
___
Dev mailing list
Dev@lists.tizen.org
https://lists.tizen.org/listinfo/dev


[vdr] IPTV Plugin and re-directs

2017-02-21 Thread Peer Oliver Schmidt
Good morning,

last night we tried to setup a US channel using IPTV

TV2;IPTV:2:IPTV|HTTP|live.softiptv.com/live/jagdish/jagdish/24914.ts|9900:P:0:513:660:2321:0:2:0:0:0

is the entry for it.

Using the URL from VLC works fine, using it in the above manner does
not. It seems that softiptv is using a redirect at the beginning, which
throws the plugin for a fit.

Anyone seen this before, and maybe have a solution, other than using EXT
or CURL.

Thanks.
-- 
Best regards

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[SailfishDevel] Testing LocalStorage in QtQuick Tests

2016-12-23 Thread Oliver Schmidt
Hi

I'm writing a database migration for a LocalStorage 2.0 database and want to 
add a unit test for that. As the app is nearly completely written in QML and 
Javascript, I'm using the QtTest QML type for that.
For this testcase I want to open a database with testdata, let the migration 
run and check its result. I need to open a certain database file. 
Unfortunately LocalStorage.openDatabaseSync() doesn't support opening a 
certain file at a give n path, but only to open "the database with the given 
name which is lying around somewhere in your QQmlEngine::offlineStoragePath".
Is there a way to open a specified test database, maybe via using a mock for 
LocalStorage? Or at least a possibility to get the offlineStoragePath from 
QML?

regards, Oliver Schmidt

signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [vdr] Upnp plugin

2016-09-29 Thread Peer Oliver Schmidt
Isn't the UPnP plugin solely for the purpose to use UPnP renderes with
VDR recordings and stuff, and not outside media files?!

-- 
Mit freundlichen Grüßen

Peer Oliver Schmidt
the internet company
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[AngularJS] ngtable shows no rows

2016-07-28 Thread Oliver Schmidt
Hello Angular Experts,
I'm new to Angular and especially ng-table . I want 
to use the ngtable and tried to implement the example on the site. 
I followed the steps but my Table doesn't show data defined in the 
controller. 
This is my example .

Why don't i see the data? 
I don't get any error message from Chrome.

I hope you can help.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [SailfishDevel] Next SailfishOS community meeting: 31-March @ 14:30 UTC (Chair needed)

2016-03-30 Thread Oliver Schmidt
OK, I see whether I can participate in general discussions.

signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Next SailfishOS community meeting: 31-March @ 14:30 UTC (Chair needed)

2016-03-30 Thread Oliver Schmidt
I just added another topic (the one from schmittlauch) but I'm not sure 
whether the internet access in German trains is good enough to take part in 
the meeting (cybette may know).
Will my topic be covered too, despite being late with proposing it?

Regards, Oliver

signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [vdr] projects.vdr-developer.org maintenance

2015-12-15 Thread Peer Oliver Schmidt
Hello Tobi,

thanks for your work from me as well.

> Besides this, the site now uses a Letsencrypt SSL certificate and any
> non-SSL requests get redirected to https://.

This causes a tiny issue on Ubuntu systems that do not have the apt
https transport installed.

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

To make apt-get update work again, one has to manually install
apt-transport-https.

apt-get install apt-transport-https

-- 
Best regards

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] projects.vdr-developer.org maintenance

2015-12-15 Thread Peer Oliver Schmidt
Am 15.12.2015 um 19:43 schrieb Tobi:
> Are there any Debian packages hosted on projects.vdr-developer.org?
> I can't change to http for just the Downloads.

It was for e-tobi, not projects.vdr-developer.org

> I think having to do an "apt-get install apt-transport-https" isn't much
> of a problem.

I don't think so either. I just wanted to point it out, in case other
get caught by the same issue.
-- 
Mit freundlichen Grüßen

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Laszlo,

 On the other hand, Oliver promised me to
  add something like a consecutive number if I really need it for
  packaging purposes.
  I can confirm this.



 Please do it then to confirm which commit should be considered a
 stable release.


Iff everything else is settled regarding packaging (incl. licensing) I'll
reach out to the list members and ask for last-minute contribtions. If that
phase is over I'll add a tag to the Git repo.

If possible update the file LICENSE as well to be zlib
 and GPL-2 as you previously noted.


There must be a misunderstanding!

I made a statement about _my_ contributions to cc65. I don't know who else
has contributed to cc65 before I started to maintain the upstream repo. In
fact I personally don't see how an exhaustive list of contributors can be
archived. And without acknowledgement from _all_ contributors I don't see
me changing _anything_ regarding the file LICENSE.

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Laszlo,

 On the other hand, Oliver promised me to
  add something like a consecutive number if I really need it for
  packaging purposes.
  I can confirm this.



 Please do it then to confirm which commit should be considered a
 stable release.


Iff everything else is settled regarding packaging (incl. licensing) I'll
reach out to the list members and ask for last-minute contribtions. If that
phase is over I'll add a tag to the Git repo.

If possible update the file LICENSE as well to be zlib
 and GPL-2 as you previously noted.


There must be a misunderstanding!

I made a statement about _my_ contributions to cc65. I don't know who else
has contributed to cc65 before I started to maintain the upstream repo. In
fact I personally don't see how an exhaustive list of contributors can be
archived. And without acknowledgement from _all_ contributors I don't see
me changing _anything_ regarding the file LICENSE.

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Adrian,

Who if not Ullrich is authoritative to give such a statement regarding
 the license of the code. He wrote - by far - the largest portions of the
 code and supervised all contributions. I am pretty sure we can take his
 word on that.


Full ACK !

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Adrian,

Who if not Ullrich is authoritative to give such a statement regarding
 the license of the code. He wrote - by far - the largest portions of the
 code and supervised all contributions. I am pretty sure we can take his
 word on that.


Full ACK !

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Laszlo,

 $ git clone g...@github.com:cc65/cc65.git
  $ cd cc65
  $ git log --all --format='%aN %cE' | sort -u
  This is not authoritative. For example someone could sent an email to
 Ullrich with his/her patch.


I know for sure that this was in fact done. When Ullrich started with cc65
he used CVS and he was the only one to commit. Only after the switch to SVN
there was a group of contributors allowed to commit themselves.


 As it was not commited by the contributor
 but Ullrich, the person's identity is lost.


At least sometimes Ullich mentioned the name of the author of the patch in
the commit log. I'd say only he knows if he did it always.


 But well, the commit log can be a good starting point. May you Oliver
 handle this?


This seems to be yet another misunderstanding :-(

I don't see myself in the driver seat of this overall effort. If I would
then the license question would probably be already solved since years ;-)

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Laszlo,

 $ git clone g...@github.com:cc65/cc65.git
  $ cd cc65
  $ git log --all --format='%aN %cE' | sort -u
  This is not authoritative. For example someone could sent an email to
 Ullrich with his/her patch.


I know for sure that this was in fact done. When Ullrich started with cc65
he used CVS and he was the only one to commit. Only after the switch to SVN
there was a group of contributors allowed to commit themselves.


 As it was not commited by the contributor
 but Ullrich, the person's identity is lost.


At least sometimes Ullich mentioned the name of the author of the patch in
the commit log. I'd say only he knows if he did it always.


 But well, the commit log can be a good starting point. May you Oliver
 handle this?


This seems to be yet another misunderstanding :-(

I don't see myself in the driver seat of this overall effort. If I would
then the license question would probably be already solved since years ;-)

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi Adrian,

@Oliver: Do you agree that we are 100% safe on the license now?


Yes.


 If you agree, please cut down the LICENSE [1] file to the lines 42
 through 58.


Done:
https://github.com/cc65/cc65/commit/aeb849257277a6b98542de8579697b81c6dd70e6

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi,

The man pages could be generated with help2man, or they could point to
 the GNU info files.


It seems that
linuxdoc -B txt --man ...
groff -man ...
might be another option. As far as I remember Ullrich did that in former
times. If someone tests it I'd be willing to add it to
https://github.com/cc65/cc65/blob/master/doc/Makefile

On the other hand, Oliver promised me to
 add something like a consecutive number if I really need it for
 packaging purposes.


I can confirm this.

Regards,
Oliver


Bug#714058: cc65 packaging

2015-05-05 Thread Oliver Schmidt
Hi,

The man pages could be generated with help2man, or they could point to
 the GNU info files.


It seems that
linuxdoc -B txt --man ...
groff -man ...
might be another option. As far as I remember Ullrich did that in former
times. If someone tests it I'd be willing to add it to
https://github.com/cc65/cc65/blob/master/doc/Makefile

On the other hand, Oliver promised me to
 add something like a consecutive number if I really need it for
 packaging purposes.


I can confirm this.

Regards,
Oliver


Bug#714058: ITP: cc65 -- Cross compiler and toolchain for 6502-based systems

2015-05-04 Thread Oliver Schmidt
Hi everyone,

I'm Oliver Schmidt, the maintainer of https://github.com/cc65/cc65 and I
was contacted by Mr. Glaubitz concerning cc65.

I have no objections whatsoever to put my contributions to cc65 under both
'License of Zlib' and GPL-2.

Regards,
Oliver


Bug#714058: ITP: cc65 -- Cross compiler and toolchain for 6502-based systems

2015-05-04 Thread Oliver Schmidt
Hi everyone,

I'm Oliver Schmidt, the maintainer of https://github.com/cc65/cc65 and I
was contacted by Mr. Glaubitz concerning cc65.

I have no objections whatsoever to put my contributions to cc65 under both
'License of Zlib' and GPL-2.

Regards,
Oliver


[k-9-mail] What means the symbol

2014-12-24 Thread Oliver Schmidt
Hello everybody...

I use K9 mail for a long time and it is the best android mail client I 
think...

I have search all the FAQ and manual, but I get no answer for that...

In front of some mails a symbol like  is showing! 

What does that symbol stand for or means?

Thanks in advance and merry xmas...

Best regards
Oliver

-- 
-- 
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-mail@googlegroups.com
To unsubscribe, email k-9-mail+unsubscr...@googlegroups.com
To report an issue with K-9 Mail, visit 
http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

--- 
You received this message because you are subscribed to the Google Groups K-9 
Mail group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to k-9-mail+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: emacs holding focus, not granting it to xterm

2014-06-29 Thread Oliver Schmidt
On 6/27/2014 11:22 PM, alflanagan wrote:
 The problem occurs when I run emacsclient to connect to an existing instance
 of emacs; the file shows up in emacs and emacsclient exits as expected, but
 focus remains stuck in emacs for some time.

I tried the following to reproduce the problem:

Under Cygwin X Server Version 1.15.1-3:

1.) Start an xterm under cygwin with xserver in multiwindow mode.
2.) From this cygwin xterm log into remote linux (debian 3.2.0-4-486) machine 
with ssh -X.
3.) After logged in to the remote linux machine: start emacs with emacs . 
This opens a new X11 window under cygwin X server which is on top and has 
keyboard focus.
4.) In Emacs Window type the key combination Alt+X and then server-start
5.) Go back to xterm window and type: emacsclient filename  to edit the 
file filename in the emacs-server.
6.) Now: all typing goes inte the emacs X11 window, although this window is in 
the background (it might even be not visible if it is behind other windows).

It turns out that the above behaviour is the known problem that windows are not 
raised from the Cygwin X Server in multiwindow mode, if a program wants to 
programmatically activate a window as reported in 
http://www.cygwin.com/ml/cygwin-xfree/2005-06/msg00072.html .

If I start a modified xserver with my patch applied from 
https://cygwin.com/ml/cygwin-xfree/2011-08/msg00034.html the following happens 
in step 6:

6'.) the emacs window is raised to the top over all windows and gets the 
keyboard focus.

I think that 6'.) is the expected behaviour because this also happens if 
running under a x server on a  linux machine instead of cygwin.

Best regards,
Oliver


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XRaiseWindow for activating windows in multiwindow mode

2014-06-19 Thread Oliver Schmidt

On 6/11/2014 10:50 PM, Patrick Herbst wrote:

On 03 Sep 2011, Jon TURNEY wrote:

On 13/08/2011 19:39, Oliver Schmidt wrote:

as reported in
http://www.cygwin.com/ml/cygwin-xfree/2005-06/msg00072.html
windows are not raised from the Cygwin X Server in multiwindow
mode, if a program wants to programmatically activate a window.

I played around and figured out that the problem can be solved by
...
I enclose the patch in this email. It works fine for me, but
...


Is there a fix planned for this?  I too use applications that make use
of XRaiseWindow to navigate around multiple windows, and it doesn't
work.

Anyone have any info on this issue??


I used my patch from 2011 every day for the last three years and it 
worked always without any problems. I was also able to incorporate this 
patch into the newest cygwin x server running under 64-bit cygwin 
without any problems.


See also:
   https://cygwin.com/ml/cygwin-xfree/2011-08/msg00034.html
   https://cygwin.com/ml/cygwin-xfree/2011-09/msg0.html
   https://cygwin.com/ml/cygwin-xfree/2011-09/msg3.html

I don't understand, why this patch was not included into the official 
cygwin-x-server. Of course it would be nice, if a better solution was 
available. For pragmatic reasons it would be nice to include this patch 
into official cygwin x server until a better solution is available.


Best regards,
Oliver


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



problem evaluating window resize hints under 64 bit

2014-06-19 Thread Oliver Schmidt
The current cygwin x server 1.15.1-2 under 64-bit cygwin seems to have a problem correctly evaluating the window resize 
hints.


In hw/xwin/winmultiwindowwndproc.c the function ValidateSizing calls winMultiWindowGetWMNormalHints and gets wrong 
values in sizeHints.width_inc and sizeHints.height_inc.


In function winMultiWindowGetWMNormalHints in file hw/xwin/winmultiwindowclass.c you can see that a memcpy occurs from 
prop-data with sizeof(WinXSizeHints).


As it turns out, everything is correct if you modify the typedef of WinXSizeHints in hw/xwin/winmultiwindowclass.h so 
that long type becomes int:


--- a/cygwin/hw/xwin/winmultiwindowclass.h
+++ b/cygwin/hw/xwin/winmultiwindowclass.h
@@ -63,7 +63,7 @@ typedef struct {
  * used with WM_NORMAL_HINTS.
  */
 typedef struct {
-long flags; /* marks which fields in this structure are 
defined */
+int flags; /* marks which fields in this structure are 
defined */
 int x, y;   /* obsolete for new window mgrs, but clients */
 int width, height;  /* should set so old wm's don't mess up */

I can only guess why this works: in the X11 message protocol all int and long types are mapped to 32 bit integers. It 
seems that the memcpy in winMultiWindowGetWMNormalHints has source data that has memory layout as in the X11 message 
protocol.


Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: [vdr] shows recording

2014-05-24 Thread Peer Oliver Schmidt
Am 23.05.2014 00:21, schrieb jacek burghardt:
 Coming from mythtv I wonder if there is a way to search for new shows of
 series. Does epgsearch has such fundion I use vdradminp-an I would love
 to be able to have it search and record new shows

Not sure I understand exactly what you are after, but I utilize
epgsearch to record every episode of my favourite shows automatically.

Works just nice.
-- 
Best regards

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [SailfishDevel] Jolla release plan for high-level features - update 6 / 7

2014-05-16 Thread Oliver Schmidt
 * Google contacts 2-way sync
Does this include support for generic CalDAV servers as well? I use owncloud 
and Syncevolution doesn't really work for me. If I understood correctly, the 
Google Sync on SailfishOS also uses CalDAV, doesn't it?

Regards, Oliver
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [vdr] still image at end of replay

2014-04-13 Thread Peer Oliver Schmidt
Am 12.04.2014 15:16, schrieb Stephan Loescher:
 Hi!
 
 Do you have a channel-line as an example for that?

I used to :) Just copied the example from the IPTV plugins wiki page:

http://www.vdr-wiki.de/wiki/index.php/Iptv-plugin


-- 
Best regards

Peer Oliver Schmidt
the internet company
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] still image at end of replay

2014-04-10 Thread Peer Oliver Schmidt
Hello,

 Problem: the children are watching a recording, and at the end VDR
 switches to normal live TV, that can be anything. I have to be there at
 the right moment to turn off the screen and the sound, in order to bring
 them to leave the tv-room.
 
 I would be nice, if VDR could turn off the sound at the end of a replay
 and show a still image (e.g. Children, go to bed now!).
 
 What do you think about that?

You can do that already. Use the iptv plugin, create a channel that
shows a static picture, define that channel as the starting channel of
VDR. Now each time you start VDR it will show that picture. You go into
the recordings menu, and select the recording to playback. At the end,
playback stops, and the original channel showing the static picture is
displayed.
-- 
Best regards

Peer Oliver Schmidt
the internet company
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] still image at end of replay

2014-04-10 Thread Peer Oliver Schmidt
Am 10.04.2014 14:22, schrieb fnu:
 You can do that already. Use the iptv plugin, create a channel that shows
 a static picture,
 
 Smart idea, but wife is also required to go to bed all the time ... SCNR ...
 ;-)

No problem. Amend the script that creates the iptv stream to change the
wording, and/or other content of the stream. After 10pm the stream will
loop AC/DC's Hell's Bells...


-- 
Best regards

Peer Oliver Schmidt
the internet company
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Proble with rewriting to list functions

2014-01-02 Thread Oliver Schmidt
Hi,
I have the following strange problem: I want to rewrite an URL to trigger a 
_list function which should display data supplied by a view. The does both 
map and reduce, but for this list funtion I don't need the reduce step, so I 
supplied the query argument reduce=false. This is the rewrite I use:

{from: '/tags', to: '_list/testList/tags', query: { reduce:false}},

The strange error I encounter is that the rewrite URL 
http://localhost:5984/recipes/_design/recipe-couch/_rewrite/tags gives me 
the error message {error:unknown_error,reason:badarg}. If I 
trigger the list function directly via 
http://localhost:5984/recipes/_design/recipe-couch/_list/testList/tags?reduce=false
 or not supply the reduce=false 
query argument in the rewrite, everything works fine.
Is this a bug in CouchDB or am I doing something wrong?

Regards, Oliver


Re: Proble with rewriting to list functions

2014-01-02 Thread Oliver Schmidt
Great, it works now. I didn't know that false is just a string and not it's 
own type like in Python
SOLVED

Am Donnerstag, 2. Januar 2014, 03:58:26 schrieb Stanley Iriele:
 The 1st thing I see right off the bat is that that is not valid json... The
 keys need to be in quotes because they are strings... Second.. They 
query
 arg needs to be a string too... I believe...I haven't used them in a
 while...either way that's not valid json.
 On Jan 2, 2014 6:54 AM, Oliver Schmidt oliver.schmidt...@orlives.de
 
 wrote:
  Hi,
  I have the following strange problem: I want to rewrite an URL to 
trigger
  a
  _list function which should display data supplied by a view. The does 
both
  map and reduce, but for this list funtion I don't need the reduce step, 
so
  I
  
  supplied the query argument reduce=false. This is the rewrite I use:
  {from: '/tags', to: '_list/testList/tags', query: {
  reduce:false}},
  
  The strange error I encounter is that the rewrite URL
  http://localhost:5984/recipes/_design/recipe-couch/_rewrite/tags gives 
me
  the error message {error:unknown_error,reason:badarg}. If I
  trigger the list function directly via
  
  http://localhost:5984/recipes/_design/recipe-couch/_list/testList/tags?red
  uce=falseor not supply the reduce=false query argument in the 
rewrite,
  everything works fine.
  Is this a bug in CouchDB or am I doing something wrong?
  
  Regards, Oliver



Re: Rewriting query keys

2013-11-30 Thread Oliver Schmidt
Am Samstag, 30. November 2013, 15:12:35 schrieb Martin Higham:
 If you could provide the code for the view you are using then it would be
 easier to supply the rewrite you need
 

Here's the code: 
https://github.com/schmittlauch/recipecouch/tree/taglist/lib
The rewrite rule not working is {from: '/tags/:tag', to: 
'_list/testList/tags', query: { reduce: false, key: :tag}},

It works great if I directly give the querykey to the list function with 
http://localhost:5984/recipes/_design/recipe-couch/_rewrite/_db/_design/recipe-couch/_list/testList/tags?key=%22fish%22reduce=false
 but if I want to 
use it with the rewrite URL 
http://localhost:5984/recipes/_design/recipe-couch/_rewrite/tags/ad it now 
responds with 
{error:unknown_error,reason:badarg}
Btw, if you want to deploy this couchapp you need http://kan.so/

Big thanks in advance, Oliver


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


Re: Rewriting query keys

2013-11-29 Thread Oliver Schmidt
Thanks, but I CouchDB complains that I don't use valid JSON. I need a 
composed key as an array, how can I achieve this?

Am Mittwoch, 27. November 2013, 14:52:51 schrieb mart...@gmail.com:
 Here's an example of one I use that does something similar
 
 [
 
 
 { 
 from : /isBlocked/:blockee, 
 to: _list/isBlocked/isBlocked, 
 query: { 
 key : :blockee, 
 include_docs : true,
 reduce : false
 } 
 },
 ...
 ]



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


Re: Couchdb 1.3 not working on openSUSE 13.1

2013-11-06 Thread Oliver Schmidt
Thanks. I'll ask the maintainer to update CouchDB.



Alexander Shorin kxe...@gmail.com schrieb:
Hi Oliver,

Only since 1.4 release CouchDB works with Erlang R16. You need to
upgrade CouchDB or downgrade Erlang.

http://docs.couchdb.org/en/latest/whatsnew/1.4.html
--
,,,^..^,,,


On Wed, Nov 6, 2013 at 2:04 AM, Oliver Schmidt
oliver.schmidt...@orlives.de wrote:
 The new version of openSUSE is coming very soon... but without a
working
 couchdb? Couchdb crashes directly after start. Anyone wanting to make
couchdb
 work on openSUSE 13.1? Here's the bugreport:
 https://bugzilla.novell.com/show_bug.cgi?id=849096

 Regards, Oliver


Couchdb 1.3 not working on openSUSE 13.1

2013-11-05 Thread Oliver Schmidt
The new version of openSUSE is coming very soon... but without a working 
couchdb? Couchdb crashes directly after start. Anyone wanting to make couchdb 
work on openSUSE 13.1? Here's the bugreport: 
https://bugzilla.novell.com/show_bug.cgi?id=849096

Regards, Oliver


Re: [vdr] VDR wird in 3:00 Minuten ausschalten

2013-10-17 Thread Peer Oliver Schmidt
Am 13.10.2013 17:20, schrieb Torsten Mohr:
 Hello,
 
 i have installed an /etc/vdr/shutdown.sh which will NOT shutdown as long as 
 somebody is still logged in.
 
 So i know pretty sure that VDR is NOT going to shutdown.
 
 The message shown VDR wird in 3:00 Minuten ausschalten does not make
 sense on my system.

Why don't you set the timer to 0, to disable internal VDR shutdown, and
instead send a svdrpsend hitk power when everybody is logged out?
-- 
Best regards

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Choosing Document IDs

2013-08-05 Thread Oliver Schmidt
I'm building a couchapp for collecting recipes with kanso. How shall I choose 
the document IDs? Using a slug of the recipe name would create nice URLs but 
how can I prevent recipes with the same name from colliding (there might be 
more than one recipe for apple pie)? Shall I use UUIDs instead?

Regards Oliver

Re: Antifa Camp Ravensbrück 2013

2013-07-19 Thread Oliver Schmidt
Hi Anne,
wir 2 Neubrandenburger kommen so 
gegen 16:00. Wir laufen den Weg vom 
Bahnhof zur Gedenkstätte.
Grüße Olli


Re: Trying to wrap my head around CouchDB

2013-07-16 Thread Oliver Schmidt

 Ok.  Say in MySQL I have an orders table, a customers table and an 
items
 table (where the stuff that I want to sell is located).  How would this
 look like
 in CouchDB?
You put each customer, order and item into its own document.
 
 So you would have each customer, order and items document, but how 
would
 you differentiate between the 3 types of documents?
A common way to do that is to give each document a type attribute and 
then check for certain types in the views.
The guide is quite outdated, nevertheless the first chapters are very 
informative, good to read and still correct.

 I realize that this is not the same as MySQL, but I'm trying to find the
 relationships
 (and model them in my head) as to how I could do the same thing in 
CouchDB.
Maybe you need some time to unlearn these SQL things. I find CouchDBs 
way of handling documents intuitive, maybe because I never really learned 
SQL ;)


Is the CouchDB users database secure?

2013-07-16 Thread Oliver Schmidt
While reading the Kan.so docs ( 
http://kan.so/docs/The_users_database ) I saw 
that the users database, which includes 
username and password, is publicly accessible 
for everyone. Couldn't an attacker use this to 
create a list of all username-password pairs? 
Wouldn't it be more secure to use a server side 
function which validates the password without 
giving the users db directly to everyone? Or am I 
just too paranoid?

Regards


Re: Is the CouchDB users database secure?

2013-07-16 Thread Oliver Schmidt
Am Mittwoch, 17. Juli 2013, 00:09:23 schrieb 
Robert Newson:
 The _users database is not so open since 
our 1.2.0 release. A user can
 only see their own document. 
And how does logging in work? Is there a 
server side component which checks 
whether the incoming password equals the 
hash in the database or not?


Django doesn't serve staticfiles

2012-12-25 Thread Oliver Schmidt
I use the django-less app to compile lesscss files to css. The compiled files 
are cached and stored into the folder LESS_CACHE in my staticfiles folder.
And these files aren't served (404) while evrything else (other static files) 
are served. I use the dajngo development server.
My project: https://github.com/schmittlauch/chorplaner/tree/less

Merry christmas

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: considering modifier keys after gaining focus

2012-01-12 Thread Oliver Schmidt
Hi Jon,

On 1/11/2012 6:16 PM, Jon TURNEY wrote:
 I think it is useful to consider this history when reviewing a patch, 
 Are we going in circles?  Are we doing in the wrong direction? 

I appreciate your carefulness und thoroughness. It's of course always
better to understand what is going on, especially in a large code base
with a long history.


 Anyhow, in a brief look at some mailing list discussions from 2002 or so, it
 seems that:
 i) We must release modifier keys when focus leaves the X server, as modifier
 keys may be part of a Windows shell shortcut which moves the focus elsewhere,
 e.g. alt-tab) so the key-release isn't received by the X server.

Ah ok, so my guess was in the right direction ;-)


 ii) We must release non-modifier keys when focus leaves the X server, or they
 continue to auto-repeat in the X server (specifically a problem when a
 key-press closes a window (such as typing ctrl-d or exit into an Xterm), as
 the key-release goes to the next window to receive focus, which may not be an
 X window)

Interesting, I didn't know this. Thank you for figuring this out from
the malinglists archives.


 iv) What should we do about held non-modifier keys when focus enters the X 
 server?
 
 It looks like these should be pressed as well for strict correctness.  If we
 hold down a non-modifier key so it auto-repeats, and move the focus between X
 and native windows, the native windows receive repeats, but the the X windows
 do not.  I doubt many people care about this behaviour, though :-)

Yes, you are right: I can reproduce this phenomenon by holding down
Ctrl+N for opening windows and the key is not autorepeated (so only one
window is opened, whereas under Linux xserver many windows are opened).

In my daily usage I didn't discover this phenomenon. My patch only
addresses the problem, that the modifier keys are not right after
keyboard driven focus change, disrupting my workflow. So I agree that
there might not many people caring about this behaviour.


 Hm... on looking at this again, isn't that code you are adding checking the
 internal state of non-latching modifiers bogus?  If we release all keys on
 WM_KILLFOCUS, then the non-latching modifiers will always be clear when the
 WM_SETFOCUS occurs, so we will always generate the keypress for the modifier.

Yes, my patch also generates key release events for modifiers despite
the fact, that all modifier have been released after the xserver looses
the window focus. When writing the patch, I wasn't sure if this is
always the case, so I made the code a little bit more robust in the
sense that it tries to correct the modifier keys in any case (so it will
always work, even if something goes wrong in other code locations).

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: considering modifier keys after gaining focus

2012-01-12 Thread Oliver Schmidt

On 1/12/2012 1:19 PM, Oliver Schmidt wrote:
 On 1/11/2012 6:16 PM, Jon TURNEY wrote:
 Hm... on looking at this again, isn't that code you are adding checking the
 internal state of non-latching modifiers bogus?  If we release all keys on
 WM_KILLFOCUS, then the non-latching modifiers will always be clear when the
 WM_SETFOCUS occurs, so we will always generate the keypress for the modifier.
 
 Yes, my patch also generates key release events for modifiers despite
 the fact, that all modifier have been released after the xserver looses
 the window focus. When writing the patch, I wasn't sure if this is
 always the case, so I made the code a little bit more robust in the
 sense that it tries to correct the modifier keys in any case (so it will
 always work, even if something goes wrong in other code locations).

My answer is perhaps a little bit unexact. To be more precise:

+BOOL ctrl   = (GetAsyncKeyState (VK_CONTROL)  0);
+if (WIN_XOR (internalKeyStates  ControlMask, ctrl))
+  winSendKeyEvent (KEY_LCtrl, ctrl);

The above code fragment will send a key press event for the ctrl key, if
the current real ctrl modifier state is pressed and differs from the
xserver's internal key state for ControlMask.

It will send a key release event for the ctrl key, if the current real
ctrl modifier state is not pressed and differs from the xserver's
internal key state for ControlMask.

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: considering modifier keys after gaining focus

2012-01-10 Thread Oliver Schmidt
Hi,

On 1/9/2012 7:11 PM, Oliver Schmidt wrote:
 NEdit, press Ctrl+N for a new window, hold the Ctrl key and press S
 (i.e. Ctrl+S) for saving.

For the above NEdit example you have to disable the entry Preferences /
Default Settings / Tabbed Editing / Open File In New Tab from NEdit's
menu bar. Otherwise Ctrl+N will not open a new window.

Of course every keyboard driven program that opens new windows with
keyboard shortcuts will have problems with lost modifier key state.
Moreover, if using my patch for programmatically raising top level
windows ( http://cygwin.com/ml/cygwin-xfree/2011-08/msg00034.html ) the
problem also occurs if a application raises windows by keyboard shortcuts.

 I will try using GetKeyState tomorrow. I just wanted to be sure to get
 the current key state when the window gets the focus.

Ok, I tried using GetKeyState instead of GetAsyncKeyState and it
also works. So it seems to be a good idea to switch to GetKeyState.

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: considering modifier keys after gaining focus

2012-01-10 Thread Oliver Schmidt
It's me again ;-)

On 1/10/2012 10:47 AM, Oliver Schmidt wrote:
 Ok, I tried using GetKeyState instead of GetAsyncKeyState and it
 also works. So it seems to be a good idea to switch to GetKeyState.

My answer was too fast: unfortunately I got problems using GetKeyState
instead of GetAsyncKeyState: I had hanging Alt-Keys if switching into
a x11 window using alt+tab when the mouse was already in the window
before the alt+tab keypress. So I switched back to using
GetAsyncKeyState and everything now works again as it should.

So after my experience we should use GetAsyncKeyState: this works for
me without any problems since August 2011 and I'm using this 8 hours
every day, doing a lot of keyboard stuff and opening, raising and
closing X11 windows frequently using the keyboard.

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: considering modifier keys after gaining focus

2012-01-09 Thread Oliver Schmidt
Hi Jon,

On 09.01.2012 15:06, Jon TURNEY wrote:
 I have a few questions and comments below:
 
 Example: in window A Ctrl + some key opens a window B, then in window B
 Ctrl + some other key triggers the next action. However after the opening
 of window B the Ctrl key has to be released and pressed again. If the user
 keeps the Ctrl key holding when the window B is opened, the next key press
 X will be interpreted as X and not as Ctrl+X.
 
 Can you give an example of an application where this causes a problem, so I
 can test your patch?

because current cygwin x-server is not able to raise windows, you could
only test the case, that a new window is created. Any X11 program that
can create windows and has keyboard shortcuts will do it, e.g. take
NEdit, press Ctrl+N for a new window, hold the Ctrl key and press S
(i.e. Ctrl+S) for saving.

 The code would seem to end up simpler (which is an important consideration) if
 we were to modify winKeybdReleaseKeys() not to release modifier keys.  Some
 archaeology is probably required to determine if releasing the modifier keys
 in winKeybdReleaseKeys() is necessary to avoid some other undesirable 
 behaviour?

I don't know anything about the cygwin X server history, I can only
guess why the current code is as it is: Perhaps the modifier keys are
released afer loosing a window's focus because if another Non-cygwin
window gains the focus, no more modifier change events will arrive to
the cygwin x server.

 This also begs the question why is it only necessary to press some some subset
 of the down keys on WM_SETFOCUS?  Does the X server behave correctly if a
 non-modifier key is held down while focus moves from one X server window to
 another, or from one X server window to a  native window an back?

My code simply updates the xserver's internal state about the modifier
keys after gaining the window focus. Other keys behave correctly,
because the xserver doesn't have an internal state for them.

 Why is is correct to use GetAsyncKeyState() here and not GetKeyState()?  If we
 use GetAsyncKeyState() there may be a message pending (See the remarks on
 GetKeyState() in MSDN) to change to the key state, so we might conceivably
 double the key press?

I will try using GetKeyState tomorrow. I just wanted to be sure to get
the current key state when the window gets the focus.

 This maps VK_CONTROL to KEY_LCtrl.  Why not use VK_LCONTROL and VK_RCONTROL,
 so the generated key-press is for the correct key?
 Ditto for VK_LSHIFT and VK_RSHIFT

Perhaps this might improve the patch, however the internal modifier
state of the xserver has only ShiftMask, LockMask, ControlMask,
Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, and Mod5Mask. So the internal
state does not distinguish betweem left or right shift key.

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Why doesn't M-C-s work for me?

2012-01-09 Thread Oliver Schmidt
Hi Mark,

On 09.01.2012 19:32, Mark Geary wrote:
 left Alt-left Ctrl-s (will abbreviate as M-C-s from here-on) does
 nothing for me. Does anyone have any thoughts on why it might not be working?
 I have the left control and the caps lock keys swapped with a
 registry edit:

does this problem also occur with normal windows programs?

I have also made the caps lock key to a ctrl key and I cannot press
ctrl+shift+s when using the caps lock key as ctrl key. So it seems for
me that on some keyboards some key combinations of more than two keys at
the same time are not possible (perhaps due to technical implementation
details?)

Best regards,
Oliver


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: considering modifier keys after gaining focus

2012-01-08 Thread Oliver Schmidt
Hi,

On 8/16/2011 5:31 PM, Oliver Schmidt wrote:
 I had the problem, that the state of the modifier keys was lost when a
 window is created (or raised).
 I send a patch to fix this problem with this email: I just extended the

I just merged the current official source from xorg-server-1.11.3-1 into
my local development source and discovered, that my patch for the
problem lost modifier key after a new window is created has not been
applied.

Is there a chance, that this patch could be applied to a future version
or that another solution could be provided to fix this problem? I'm also
attaching a newer version of the patch with this email.

Best regards,
Oliver

diff --git a/cygwin/hw/xwin/winkeybd.c b/cygwin/hw/xwin/winkeybd.c
index 278342f..a2ac4d0 100644
--- a/cygwin/hw/xwin/winkeybd.c
+++ b/cygwin/hw/xwin/winkeybd.c
@@ -283,6 +283,29 @@ winRestoreModeKeyStates (void)
* have a logical XOR operator, so we use a macro instead.
*/
 
+  {
+/* consider modifer keys */
+
+BOOL ctrl   = (GetAsyncKeyState (VK_CONTROL)  0);
+BOOL shift  = (GetAsyncKeyState (VK_SHIFT)0);
+BOOL alt= (GetAsyncKeyState (VK_LMENU)0);
+BOOL altgr  = (GetAsyncKeyState (VK_RMENU)0);
+
+if (ctrl  altgr) ctrl = FALSE;
+
+if (WIN_XOR (internalKeyStates  ControlMask, ctrl))
+  winSendKeyEvent (KEY_LCtrl, ctrl);
+  
+if (WIN_XOR (internalKeyStates  ShiftMask, shift))
+  winSendKeyEvent (KEY_ShiftL, shift);
+  
+if (WIN_XOR (internalKeyStates  Mod1Mask, alt))
+  winSendKeyEvent (KEY_Alt, alt);
+  
+if (WIN_XOR (internalKeyStates  Mod5Mask, altgr))
+  winSendKeyEvent (KEY_AltLang, altgr);
+  }
+
   /* Has the key state changed? */
   dwKeyState = GetKeyState (VK_NUMLOCK)  0x0001;
   if (WIN_XOR (internalKeyStates  NumLockMask, dwKeyState))
@@ -328,7 +351,7 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM lParam)
   MSG  msgNext;
   LONG lTime;
   Bool fReturn;
-
+  
   static Bool   lastWasControlL = FALSE;
   static UINT   lastMessage;
   static LONG   lastTime;

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

[vdr] OT: HDMI-CEC control (was: Using some mediaplayer as set top box player for VDR)

2011-12-15 Thread Peer Oliver Schmidt
On 12/08/2011 12:01 AM, Petric Frank wrote:
 Hello,
[..]
 [dream on]
 If this box supports HDMI-CEC to use the remote control of the TV set to 
 manage the VDR system ...
 [dream off]

I am not too sure, you really want HDMI CEC control. Look at the power
consumption of a lot of device when you turn on HDMI CEC control. I do
know of Denon and Onkyo receivers who go from 1W standby to 50W
standby, when you enabled HDMI-CEC (or LAN control)
-- 
Best regards

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: Documentation

2011-12-03 Thread Oliver Schmidt
On Fri, 02 Dec 2011 17:46:24 +0100, Kevin Hamilton khamil...@umem.org wrote:Hello,I am putting together a collection of our own server's security details and I was hoping to put some documentation for ApacheDS in it. I have been unsuccessful in finding a PDF that has all of the specifications. Does one exist?
Thanks,Kevin

Hi Kevin,I'm not sure which kind of specifications you like to have - something about the security features like authentication, authorization, access control, etc.?Kind regardsOliver

[ApacheDS] SSL/TLS configuration

2011-11-07 Thread Oliver Schmidt

Hi,

I have a problem setting SSL/TLS up and hope someone can help me...

I have a certificate from CACert and extracted the public key with OpenSSL  
and imported it, together with the cert and the private key into ApacheDS  
2.0 M3 (under uid=admin,ou=system).


I've tried it several times in different ways but keep getting  
HandshakeExceptions in both, LDAPS and STARTTLS.


Hope you can help me :-)

--
Kind regards / freundliche Grüße
Oliver


Re: [ApacheDS] Re: Access Restriction

2011-11-04 Thread Oliver Schmidt

Hi Kevin,

you'll have to do the following steps now:

1) Go to the entry for which you want to enable access control. Add the
attribute administrativeRole with the value accessControlSpecificArea.
AD-Studio will mention that this attribute does not belong to the schema
you use. You can ignore this.
2) Add a new entry below the entry where you have added the
administrativeRole attribute. Use the object classes
accessControlSubentry, subentry and top. As RDN attribute name, use
cn and choose a name of your preference.
2a) You will be asked to specify the subentry. Leave it empty.
2b) You will be asked to specify the ACI element:
  * Identificator: your choice
  * Priority: 0
  * Authentication level: simple=non-SASL / strong=SASL (I would choose
simple first)
  * User or element first: User
  * User classes: Choose name and specify your admin2
  * User permissions:
* Protected elements: entry, all user attribute types and  
values

* Grants and denials: Here, you can grant everything

Once you have set this up, you can play around with your ACI a little bit
more and maybe grant users to see their own entries and so on. There
should be some learning trails about access control in the user guides
which might also help you.

--
Kind regards

Oliver

Am 03.11.2011, 19:13 Uhr, schrieb Kevin Hamilton khamil...@umem.org:


Hello Oliver and Company,

I had successfully enabled the accessControl. My issue now is that I
am using another superuser I created (I called it admin2) to modify my
users. Now, I am no longer to modify my users because he does not have
access.

I read about Prescriptive ACIs, but the lack of examples left me kind
of stumped. How can I grant all access to admin2 only, or something
with the dn=uid=admin,ou=system?

Thanks,
Kevin

On Wed, Nov 2, 2011 at 2:04 PM, Oliver Schmidt
oliver.schmidt@arcor.de wrote:

On Wed, 02 Nov 2011 13:59:25 +0100, Kevin Hamilton khamil...@umem.org
wrote:


Hello everyone,

My name is Kevin and I am writing to ask a question about access to
ApacheDS 2.0.0-M2. Currently I have a bunch of users set up and the
apacheds is used to authenticate the users on my website. My question
is about accessing the apacheds. On my Apache Directory Studio, I can
login as admin and see everything. The problem is that I can also log
in as any other user in the database and I can see other user's
information. Not sure if I am being clear.

If someone has their own username and password and also the port and
address of my server, they can login (using Apache Directory Studio or
any other client) and see all of the records. Obviously the passwords
are hashed, but it is still a liability for the users to be able to
see e-mails/etc of other users.

Is there any way to limit the information that certain users can see
(ie, they could login, but not see any records)?

Please let me know soon.

Thanks,
Kevin



Hi Kevin,

I'm moving this topic to the users list...

There's a chapter about this topic in the doco. Please see the User  
Guides

on the topic authorization.

Depending on what you intend to allow/disallow your users to see in your
directory, you might also need to write some ACIs. If you want, I can  
assist

you setting this up.

Please note that ehe documentation still mentions the server.xml file.  
This
file is however obsolete in version 2.0. Instead, config is done  
directly in
the server. You can alter the configuration using ehe Directory Studio.  
Just

look under the ou=config node.

Kind regards
Oliver








--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/


[ApacheDS] Re: Access Restriction

2011-11-02 Thread Oliver Schmidt
On Wed, 02 Nov 2011 13:59:25 +0100, Kevin Hamilton khamil...@umem.org  
wrote:



Hello everyone,

My name is Kevin and I am writing to ask a question about access to
ApacheDS 2.0.0-M2. Currently I have a bunch of users set up and the
apacheds is used to authenticate the users on my website. My question
is about accessing the apacheds. On my Apache Directory Studio, I can
login as admin and see everything. The problem is that I can also log
in as any other user in the database and I can see other user's
information. Not sure if I am being clear.

If someone has their own username and password and also the port and
address of my server, they can login (using Apache Directory Studio or
any other client) and see all of the records. Obviously the passwords
are hashed, but it is still a liability for the users to be able to
see e-mails/etc of other users.

Is there any way to limit the information that certain users can see
(ie, they could login, but not see any records)?

Please let me know soon.

Thanks,
Kevin



Hi Kevin,

I'm moving this topic to the users list...

There's a chapter about this topic in the doco. Please see the User Guides  
on the topic authorization.


Depending on what you intend to allow/disallow your users to see in your  
directory, you might also need to write some ACIs. If you want, I can  
assist you setting this up.


Please note that ehe documentation still mentions the server.xml file.  
This file is however obsolete in version 2.0. Instead, config is done  
directly in the server. You can alter the configuration using ehe  
Directory Studio. Just look under the ou=config node.


Kind regards
Oliver


Re: XRaiseWindow for activating windows in multiwindow mode

2011-10-21 Thread Oliver Schmidt
Hi Michel,

On 10/19/2011 11:33 AM, Michel Hummel wrote:
 I am a bit late but I will be happy to test this version of XWin.
 Could you give me a patched binary version please ?

You can download my currently used version of XWin.exe from:

http://min.us/mgtjlVdju

This version includes also my other patches (e.g. experimental redrawing
of windows while they are resized/moved, see
http://www.cygwin.com/ml/cygwin-xfree/2011-08/msg00049.html). I'm using
this version daily, so it can be considered stable for my personal usage
patterns ;-) However if the redrawing patch causes problem on your setup
I could prepare a version without this patch.

For me the most missing feature from the official Cygwin's x-server is
the possibility to programmatically raise windows in multi window mode,
so I'm happy to hear that others are interested in this feature too.

Best regards,
Oliver


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XRaiseWindow for activating windows in multiwindow mode

2011-10-21 Thread Oliver Schmidt
On 10/21/2011 1:43 PM, Michel Hummel wrote:
  Can I know the exact patch list applied to generate it ?

you can see the source code of my current playground version at
https://github.com/osch/cygwin-xserver

Commit 1ec241341cf1c85abf0372e00ae9acc8be66894b contains the official
sources from xserver-cygwin-1.10.3-1.

I'm also attaching a patch file of my current version against
xserver-cygwin-1.10.3-1 to this email.

Best regards,
Oliver

diff --git a/cygwin/dix/dispatch.c b/cygwin/dix/dispatch.c
index 44f8087..18e9697 100644
--- a/cygwin/dix/dispatch.c
+++ b/cygwin/dix/dispatch.c
@@ -343,33 +343,27 @@ DisableLimitedSchedulingLatency(void)
 
 #define MAJOROP ((xReq *)client-requestBuffer)-reqType
 
-void
-Dispatch(void)
-{
-int*clientReady; /* array of request ready clients */
-intresult;
-ClientPtr  client;
-intnready;
-HWEventQueuePtr* icheck = checkForInput;
-long   start_tick;
+static int*clientReady; /* array of request ready clients */
+static int result;
+static ClientPtr   client;
+static int nready;
+static HWEventQueuePtr* icheck = checkForInput;
+static longstart_tick;
 
-nextFreeClientID = 1;
-nClients = 0;
-
-clientReady = malloc(sizeof(int) * MaxClients);
-if (!clientReady)
-   return;
-
-SmartScheduleSlice = SmartScheduleInterval;
-while (!dispatchException)
-{
+int DispatchOneStep(Bool handleWindowMessage)
+{
+int rslt = 0;
+
 if (*icheck[0] != *icheck[1])
{
ProcessInputEvents();
FlushIfCriticalOutputPending();
}
-
nready = WaitForSomething(clientReady);
+   rslt = nready;
+
+if (handleWindowMessage)
+handleNextWindowMessage();
 
if (nready  !SmartScheduleDisable)
{
@@ -460,6 +454,24 @@ Dispatch(void)
client-smart_stop_tick = SmartScheduleTime;
}
dispatchException = ~DE_PRIORITYCHANGE;
+
+return rslt;
+}
+
+void
+Dispatch(void)
+{
+nextFreeClientID = 1;
+nClients = 0;
+
+clientReady = malloc(sizeof(int) * MaxClients);
+if (!clientReady)
+   return;
+
+SmartScheduleSlice = SmartScheduleInterval;
+while (!dispatchException)
+{
+DispatchOneStep(TRUE);
 }
 
 if (ddxHooks.ddxBeforeReset)
diff --git a/cygwin/hw/xwin/winkeybd.c b/cygwin/hw/xwin/winkeybd.c
index 9e5a9b0..99c822d 100644
--- a/cygwin/hw/xwin/winkeybd.c
+++ b/cygwin/hw/xwin/winkeybd.c
@@ -282,6 +282,29 @@ winRestoreModeKeyStates (void)
* have a logical XOR operator, so we use a macro instead.
*/
 
+  {
+/* consider modifer keys */
+
+BOOL ctrl   = (GetAsyncKeyState (VK_CONTROL)  0);
+BOOL shift  = (GetAsyncKeyState (VK_SHIFT)0);
+BOOL alt= (GetAsyncKeyState (VK_LMENU)0);
+BOOL altgr  = (GetAsyncKeyState (VK_RMENU)0);
+
+if (ctrl  altgr) ctrl = FALSE;
+
+if (WIN_XOR (internalKeyStates  ControlMask, ctrl))
+  winSendKeyEvent (KEY_LCtrl, ctrl);
+  
+if (WIN_XOR (internalKeyStates  ShiftMask, shift))
+  winSendKeyEvent (KEY_ShiftL, shift);
+  
+if (WIN_XOR (internalKeyStates  Mod1Mask, alt))
+  winSendKeyEvent (KEY_Alt, alt);
+  
+if (WIN_XOR (internalKeyStates  Mod5Mask, altgr))
+  winSendKeyEvent (KEY_AltLang, altgr);
+  }
+
   /* Has the key state changed? */
   dwKeyState = GetKeyState (VK_NUMLOCK)  0x0001;
   if (WIN_XOR (internalKeyStates  NumLockMask, dwKeyState))
@@ -327,6 +350,12 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
   MSG  msgNext;
   LONG lTime;
   Bool fReturn;
+  
+  static Bool   hasLastControlL = FALSE;
+  static UINT   lastMessage;
+  static WPARAM lastWparam;
+  static LPARAM lastLparam;
+  static LONG   lastTime;
 
   /*
* Fake Ctrl_L presses will be followed by an Alt_R keypress
@@ -360,9 +389,22 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
 WM_KEYDOWN, WM_SYSKEYDOWN,
 PM_NOREMOVE);
}
-  if (msgNext.message != WM_KEYDOWN  msgNext.message != WM_SYSKEYDOWN)
+  if (fReturn  msgNext.message != WM_KEYDOWN  msgNext.message != 
WM_SYSKEYDOWN)
   fReturn = 0;
 
+  if (!fReturn)
+{
+  hasLastControlL = TRUE;
+  lastMessage = message;
+  lastWparam  = wParam;
+  lastLparam  = lParam;
+  lastTime= lTime;
+} 
+  else
+{
+  hasLastControlL = FALSE;
+}
+
   /* Is next press an Alt_R with the same timestamp? */
   if (fReturn  msgNext.wParam == VK_MENU
   msgNext.time == lTime
@@ -377,11 +419,33 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
}
 }
 
+  /*
+   * Check for Alt_R keypress, that was not ready when the
+   * last Ctrl_L appeared.
+   */
+  else if ((message == WM_KEYDOWN || message == 

Re: LDAP API user guide : pdf available

2011-10-19 Thread Oliver Schmidt

Am 19.10.2011, 19:06 Uhr, schrieb Emmanuel Lecharny elecha...@gmail.com:


Hi guys,

I have spent my day switching the LDAP API documentation from confluence  
to the new system Stefan has tested. It works like a charm !


I have created a PDF from the files you can find in  
*https://svn.apache.org/repos/asf/directory  
http://svn.apache.org/viewvc/directory//documentation  
http://svn.apache.org/viewvc/directory/documentation//ldap-api-manuals  
http://svn.apache.org/viewvc/directory/documentation/ldap-api-manuals//trunk*,  
and it has also been generated on /www/directory.apache.org/api.


Here is the available PDF :

http://people.apache.org/~elecharny/book.pdf


Ok it's not perfect yet :
- first a hell lot of documentation is missing...
- the links are'nt correctly generated (we have the text twice)
- we have some text larger than the pages
- If we have text after an image, there is a line break between the  
image and the text


but the overall result is quite ok...

Feedback welcomed !



Looks really good! In code blocks the text flows out of the boxes but I  
think this is no big issue...


Re: ApacheDS documentation: docbook vs. wiki syntax

2011-10-18 Thread Oliver Schmidt

Am 18.10.2011, 23:22 Uhr, schrieb Emmanuel Lecharny elecha...@gmail.com:


Hi,

On 9/18/11 10:20 PM, Stefan Seelmann wrote:

Hi guys,

I'd like to come back to our documentation issue:
- docu in confluence isn't versionized
- docbook in source control isn't easy to write

I did some research and found some interesting links [1][2][3]. I
setup an additonal user guide as PoC [4].

The idea is as follows:
1. Documenation source is still stored in source control.
2. We use wiki syntax (confluence) to edit the documenation. Eclipse
Mylyn WikiText includes editors for various wiki syntaxes (e.g.
confluence, but not markdown) that provide content assist, syntax
highlighting and a nice preview, see Getting Started of [1].
3. The wiki syntax is transformed to docbook xml. Unfortunately the
required Mylyn libraries are not available in public maven repo and
there is no maven plugin*. So I worked around and added the two
required jars to the lib folder and added a maven-antrun-plugin
execution to the POM.
4. Docbook is transformed to HTML, PDF, whatever

I think that is a good way to make docu editing easier but still use
the power of docbook to create different output formats. Of course not
all features of docbook can be used but I think that is a minor issue.
A bigger task is the transformation of the existing docbook files to
confluence syntax.

Looking forward to your feedback.


So I checked the project and the tools today : excellent !

We will now need to move all the wiki pages to svn. I will start with  
the API doco.


I suggest we create sub-project under documentation, one per project :
- ApacheDS (apacheds-manuals)
- Studio (studio-manuals : to be created)
- API (api-manuals : to be created)

Thoughts ?



I also checked this out and found it better for maintaining the  
documentation. In Confluence's web-based editor I could stick much time on  
a comparatively small section while this way it seems easier.


Re: [vdr] vdr-checkts + vdrnfofs

2011-10-04 Thread Peer Oliver Schmidt
On 10/03/2011 08:26 PM, Tobi wrote:
 On 03.10.2011 20:12, Manfred Schmidt-Voigt wrote:
 
 Is it possible to include this in one of the next versions?
 
 Good suggestion! Added to the todo list.

FYI: I am using a butchered version of vdrnfofs in LinuxMCE. Works for
what I need atm. VDR-Portal should have my changes.
-- 
Best regards

Peer Oliver Schmidt
LinuxMCE
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

2011-09-23 Thread Oliver Schmidt

Hi Kiran and Pierre-Arnaud,

worked nicely. Thanks, I'll put the information into the Wiki.

Kind regards
Oliver

Am 22.09.2011, 15:05 Uhr, schrieb Kiran Ayyagari kayyag...@apache.org:

there are several places that you need to modify for adding a new  
partition.


The best is to copy an existing partition and save it with a different
name (all using Studio only)
and finally adding the new partition's name to the ads-partitions
attribute in the entry ads-directoryServiceId=default,ou=config

OR
you can share the config.ldif file present in the conf folder if the
problem persists.

On Thu, Sep 22, 2011 at 8:59 AM, Oliver Schmidt
oliver.schmidt@arcor.de wrote:

Hi there,

since M2, there is no server.xml file anymore, right? So, I tried to  
add a

custom partition via Directory Studio under the
ou=partitions,ads-directoryServiceId=default,ou=config entry, right  
where
I could also find the example partition. Unfortunately the server would  
not

start anymore then. The error message is:

org.apache.directory.server.config.ConfigurationException: Cannot open a
cursor to read the configuration on
ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config

Is there some other way how to create a new partition in M3?

Kind regards
Oliver








--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/


[ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

2011-09-22 Thread Oliver Schmidt

Hi there,

since M2, there is no server.xml file anymore, right? So, I tried to add a
custom partition via Directory Studio under the
ou=partitions,ads-directoryServiceId=default,ou=config entry, right where
I could also find the example partition. Unfortunately the server would  
not start anymore then. The error message is:


org.apache.directory.server.config.ConfigurationException: Cannot open a  
cursor to read the configuration on  
ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config


Is there some other way how to create a new partition in M3?

Kind regards
Oliver


Re: [ApacheDS] Creating a custom partition in ApacheDS 2.0 M3

2011-09-22 Thread Oliver Schmidt

Hi Pierre-Arnaud,

no, I didn't since I didn't know which indexes are important and I assumed  
that ApacheDS would create those entries for me. So I'll try again after  
having created those indexes. Thanks for the hint! :-)


Kind regards
Oliver

Am 22.09.2011, 15:07 Uhr, schrieb Pierre-Arnaud Marcelot p...@marcelot.net:


Hi Oliver,

When you created your partition entry, did you also create all the  
entries underneath it, like indexes for example?


Regards,
Pierre-Arnaud

On 22 sept. 2011, at 14:59, Oliver Schmidt wrote:


Hi there,

since M2, there is no server.xml file anymore, right? So, I tried to  
add a

custom partition via Directory Studio under the
ou=partitions,ads-directoryServiceId=default,ou=config entry, right  
where
I could also find the example partition. Unfortunately the server would  
not start anymore then. The error message is:


org.apache.directory.server.config.ConfigurationException: Cannot open  
a cursor to read the configuration on  
ou=indexes,ads-partitionId=myexample,ou=partitions,ads-directoryServiceId=default,ou=config


Is there some other way how to create a new partition in M3?

Kind regards
Oliver





--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/


Re: redraw windows while resizing/moving windows in multiwindow mode

2011-09-08 Thread Oliver Schmidt
Hi Jon,

On 9/7/2011 5:05 PM, Jon TURNEY wrote:
 This is fine as a proof of concept, and it would be nice to handle this

did you try the patch? It looks  feels very smooth if you resize a
xlock and the xclock and all x11 background windows are redrawn while
resizing ;-)

 better and do X window updates during the Windows modal resizing loop,
 but I don't think I can apply this patch.

but I hope this patch can be used as a starting point.

 Well, in fact, no X events are processed while in the modal resizing
 loop, so for e.g. if you have ico running in another X window, it stops
 updating while an xterm window is being resized.

with the patch X events are processed. With the patch, ico redraws also
while windows are moved or resized, as long as the mouse is moved. For
display updating without moving the mouse while modal resizing/moving is
in progress, I already mentioned the timer event that is possible to
improve the patch.

Thanks for mentioning ico, I didn't know this program, it is an
interesting experimental tool: it shows that the patch is too
aggressive, i.e. the ui interface is not responsive, perhaps due to my
critical code fragment:

while (DispatchOneStep(FALSE)  0) {}

So I will try now to improve the patch for better responsiveness.

 Note that there are other modal loops in Windows message handling, I
 think moving the scrollbar also involves one (which can happen in
 windowed mode with the -scrollbar option)

One could introduce a similar patch there too ;-) However a patch for
scrollbar option in windowed mode is not as reasonable as in multiwindow
mode, because the static redrawing of the x server makes sense in
windowed mode. Only in multiwindow mode the redrawing is strange, e.g.
if you applied my patch minimize redraw events after resizing/moving
windows in multiwindow mode, you will see other X11 background windows
while resizing a x11 foreground window in the window that is resized,
because actually the x11 window is not resized due to missing x11 event
processing, but the xserver simply redraws all x11 windows in the
current size. In windowed mode, no x11 window is resized.

 I'm not sure how to structure the change to Dispatch() in a way which
 would be acceptable upstream.

I hoped, you had an idea. What are the criteria to be accepted upstream?
At least the patch introduces only a bypass, i.e. existing code/usage
is not affected. It would be discouraging if no upstream changes are
possible to improve the cygwin x server's multi window mode, since this
is the mode that allows the highest integration of x11 applications with
native windows programs. If no upstream changes are possible one
fallback could be to have a local patch (or #ifdef switch) for the
cygwin x server.


 An additional point to consider is that you may have introduced the
 possibility of re-entrancy into either the X window message dispatcher,
 or the Windows message dispatcher, which may not be safe. (e.g.
 winTopLevelProc - DispatchOneStep - (some X event processing calls a
 DDX function which calls SendMessage) - winTopLevelProc ...)

Could you explaind this more explicitly? How can this be tested?

As I understood the code, the function Dispatch is only called once
per x server invocation. And the new function DispatchOneStep is meant
to be processed re-entrant. This is why the boolean parameter
handleWindowMessage is introduced and why I had to remove the invocation
of DispatchMessage out of the winWakeupHandler which is called in
WaitForSomething.

 An alternative approach would be to move the Windows message pump into a
 separate thread from the X server message dispatch.  Unfortunately, this
 would probably involve rather major changes, and careful examination of

I agree that this would cause a lot of more work than the approach of my
patch. I'm not sure if moving the Windows message handling into a
different thread will solve the problem totally: there still is the
problem, that in the modal windows event loop the x11 event processing
must be invoked. At least one has to totally decouple the x11 and
Windows event processing, but then still in the modal event loop the now
decoupled x11 processing must be triggered. So it seems to me, that
decoupling the x11 and Windows processing does only prevent upstream
changes but does not solve the problem, that in the modal Windows event
loop small progressing parts for X11 (coupled or decoupled) have to be done.

 Alternatively, it might be worth investigating to see if it is possible
 to use a message filter set with SetWindowsHookEx(WH_MSGFILTER) to run
 the X window dispatch while Windows is in a modal loop?

I'm not sure if I'm understanding this approach correctly, but I think
even with SetWindowsHookEx we still have the problem, that the main loop
in Dispatch has to be broken into smaller parts that can be invoked from
inside the modal Windows event loop (or hook).

Best regards,
Oliver


--
Unsubscribe info:  

Re: XRaiseWindow for activating windows in multiwindow mode

2011-09-04 Thread Oliver Schmidt
some additions to my last mail:

On 04/09/11 10:52, Oliver Schmidt wrote:
 code and is also necessary for the patch. I think that the recursice
 behaviour occurs because changes on the top level windows with native
 Windows-API-Calls are leading to native Windows messages that again are
 fed into the x server and are leading to the funcion
 winRestackWindowMultiWindow. But this is only a theory,

After looking again at the code, I must correct my above statements: now
I think, that it's not the native Windows function SetForegroundWindow
that is calling the recursive behaviour.

It's still the already existing code in the function
winReorderWindowsMultiWindow that is causing recursive behaviour: in
this existing code the function ConfigureWindow is invoked (this is not
a native Windows function, it seems to be some x server function). So
the invocation of this function is triggering the x server to invoke
winRestackWindowMultiWindow recursively.

But these are still theories. At least the recursive behaviour is not
introduced by the patch, it was already there in the existing coding ;-)

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XRaiseWindow for activating windows in multiwindow mode

2011-09-04 Thread Oliver Schmidt
It's me again ;-)

On 9/3/2011 9:01 PM, Jon TURNEY wrote:
 As discussed in the thread [2] various scenarios, e.g. AOT windows,
 native windows interleaved with X windows in the native Z order, Windows
 with focus-follows-mouse enabled via TweakUI all need testing after
 trying to fix this, to ensure you haven't regressed them.
 
 [2] http://sourceware.org/ml/cygwin-xfree/2004-03/msg00540.html

I'm not sure if I'm correctly reproducing the above usage scenario
always on top, but I did the following under Windows 7 and XP:

1) downloaded and installed http://www.abstractpath.com/powermenu/
2) launched a xclock or a native Windows program (e.g. Internet
Explorer) and select Always on top with right mouse click on the
window's titel bar
3) programmatically launched and raised other x top level windows
4) Everything works: the checked windows stay top level, the
programmatically raised windows became top level amongst all other non
always top level windows and get keyboard focus and activated window frame.

I was also able to minimize and restore the always on top window
without any problems. Moreover the redraw windows while moving and
sizing hack
 http://www.cygwin.com/ml/cygwin-xfree/2011-08/msg00049.html
does also work with the always on top feature enabled for the
foreground and background window. Also mixtures of cygwin x server
windows with native Windows applications all with always on top
feature enabled are working.

What is not working: Clicking on minimize to tray on a cygwin x server
window that has also the always on top feature: this causes the window
frame to vanish, but the window content is still redrawn by the xserver
on the underlaying x11 window. This is difficult to describe, but this
does also not work with the official unpatched cygwin x server 1.10.3-1.
This minimize-to-tray effect for always on top windows is also
described here:
http://sourceware.org/ml/cygwin-xfree/2004-03/msg00540.html

So according to my tests the patch does not introduce new misbehaviour
regarding powermenu's always on top window feature.

I could provide a patched binary XWin.exe, if someone wants to do more
testing...

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: considering modifier keys after gaining focus

2011-08-21 Thread Oliver Schmidt
Hi Corinna,

On 8/21/2011 10:43 AM, Corinna Vinschen wrote:
 However one problem is unsolved: if the key combination for opening
 window B (in the above example) is an AltGr key combination, the
 GetAsyncKeyState will also report, that the Ctrl key is pressed,
 which is not true, since this is the well known Windows fake Ctrl_L
 
 So, shouldn't something along these lines do the trick:
   if (ctrl  altlang)
 ctrl = FALSE;

thanks! I tried your suggestion and now it is nearly perfect ;-)

Only remaining drawback is now, that Ctrl+AltGr key kombinations still
don't work when invoking/raising top level windows, but everything else
is now working flawless: Ctrl, Shift+Ctrl, Alt, AltGr, Shift+Alt,
Shift+AltGr etc. ;-) I think one has to live with the restriction that
Ctrl+AltrGr doesn't work under Windows (BTW it works under Linux
xserver, wheres Alt+AltGr works neither under Linux nor Windows).

Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



minimize redraw events after resizing/moving windows in multiwindow mode

2011-08-20 Thread Oliver Schmidt

Hi,

in multiwindow mode the modal moving/resizing of windows causes a lot of 
redraw events send to the X clients after the userse releases the mouse 
button. During the moving/resizing client windows are not redrawn as 
long as the mouse button is pressed. But all redraw/resizing events are 
queued and executed step after step after moving/resizing ends.


Some clients collect and combine multiple redraw or resizing events, 
other clients (e.g. xterm) simply execute each redraw or sizing event.


The enclosed patch minimizes the events for clients to only one event 
after the user releases the mouse button to end the moving/resizing. 
This improves the user experience and reduces strange screen flickerings 
especially on slow platforms.


The enclosed patch modifies winmultiwindowwndproc.c such that the 
windows events WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE are considered that 
are send from windows if the modal window resizing/moving begins or 
ends. Only after WM_EXITSIZEMOVE the redraw/resizing is executed. The 
patch is against the sources of xserver-cygwin version 1.10.3-1.


Best regards,
Oliver
diff --git a/cygwin/hw/xwin/winmultiwindowwndproc.c 
b/cygwin/hw/xwin/winmultiwindowwndproc.c
index bd84c05..5f536d0 100644
--- a/cygwin/hw/xwin/winmultiwindowwndproc.c
+++ b/cygwin/hw/xwin/winmultiwindowwndproc.c
@@ -321,6 +321,7 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
   static Bool  s_fTracking = FALSE;
   Bool needRestack = FALSE;
   LRESULT  ret;
+  static Bool   hasEnteredSizeMove = FALSE;
 
 #if CYGDEBUG
   winDebugWin32Message(winTopLevelWindowProc, hwnd, message, wParam, lParam);
@@ -871,7 +872,8 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
 
 case WM_MOVE:
   /* Adjust the X Window to the moved Windows window */
-  winAdjustXWindow (pWin, hwnd);
+  if (!hasEnteredSizeMove) winAdjustXWindow (pWin, hwnd);
+  /* else: Wait for WM_EXITSIZEMOVE */
   return 0;
 
 case WM_SHOWWINDOW:
@@ -1012,6 +1014,16 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
   */
   break; 
 
+case WM_ENTERSIZEMOVE:
+  hasEnteredSizeMove = TRUE;
+  return 0;
+
+case WM_EXITSIZEMOVE:
+  /* Adjust the X Window to the moved Windows window */
+  hasEnteredSizeMove = FALSE;
+  winAdjustXWindow (pWin, hwnd);
+  return 0;
+
 case WM_SIZE:
   /* see dix/window.c */
 #if CYGWINDOWING_DEBUG
@@ -1036,9 +1048,13 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
(int)(GetTickCount ()));
   }
 #endif
-  /* Adjust the X Window to the moved Windows window */
-  winAdjustXWindow (pWin, hwnd);
-  if (wParam == SIZE_MINIMIZED) winReorderWindowsMultiWindow();
+  if (!hasEnteredSizeMove)
+{
+  /* Adjust the X Window to the moved Windows window */
+  winAdjustXWindow (pWin, hwnd);
+  if (wParam == SIZE_MINIMIZED) winReorderWindowsMultiWindow();
+}
+/* else: wait for WM_EXITSIZEMOVE */
   return 0; /* end of WM_SIZE handler */
 
 case WM_STYLECHANGING:

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

redraw windows while resizing/moving windows in multiwindow mode

2011-08-20 Thread Oliver Schmidt

Hi,

the following patch is a quick  dirty hack to enable redrawing of 
windows while the user moves or resizes the window.


This patch should be seen as experimental proof that this can be done 
with only small changes in the source code.


The main problem with window resizing/moving under Windows is, that in 
the function invocation stack dix/Dispatch - os/WaitForSomething - 
WakeupHandler - hw/xwin/winWakeupHandler - Windows/DispatchMessage - 
hw/xwin/winTopLevelWindowProc the Windows function DispatchMessage does 
not return while the user resizes/moves a window. This function only 
returns after the user releases the mouse button. However the 
dix/Dispatch functions must be run to allow the clients to process the 
queued redraw/resizing events.


The enclosed hack simply moves the invocation of DispatchMessage in 
winWakeupHandler outside WaitForSomething into Dispatch and breaks up 
the Dispatch function into a loop and inner dispatch handling that can 
be called from the winTopLevelWindowProc while WM_SIZE/WM_MOVE events 
are processed. This could further be improved by setting a windows timer 
while resizing moving to process clients messages even if the mouse is 
not moved while resizing (and therefore WM_SIZE/WM_MOVE events are not 
send).


What do you think about this idea? One problem here is, that the dix 
package is also affected. Of course some work must be done to cleanly 
integrate this into the existing dix/hw architecture.


Best regards,
Oliver
diff --git a/cygwin/dix/dispatch.c b/cygwin/dix/dispatch.c
index 44f8087..18e9697 100644
--- a/cygwin/dix/dispatch.c
+++ b/cygwin/dix/dispatch.c
@@ -343,33 +343,27 @@ DisableLimitedSchedulingLatency(void)
 
 #define MAJOROP ((xReq *)client-requestBuffer)-reqType
 
-void
-Dispatch(void)
-{
-int*clientReady; /* array of request ready clients */
-intresult;
-ClientPtr  client;
-intnready;
-HWEventQueuePtr* icheck = checkForInput;
-long   start_tick;
+static int*clientReady; /* array of request ready clients */
+static int result;
+static ClientPtr   client;
+static int nready;
+static HWEventQueuePtr* icheck = checkForInput;
+static longstart_tick;
 
-nextFreeClientID = 1;
-nClients = 0;
-
-clientReady = malloc(sizeof(int) * MaxClients);
-if (!clientReady)
-   return;
-
-SmartScheduleSlice = SmartScheduleInterval;
-while (!dispatchException)
-{
+int DispatchOneStep(Bool handleWindowMessage)
+{
+int rslt = 0;
+
 if (*icheck[0] != *icheck[1])
{
ProcessInputEvents();
FlushIfCriticalOutputPending();
}
-
nready = WaitForSomething(clientReady);
+   rslt = nready;
+
+if (handleWindowMessage)
+handleNextWindowMessage();
 
if (nready  !SmartScheduleDisable)
{
@@ -460,6 +454,24 @@ Dispatch(void)
client-smart_stop_tick = SmartScheduleTime;
}
dispatchException = ~DE_PRIORITYCHANGE;
+
+return rslt;
+}
+
+void
+Dispatch(void)
+{
+nextFreeClientID = 1;
+nClients = 0;
+
+clientReady = malloc(sizeof(int) * MaxClients);
+if (!clientReady)
+   return;
+
+SmartScheduleSlice = SmartScheduleInterval;
+while (!dispatchException)
+{
+DispatchOneStep(TRUE);
 }
 
 if (ddxHooks.ddxBeforeReset)
diff --git a/cygwin/hw/xwin/winmultiwindowwndproc.c 
b/cygwin/hw/xwin/winmultiwindowwndproc.c
index bd84c05..265fdcc 100644
--- a/cygwin/hw/xwin/winmultiwindowwndproc.c
+++ b/cygwin/hw/xwin/winmultiwindowwndproc.c
@@ -321,6 +321,7 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
   static Bool  s_fTracking = FALSE;
   Bool needRestack = FALSE;
   LRESULT  ret;
+  static Bool   hasEnteredSizeMove = FALSE;
 
 #if CYGDEBUG
   winDebugWin32Message(winTopLevelWindowProc, hwnd, message, wParam, lParam);
@@ -871,7 +872,15 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
 
 case WM_MOVE:
   /* Adjust the X Window to the moved Windows window */
-  winAdjustXWindow (pWin, hwnd);
+  if (!hasEnteredSizeMove) 
+{
+  winAdjustXWindow (pWin, hwnd);
+}
+  else
+{
+  winAdjustXWindow (pWin, hwnd);
+  while (DispatchOneStep(FALSE)  0) {}
+}
   return 0;
 
 case WM_SHOWWINDOW:
@@ -1012,6 +1021,16 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
   */
   break; 
 
+case WM_ENTERSIZEMOVE:
+  hasEnteredSizeMove = TRUE;
+  return 0;
+
+case WM_EXITSIZEMOVE:
+  /* Adjust the X Window to the moved Windows window */
+  hasEnteredSizeMove = FALSE;
+  winAdjustXWindow (pWin, hwnd);
+  return 0;
+
 case WM_SIZE:
   /* see dix/window.c */
 #if CYGWINDOWING_DEBUG
@@ -1036,9 +1055,17 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
(int)(GetTickCount ()));
   }
 

Re: (X)Emacs Window Manager commands

2011-08-17 Thread Oliver Schmidt

On 8/17/2011 3:07 PM, Gulliver.M.Smith wrote:


In emacs, you can use the file menu to create a new frame (window).
(raise-frame f)
(iconify-frame f)
(decionify-frame f)
(make-frame-visible f)


at least raise-frame works with my simple patch for raising top level 
windows, see

http://www.cygwin.com/ml/cygwin-xfree/2011-08/msg00034.html

 EWMH and ICCCM standards

Of course it would be nicer to have the window manager standards to be 
fulfilled by the cygwin multiwindow mode, which would be reacting on 
client messages with atom _NET_ACTIVE_WINDOW for raising windows.


By the way: Unfortunately the xemaces from current cygwin distribution 
(21.4.22-1) seems broken and is not able to create other windows (e.g. 
when using the menu entry File/Open In New Frame. (This has nothing to 
do with the cygwin xserver, the cygwin xemacs does also not work with 
other xservers). However I was able to reproduce your steps using a 
linux xemacs with the cygwin xserver


Best regards,
Oliver

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



considering modifier keys after gaining focus

2011-08-16 Thread Oliver Schmidt

Hi,

I had the problem, that the state of the modifier keys was lost when a 
window is created (or raised).


Example: in window A Ctrl + some key opens a window B, then in window B 
Ctrl + some other key triggers the next action. However after the 
opening of window B the Ctrl key has to be released and pressed again. 
If the user keeps the Ctrl key holding when the window B is opened, the 
next key press X will be interpreted as X and not as Ctrl+X.


I send a patch to fix this problem with this email: I just extended the 
function winRestoreModeKeyStates in winkeybd.c to consider not only the 
mode switch key but also the modifiers Ctrl, Shift, Alt/AltGr by using 
the Windows function GetAsyncKeyState.


This patch works fine for me.

However one problem is unsolved: if the key combination for opening 
window B (in the above example) is an AltGr key combination, the 
GetAsyncKeyState will also report, that the Ctrl key is pressed, which 
is not true, since this is the well known Windows fake Ctrl_L :-(


Any suggestions how to solve this?

Best regards,
Oliver
diff --git a/cygwin/hw/xwin/winkeybd.c b/cygwin/hw/xwin/winkeybd.c
index 9e5a9b0..e807fc5 100644
--- a/cygwin/hw/xwin/winkeybd.c
+++ b/cygwin/hw/xwin/winkeybd.c
@@ -255,6 +255,7 @@ void
 winRestoreModeKeyStates (void)
 {
   DWORDdwKeyState;
+  BOOL modifierPressed;
   BOOL processEvents = TRUE;
   unsigned short   internalKeyStates;
 
@@ -282,6 +283,34 @@ winRestoreModeKeyStates (void)
* have a logical XOR operator, so we use a macro instead.
*/
 
+  modifierPressed = (GetAsyncKeyState (VK_CONTROL)  0);
+  if (WIN_XOR (internalKeyStates  ControlMask, modifierPressed))
+{
+  if (modifierPressed) winSendKeyEvent (KEY_LCtrl, TRUE);
+  else winSendKeyEvent (KEY_LCtrl, FALSE);
+}
+
+  modifierPressed = (GetAsyncKeyState (VK_SHIFT)  0);
+  if (WIN_XOR (internalKeyStates  ShiftMask, modifierPressed))
+{
+  if (modifierPressed) winSendKeyEvent (KEY_ShiftL, TRUE);
+  else winSendKeyEvent (KEY_ShiftL, FALSE);
+}
+
+  modifierPressed = (GetAsyncKeyState (VK_LMENU)  0);
+  if (WIN_XOR (internalKeyStates  Mod1Mask, modifierPressed))
+{
+  if (modifierPressed) winSendKeyEvent (KEY_Alt, TRUE);
+  else winSendKeyEvent (KEY_Alt, FALSE);
+}
+
+  modifierPressed = (GetAsyncKeyState (VK_RMENU)  0);
+  if (WIN_XOR (internalKeyStates  Mod5Mask, modifierPressed))
+{
+  if (modifierPressed) winSendKeyEvent (KEY_AltLang, TRUE);
+  else winSendKeyEvent (KEY_AltLang, FALSE);
+}
+
   /* Has the key state changed? */
   dwKeyState = GetKeyState (VK_NUMLOCK)  0x0001;
   if (WIN_XOR (internalKeyStates  NumLockMask, dwKeyState))

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

Re: AltGr key mostly fires an additional CONTROL key

2011-08-15 Thread Oliver Schmidt
Hi,

I also had problems with the AltGr key. These could reliably 
be reproduced by holding the AltGr for some seconds (causing 
Windows generating auto repeat events).

Unfortunately the test version at 

  ftp://cygwin.com/pub/cygwinx/XWin.20110801-git-2d9f9305cb559907.exe.bz2

doesn't fix this problem for me.

I discovered that the mechanism in winkeybd.c function
winIsFakeCtrl_L had a problem if PeekMessage cannot obtain 
the next Alt_R message because it is not there.

I prepared a patch that remembers the last Ctrl_L event and 
reacts on a later following Alt_R. It was also necessary to 
alter the order in winWindowProc in winwndproc.c: the invocation 
of winIsFakeCtrl_L had to be done before discarding auto-repeated
key presses.

The attached patch is against the sources of xserver-cygwin-1.10.3-1.

Best regards,
Oliver
diff --git a/hw/xwin/winkeybd.c b/hw/xwin/winkeybd.c
index e807fc5..460c9d6 100644
--- a/hw/xwin/winkeybd.c
+++ b/hw/xwin/winkeybd.c
@@ -356,6 +356,12 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
   MSG  msgNext;
   LONG lTime;
   Bool fReturn;
+  
+  static Bool   hasLastControlL = FALSE;
+  static UINT   lastMessage;
+  static WPARAM lastWparam;
+  static LPARAM lastLparam;
+  static LONG   lastTime;
 
   /*
* Fake Ctrl_L presses will be followed by an Alt_R keypress
@@ -389,9 +395,22 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
 WM_KEYDOWN, WM_SYSKEYDOWN,
 PM_NOREMOVE);
}
-  if (msgNext.message != WM_KEYDOWN  msgNext.message != WM_SYSKEYDOWN)
+  if (fReturn  msgNext.message != WM_KEYDOWN  msgNext.message != 
WM_SYSKEYDOWN)
   fReturn = 0;
 
+  if (!fReturn)
+{
+  hasLastControlL = TRUE;
+  lastMessage = message;
+  lastWparam  = wParam;
+  lastLparam  = lParam;
+  lastTime= lTime;
+} 
+  else
+{
+  hasLastControlL = FALSE;
+}
+
   /* Is next press an Alt_R with the same timestamp? */
   if (fReturn  msgNext.wParam == VK_MENU
   msgNext.time == lTime
@@ -406,11 +425,33 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
}
 }
 
+  /*
+   * Check for Alt_R keypress, that was not ready when the
+   * last Ctrl_L appeared.
+   */
+  else if ((message == WM_KEYDOWN || message == WM_SYSKEYDOWN)
+   wParam == VK_MENU
+   (HIWORD (lParam)  KF_EXTENDED))
+{
+  if (hasLastControlL)
+{
+  lTime = GetMessageTime ();
+  
+  if ((lastMessage == WM_KEYDOWN || lastMessage == WM_SYSKEYDOWN)
+   lastTime == lTime)
+{
+/* take back the fake ctrl_L key */
+winSendKeyEvent (KEY_LCtrl, FALSE);
+}
+  hasLastControlL = FALSE;
+}
+}
+
   /* 
* Fake Ctrl_L releases will be followed by an Alt_R release
* with the same timestamp as the Ctrl_L release.
*/
-  if ((message == WM_KEYUP || message == WM_SYSKEYUP)
+  else if ((message == WM_KEYUP || message == WM_SYSKEYUP)
wParam == VK_CONTROL
(HIWORD (lParam)  KF_EXTENDED) == 0)
 {
@@ -439,9 +480,11 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
 PM_NOREMOVE);
}
 
-  if (msgNext.message != WM_KEYUP  msgNext.message != WM_SYSKEYUP)
+  if (fReturn  msgNext.message != WM_KEYUP  msgNext.message != 
WM_SYSKEYUP)
   fReturn = 0;
   
+hasLastControlL = FALSE;
+
   /* Is next press an Alt_R with the same timestamp? */
   if (fReturn
   (msgNext.message == WM_KEYUP
@@ -458,6 +501,10 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM 
lParam)
  return TRUE;
}
 }
+  else
+{
+  hasLastControlL = FALSE;
+}
   
   /* Not a fake control left press/release */
   return FALSE;
diff --git a/hw/xwin/winwndproc.c b/hw/xwin/winwndproc.c
index 316cf08..7de5a5d 100644
--- a/hw/xwin/winwndproc.c
+++ b/hw/xwin/winwndproc.c
@@ -1060,6 +1060,10 @@ winWindowProc (HWND hwnd, UINT message,
   if ((wParam == VK_LWIN || wParam == VK_RWIN)  !g_fKeyboardHookLL)
break;
 
+  /* Discard fake Ctrl_L presses that precede AltGR on non-US keyboards */
+  if (winIsFakeCtrl_L (message, wParam, lParam))
+   return 0;
+  
   /* 
* Discard presses generated from Windows auto-repeat
*/
@@ -1080,10 +1084,6 @@ winWindowProc (HWND hwnd, UINT message,
 }
   } 
   
-  /* Discard fake Ctrl_L presses that precede AltGR on non-US keyboards */
-  if (winIsFakeCtrl_L (message, wParam, lParam))
-   return 0;
-  
   /* Translate Windows key code to X scan code */
   winTranslateKey (wParam, lParam, iScanCode);
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation:

Re: Weird Problem: Template Shows Templatevariable's Name Instead Of It's Value

2011-08-14 Thread Oliver Schmidt

Thank you very much!! I know my code needs to be tidied up xD. I'vd tried many 
things to solve the problem that's why my code looks so awful. And I'm glad 
there is an easy solution for my problem (and I didn't saw it *wall*)

And @bruno desthuilliers: It's good for a newbie like me to see how others 
would solve the problem. I will look if there is something I can do better.


Django has such a grea community. Thanks to everyone!


On So., 14. Aug. 2011 22:51:13 CEST, Jonas H.  wrote:

> On 08/14/2011 09:57 PM, bruno desthuilliers wrote:
> > > {% for current, entry, month, n in months %}
> > 
> > Please think about what "months" is here... Yes, a list of dicts. So
> > this line is the equivalent of:
> > 
> > current = months[0] # first dict in the list
> > entry = months[1]       # second dict in the list
> > month = months[2]   # etc
> > n = months[3]
> 
> It is not. If you define multiple loop variables, Python will unpack 
> every item in the sequence into those variables -- so this code
> 
>           for a, b in [...]:
>                   ...
> 
> is equivalent to
> 
>           for item in [...]:
>                   a, b = item
>                   ...
> 
> or
> 
>           for item in [...]:
>                   a = item[0]
>                   b = item[0]
>                   ...
> 
> So what happens if your sequence is [{'foo': 1, 'bar': 2}]? The dict 
> gets unpacked into the loop variables:
> 
>           for item in [{'foo': 1, 'bar': 2}]:
>                   a, b = item
> 
> And what happens if you loop over a dict? You get a sequence of keys. 
> That's why in the OPs output, those keys will show up in the output.
> 
> @Schmidtchen: Use mlist.append([n+1, month, entry, current]) instead of 
> a dict and you're done -- that also solves the ordering issue.
> 
> And Bruno, Schmidtchen's code might really need some cleanup but that's 
> beyond the scope of this thread: You might have noticed that your 
> comments did *not help* the OP fixing his issues *at all*.
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group. To post to this group, send email to
> django-users@googlegroups.com. To unsubscribe from this group, send
> email to django-users+unsubscr...@googlegroups.com. For more options,
> visit this group at http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



XRaiseWindow for activating windows in multiwindow mode

2011-08-13 Thread Oliver Schmidt
Hi,

as reported in 

  http://www.cygwin.com/ml/cygwin-xfree/2005-06/msg00072.html

windows are not raised from the Cygwin X Server in multiwindow
mode, if a program wants to programmatically activate a window.

I played around and figured out that the problem can be solved by 
invoking the windows function SetForegroundWindow if a top level 
window is to be restacked and has no previous sibling.

I enclose the patch in this email. It works fine for me, but 
I'm not sure if it has any side effects for other configurations 
or usage patterns.

It would be nice if this feature could be integrated into future
versions of the Cygwin X Server.

Best regards,
Oliver


diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c
index 956a9a5..22390b3 100644
--- a/hw/xwin/winmultiwindowwindow.c
+++ b/hw/xwin/winmultiwindowwindow.c
@@ -465,6 +465,7 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr 
pOldNextSib)
   HWND hInsertAfter;
   HWND  hWnd = NULL;
 #endif
+  static Bool fRestacking = FALSE; /* Avoid recusive calls to this function */
   ScreenPtrpScreen = pWin-drawable.pScreen;
   winScreenPriv(pScreen);
 
@@ -472,10 +473,27 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr 
pOldNextSib)
   winTrace (winRestackMultiWindow - %08x\n, pWin);
 #endif
   
+  if (fRestacking)
+{
+  /* It is a recusive call so immediately exit */
+#if CYGWINDOWING_DEBUG
+  ErrorF (winRestackWindowMultiWindow - 
+ exit because fRestacking == TRUE\n);
+#endif
+  return;
+}
+  fRestacking = TRUE;
+
WIN_UNWRAP(RestackWindow);
if (pScreen-RestackWindow) 
  (*pScreen-RestackWindow)(pWin, pOldNextSib);
WIN_WRAP(RestackWindow, winRestackWindowMultiWindow);
+
+  if (isToplevelWindow(pWin)  pWin-prevSib == NULL)
+{
+  winWindowPriv(pWin);
+  SetForegroundWindow(pWinPriv-hWnd);
+}
   
 #if 1
   /*
@@ -538,6 +556,8 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr 
pOldNextSib)
0, 0,
uFlags);
 #endif
+
+  fRestacking = FALSE;
 }
 
 static void
diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c
index 956a9a5..22390b3 100644
--- a/hw/xwin/winmultiwindowwindow.c
+++ b/hw/xwin/winmultiwindowwindow.c
@@ -465,6 +465,7 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr 
pOldNextSib)
   HWND hInsertAfter;
   HWND  hWnd = NULL;
 #endif
+  static Bool fRestacking = FALSE; /* Avoid recusive calls to this function */
   ScreenPtrpScreen = pWin-drawable.pScreen;
   winScreenPriv(pScreen);
 
@@ -472,10 +473,27 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr 
pOldNextSib)
   winTrace (winRestackMultiWindow - %08x\n, pWin);
 #endif
   
+  if (fRestacking)
+{
+  /* It is a recusive call so immediately exit */
+#if CYGWINDOWING_DEBUG
+  ErrorF (winRestackWindowMultiWindow - 
+ exit because fRestacking == TRUE\n);
+#endif
+  return;
+}
+  fRestacking = TRUE;
+
WIN_UNWRAP(RestackWindow);
if (pScreen-RestackWindow) 
  (*pScreen-RestackWindow)(pWin, pOldNextSib);
WIN_WRAP(RestackWindow, winRestackWindowMultiWindow);
+
+  if (isToplevelWindow(pWin)  pWin-prevSib == NULL)
+{
+  winWindowPriv(pWin);
+  SetForegroundWindow(pWinPriv-hWnd);
+}
   
 #if 1
   /*
@@ -538,6 +556,8 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr 
pOldNextSib)
0, 0,
uFlags);
 #endif
+
+  fRestacking = FALSE;
 }
 
 static void

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

Problem with relationships in models

2011-07-21 Thread Oliver Schmidt
I'm trying to write my first django app, so maybe my problem is stupid. 
But I have problems in using relationships in my models.

My models.py looks like this:

   # -*- coding: utf-8 -*-
   from django.db import models
   from django.contrib.auth.models import User
   import datetime

   class Kalender(models.Model):
name = models.CharField("Kalendername", max_length=100)
description = models.TextField("Beschreibung")

class Meta:
verbose_name_plural = "Kalender"

   class Termin(models.Model):
in_calendar = models.ForeignKey(Kalender)
name = models.CharField("Terminname", max_length=100)
date = models.DateTimeField("Datum und Uhrzeit")
description = models.TextField("Beschreibung")

def is_today(self):
return self.date.date() == datetime.date.today()

is_today.short_description = "Termin findet heute statt?"

participants = models.ManyToManyField(User)

class Meta:
verbose_name_plural = "Termine"



Syncdb creates the tables without errors.
Next I configured the admin to include both classes:

   from kalender.models import *
   from django.contrib import admin

   admin.site.register(Kalender)
   admin.site.register(Termin)


The admin-interface for the class Kalender works fine, but Termin 
produces errors:



 OperationalError at /admin/kalender/termin/

(1054, "Unknown column 'kalender_termin.in_calendar_id' in 'field list'")

Traceback:

Environment:


Request Method: GET
Request URL:http://127.0.0.1:8000/admin/kalender/termin/

Django Version: 1.3
Python Version: 2.7.0
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'chor.poll',
 'chor.kalender',
 'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in 
get_response
  111. response = callback(request, *callback_args, 
**callback_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py" 
in wrapper
  307. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in 
_wrapped_view
  93. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" 
in _wrapped_view_func
  79. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in 
inner
  197. return view(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in 
_wrapper
  28. return bound_func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in 
_wrapped_view
  93. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in 
bound_func
  24. return func(self, *args2, **kwargs2)
File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/options.py" 
in changelist_view
  1159. 'selection_note': _('0 of %(cnt)s selected') % {'cnt': 
len(cl.result_list)},
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in 
__len__
  82. self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in 
iterator
  273. for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" 
in results_iter
  680. for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" 
in execute_sql
  735. cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py" in 
execute
  34. return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py" 
in execute
  86. return self.cursor.execute(query, args)
File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py" in execute
  174. self.errorhandler(self, exc, value)
File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py" in 
defaulterrorhandler
  36. raise errorclass, errorvalue

Exception Type: OperationalError at /admin/kalender/termin/
Exception Value: (1054, "Unknown column 'kalender_termin.in_calendar_id' in 'field 
list'")



_*So what the hell am I doing wrong?
*_/Thanks for help/

--
You received 

Re: [ApacheDS] Associating a user with a role.

2011-07-21 Thread Oliver Schmidt
Hi Manoel,

doesn't this depend on the ObjectClass(es) you use for your roles and
users? 

E.g. if you'd be using posixAccount and posixGroup, then the correct
relation would be set with the attribute memberUid in your
posixAccount. 

For other ObjectClasses, like organizationalRole and
organizationalPerson for example, you would set the attribute
roleOccupant in your organizationalRole.

Cheers
Oliver

Am Donnerstag, den 21.07.2011, 01:53 + schrieb Manoel Matos:
 Hello All,
 
 I've been using Apache Directory LDAP API to add some entries in my LDAP 
 server.
 
 How can I relate users with roles using the API?
 I assume it's another entry somewhere but I could figure out where exactly...
 
 Thank you guys.
 
 Manoel Matos
 Java Software Developer
 
 
 CAUTION:  This email message and any attachments contain information that may 
 be confidential and may be LEGALLY PRIVILEGED. If you are not the intended 
 recipient, any use, disclosure or copying of this message or attachments is 
 strictly prohibited. If you have received this email message in error please 
 notify us immediately and erase all copies of the message and attachments. 
 Thank you.
 




[Community] How do I actually begin to contribute?

2011-06-29 Thread Oliver Schmidt
Hi,

I know that there's some information on how to contribute on the web
site but how do I actually start contributing? I mean, whom do I ask if
I wanted to write some documentation?

Cheers
Oliver



Re: [Community] How do I actually begin to contribute?

2011-06-29 Thread Oliver Schmidt
Thanks Stefan and Kiran,

thanks for your answers. I thought I might start with some user
documentation for setting up ApacheDS server. I'm very interested in
this project and try to use every feature of ApacheDS. So I'm gathering
information from various sources and maybe could write for the manuals
from a user's perspective (instead of starting just another tech
blog ;-).

What do you think?


Am Donnerstag, den 30.06.2011, 01:25 +0530 schrieb Kiran Ayyagari:
 Hi Oliver,
   good to hear that you want to contribute, feel free to post your ideas
 in this list.
 
   P.S:- you can mail me directy if you have any specific queries, just in
 case
 
 On 29-Jun-2011 11:03 PM, Oliver Schmidt oliver.schmidt@arcor.de
 wrote:
 
 Hi,
 
 I know that there's some information on how to contribute on the web
 site but how do I actually start contributing? I mean, whom do I ask if
 I wanted to write some documentation?
 
 Cheers
 Oliver




Re: [vdr] vdr bug with InitialChannel?

2011-06-06 Thread Peer Oliver Schmidt
On 06/02/2011 07:05 PM, Lars Bläser wrote:
[..]
 if you choose to have a special starting channel and insert or delete a
 channel before that channel its not the right channel anymore when
 starting vdr the next time
 
 reason is that only the number of the channel in the channels.conf is
 saved to setup.conf (InitialChannel =)

good idea. atm I am circumventing the bug by setting up a special
program group in the channels.conf with a very high starting number
(10.000).
-- 
Best regards

Peer Oliver Schmidt
the internet company
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: Command line power from directory studio

2011-04-29 Thread Oliver Schmidt
Hi Manish,

 Directory Studio is a awesome tool which makes your work easier. I want to 
 know if i can use ldap commands on directory studio's console or is there 
 any way of doing it instead of using the GUI since sometimes using the 
 command line saves your effort and time and speed up your work,

have you tried ldapadd, ldapmodify, ldapsearch, ldappasswd, etc.? They
should also work with ApacheDS.

Cheers
Oliver



Re: Can't create partition

2011-04-19 Thread Oliver Schmidt
Hi Oleg,
which tool do you use to access your ApacheDS? 

What does the log file say? On Linux, there are two log files. The more
detailed one should be where the binaries are (C:\Program Files\
maybe...).

Oliver

Am Montag, den 18.04.2011, 15:01 -0400 schrieb Oleg Konovalov:
 Hi,
 
  
 
 I am completely new to LDAP and ApacheDS,
 
 so if I am asking something silly, please bare with me.
 
  
 
 I am trying to create Single Sign-on layer for few web apps using
 Spring Security3, CAS, ApacheDS 
 
 as per “Spring Security 3” book, ch.10.
 
 (had many problems, latest – with CAS, but that is besides the scope
 here).
 
  
 
 I changed configuration to use external ApacheDS on localhost,
 
 Installed ApacheDS 1.5.7  Studio 1.5.3
 
 Tried to import sample LDIF file and on first node got an exception:
 
  
 
 Error while importing LDIF
 
 - [LDAP: error code 32 - NO_SUCH_OBJECT: failed for Add Request
 
javax.naming.NameNotFoundException: [LDAP: error code 32 -
 
 NO_SUCH_OBJECT: failed for
 
 Add Request : ClientEntry
 
  dn: dc=jbcppets,dc=com
 
  objectClass: extensibleObject
 
  objectClass: domain
 
  objectClass: top
 
  dc: jbcppets
 
 : ERR_268 Cannot find a partition for dc=jbcppets,dc=com]; 
 
 remaining name 'dc=jbcppets,dc=com'
 
  at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
 
  at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
 Source)
 
  at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
 Source)
 
  at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown
 Source)
 
  
 
 Googled up a few interesting replies to that problem, most said that
 need to create Partition first with 'dc=jbcppets,dc=com'
 
  
 
 So I tried many times to add segments like that to server.xml
  partitions  section, 
 
 Following:
 http://directory.apache.org/apacheds/1.5/143-adding-your-own-partition-resp-suffix.html
 
 Restart server, but still do NOT get new namingContexts in Root DSE.
 
  
 
 jdbmPartition id=sevenSeas suffix=o=sevenSeas / 
 
   
 
   jdbmPartition id=jbcppets cacheSize=100
 suffix=dc=jbcppets,dc=com optimizerEnabled=true
 
 syncOnWrite=true
 
 indexedAttributes 
 
 jdbmIndex attributeId=dc cacheSize=100/
 
 jdbmIndex attributeId=ou
 cacheSize=100/
 
 jdbmIndex
 attributeId=krb5PrincipalName cacheSize=100/
 
 jdbmIndex attributeId=uid
 cacheSize=100/
 
   jdbmIndex attributeId=objectClass cacheSize=100/
 
 /indexedAttributes
 
   /jdbmPartition
 
 
 
   jdbmPartition id=jbcppets cacheSize=100
 suffix=dc=jbcppets,dc=com optimizerEnabled=true
  syncOnWrite=true/
 
  
 
  
 
 Interestingly, although originally for  dc=example,dc=com  there was a
 namingContexts in right panel, 
 
 there was no entry in RootDSE (as per picture in documentation above),
 
 well I added NewContextEntry, so now looks like in the doc.
 
  
 
 Also tried to rename existing dc=example,dc=com   into example2:
   dc=example2,dc=com  there, restarted server,
 
 but it still shows  dc=example,dc=com  ,  not example2.
 
 Is it cached ?
 
  
 
 Cleared IE cache.  Using Win XP.  No difference, still same problem.
 
  
 
 Am I doing something wrong ?
 
  
 
  
 
 Please help !
 
  
 
 (I am attaching my full server.xml.)
 
 TIA,
 
 Oleg.
 
  
 
  
 
 
 
 __
 
 Please consider the environment before printing this email.
 
 Visit our website at http://www.nyse.com 
 * 
 Note: The information contained in this message and any attachment to
 it is privileged, confidential and protected from disclosure. If the
 reader of this message is not the intended recipient, or an employee
 or agent responsible for delivering this message to the intended
 recipient, you are hereby notified that any dissemination,
 distribution or copying of this communication is strictly prohibited.
 If you have received this communication in error, please notify the
 sender immediately by replying to the message, and please delete it
 from your system. Thank you. NYSE Euronext.
 




RE: Can't create partition

2011-04-19 Thread Oliver Schmidt
 or removed any ldif files.
 
 I guess, need to wipe out old one and install it for fresh.
 
 What do you think ?
 
 TIA,
 Oleg.
 
 
 
 
 -Original Message-
 From: Oliver Schmidt [mailto:oliver.schmidt@arcor.de] 
 Sent: Tuesday, April 19, 2011 9:35 AM
 To: users@directory.apache.org
 Subject: Re: Can't create partition
 
 Hi Oleg,
 which tool do you use to access your ApacheDS? 
 
 What does the log file say? On Linux, there are two log files. The more
 detailed one should be where the binaries are (C:\Program Files\
 maybe...).
 
 Oliver
 
 Am Montag, den 18.04.2011, 15:01 -0400 schrieb Oleg Konovalov:
  Hi,
  
   
  
  I am completely new to LDAP and ApacheDS,
  
  so if I am asking something silly, please bare with me.
  
   
  
  I am trying to create Single Sign-on layer for few web apps using
  Spring Security3, CAS, ApacheDS 
  
  as per “Spring Security 3” book, ch.10.
  
  (had many problems, latest – with CAS, but that is besides the scope
  here).
  
   
  
  I changed configuration to use external ApacheDS on localhost,
  
  Installed ApacheDS 1.5.7  Studio 1.5.3
  
  Tried to import sample LDIF file and on first node got an exception:
  
   
  
  Error while importing LDIF
  
  - [LDAP: error code 32 - NO_SUCH_OBJECT: failed for Add Request
  
 javax.naming.NameNotFoundException: [LDAP: error code 32 -
  
  NO_SUCH_OBJECT: failed for
  
  Add Request : ClientEntry
  
   dn: dc=jbcppets,dc=com
  
   objectClass: extensibleObject
  
   objectClass: domain
  
   objectClass: top
  
   dc: jbcppets
  
  : ERR_268 Cannot find a partition for dc=jbcppets,dc=com]; 
  
  remaining name 'dc=jbcppets,dc=com'
  
   at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
  
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
  Source)
  
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
  Source)
  
   at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown
  Source)
  
   
  
  Googled up a few interesting replies to that problem, most said that
  need to create Partition first with 'dc=jbcppets,dc=com'
  
   
  
  So I tried many times to add segments like that to server.xml
   partitions  section, 
  
  Following:
  http://directory.apache.org/apacheds/1.5/143-adding-your-own-partition-resp-suffix.html
  
  Restart server, but still do NOT get new namingContexts in Root DSE.
  
   
  
  jdbmPartition id=sevenSeas suffix=o=sevenSeas / 
  

  
jdbmPartition id=jbcppets cacheSize=100
  suffix=dc=jbcppets,dc=com optimizerEnabled=true
  
  syncOnWrite=true
  
  indexedAttributes 
  
  jdbmIndex attributeId=dc cacheSize=100/
  
  jdbmIndex attributeId=ou
  cacheSize=100/
  
  jdbmIndex
  attributeId=krb5PrincipalName cacheSize=100/
  
  jdbmIndex attributeId=uid
  cacheSize=100/
  
jdbmIndex attributeId=objectClass cacheSize=100/
  
  /indexedAttributes
  
/jdbmPartition
  
  
  
jdbmPartition id=jbcppets cacheSize=100
  suffix=dc=jbcppets,dc=com optimizerEnabled=true
   syncOnWrite=true/
  
   
  
   
  
  Interestingly, although originally for  dc=example,dc=com  there was a
  namingContexts in right panel, 
  
  there was no entry in RootDSE (as per picture in documentation above),
  
  well I added NewContextEntry, so now looks like in the doc.
  
   
  
  Also tried to rename existing dc=example,dc=com   into example2:
dc=example2,dc=com  there, restarted server,
  
  but it still shows  dc=example,dc=com  ,  not example2.
  
  Is it cached ?
  
   
  
  Cleared IE cache.  Using Win XP.  No difference, still same problem.
  
   
  
  Am I doing something wrong ?
  
   
  
   
  
  Please help !
  
   
  
  (I am attaching my full server.xml.)
  
  TIA,
  
  Oleg.
  
   
  
   
  
  
  
  __
  
  Please consider the environment before printing this email.
  
  Visit our website at http://www.nyse.com 
  *
   
  Note: The information contained in this message and any attachment to
  it is privileged, confidential and protected from disclosure. If the
  reader of this message is not the intended recipient, or an employee
  or agent responsible for delivering this message to the intended
  recipient, you are hereby notified that any dissemination,
  distribution or copying of this communication is strictly prohibited.
  If you have received this communication in error, please notify the
  sender immediately by replying to the message, and please delete it
  from your system. Thank you. NYSE Euronext.
  
 
 
 Please consider the environment before printing this email.
 
 Visit our website at http://www.nyse.com

Re: [Wikitech-l] alternative way to get wikipedia dump while server is down

2010-11-26 Thread Oliver Schmidt
Thank you Emijrp,

That sounds great!
If the admins agree, how can I access the toolserver?

Shall I request an account to access the toolserver as stated here:
https://wiki.toolserver.org/view/Account_approval_process

or shall I wait until the admins agree?

Regards,
Olli


From: wikitech-l-boun...@lists.wikimedia.org 
[wikitech-l-boun...@lists.wikimedia.org] on behalf of emijrp [emi...@gmail.com]
Sent: 26 November 2010 12:51
To: Wikimedia developers
Cc: toolserve...@lists.wikimedia.org
Subject: Re: [Wikitech-l] alternative way to get wikipedia dump while server is 
down

Crossposting.

This dump is in /mnt/user-store/dump or dumps, on Toolserver. If the admins
don't see any problem, it may be put available for download (~30GB).

Regards,
emijrp

2010/11/25 Oliver Schmidt schmidt...@email.ulster.ac.uk

 Hello alltogether,

 is there any alternative way to get hands on a wikipedia dump?
 Preferably the last complete one.
 Which was supposed to be found at this address:
 http://download.wikimedia.org/enwiki/20100130/

 I would need that dump asap for my research.
 Thank you for any help!

 Best regards


 —

 Oliver Schmidt
 PhD student
 Nano Systems Biology Research Group

 University of Ulster, School of Biomedical Sciences
 Cromore Road, Coleraine BT52 1SA, Northern Ireland

 T: +44 / (0)28 / 7032 3367
 F: +44 / (0)28 / 7032 4375
 E: schmidt...@email.ulster.ac.ukmailto:schmidt...@email.ulster.ac.uk

 —

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] [Toolserver-l] alternative way to get wikipedia dump while server is down

2010-11-26 Thread Oliver Schmidt
I really don't want to bug you people but I'd like to prepare everything to get 
the dump.
Is it necessary that I request an account to access the toolserver?

Sorry for my unqualified question.

Thanks for any help

Olli


From: wikitech-l-boun...@lists.wikimedia.org 
[wikitech-l-boun...@lists.wikimedia.org] on behalf of Roan Kattouw 
[roan.katt...@gmail.com]
Sent: 26 November 2010 15:12
To: Wikimedia developers
Cc: toolserve...@lists.wikimedia.org
Subject: Re: [Wikitech-l] [Toolserver-l] alternative way to get wikipedia dump 
while server is down

2010/11/26 Bryan Tong Minh bryan.tongm...@gmail.com:
 Somehow I think that publishing an entire dump violates the do not
 publish significant parts of an article rule.

Surely the toolserver admins could be asked to consider waiving that
in this case considering the public nature of the dumps and the
downtime situation with download.wm.o

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Wikitech-l] alternative way to get wikipedia dump while server is down

2010-11-25 Thread Oliver Schmidt
Hello alltogether,

is there any alternative way to get hands on a wikipedia dump?
Preferably the last complete one.
Which was supposed to be found at this address:
http://download.wikimedia.org/enwiki/20100130/

I would need that dump asap for my research.
Thank you for any help!

Best regards


—

Oliver Schmidt
PhD student
Nano Systems Biology Research Group

University of Ulster, School of Biomedical Sciences
Cromore Road, Coleraine BT52 1SA, Northern Ireland

T: +44 / (0)28 / 7032 3367
F: +44 / (0)28 / 7032 4375
E: schmidt...@email.ulster.ac.ukmailto:schmidt...@email.ulster.ac.uk

—

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Shorewall-users] REDIRECT/DNAT ipset-support in ORIGINAL DEST

2010-07-02 Thread Oliver Schmidt
Hi everyone,

just a little question: are there any plans on inventing support for
ipset matching for the original destination while using DNAT/REDIRECT in
the rules-file?

We need this function very urgent, as we want to blacklist and redirect
our users to a blocking page if they hit an entry on the blacklist.

If there is no intention for current development, we would offer you to
implement this, but as we are not experienced with programming of
Shorewall-interna, some help with this would be nice.

Thanks and greetz from Germany,

Oliver Schmidt


-- 
Netz ArGe Jülich e.V., Heinrich-Mußmann-Straße 18, 52428 Jülich
Vorsitzende: Oliver Schmidt, Mirco Wollong
Sitz des Vereins: Amtsgerichts Düren, VR 2184, Steuernummer: 213/5752/0747
Gemeinnütziger Verein nach §51 ff. AO

http://www.netzags.de
Email:
Allgemein: i...@netzags.de
Usersupport: supp...@netzags.de
Vorstand: vorst...@netzags.de

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users


Re: [Shorewall-users] REDIRECT/DNAT ipset-support in ORIGINAL DEST

2010-07-02 Thread Oliver Schmidt
Hi Tom,

 No. Netfilter doesn't support that so Shorewall can't support it either.
   
As far as I can see, the only problem is the ctorigdst matching in the
ACCEPT rule, which of course does not support ipsets.

Putting the redirect rule in the nat-table with the set-matching active
is working - perhaps it would be possible to mark those packets that
gonna be redirected and then filter them by that mark in the appropriate
INPUT/FORWARD chains?

Thanks for the quick response,

Oliver

-- 
Netz ArGe Jülich e.V., Heinrich-Mußmann-Straße 18, 52428 Jülich
Vorsitzende: Oliver Schmidt, Mirco Wollong
Sitz des Vereins: Amtsgerichts Düren, VR 2184, Steuernummer: 213/5752/0747
Gemeinnütziger Verein nach §51 ff. AO

http://www.netzags.de
Email:
Allgemein: i...@netzags.de
Usersupport: supp...@netzags.de
Vorstand: vorst...@netzags.de


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users


[vdr] SVDR - currently playing recording - How?

2010-03-19 Thread Peer Oliver Schmidt

Hello,

we already have SVDRP CHAN to get the currently tuned channel. Would it 
be possible to get a SVDRP command to return the currently playing 
recording?


For example an extension to LSTR to mark the currently playing 
recording, or something like that?


Does that make sense to have? It would for me, to implement status 
information in our LinuxMCE installation, without the need to create a 
plugin.

--
Best regards

Peer Oliver Schmidt
the internet company
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


XMPP Kerberos 5

2009-11-30 Thread Oliver Schmidt
Hi,

I'm currently trying to setup an XMPP server with Kerberos 5  
authentication. I've been using eJabberd 2.0.5 with username/password  
authentication for a while. Now, I would like to use Kerberos in order to  
make my services more comfortable with SSO.

Unfortunately, I failed using an GSSAPI patch for eJabberd together with  
my Kerberos system. After that, I tried using Openfire, which didn't work  
out for me either. Now, that I've read about that institution-wide XMPP  
service the MIT offers, I know that XMPP _must_ work with Kerberos  
somehow. Can you tell me how you set it up and, respectively, which  
software you did use?

Thank you in advance!

Yours

O. Schmidt

Kerberos mailing list   Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos


  1   2   3   4   5   >