Re: [PD] http get/post request in pd. how to?

2022-11-27 Thread Thomas Mayer

On 25.11.22 20:04, IOhannes m zmölnig wrote:

Am 25. November 2022 17:45:21 MEZ schrieb Thomas Mayer :


Check purest_json. It is available through Deken.


If the downloads through Deken do not work (they are known to be buggy, and 
will not load on Mac OS X),


If they are known to be buggy, why don't you upload a fixed version?


I wanted to streamline the new version before releasing it. I have just 
done it.


cu Thomas
--
"Ich komme aus dem Staunen nicht heraus."
"Dann bleib halt drin, du Seppel"
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-26 Thread KHM Mail
thanks! Installation works. 

Installed this package:
304_2022-11-20_purest_json[v2.0.0-alpha](Darwin-amd64-32)(Darwin-arm64-32).dek

It’s quite some work to confirm all security warnings  (MacOS 12.5.1) … hihi

[rest] [urlparams] seem to work.


>> NOT WORKING: [oauth] [json-encode] [json-decode]


json-encode
... couldn't create
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin:
 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin,
 0x000A): symbol not found in flat namespace (_json_object_array_get_idx)
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin:
 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin,
 0x000A): symbol not found in flat namespace (_json_object_array_get_idx)

json-decode
... couldn't create
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin:
 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin,
 0x000A): symbol not found in flat namespace (_json_object_array_add)
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin:
 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin,
 0x000A): symbol not found in flat namespace (_json_object_array_add)

oauth
... couldn't create
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin:
 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin,
 0x000A): symbol not found in flat namespace (_json_object_array_add)
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin:
 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin,
 0x000A): symbol not found in flat namespace (_json_object_array_add)






__

Dr. Tobias Hartmann
Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor

exMedia - Sound

Kunsthochschule für Medien Köln /
Academy of Media Arts Cologne

Peter-Welter-Platz 2
50676 Köln

+49 (0) 221 20189 228

www.khm.de
www.exmedia.khm.de

www.hartmanntobias.de





> Am 26.11.2022 um 11:27 schrieb IOhannes m zmölnig :
> 
> Am 26. November 2022 11:06:36 MEZ schrieb KHM Mail :
>> Thank you… but I really can not find out  how to open/install .dek files 
>> with deken in pd 0.53…
>> How can I do that? 
> 
> 1. Open the deken dialog
> 2. Open the File->Install DEK file... menu
> 3. Select a .dek file
> 4. Click on "Open"
> 
> Or similar, I'm currently afk.
> 
> 
> 
> mfg.sfg.jfd
> IOhannes
> 
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-26 Thread Albert Rafetseder

Hello Tobias,

Thank you… but I really can not find out  how to open/install .dek 
files with deken in pd 0.53…

How can I do that?


Exactly as IOhannes describes it:


1. Open the deken dialog


(I.e.: in the "Help" menu, click "Find externals")


2. Open the File->Install DEK file... menu
3. Select a .dek file
4. Click on "Open"

Or similar, I'm currently afk.



Just in case, this is how it works in Pure Data 0.52.1:

1. In the "Help" menu, click "Find externals"
2. The "Find externals" window opens. Click the "More..." button in the 
bottom-right corner

3. A menu opens. Click the "Install DEK file..." button
4. A file browser opens. Choose your DEK file here.

Best regards,
  Albert.



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-26 Thread IOhannes m zmölnig
Am 26. November 2022 11:06:36 MEZ schrieb KHM Mail :
>Thank you… but I really can not find out  how to open/install .dek files with 
>deken in pd 0.53…
>How can I do that? 

1. Open the deken dialog
2. Open the File->Install DEK file... menu
3. Select a .dek file
4. Click on "Open"

Or similar, I'm currently afk.



mfg.sfg.jfd
IOhannes


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-26 Thread KHM Mail
Thank you… but I really can not find out  how to open/install .dek files with 
deken in pd 0.53…
How can I do that? 



>> they are known to be buggy, and will not load on Mac OS X

Yes, there seems a library missing: (purest_json 1.4.3)

/Users/tobias.hartmann/Documents/Pd/externals/purest_json/rest.pd_darwin: 
dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/rest.pd_darwin,
 0x000A): Library not loaded: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib'
  Referenced from: 
'/Users/tobias.hartmann/Documents/Pd/externals/purest_json/rest.pd_darwin'
  Reason: tried: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' (no such 
file), '/usr/lib/libjson-c.5.dylib' (no such file)
rest
... couldn't create

Best, Tobias



__

Dr. Tobias Hartmann
Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor

exMedia - Sound

Kunsthochschule für Medien Köln /
Academy of Media Arts Cologne

Peter-Welter-Platz 2
50676 Köln

+49 (0) 221 20189 228

www.khm.de
www.exmedia.khm.de

www.hartmanntobias.de





> Am 25.11.2022 um 20:04 schrieb IOhannes m zmölnig :
> 
> Am 25. November 2022 17:45:21 MEZ schrieb Thomas Mayer :
>>> 
>>> Check purest_json. It is available through Deken.
>> 
>> If the downloads through Deken do not work (they are known to be buggy, and 
>> will not load on Mac OS X), 
> 
> If they are known to be buggy, why don't you upload a fixed version?
> 
> 
>> 
>> .dek files are just zip files with a different extension.
>> 
>> 
> 
> With newer versions of deken ( such as shipped in Pd-0.53-0), you can 
> open/install manually downloaded .dek files.
> 
> 
> 
> mfg.sfg.jfd
> IOhannes
> 
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-25 Thread IOhannes m zmölnig
Am 25. November 2022 17:45:21 MEZ schrieb Thomas Mayer :
>>
>> Check purest_json. It is available through Deken.
>
>If the downloads through Deken do not work (they are known to be buggy, and 
>will not load on Mac OS X), 

If they are known to be buggy, why don't you upload a fixed version?


>
>.dek files are just zip files with a different extension.
>
>

With newer versions of deken ( such as shipped in Pd-0.53-0), you can 
open/install manually downloaded .dek files.



mfg.sfg.jfd
IOhannes


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-25 Thread Thomas Mayer

On 24.11.22 23:09, Roman Haefeli wrote:



On Thu, 2022-11-24 at 22:00 +0100, KHM t.hartmann wrote:

Hello List,

is there a way to make http requests (get/post) in Pd?
In max it can be done with the [dictionary] for composing the request
header/body als JSON objects, then
send it as a request with [maxurl].


Check purest_json. It is available through Deken.


If the downloads through Deken do not work (they are known to be buggy, 
and will not load on Mac OS X), try the current development snapshots:

https://cloud.residuum.org/index.php/s/380C60JAabnO7jk

.dek files are just zip files with a different extension.

Hth,
Thomas
--
"Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance."
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-25 Thread Sebastian Shader via Pd-list
 you can send/receive http requests directly in pd as 
wellhttps://github.com/chr15m/pd-ws
 personally I got 'something' by doing the following (without parsing/sending 
an http 'ok' back..): hopefully e-mail doesn't mess it up
http://localhost:2000/; method="post">


then[netreceive -b 2000]



to receive



-seb

-Original Message-
From: KHM t.hartmann 
To: pd-list@lists.iem.at
Sent: Thu, Nov 24, 2022 1:00 pm
Subject: [PD] http get/post request in pd. how to?

Hello List,
is there a way to make http requests (get/post) in Pd?In max it can be done 
with the [dictionary] for composing the request header/body als JSON objects, 
thensend it as a request with [maxurl].
Thanks for hints,Tobias
__

Dr. Tobias Hartmann
Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor
exMedia - Sound
Kunsthochschule für Medien Köln (KHM)
Academy of Media Arts Cologne
Peter-Welter-Platz 2
50676 Köln

t.hartm...@khm.de
+49 (0) 221 20189 228

www.khm.de
www.exmedia.khm.de

www.hartmanntobias.com___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] http get/post request in pd. how to?

2022-11-24 Thread Roman Haefeli



On Thu, 2022-11-24 at 22:00 +0100, KHM t.hartmann wrote:
> Hello List,
> 
> is there a way to make http requests (get/post) in Pd?
> In max it can be done with the [dictionary] for composing the request
> header/body als JSON objects, then
> send it as a request with [maxurl].

Check purest_json. It is available through Deken.

Roman



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] http get/post request in pd. how to?

2022-11-24 Thread KHM t.hartmann
Hello List,

is there a way to make http requests (get/post) in Pd?
In max it can be done with the [dictionary] for composing the request 
header/body als JSON objects, then
send it as a request with [maxurl].

Thanks for hints,
Tobias

__

Dr. Tobias Hartmann
Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor

exMedia - Sound

Kunsthochschule für Medien Köln (KHM)
Academy of Media Arts Cologne
Peter-Welter-Platz 2
50676 Köln

t.hartm...@khm.de
+49 (0) 221 20189 228

www.khm.de
www.exmedia.khm.de

www.hartmanntobias.com___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list