| 1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 2 |
DENIED
|
moderate
|
App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
} |
|
Show voter details
|
| 3 |
DENIED
|
edit
|
App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
} |
|
Show voter details
|
| 4 |
DENIED
|
moderate
|
App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
} |
|
Show voter details
|
| 5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4032
+user: App\Entity\User {#3980 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "I just came across this - [fedoramagazine.org/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/) - and I think it explains it pretty well."
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1703990370 {#4041
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4030 …}
+nested: Doctrine\ORM\PersistentCollection {#4028 …}
+votes: Doctrine\ORM\PersistentCollection {#4026 …}
+reports: Doctrine\ORM\PersistentCollection {#4024 …}
+favourites: Doctrine\ORM\PersistentCollection {#3992 …}
+notifications: Doctrine\ORM\PersistentCollection {#3996 …}
-id: 266455
-bodyTs: "'/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/)':8 'across':4 'came':3 'explain':13 'fedoramagazine.org':7 'fedoramagazine.org/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/)':6 'pretti':15 'think':11 'well':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6313627"
+editedAt: null
+createdAt: DateTimeImmutable @1703990370 {#3977
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
| 7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4032
+user: App\Entity\User {#3980 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "I just came across this - [fedoramagazine.org/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/) - and I think it explains it pretty well."
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1703990370 {#4041
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4030 …}
+nested: Doctrine\ORM\PersistentCollection {#4028 …}
+votes: Doctrine\ORM\PersistentCollection {#4026 …}
+reports: Doctrine\ORM\PersistentCollection {#4024 …}
+favourites: Doctrine\ORM\PersistentCollection {#3992 …}
+notifications: Doctrine\ORM\PersistentCollection {#3996 …}
-id: 266455
-bodyTs: "'/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/)':8 'across':4 'came':3 'explain':13 'fedoramagazine.org':7 'fedoramagazine.org/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/)':6 'pretti':15 'think':11 'well':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6313627"
+editedAt: null
+createdAt: DateTimeImmutable @1703990370 {#3977
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
| 8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4032
+user: App\Entity\User {#3980 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "I just came across this - [fedoramagazine.org/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/) - and I think it explains it pretty well."
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1703990370 {#4041
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4030 …}
+nested: Doctrine\ORM\PersistentCollection {#4028 …}
+votes: Doctrine\ORM\PersistentCollection {#4026 …}
+reports: Doctrine\ORM\PersistentCollection {#4024 …}
+favourites: Doctrine\ORM\PersistentCollection {#3992 …}
+notifications: Doctrine\ORM\PersistentCollection {#3996 …}
-id: 266455
-bodyTs: "'/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/)':8 'across':4 'came':3 'explain':13 'fedoramagazine.org':7 'fedoramagazine.org/d-bus-overview/](https://fedoramagazine.org/d-bus-overview/)':6 'pretti':15 'think':11 'well':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6313627"
+editedAt: null
+createdAt: DateTimeImmutable @1703990370 {#3977
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
| 9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4067
+user: App\Entity\User {#4051 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Dbus is a better name"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703974899 {#4073
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4068 …}
+nested: Doctrine\ORM\PersistentCollection {#4059 …}
+votes: Doctrine\ORM\PersistentCollection {#4062 …}
+reports: Doctrine\ORM\PersistentCollection {#4057 …}
+favourites: Doctrine\ORM\PersistentCollection {#4055 …}
+notifications: Doctrine\ORM\PersistentCollection {#4053 …}
-id: 265781
-bodyTs: "'better':4 'dbus':1 'name':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5959307"
+editedAt: null
+createdAt: DateTimeImmutable @1703974899 {#4074
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
| 11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4067
+user: App\Entity\User {#4051 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Dbus is a better name"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703974899 {#4073
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4068 …}
+nested: Doctrine\ORM\PersistentCollection {#4059 …}
+votes: Doctrine\ORM\PersistentCollection {#4062 …}
+reports: Doctrine\ORM\PersistentCollection {#4057 …}
+favourites: Doctrine\ORM\PersistentCollection {#4055 …}
+notifications: Doctrine\ORM\PersistentCollection {#4053 …}
-id: 265781
-bodyTs: "'better':4 'dbus':1 'name':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5959307"
+editedAt: null
+createdAt: DateTimeImmutable @1703974899 {#4074
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
| 12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4067
+user: App\Entity\User {#4051 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Dbus is a better name"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703974899 {#4073
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4068 …}
+nested: Doctrine\ORM\PersistentCollection {#4059 …}
+votes: Doctrine\ORM\PersistentCollection {#4062 …}
+reports: Doctrine\ORM\PersistentCollection {#4057 …}
+favourites: Doctrine\ORM\PersistentCollection {#4055 …}
+notifications: Doctrine\ORM\PersistentCollection {#4053 …}
-id: 265781
-bodyTs: "'better':4 'dbus':1 'name':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5959307"
+editedAt: null
+createdAt: DateTimeImmutable @1703974899 {#4074
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
| 13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
| 15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
| 16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
| 17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5210
+user: Proxies\__CG__\App\Entity\User {#5211 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5208
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5212 …}
+nested: Doctrine\ORM\PersistentCollection {#5214 …}
+votes: Doctrine\ORM\PersistentCollection {#5216 …}
+reports: Doctrine\ORM\PersistentCollection {#5218 …}
+favourites: Doctrine\ORM\PersistentCollection {#5220 …}
+notifications: Doctrine\ORM\PersistentCollection {#5222 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5209
date: 2023-12-30 10:31:02.0 +01:00
}
} |
|
Show voter details
|
| 19 |
DENIED
|
edit
|
App\Entity\EntryComment {#5210
+user: Proxies\__CG__\App\Entity\User {#5211 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5208
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5212 …}
+nested: Doctrine\ORM\PersistentCollection {#5214 …}
+votes: Doctrine\ORM\PersistentCollection {#5216 …}
+reports: Doctrine\ORM\PersistentCollection {#5218 …}
+favourites: Doctrine\ORM\PersistentCollection {#5220 …}
+notifications: Doctrine\ORM\PersistentCollection {#5222 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5209
date: 2023-12-30 10:31:02.0 +01:00
}
} |
|
Show voter details
|
| 20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5210
+user: Proxies\__CG__\App\Entity\User {#5211 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5208
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5212 …}
+nested: Doctrine\ORM\PersistentCollection {#5214 …}
+votes: Doctrine\ORM\PersistentCollection {#5216 …}
+reports: Doctrine\ORM\PersistentCollection {#5218 …}
+favourites: Doctrine\ORM\PersistentCollection {#5220 …}
+notifications: Doctrine\ORM\PersistentCollection {#5222 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5209
date: 2023-12-30 10:31:02.0 +01:00
}
} |
|
Show voter details
|
| 21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5279
+user: Proxies\__CG__\App\Entity\User {#5280 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5210
+user: Proxies\__CG__\App\Entity\User {#5211 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5208
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5212 …}
+nested: Doctrine\ORM\PersistentCollection {#5214 …}
+votes: Doctrine\ORM\PersistentCollection {#5216 …}
+reports: Doctrine\ORM\PersistentCollection {#5218 …}
+favourites: Doctrine\ORM\PersistentCollection {#5220 …}
+notifications: Doctrine\ORM\PersistentCollection {#5222 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5209
date: 2023-12-30 10:31:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "Hichard Stallman?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704168647 {#5277
date: 2024-01-02 05:10:47.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
"@vsis@feddit.cl"
]
+children: Doctrine\ORM\PersistentCollection {#5281 …}
+nested: Doctrine\ORM\PersistentCollection {#5283 …}
+votes: Doctrine\ORM\PersistentCollection {#5285 …}
+reports: Doctrine\ORM\PersistentCollection {#5287 …}
+favourites: Doctrine\ORM\PersistentCollection {#5289 …}
+notifications: Doctrine\ORM\PersistentCollection {#5291 …}
-id: 272230
-bodyTs: "'hichard':1 'stallman':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://bolha.forum/comment/859159"
+editedAt: null
+createdAt: DateTimeImmutable @1704168647 {#5278
date: 2024-01-02 05:10:47.0 +01:00
}
} |
|
Show voter details
|
| 23 |
DENIED
|
edit
|
App\Entity\EntryComment {#5279
+user: Proxies\__CG__\App\Entity\User {#5280 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5210
+user: Proxies\__CG__\App\Entity\User {#5211 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5208
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5212 …}
+nested: Doctrine\ORM\PersistentCollection {#5214 …}
+votes: Doctrine\ORM\PersistentCollection {#5216 …}
+reports: Doctrine\ORM\PersistentCollection {#5218 …}
+favourites: Doctrine\ORM\PersistentCollection {#5220 …}
+notifications: Doctrine\ORM\PersistentCollection {#5222 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5209
date: 2023-12-30 10:31:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "Hichard Stallman?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704168647 {#5277
date: 2024-01-02 05:10:47.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
"@vsis@feddit.cl"
]
+children: Doctrine\ORM\PersistentCollection {#5281 …}
+nested: Doctrine\ORM\PersistentCollection {#5283 …}
+votes: Doctrine\ORM\PersistentCollection {#5285 …}
+reports: Doctrine\ORM\PersistentCollection {#5287 …}
+favourites: Doctrine\ORM\PersistentCollection {#5289 …}
+notifications: Doctrine\ORM\PersistentCollection {#5291 …}
-id: 272230
-bodyTs: "'hichard':1 'stallman':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://bolha.forum/comment/859159"
+editedAt: null
+createdAt: DateTimeImmutable @1704168647 {#5278
date: 2024-01-02 05:10:47.0 +01:00
}
} |
|
Show voter details
|
| 24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5279
+user: Proxies\__CG__\App\Entity\User {#5280 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5210
+user: Proxies\__CG__\App\Entity\User {#5211 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4151
+user: App\Entity\User {#4164 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.\n
\n
Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1710662534 {#4146
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4152 …}
+nested: Doctrine\ORM\PersistentCollection {#4154 …}
+votes: Doctrine\ORM\PersistentCollection {#4156 …}
+reports: Doctrine\ORM\PersistentCollection {#4158 …}
+favourites: Doctrine\ORM\PersistentCollection {#4160 …}
+notifications: Doctrine\ORM\PersistentCollection {#4162 …}
-id: 264313
-bodyTs: "'2000s':20 'believ':5 'case':51 'choos':42 'cover':36 'cover-up':35 'exampl':56 'firm':4 'implement':17 'm':2 'major':9 'misunderstand':39 'need':13 'one':53 'overcompl':32 'peopl':22 're':29 'softwar':15 'technolog':44 'thing':11,33 'think':41 'understand':26 'use':50 'use-cas':49 'usual':21 'vast':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6302752"
+editedAt: null
+createdAt: DateTimeImmutable @1703926862 {#4147
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5208
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5212 …}
+nested: Doctrine\ORM\PersistentCollection {#5214 …}
+votes: Doctrine\ORM\PersistentCollection {#5216 …}
+reports: Doctrine\ORM\PersistentCollection {#5218 …}
+favourites: Doctrine\ORM\PersistentCollection {#5220 …}
+notifications: Doctrine\ORM\PersistentCollection {#5222 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5209
date: 2023-12-30 10:31:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4151}
+body: "Hichard Stallman?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704168647 {#5277
date: 2024-01-02 05:10:47.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
"@vsis@feddit.cl"
]
+children: Doctrine\ORM\PersistentCollection {#5281 …}
+nested: Doctrine\ORM\PersistentCollection {#5283 …}
+votes: Doctrine\ORM\PersistentCollection {#5285 …}
+reports: Doctrine\ORM\PersistentCollection {#5287 …}
+favourites: Doctrine\ORM\PersistentCollection {#5289 …}
+notifications: Doctrine\ORM\PersistentCollection {#5291 …}
-id: 272230
-bodyTs: "'hichard':1 'stallman':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://bolha.forum/comment/859159"
+editedAt: null
+createdAt: DateTimeImmutable @1704168647 {#5278
date: 2024-01-02 05:10:47.0 +01:00
}
} |
|
Show voter details
|
| 25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4224
+user: App\Entity\User {#4237 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What is the point of a steak when you can drink tea? Mmm…"
+lang: "en"
+isAdult: false
+favouriteCount: 9
+score: 0
+lastActive: DateTime @1703899370 {#4219
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4225 …}
+nested: Doctrine\ORM\PersistentCollection {#4227 …}
+votes: Doctrine\ORM\PersistentCollection {#4229 …}
+reports: Doctrine\ORM\PersistentCollection {#4231 …}
+favourites: Doctrine\ORM\PersistentCollection {#4233 …}
+notifications: Doctrine\ORM\PersistentCollection {#4235 …}
-id: 263717
-bodyTs: "'drink':11 'mmm':13 'point':4 'steak':7 'tea':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6299108"
+editedAt: null
+createdAt: DateTimeImmutable @1703899370 {#4220
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
| 27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4224
+user: App\Entity\User {#4237 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What is the point of a steak when you can drink tea? Mmm…"
+lang: "en"
+isAdult: false
+favouriteCount: 9
+score: 0
+lastActive: DateTime @1703899370 {#4219
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4225 …}
+nested: Doctrine\ORM\PersistentCollection {#4227 …}
+votes: Doctrine\ORM\PersistentCollection {#4229 …}
+reports: Doctrine\ORM\PersistentCollection {#4231 …}
+favourites: Doctrine\ORM\PersistentCollection {#4233 …}
+notifications: Doctrine\ORM\PersistentCollection {#4235 …}
-id: 263717
-bodyTs: "'drink':11 'mmm':13 'point':4 'steak':7 'tea':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6299108"
+editedAt: null
+createdAt: DateTimeImmutable @1703899370 {#4220
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
| 28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4224
+user: App\Entity\User {#4237 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What is the point of a steak when you can drink tea? Mmm…"
+lang: "en"
+isAdult: false
+favouriteCount: 9
+score: 0
+lastActive: DateTime @1703899370 {#4219
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4225 …}
+nested: Doctrine\ORM\PersistentCollection {#4227 …}
+votes: Doctrine\ORM\PersistentCollection {#4229 …}
+reports: Doctrine\ORM\PersistentCollection {#4231 …}
+favourites: Doctrine\ORM\PersistentCollection {#4233 …}
+notifications: Doctrine\ORM\PersistentCollection {#4235 …}
-id: 263717
-bodyTs: "'drink':11 'mmm':13 'point':4 'steak':7 'tea':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6299108"
+editedAt: null
+createdAt: DateTimeImmutable @1703899370 {#4220
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
| 29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4298
+user: App\Entity\User {#4311 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Yes, of course, the sockets are the answer to everything (and BTW, d-bus uses sockets as well, e.g. `/run/dbus/system_bus_socket` on my current system), but the problem is no standard for the communication over these sockets (or where is the socket located). For example, X11 developed one system of communicating over their socket, but it was used just by few X11 programs, and everybody else had their other system of communication. And even if an app found some socket, there was absolutely no standard how exactly should programs communicate over it. How to send more than just plain ASCII strings? Each program had to write their own serialization/deserialization code, their own format for marshalling binary data, etc. Now there is just one standard for those protocols, and even libraries with the standard (and well tested) code for it."
+lang: "en"
+isAdult: false
+favouriteCount: 25
+score: 0
+lastActive: DateTime @1709401663 {#4292
date: 2024-03-02 18:47:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4299 …}
+nested: Doctrine\ORM\PersistentCollection {#4301 …}
+votes: Doctrine\ORM\PersistentCollection {#4303 …}
+reports: Doctrine\ORM\PersistentCollection {#4305 …}
+favourites: Doctrine\ORM\PersistentCollection {#4307 …}
+notifications: Doctrine\ORM\PersistentCollection {#4309 …}
-id: 263555
-bodyTs: "'/run/dbus/system_bus_socket':21 'absolut':83 'answer':8 'app':77 'ascii':100 'binari':116 'btw':12 'bus':15 'code':110,137 'communic':34,51,72,90 'cours':3 'current':24 'd':14 'd-bus':13 'data':117 'develop':47 'e.g':20 'els':66 'etc':118 'even':74,129 'everybodi':65 'everyth':10 'exact':87 'exampl':45 'format':113 'found':78 'librari':130 'locat':43 'marshal':115 'one':48,123 'plain':99 'problem':28 'program':63,89,103 'protocol':127 'send':95 'serialization/deserialization':109 'socket':5,17,37,42,54,80 'standard':31,85,124,133 'string':101 'system':25,49,70 'test':136 'use':16,58 'well':19,135 'write':106 'x11':46,62 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6298399"
+editedAt: DateTimeImmutable @1709211851 {#4293
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4294
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
| 31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4298
+user: App\Entity\User {#4311 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Yes, of course, the sockets are the answer to everything (and BTW, d-bus uses sockets as well, e.g. `/run/dbus/system_bus_socket` on my current system), but the problem is no standard for the communication over these sockets (or where is the socket located). For example, X11 developed one system of communicating over their socket, but it was used just by few X11 programs, and everybody else had their other system of communication. And even if an app found some socket, there was absolutely no standard how exactly should programs communicate over it. How to send more than just plain ASCII strings? Each program had to write their own serialization/deserialization code, their own format for marshalling binary data, etc. Now there is just one standard for those protocols, and even libraries with the standard (and well tested) code for it."
+lang: "en"
+isAdult: false
+favouriteCount: 25
+score: 0
+lastActive: DateTime @1709401663 {#4292
date: 2024-03-02 18:47:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4299 …}
+nested: Doctrine\ORM\PersistentCollection {#4301 …}
+votes: Doctrine\ORM\PersistentCollection {#4303 …}
+reports: Doctrine\ORM\PersistentCollection {#4305 …}
+favourites: Doctrine\ORM\PersistentCollection {#4307 …}
+notifications: Doctrine\ORM\PersistentCollection {#4309 …}
-id: 263555
-bodyTs: "'/run/dbus/system_bus_socket':21 'absolut':83 'answer':8 'app':77 'ascii':100 'binari':116 'btw':12 'bus':15 'code':110,137 'communic':34,51,72,90 'cours':3 'current':24 'd':14 'd-bus':13 'data':117 'develop':47 'e.g':20 'els':66 'etc':118 'even':74,129 'everybodi':65 'everyth':10 'exact':87 'exampl':45 'format':113 'found':78 'librari':130 'locat':43 'marshal':115 'one':48,123 'plain':99 'problem':28 'program':63,89,103 'protocol':127 'send':95 'serialization/deserialization':109 'socket':5,17,37,42,54,80 'standard':31,85,124,133 'string':101 'system':25,49,70 'test':136 'use':16,58 'well':19,135 'write':106 'x11':46,62 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6298399"
+editedAt: DateTimeImmutable @1709211851 {#4293
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4294
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
| 32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4298
+user: App\Entity\User {#4311 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Yes, of course, the sockets are the answer to everything (and BTW, d-bus uses sockets as well, e.g. `/run/dbus/system_bus_socket` on my current system), but the problem is no standard for the communication over these sockets (or where is the socket located). For example, X11 developed one system of communicating over their socket, but it was used just by few X11 programs, and everybody else had their other system of communication. And even if an app found some socket, there was absolutely no standard how exactly should programs communicate over it. How to send more than just plain ASCII strings? Each program had to write their own serialization/deserialization code, their own format for marshalling binary data, etc. Now there is just one standard for those protocols, and even libraries with the standard (and well tested) code for it."
+lang: "en"
+isAdult: false
+favouriteCount: 25
+score: 0
+lastActive: DateTime @1709401663 {#4292
date: 2024-03-02 18:47:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4299 …}
+nested: Doctrine\ORM\PersistentCollection {#4301 …}
+votes: Doctrine\ORM\PersistentCollection {#4303 …}
+reports: Doctrine\ORM\PersistentCollection {#4305 …}
+favourites: Doctrine\ORM\PersistentCollection {#4307 …}
+notifications: Doctrine\ORM\PersistentCollection {#4309 …}
-id: 263555
-bodyTs: "'/run/dbus/system_bus_socket':21 'absolut':83 'answer':8 'app':77 'ascii':100 'binari':116 'btw':12 'bus':15 'code':110,137 'communic':34,51,72,90 'cours':3 'current':24 'd':14 'd-bus':13 'data':117 'develop':47 'e.g':20 'els':66 'etc':118 'even':74,129 'everybodi':65 'everyth':10 'exact':87 'exampl':45 'format':113 'found':78 'librari':130 'locat':43 'marshal':115 'one':48,123 'plain':99 'problem':28 'program':63,89,103 'protocol':127 'send':95 'serialization/deserialization':109 'socket':5,17,37,42,54,80 'standard':31,85,124,133 'string':101 'system':25,49,70 'test':136 'use':16,58 'well':19,135 'write':106 'x11':46,62 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6298399"
+editedAt: DateTimeImmutable @1709211851 {#4293
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4294
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
| 33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5194
+user: Proxies\__CG__\App\Entity\User {#5195 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4298
+user: App\Entity\User {#4311 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Yes, of course, the sockets are the answer to everything (and BTW, d-bus uses sockets as well, e.g. `/run/dbus/system_bus_socket` on my current system), but the problem is no standard for the communication over these sockets (or where is the socket located). For example, X11 developed one system of communicating over their socket, but it was used just by few X11 programs, and everybody else had their other system of communication. And even if an app found some socket, there was absolutely no standard how exactly should programs communicate over it. How to send more than just plain ASCII strings? Each program had to write their own serialization/deserialization code, their own format for marshalling binary data, etc. Now there is just one standard for those protocols, and even libraries with the standard (and well tested) code for it."
+lang: "en"
+isAdult: false
+favouriteCount: 25
+score: 0
+lastActive: DateTime @1709401663 {#4292
date: 2024-03-02 18:47:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4299 …}
+nested: Doctrine\ORM\PersistentCollection {#4301 …}
+votes: Doctrine\ORM\PersistentCollection {#4303 …}
+reports: Doctrine\ORM\PersistentCollection {#4305 …}
+favourites: Doctrine\ORM\PersistentCollection {#4307 …}
+notifications: Doctrine\ORM\PersistentCollection {#4309 …}
-id: 263555
-bodyTs: "'/run/dbus/system_bus_socket':21 'absolut':83 'answer':8 'app':77 'ascii':100 'binari':116 'btw':12 'bus':15 'code':110,137 'communic':34,51,72,90 'cours':3 'current':24 'd':14 'd-bus':13 'data':117 'develop':47 'e.g':20 'els':66 'etc':118 'even':74,129 'everybodi':65 'everyth':10 'exact':87 'exampl':45 'format':113 'found':78 'librari':130 'locat':43 'marshal':115 'one':48,123 'plain':99 'problem':28 'program':63,89,103 'protocol':127 'send':95 'serialization/deserialization':109 'socket':5,17,37,42,54,80 'standard':31,85,124,133 'string':101 'system':25,49,70 'test':136 'use':16,58 'well':19,135 'write':106 'x11':46,62 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6298399"
+editedAt: DateTimeImmutable @1709211851 {#4293
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4294
date: 2023-12-30 01:20:21.0 +01:00
}
}
+root: App\Entity\EntryComment {#4298}
+body: "There’s still no standard on how to use dbus so I don’t get your point"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703949659 {#5192
date: 2023-12-30 16:20:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5196 …}
+nested: Doctrine\ORM\PersistentCollection {#5198 …}
+votes: Doctrine\ORM\PersistentCollection {#5200 …}
+reports: Doctrine\ORM\PersistentCollection {#5202 …}
+favourites: Doctrine\ORM\PersistentCollection {#5204 …}
+notifications: Doctrine\ORM\PersistentCollection {#5206 …}
-id: 264768
-bodyTs: "'dbus':10 'get':15 'point':17 'standard':5 'still':3 'use':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294314"
+editedAt: null
+createdAt: DateTimeImmutable @1703949659 {#5193
date: 2023-12-30 16:20:59.0 +01:00
}
} |
|
Show voter details
|
| 35 |
DENIED
|
edit
|
App\Entity\EntryComment {#5194
+user: Proxies\__CG__\App\Entity\User {#5195 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4298
+user: App\Entity\User {#4311 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Yes, of course, the sockets are the answer to everything (and BTW, d-bus uses sockets as well, e.g. `/run/dbus/system_bus_socket` on my current system), but the problem is no standard for the communication over these sockets (or where is the socket located). For example, X11 developed one system of communicating over their socket, but it was used just by few X11 programs, and everybody else had their other system of communication. And even if an app found some socket, there was absolutely no standard how exactly should programs communicate over it. How to send more than just plain ASCII strings? Each program had to write their own serialization/deserialization code, their own format for marshalling binary data, etc. Now there is just one standard for those protocols, and even libraries with the standard (and well tested) code for it."
+lang: "en"
+isAdult: false
+favouriteCount: 25
+score: 0
+lastActive: DateTime @1709401663 {#4292
date: 2024-03-02 18:47:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4299 …}
+nested: Doctrine\ORM\PersistentCollection {#4301 …}
+votes: Doctrine\ORM\PersistentCollection {#4303 …}
+reports: Doctrine\ORM\PersistentCollection {#4305 …}
+favourites: Doctrine\ORM\PersistentCollection {#4307 …}
+notifications: Doctrine\ORM\PersistentCollection {#4309 …}
-id: 263555
-bodyTs: "'/run/dbus/system_bus_socket':21 'absolut':83 'answer':8 'app':77 'ascii':100 'binari':116 'btw':12 'bus':15 'code':110,137 'communic':34,51,72,90 'cours':3 'current':24 'd':14 'd-bus':13 'data':117 'develop':47 'e.g':20 'els':66 'etc':118 'even':74,129 'everybodi':65 'everyth':10 'exact':87 'exampl':45 'format':113 'found':78 'librari':130 'locat':43 'marshal':115 'one':48,123 'plain':99 'problem':28 'program':63,89,103 'protocol':127 'send':95 'serialization/deserialization':109 'socket':5,17,37,42,54,80 'standard':31,85,124,133 'string':101 'system':25,49,70 'test':136 'use':16,58 'well':19,135 'write':106 'x11':46,62 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6298399"
+editedAt: DateTimeImmutable @1709211851 {#4293
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4294
date: 2023-12-30 01:20:21.0 +01:00
}
}
+root: App\Entity\EntryComment {#4298}
+body: "There’s still no standard on how to use dbus so I don’t get your point"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703949659 {#5192
date: 2023-12-30 16:20:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5196 …}
+nested: Doctrine\ORM\PersistentCollection {#5198 …}
+votes: Doctrine\ORM\PersistentCollection {#5200 …}
+reports: Doctrine\ORM\PersistentCollection {#5202 …}
+favourites: Doctrine\ORM\PersistentCollection {#5204 …}
+notifications: Doctrine\ORM\PersistentCollection {#5206 …}
-id: 264768
-bodyTs: "'dbus':10 'get':15 'point':17 'standard':5 'still':3 'use':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294314"
+editedAt: null
+createdAt: DateTimeImmutable @1703949659 {#5193
date: 2023-12-30 16:20:59.0 +01:00
}
} |
|
Show voter details
|
| 36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5194
+user: Proxies\__CG__\App\Entity\User {#5195 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4298
+user: App\Entity\User {#4311 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Yes, of course, the sockets are the answer to everything (and BTW, d-bus uses sockets as well, e.g. `/run/dbus/system_bus_socket` on my current system), but the problem is no standard for the communication over these sockets (or where is the socket located). For example, X11 developed one system of communicating over their socket, but it was used just by few X11 programs, and everybody else had their other system of communication. And even if an app found some socket, there was absolutely no standard how exactly should programs communicate over it. How to send more than just plain ASCII strings? Each program had to write their own serialization/deserialization code, their own format for marshalling binary data, etc. Now there is just one standard for those protocols, and even libraries with the standard (and well tested) code for it."
+lang: "en"
+isAdult: false
+favouriteCount: 25
+score: 0
+lastActive: DateTime @1709401663 {#4292
date: 2024-03-02 18:47:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4299 …}
+nested: Doctrine\ORM\PersistentCollection {#4301 …}
+votes: Doctrine\ORM\PersistentCollection {#4303 …}
+reports: Doctrine\ORM\PersistentCollection {#4305 …}
+favourites: Doctrine\ORM\PersistentCollection {#4307 …}
+notifications: Doctrine\ORM\PersistentCollection {#4309 …}
-id: 263555
-bodyTs: "'/run/dbus/system_bus_socket':21 'absolut':83 'answer':8 'app':77 'ascii':100 'binari':116 'btw':12 'bus':15 'code':110,137 'communic':34,51,72,90 'cours':3 'current':24 'd':14 'd-bus':13 'data':117 'develop':47 'e.g':20 'els':66 'etc':118 'even':74,129 'everybodi':65 'everyth':10 'exact':87 'exampl':45 'format':113 'found':78 'librari':130 'locat':43 'marshal':115 'one':48,123 'plain':99 'problem':28 'program':63,89,103 'protocol':127 'send':95 'serialization/deserialization':109 'socket':5,17,37,42,54,80 'standard':31,85,124,133 'string':101 'system':25,49,70 'test':136 'use':16,58 'well':19,135 'write':106 'x11':46,62 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6298399"
+editedAt: DateTimeImmutable @1709211851 {#4293
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4294
date: 2023-12-30 01:20:21.0 +01:00
}
}
+root: App\Entity\EntryComment {#4298}
+body: "There’s still no standard on how to use dbus so I don’t get your point"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703949659 {#5192
date: 2023-12-30 16:20:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5196 …}
+nested: Doctrine\ORM\PersistentCollection {#5198 …}
+votes: Doctrine\ORM\PersistentCollection {#5200 …}
+reports: Doctrine\ORM\PersistentCollection {#5202 …}
+favourites: Doctrine\ORM\PersistentCollection {#5204 …}
+notifications: Doctrine\ORM\PersistentCollection {#5206 …}
-id: 264768
-bodyTs: "'dbus':10 'get':15 'point':17 'standard':5 'still':3 'use':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294314"
+editedAt: null
+createdAt: DateTimeImmutable @1703949659 {#5193
date: 2023-12-30 16:20:59.0 +01:00
}
} |
|
Show voter details
|
| 37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 38 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4372
+user: App\Entity\User {#4385 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I will conveniently avoid any dbus talk, because the why is not so interesting as the how and direct you to this path `/var/run/wpa_supplicant`. You would probably send `SCAN_RESULTS` on the socket, you could also initiate a `SCAN` first to include the strength of stations you’re not connected to. If you want deeper access to wireless, you use netlink to communicate with the kernel (see `/usr/include/linux/nl80211.h`) and poke some `NL80211_STA_INFO`s… or the other direction (everything is a file) you just parse `/proc/net/wireless` without any special permissions for the current signal strength.\n
\n
Oh… and btw dbus has a simple binary protocol underneath all the XML/interface fluff and uses a UNIX socket.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703895289 {#4367
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4373 …}
+nested: Doctrine\ORM\PersistentCollection {#4375 …}
+votes: Doctrine\ORM\PersistentCollection {#4377 …}
+reports: Doctrine\ORM\PersistentCollection {#4379 …}
+favourites: Doctrine\ORM\PersistentCollection {#4381 …}
+notifications: Doctrine\ORM\PersistentCollection {#4383 …}
-id: 266048
-bodyTs: "'/proc/net/wireless':87 '/usr/include/linux/nl80211.h':68 '/var/run/wpa_supplicant':24 'access':56 'also':36 'avoid':4 'binari':104 'btw':99 'communic':63 'connect':50 'conveni':3 'could':35 'current':94 'dbus':6,100 'deeper':55 'direct':19,79 'everyth':80 'file':83 'first':40 'fluff':110 'includ':42 'info':74 'initi':37 'interest':14 'kernel':66 'netlink':61 'nl80211':72 'oh':97 'pars':86 'path':23 'permiss':91 'poke':70 'probabl':27 'protocol':105 're':48 'result':30 'scan':29,39 'see':67 'send':28 'signal':95 'simpl':103 'socket':33,115 'special':90 'sta':73 'station':46 'strength':44,96 'talk':7 'underneath':106 'unix':114 'use':60,112 'want':54 'wireless':58 'without':88 'would':26 'xml/interface':109"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6005234"
+editedAt: null
+createdAt: DateTimeImmutable @1703895289 {#4368
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
| 39 |
DENIED
|
edit
|
App\Entity\EntryComment {#4372
+user: App\Entity\User {#4385 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I will conveniently avoid any dbus talk, because the why is not so interesting as the how and direct you to this path `/var/run/wpa_supplicant`. You would probably send `SCAN_RESULTS` on the socket, you could also initiate a `SCAN` first to include the strength of stations you’re not connected to. If you want deeper access to wireless, you use netlink to communicate with the kernel (see `/usr/include/linux/nl80211.h`) and poke some `NL80211_STA_INFO`s… or the other direction (everything is a file) you just parse `/proc/net/wireless` without any special permissions for the current signal strength.\n
\n
Oh… and btw dbus has a simple binary protocol underneath all the XML/interface fluff and uses a UNIX socket.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703895289 {#4367
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4373 …}
+nested: Doctrine\ORM\PersistentCollection {#4375 …}
+votes: Doctrine\ORM\PersistentCollection {#4377 …}
+reports: Doctrine\ORM\PersistentCollection {#4379 …}
+favourites: Doctrine\ORM\PersistentCollection {#4381 …}
+notifications: Doctrine\ORM\PersistentCollection {#4383 …}
-id: 266048
-bodyTs: "'/proc/net/wireless':87 '/usr/include/linux/nl80211.h':68 '/var/run/wpa_supplicant':24 'access':56 'also':36 'avoid':4 'binari':104 'btw':99 'communic':63 'connect':50 'conveni':3 'could':35 'current':94 'dbus':6,100 'deeper':55 'direct':19,79 'everyth':80 'file':83 'first':40 'fluff':110 'includ':42 'info':74 'initi':37 'interest':14 'kernel':66 'netlink':61 'nl80211':72 'oh':97 'pars':86 'path':23 'permiss':91 'poke':70 'probabl':27 'protocol':105 're':48 'result':30 'scan':29,39 'see':67 'send':28 'signal':95 'simpl':103 'socket':33,115 'special':90 'sta':73 'station':46 'strength':44,96 'talk':7 'underneath':106 'unix':114 'use':60,112 'want':54 'wireless':58 'without':88 'would':26 'xml/interface':109"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6005234"
+editedAt: null
+createdAt: DateTimeImmutable @1703895289 {#4368
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
| 40 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4372
+user: App\Entity\User {#4385 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
I will conveniently avoid any dbus talk, because the why is not so interesting as the how and direct you to this path `/var/run/wpa_supplicant`. You would probably send `SCAN_RESULTS` on the socket, you could also initiate a `SCAN` first to include the strength of stations you’re not connected to. If you want deeper access to wireless, you use netlink to communicate with the kernel (see `/usr/include/linux/nl80211.h`) and poke some `NL80211_STA_INFO`s… or the other direction (everything is a file) you just parse `/proc/net/wireless` without any special permissions for the current signal strength.\n
\n
Oh… and btw dbus has a simple binary protocol underneath all the XML/interface fluff and uses a UNIX socket.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703895289 {#4367
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4373 …}
+nested: Doctrine\ORM\PersistentCollection {#4375 …}
+votes: Doctrine\ORM\PersistentCollection {#4377 …}
+reports: Doctrine\ORM\PersistentCollection {#4379 …}
+favourites: Doctrine\ORM\PersistentCollection {#4381 …}
+notifications: Doctrine\ORM\PersistentCollection {#4383 …}
-id: 266048
-bodyTs: "'/proc/net/wireless':87 '/usr/include/linux/nl80211.h':68 '/var/run/wpa_supplicant':24 'access':56 'also':36 'avoid':4 'binari':104 'btw':99 'communic':63 'connect':50 'conveni':3 'could':35 'current':94 'dbus':6,100 'deeper':55 'direct':19,79 'everyth':80 'file':83 'first':40 'fluff':110 'includ':42 'info':74 'initi':37 'interest':14 'kernel':66 'netlink':61 'nl80211':72 'oh':97 'pars':86 'path':23 'permiss':91 'poke':70 'probabl':27 'protocol':105 're':48 'result':30 'scan':29,39 'see':67 'send':28 'signal':95 'simpl':103 'socket':33,115 'special':90 'sta':73 'station':46 'strength':44,96 'talk':7 'underneath':106 'unix':114 'use':60,112 'want':54 'wireless':58 'without':88 'would':26 'xml/interface':109"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6005234"
+editedAt: null
+createdAt: DateTimeImmutable @1703895289 {#4368
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
| 41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
| 43 |
DENIED
|
edit
|
App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
| 44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
| 45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 46 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5162
+user: Proxies\__CG__\App\Entity\User {#5163 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4446}
+body: "*can hold dpassengers"
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1703875130 {#5160
date: 2023-12-29 19:38:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5164 …}
+nested: Doctrine\ORM\PersistentCollection {#5166 …}
+votes: Doctrine\ORM\PersistentCollection {#5168 …}
+reports: Doctrine\ORM\PersistentCollection {#5170 …}
+favourites: Doctrine\ORM\PersistentCollection {#5172 …}
+notifications: Doctrine\ORM\PersistentCollection {#5174 …}
-id: 262702
-bodyTs: "'dpasseng':3 'hold':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6294397"
+editedAt: null
+createdAt: DateTimeImmutable @1703875130 {#5161
date: 2023-12-29 19:38:50.0 +01:00
}
} |
|
Show voter details
|
| 47 |
DENIED
|
edit
|
App\Entity\EntryComment {#5162
+user: Proxies\__CG__\App\Entity\User {#5163 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4446}
+body: "*can hold dpassengers"
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1703875130 {#5160
date: 2023-12-29 19:38:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5164 …}
+nested: Doctrine\ORM\PersistentCollection {#5166 …}
+votes: Doctrine\ORM\PersistentCollection {#5168 …}
+reports: Doctrine\ORM\PersistentCollection {#5170 …}
+favourites: Doctrine\ORM\PersistentCollection {#5172 …}
+notifications: Doctrine\ORM\PersistentCollection {#5174 …}
-id: 262702
-bodyTs: "'dpasseng':3 'hold':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6294397"
+editedAt: null
+createdAt: DateTimeImmutable @1703875130 {#5161
date: 2023-12-29 19:38:50.0 +01:00
}
} |
|
Show voter details
|
| 48 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5162
+user: Proxies\__CG__\App\Entity\User {#5163 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4446}
+body: "*can hold dpassengers"
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1703875130 {#5160
date: 2023-12-29 19:38:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5164 …}
+nested: Doctrine\ORM\PersistentCollection {#5166 …}
+votes: Doctrine\ORM\PersistentCollection {#5168 …}
+reports: Doctrine\ORM\PersistentCollection {#5170 …}
+favourites: Doctrine\ORM\PersistentCollection {#5172 …}
+notifications: Doctrine\ORM\PersistentCollection {#5174 …}
-id: 262702
-bodyTs: "'dpasseng':3 'hold':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6294397"
+editedAt: null
+createdAt: DateTimeImmutable @1703875130 {#5161
date: 2023-12-29 19:38:50.0 +01:00
}
} |
|
Show voter details
|
| 49 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 50 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5178
+user: Proxies\__CG__\App\Entity\User {#5179 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4446}
+body: "Get into de bus?"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703872190 {#5176
date: 2023-12-29 18:49:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5180 …}
+nested: Doctrine\ORM\PersistentCollection {#5182 …}
+votes: Doctrine\ORM\PersistentCollection {#5184 …}
+reports: Doctrine\ORM\PersistentCollection {#5186 …}
+favourites: Doctrine\ORM\PersistentCollection {#5188 …}
+notifications: Doctrine\ORM\PersistentCollection {#5190 …}
-id: 266042
-bodyTs: "'bus':4 'de':3 'get':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/5999826"
+editedAt: null
+createdAt: DateTimeImmutable @1703872190 {#5177
date: 2023-12-29 18:49:50.0 +01:00
}
} |
|
Show voter details
|
| 51 |
DENIED
|
edit
|
App\Entity\EntryComment {#5178
+user: Proxies\__CG__\App\Entity\User {#5179 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4446}
+body: "Get into de bus?"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703872190 {#5176
date: 2023-12-29 18:49:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5180 …}
+nested: Doctrine\ORM\PersistentCollection {#5182 …}
+votes: Doctrine\ORM\PersistentCollection {#5184 …}
+reports: Doctrine\ORM\PersistentCollection {#5186 …}
+favourites: Doctrine\ORM\PersistentCollection {#5188 …}
+notifications: Doctrine\ORM\PersistentCollection {#5190 …}
-id: 266042
-bodyTs: "'bus':4 'de':3 'get':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/5999826"
+editedAt: null
+createdAt: DateTimeImmutable @1703872190 {#5177
date: 2023-12-29 18:49:50.0 +01:00
}
} |
|
Show voter details
|
| 52 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5178
+user: Proxies\__CG__\App\Entity\User {#5179 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4459 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n

"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4441
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4447 …}
+nested: Doctrine\ORM\PersistentCollection {#4449 …}
+votes: Doctrine\ORM\PersistentCollection {#4451 …}
+reports: Doctrine\ORM\PersistentCollection {#4453 …}
+favourites: Doctrine\ORM\PersistentCollection {#4455 …}
+notifications: Doctrine\ORM\PersistentCollection {#4457 …}
-id: 262351
-bodyTs: "'/wp-content/uploads/2019/01/local_motion_web-89.jpg)':12 'bus':9 'hold':7 'passeng':8 'system':5 'www.localmotionofboston.com':11 'www.localmotionofboston.com/wp-content/uploads/2019/01/local_motion_web-89.jpg)':10"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.zip/comment/5838179"
+editedAt: null
+createdAt: DateTimeImmutable @1703864664 {#4442
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4446}
+body: "Get into de bus?"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703872190 {#5176
date: 2023-12-29 18:49:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5180 …}
+nested: Doctrine\ORM\PersistentCollection {#5182 …}
+votes: Doctrine\ORM\PersistentCollection {#5184 …}
+reports: Doctrine\ORM\PersistentCollection {#5186 …}
+favourites: Doctrine\ORM\PersistentCollection {#5188 …}
+notifications: Doctrine\ORM\PersistentCollection {#5190 …}
-id: 266042
-bodyTs: "'bus':4 'de':3 'get':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/5999826"
+editedAt: null
+createdAt: DateTimeImmutable @1703872190 {#5177
date: 2023-12-29 18:49:50.0 +01:00
}
} |
|
Show voter details
|
| 53 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 54 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4520
+user: App\Entity\User {#4533 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Btw, why do i need to start xfce/xfwm with dbus for automount in thunar to work, instead of just running dbus as a service on the side?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1712146891 {#4514
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4521 …}
+nested: Doctrine\ORM\PersistentCollection {#4523 …}
+votes: Doctrine\ORM\PersistentCollection {#4525 …}
+reports: Doctrine\ORM\PersistentCollection {#4527 …}
+favourites: Doctrine\ORM\PersistentCollection {#4529 …}
+notifications: Doctrine\ORM\PersistentCollection {#4531 …}
-id: 279400
-bodyTs: "'automount':12 'btw':1 'dbus':10,21 'instead':17 'need':5 'run':20 'servic':24 'side':27 'start':7 'thunar':14 'work':16 'xfce/xfwm':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.ch/comment/4327085"
+editedAt: DateTimeImmutable @1711564032 {#4515
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4516
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
| 55 |
DENIED
|
edit
|
App\Entity\EntryComment {#4520
+user: App\Entity\User {#4533 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Btw, why do i need to start xfce/xfwm with dbus for automount in thunar to work, instead of just running dbus as a service on the side?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1712146891 {#4514
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4521 …}
+nested: Doctrine\ORM\PersistentCollection {#4523 …}
+votes: Doctrine\ORM\PersistentCollection {#4525 …}
+reports: Doctrine\ORM\PersistentCollection {#4527 …}
+favourites: Doctrine\ORM\PersistentCollection {#4529 …}
+notifications: Doctrine\ORM\PersistentCollection {#4531 …}
-id: 279400
-bodyTs: "'automount':12 'btw':1 'dbus':10,21 'instead':17 'need':5 'run':20 'servic':24 'side':27 'start':7 'thunar':14 'work':16 'xfce/xfwm':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.ch/comment/4327085"
+editedAt: DateTimeImmutable @1711564032 {#4515
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4516
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
| 56 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4520
+user: App\Entity\User {#4533 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Btw, why do i need to start xfce/xfwm with dbus for automount in thunar to work, instead of just running dbus as a service on the side?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1712146891 {#4514
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4521 …}
+nested: Doctrine\ORM\PersistentCollection {#4523 …}
+votes: Doctrine\ORM\PersistentCollection {#4525 …}
+reports: Doctrine\ORM\PersistentCollection {#4527 …}
+favourites: Doctrine\ORM\PersistentCollection {#4529 …}
+notifications: Doctrine\ORM\PersistentCollection {#4531 …}
-id: 279400
-bodyTs: "'automount':12 'btw':1 'dbus':10,21 'instead':17 'need':5 'run':20 'servic':24 'side':27 'start':7 'thunar':14 'work':16 'xfce/xfwm':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.ch/comment/4327085"
+editedAt: DateTimeImmutable @1711564032 {#4515
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4516
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
| 57 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 58 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5226
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4520
+user: App\Entity\User {#4533 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Btw, why do i need to start xfce/xfwm with dbus for automount in thunar to work, instead of just running dbus as a service on the side?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1712146891 {#4514
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4521 …}
+nested: Doctrine\ORM\PersistentCollection {#4523 …}
+votes: Doctrine\ORM\PersistentCollection {#4525 …}
+reports: Doctrine\ORM\PersistentCollection {#4527 …}
+favourites: Doctrine\ORM\PersistentCollection {#4529 …}
+notifications: Doctrine\ORM\PersistentCollection {#4531 …}
-id: 279400
-bodyTs: "'automount':12 'btw':1 'dbus':10,21 'instead':17 'need':5 'run':20 'servic':24 'side':27 'start':7 'thunar':14 'work':16 'xfce/xfwm':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.ch/comment/4327085"
+editedAt: DateTimeImmutable @1711564032 {#4515
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4516
date: 2023-12-29 13:51:54.0 +01:00
}
}
+root: App\Entity\EntryComment {#4520}
+body: "By “start with dbus” do you mean with the `dbus-launch` utility? I think it’s needed because it sets some environment variables that thunar uses to actually find and connect to the bus. If you run just the daemon “on the side”, thunar won’t know how to connect to it. Kind of how you need `$DISPLAY` to be set correctly for X11 applications to work."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704501036 {#5224
date: 2024-01-06 01:30:36.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@MonkderZweite@feddit.ch"
]
+children: Doctrine\ORM\PersistentCollection {#5227 …}
+nested: Doctrine\ORM\PersistentCollection {#5229 …}
+votes: Doctrine\ORM\PersistentCollection {#5231 …}
+reports: Doctrine\ORM\PersistentCollection {#5233 …}
+favourites: Doctrine\ORM\PersistentCollection {#5235 …}
+notifications: Doctrine\ORM\PersistentCollection {#5237 …}
-id: 284109
-bodyTs: "'actual':29 'applic':66 'bus':35 'connect':32,51 'correct':63 'daemon':41 'dbus':4,11 'dbus-launch':10 'display':59 'environ':23 'find':30 'kind':54 'know':48 'launch':12 'mean':7 'need':18,58 'run':38 'set':21,62 'side':44 'start':2 'think':15 'thunar':26,45 'use':27 'util':13 'variabl':24 'won':46 'work':68 'x11':65"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6443846"
+editedAt: null
+createdAt: DateTimeImmutable @1704501036 {#5225
date: 2024-01-06 01:30:36.0 +01:00
}
} |
|
Show voter details
|
| 59 |
DENIED
|
edit
|
App\Entity\EntryComment {#5226
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4520
+user: App\Entity\User {#4533 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Btw, why do i need to start xfce/xfwm with dbus for automount in thunar to work, instead of just running dbus as a service on the side?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1712146891 {#4514
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4521 …}
+nested: Doctrine\ORM\PersistentCollection {#4523 …}
+votes: Doctrine\ORM\PersistentCollection {#4525 …}
+reports: Doctrine\ORM\PersistentCollection {#4527 …}
+favourites: Doctrine\ORM\PersistentCollection {#4529 …}
+notifications: Doctrine\ORM\PersistentCollection {#4531 …}
-id: 279400
-bodyTs: "'automount':12 'btw':1 'dbus':10,21 'instead':17 'need':5 'run':20 'servic':24 'side':27 'start':7 'thunar':14 'work':16 'xfce/xfwm':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.ch/comment/4327085"
+editedAt: DateTimeImmutable @1711564032 {#4515
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4516
date: 2023-12-29 13:51:54.0 +01:00
}
}
+root: App\Entity\EntryComment {#4520}
+body: "By “start with dbus” do you mean with the `dbus-launch` utility? I think it’s needed because it sets some environment variables that thunar uses to actually find and connect to the bus. If you run just the daemon “on the side”, thunar won’t know how to connect to it. Kind of how you need `$DISPLAY` to be set correctly for X11 applications to work."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704501036 {#5224
date: 2024-01-06 01:30:36.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@MonkderZweite@feddit.ch"
]
+children: Doctrine\ORM\PersistentCollection {#5227 …}
+nested: Doctrine\ORM\PersistentCollection {#5229 …}
+votes: Doctrine\ORM\PersistentCollection {#5231 …}
+reports: Doctrine\ORM\PersistentCollection {#5233 …}
+favourites: Doctrine\ORM\PersistentCollection {#5235 …}
+notifications: Doctrine\ORM\PersistentCollection {#5237 …}
-id: 284109
-bodyTs: "'actual':29 'applic':66 'bus':35 'connect':32,51 'correct':63 'daemon':41 'dbus':4,11 'dbus-launch':10 'display':59 'environ':23 'find':30 'kind':54 'know':48 'launch':12 'mean':7 'need':18,58 'run':38 'set':21,62 'side':44 'start':2 'think':15 'thunar':26,45 'use':27 'util':13 'variabl':24 'won':46 'work':68 'x11':65"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6443846"
+editedAt: null
+createdAt: DateTimeImmutable @1704501036 {#5225
date: 2024-01-06 01:30:36.0 +01:00
}
} |
|
Show voter details
|
| 60 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5226
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4520
+user: App\Entity\User {#4533 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Btw, why do i need to start xfce/xfwm with dbus for automount in thunar to work, instead of just running dbus as a service on the side?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1712146891 {#4514
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4521 …}
+nested: Doctrine\ORM\PersistentCollection {#4523 …}
+votes: Doctrine\ORM\PersistentCollection {#4525 …}
+reports: Doctrine\ORM\PersistentCollection {#4527 …}
+favourites: Doctrine\ORM\PersistentCollection {#4529 …}
+notifications: Doctrine\ORM\PersistentCollection {#4531 …}
-id: 279400
-bodyTs: "'automount':12 'btw':1 'dbus':10,21 'instead':17 'need':5 'run':20 'servic':24 'side':27 'start':7 'thunar':14 'work':16 'xfce/xfwm':8"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.ch/comment/4327085"
+editedAt: DateTimeImmutable @1711564032 {#4515
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4516
date: 2023-12-29 13:51:54.0 +01:00
}
}
+root: App\Entity\EntryComment {#4520}
+body: "By “start with dbus” do you mean with the `dbus-launch` utility? I think it’s needed because it sets some environment variables that thunar uses to actually find and connect to the bus. If you run just the daemon “on the side”, thunar won’t know how to connect to it. Kind of how you need `$DISPLAY` to be set correctly for X11 applications to work."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704501036 {#5224
date: 2024-01-06 01:30:36.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@MonkderZweite@feddit.ch"
]
+children: Doctrine\ORM\PersistentCollection {#5227 …}
+nested: Doctrine\ORM\PersistentCollection {#5229 …}
+votes: Doctrine\ORM\PersistentCollection {#5231 …}
+reports: Doctrine\ORM\PersistentCollection {#5233 …}
+favourites: Doctrine\ORM\PersistentCollection {#5235 …}
+notifications: Doctrine\ORM\PersistentCollection {#5237 …}
-id: 284109
-bodyTs: "'actual':29 'applic':66 'bus':35 'connect':32,51 'correct':63 'daemon':41 'dbus':4,11 'dbus-launch':10 'display':59 'environ':23 'find':30 'kind':54 'know':48 'launch':12 'mean':7 'need':18,58 'run':38 'set':21,62 'side':44 'start':2 'think':15 'thunar':26,45 'use':27 'util':13 'variabl':24 'won':46 'work':68 'x11':65"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6443846"
+editedAt: null
+createdAt: DateTimeImmutable @1704501036 {#5225
date: 2024-01-06 01:30:36.0 +01:00
}
} |
|
Show voter details
|
| 61 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 62 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4593
+user: App\Entity\User {#4606 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Sometimes you want loose coupling."
+lang: "en"
+isAdult: false
+favouriteCount: 31
+score: 0
+lastActive: DateTime @1703838283 {#4588
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4594 …}
+nested: Doctrine\ORM\PersistentCollection {#4596 …}
+votes: Doctrine\ORM\PersistentCollection {#4598 …}
+reports: Doctrine\ORM\PersistentCollection {#4600 …}
+favourites: Doctrine\ORM\PersistentCollection {#4602 …}
+notifications: Doctrine\ORM\PersistentCollection {#4604 …}
-id: 261730
-bodyTs: "'coupl':5 'loos':4 'sometim':1 'want':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289029"
+editedAt: null
+createdAt: DateTimeImmutable @1703838283 {#4589
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
| 63 |
DENIED
|
edit
|
App\Entity\EntryComment {#4593
+user: App\Entity\User {#4606 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Sometimes you want loose coupling."
+lang: "en"
+isAdult: false
+favouriteCount: 31
+score: 0
+lastActive: DateTime @1703838283 {#4588
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4594 …}
+nested: Doctrine\ORM\PersistentCollection {#4596 …}
+votes: Doctrine\ORM\PersistentCollection {#4598 …}
+reports: Doctrine\ORM\PersistentCollection {#4600 …}
+favourites: Doctrine\ORM\PersistentCollection {#4602 …}
+notifications: Doctrine\ORM\PersistentCollection {#4604 …}
-id: 261730
-bodyTs: "'coupl':5 'loos':4 'sometim':1 'want':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289029"
+editedAt: null
+createdAt: DateTimeImmutable @1703838283 {#4589
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
| 64 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4593
+user: App\Entity\User {#4606 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Sometimes you want loose coupling."
+lang: "en"
+isAdult: false
+favouriteCount: 31
+score: 0
+lastActive: DateTime @1703838283 {#4588
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4594 …}
+nested: Doctrine\ORM\PersistentCollection {#4596 …}
+votes: Doctrine\ORM\PersistentCollection {#4598 …}
+reports: Doctrine\ORM\PersistentCollection {#4600 …}
+favourites: Doctrine\ORM\PersistentCollection {#4602 …}
+notifications: Doctrine\ORM\PersistentCollection {#4604 …}
-id: 261730
-bodyTs: "'coupl':5 'loos':4 'sometim':1 'want':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289029"
+editedAt: null
+createdAt: DateTimeImmutable @1703838283 {#4589
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
| 65 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 66 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4666
+user: App\Entity\User {#4679 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
My serious answer, not an argument: Use d-feet to inspect what’s available on the system and session buses. That’ll show the benefit of introspection and a common serialization mechanism.\n
\n
About the security comments: Some access control mechanisms aren’t just allow/deny, and many need more than socket permissions. Those benefit from DBus policies, and PolicyKit integration helps for more complex needs. You can always DIY it, that’s Linux/FOSS life, but these are great tools to have in your toolbox. I’ll avoid credential passing via sockets whenever I can and have something else do it.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 60
+score: 0
+lastActive: DateTime @1708991191 {#4661
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4667 …}
+nested: Doctrine\ORM\PersistentCollection {#4669 …}
+votes: Doctrine\ORM\PersistentCollection {#4671 …}
+reports: Doctrine\ORM\PersistentCollection {#4673 …}
+favourites: Doctrine\ORM\PersistentCollection {#4675 …}
+notifications: Doctrine\ORM\PersistentCollection {#4677 …}
-id: 261698
-bodyTs: "'access':39 'allow/deny':45 'alway':68 'answer':3 'aren':42 'argument':6 'avail':15 'avoid':87 'benefit':26,54 'buse':21 'comment':37 'common':31 'complex':64 'control':40 'credenti':88 'd':9 'd-feet':8 'dbus':56 'diy':69 'els':98 'feet':10 'great':78 'help':61 'inspect':12 'integr':60 'introspect':28 'life':74 'linux/foss':73 'll':23,86 'mani':47 'mechan':33,41 'need':48,65 'pass':89 'permiss':52 'polici':57 'policykit':59 'secur':36 'serial':32 'serious':2 'session':20 'show':24 'socket':51,91 'someth':97 'system':18 'tool':79 'toolbox':84 'use':7 'via':90 'whenev':92"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.blahaj.zone/comment/5283577"
+editedAt: null
+createdAt: DateTimeImmutable @1703836481 {#4662
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
| 67 |
DENIED
|
edit
|
App\Entity\EntryComment {#4666
+user: App\Entity\User {#4679 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
My serious answer, not an argument: Use d-feet to inspect what’s available on the system and session buses. That’ll show the benefit of introspection and a common serialization mechanism.\n
\n
About the security comments: Some access control mechanisms aren’t just allow/deny, and many need more than socket permissions. Those benefit from DBus policies, and PolicyKit integration helps for more complex needs. You can always DIY it, that’s Linux/FOSS life, but these are great tools to have in your toolbox. I’ll avoid credential passing via sockets whenever I can and have something else do it.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 60
+score: 0
+lastActive: DateTime @1708991191 {#4661
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4667 …}
+nested: Doctrine\ORM\PersistentCollection {#4669 …}
+votes: Doctrine\ORM\PersistentCollection {#4671 …}
+reports: Doctrine\ORM\PersistentCollection {#4673 …}
+favourites: Doctrine\ORM\PersistentCollection {#4675 …}
+notifications: Doctrine\ORM\PersistentCollection {#4677 …}
-id: 261698
-bodyTs: "'access':39 'allow/deny':45 'alway':68 'answer':3 'aren':42 'argument':6 'avail':15 'avoid':87 'benefit':26,54 'buse':21 'comment':37 'common':31 'complex':64 'control':40 'credenti':88 'd':9 'd-feet':8 'dbus':56 'diy':69 'els':98 'feet':10 'great':78 'help':61 'inspect':12 'integr':60 'introspect':28 'life':74 'linux/foss':73 'll':23,86 'mani':47 'mechan':33,41 'need':48,65 'pass':89 'permiss':52 'polici':57 'policykit':59 'secur':36 'serial':32 'serious':2 'session':20 'show':24 'socket':51,91 'someth':97 'system':18 'tool':79 'toolbox':84 'use':7 'via':90 'whenev':92"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.blahaj.zone/comment/5283577"
+editedAt: null
+createdAt: DateTimeImmutable @1703836481 {#4662
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
| 68 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4666
+user: App\Entity\User {#4679 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
My serious answer, not an argument: Use d-feet to inspect what’s available on the system and session buses. That’ll show the benefit of introspection and a common serialization mechanism.\n
\n
About the security comments: Some access control mechanisms aren’t just allow/deny, and many need more than socket permissions. Those benefit from DBus policies, and PolicyKit integration helps for more complex needs. You can always DIY it, that’s Linux/FOSS life, but these are great tools to have in your toolbox. I’ll avoid credential passing via sockets whenever I can and have something else do it.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 60
+score: 0
+lastActive: DateTime @1708991191 {#4661
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4667 …}
+nested: Doctrine\ORM\PersistentCollection {#4669 …}
+votes: Doctrine\ORM\PersistentCollection {#4671 …}
+reports: Doctrine\ORM\PersistentCollection {#4673 …}
+favourites: Doctrine\ORM\PersistentCollection {#4675 …}
+notifications: Doctrine\ORM\PersistentCollection {#4677 …}
-id: 261698
-bodyTs: "'access':39 'allow/deny':45 'alway':68 'answer':3 'aren':42 'argument':6 'avail':15 'avoid':87 'benefit':26,54 'buse':21 'comment':37 'common':31 'complex':64 'control':40 'credenti':88 'd':9 'd-feet':8 'dbus':56 'diy':69 'els':98 'feet':10 'great':78 'help':61 'inspect':12 'integr':60 'introspect':28 'life':74 'linux/foss':73 'll':23,86 'mani':47 'mechan':33,41 'need':48,65 'pass':89 'permiss':52 'polici':57 'policykit':59 'secur':36 'serial':32 'serious':2 'session':20 'show':24 'socket':51,91 'someth':97 'system':18 'tool':79 'toolbox':84 'use':7 'via':90 'whenev':92"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.blahaj.zone/comment/5283577"
+editedAt: null
+createdAt: DateTimeImmutable @1703836481 {#4662
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
| 69 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 70 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5147
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4666
+user: App\Entity\User {#4679 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
My serious answer, not an argument: Use d-feet to inspect what’s available on the system and session buses. That’ll show the benefit of introspection and a common serialization mechanism.\n
\n
About the security comments: Some access control mechanisms aren’t just allow/deny, and many need more than socket permissions. Those benefit from DBus policies, and PolicyKit integration helps for more complex needs. You can always DIY it, that’s Linux/FOSS life, but these are great tools to have in your toolbox. I’ll avoid credential passing via sockets whenever I can and have something else do it.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 60
+score: 0
+lastActive: DateTime @1708991191 {#4661
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4667 …}
+nested: Doctrine\ORM\PersistentCollection {#4669 …}
+votes: Doctrine\ORM\PersistentCollection {#4671 …}
+reports: Doctrine\ORM\PersistentCollection {#4673 …}
+favourites: Doctrine\ORM\PersistentCollection {#4675 …}
+notifications: Doctrine\ORM\PersistentCollection {#4677 …}
-id: 261698
-bodyTs: "'access':39 'allow/deny':45 'alway':68 'answer':3 'aren':42 'argument':6 'avail':15 'avoid':87 'benefit':26,54 'buse':21 'comment':37 'common':31 'complex':64 'control':40 'credenti':88 'd':9 'd-feet':8 'dbus':56 'diy':69 'els':98 'feet':10 'great':78 'help':61 'inspect':12 'integr':60 'introspect':28 'life':74 'linux/foss':73 'll':23,86 'mani':47 'mechan':33,41 'need':48,65 'pass':89 'permiss':52 'polici':57 'policykit':59 'secur':36 'serial':32 'serious':2 'session':20 'show':24 'socket':51,91 'someth':97 'system':18 'tool':79 'toolbox':84 'use':7 'via':90 'whenev':92"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.blahaj.zone/comment/5283577"
+editedAt: null
+createdAt: DateTimeImmutable @1703836481 {#4662
date: 2023-12-29 08:54:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4666}
+body: "Great point about policies! Setting permissions on sockets only gets you so far… I guess if you really wanted to, you could create an individual socket for every method of every resource, and have granular permissions that way. But that would be quite messy"
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703842212 {#5145
date: 2023-12-29 10:30:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@fiohnah@lemmy.blahaj.zone"
]
+children: Doctrine\ORM\PersistentCollection {#5148 …}
+nested: Doctrine\ORM\PersistentCollection {#5150 …}
+votes: Doctrine\ORM\PersistentCollection {#5152 …}
+reports: Doctrine\ORM\PersistentCollection {#5154 …}
+favourites: Doctrine\ORM\PersistentCollection {#5156 …}
+notifications: Doctrine\ORM\PersistentCollection {#5158 …}
-id: 261816
-bodyTs: "'could':22 'creat':23 'everi':28,31 'far':13 'get':10 'granular':35 'great':1 'guess':15 'individu':25 'messi':44 'method':29 'permiss':6,36 'point':2 'polici':4 'quit':43 'realli':18 'resourc':32 'set':5 'socket':8,26 'want':19 'way':38 'would':41"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289446"
+editedAt: null
+createdAt: DateTimeImmutable @1703842212 {#5146
date: 2023-12-29 10:30:12.0 +01:00
}
} |
|
Show voter details
|
| 71 |
DENIED
|
edit
|
App\Entity\EntryComment {#5147
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4666
+user: App\Entity\User {#4679 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
My serious answer, not an argument: Use d-feet to inspect what’s available on the system and session buses. That’ll show the benefit of introspection and a common serialization mechanism.\n
\n
About the security comments: Some access control mechanisms aren’t just allow/deny, and many need more than socket permissions. Those benefit from DBus policies, and PolicyKit integration helps for more complex needs. You can always DIY it, that’s Linux/FOSS life, but these are great tools to have in your toolbox. I’ll avoid credential passing via sockets whenever I can and have something else do it.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 60
+score: 0
+lastActive: DateTime @1708991191 {#4661
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4667 …}
+nested: Doctrine\ORM\PersistentCollection {#4669 …}
+votes: Doctrine\ORM\PersistentCollection {#4671 …}
+reports: Doctrine\ORM\PersistentCollection {#4673 …}
+favourites: Doctrine\ORM\PersistentCollection {#4675 …}
+notifications: Doctrine\ORM\PersistentCollection {#4677 …}
-id: 261698
-bodyTs: "'access':39 'allow/deny':45 'alway':68 'answer':3 'aren':42 'argument':6 'avail':15 'avoid':87 'benefit':26,54 'buse':21 'comment':37 'common':31 'complex':64 'control':40 'credenti':88 'd':9 'd-feet':8 'dbus':56 'diy':69 'els':98 'feet':10 'great':78 'help':61 'inspect':12 'integr':60 'introspect':28 'life':74 'linux/foss':73 'll':23,86 'mani':47 'mechan':33,41 'need':48,65 'pass':89 'permiss':52 'polici':57 'policykit':59 'secur':36 'serial':32 'serious':2 'session':20 'show':24 'socket':51,91 'someth':97 'system':18 'tool':79 'toolbox':84 'use':7 'via':90 'whenev':92"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.blahaj.zone/comment/5283577"
+editedAt: null
+createdAt: DateTimeImmutable @1703836481 {#4662
date: 2023-12-29 08:54:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4666}
+body: "Great point about policies! Setting permissions on sockets only gets you so far… I guess if you really wanted to, you could create an individual socket for every method of every resource, and have granular permissions that way. But that would be quite messy"
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703842212 {#5145
date: 2023-12-29 10:30:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@fiohnah@lemmy.blahaj.zone"
]
+children: Doctrine\ORM\PersistentCollection {#5148 …}
+nested: Doctrine\ORM\PersistentCollection {#5150 …}
+votes: Doctrine\ORM\PersistentCollection {#5152 …}
+reports: Doctrine\ORM\PersistentCollection {#5154 …}
+favourites: Doctrine\ORM\PersistentCollection {#5156 …}
+notifications: Doctrine\ORM\PersistentCollection {#5158 …}
-id: 261816
-bodyTs: "'could':22 'creat':23 'everi':28,31 'far':13 'get':10 'granular':35 'great':1 'guess':15 'individu':25 'messi':44 'method':29 'permiss':6,36 'point':2 'polici':4 'quit':43 'realli':18 'resourc':32 'set':5 'socket':8,26 'want':19 'way':38 'would':41"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289446"
+editedAt: null
+createdAt: DateTimeImmutable @1703842212 {#5146
date: 2023-12-29 10:30:12.0 +01:00
}
} |
|
Show voter details
|
| 72 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5147
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4666
+user: App\Entity\User {#4679 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
My serious answer, not an argument: Use d-feet to inspect what’s available on the system and session buses. That’ll show the benefit of introspection and a common serialization mechanism.\n
\n
About the security comments: Some access control mechanisms aren’t just allow/deny, and many need more than socket permissions. Those benefit from DBus policies, and PolicyKit integration helps for more complex needs. You can always DIY it, that’s Linux/FOSS life, but these are great tools to have in your toolbox. I’ll avoid credential passing via sockets whenever I can and have something else do it.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 60
+score: 0
+lastActive: DateTime @1708991191 {#4661
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4667 …}
+nested: Doctrine\ORM\PersistentCollection {#4669 …}
+votes: Doctrine\ORM\PersistentCollection {#4671 …}
+reports: Doctrine\ORM\PersistentCollection {#4673 …}
+favourites: Doctrine\ORM\PersistentCollection {#4675 …}
+notifications: Doctrine\ORM\PersistentCollection {#4677 …}
-id: 261698
-bodyTs: "'access':39 'allow/deny':45 'alway':68 'answer':3 'aren':42 'argument':6 'avail':15 'avoid':87 'benefit':26,54 'buse':21 'comment':37 'common':31 'complex':64 'control':40 'credenti':88 'd':9 'd-feet':8 'dbus':56 'diy':69 'els':98 'feet':10 'great':78 'help':61 'inspect':12 'integr':60 'introspect':28 'life':74 'linux/foss':73 'll':23,86 'mani':47 'mechan':33,41 'need':48,65 'pass':89 'permiss':52 'polici':57 'policykit':59 'secur':36 'serial':32 'serious':2 'session':20 'show':24 'socket':51,91 'someth':97 'system':18 'tool':79 'toolbox':84 'use':7 'via':90 'whenev':92"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.blahaj.zone/comment/5283577"
+editedAt: null
+createdAt: DateTimeImmutable @1703836481 {#4662
date: 2023-12-29 08:54:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4666}
+body: "Great point about policies! Setting permissions on sockets only gets you so far… I guess if you really wanted to, you could create an individual socket for every method of every resource, and have granular permissions that way. But that would be quite messy"
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703842212 {#5145
date: 2023-12-29 10:30:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@fiohnah@lemmy.blahaj.zone"
]
+children: Doctrine\ORM\PersistentCollection {#5148 …}
+nested: Doctrine\ORM\PersistentCollection {#5150 …}
+votes: Doctrine\ORM\PersistentCollection {#5152 …}
+reports: Doctrine\ORM\PersistentCollection {#5154 …}
+favourites: Doctrine\ORM\PersistentCollection {#5156 …}
+notifications: Doctrine\ORM\PersistentCollection {#5158 …}
-id: 261816
-bodyTs: "'could':22 'creat':23 'everi':28,31 'far':13 'get':10 'granular':35 'great':1 'guess':15 'individu':25 'messi':44 'method':29 'permiss':6,36 'point':2 'polici':4 'quit':43 'realli':18 'resourc':32 'set':5 'socket':8,26 'want':19 'way':38 'would':41"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289446"
+editedAt: null
+createdAt: DateTimeImmutable @1703842212 {#5146
date: 2023-12-29 10:30:12.0 +01:00
}
} |
|
Show voter details
|
| 73 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 74 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4739
+user: App\Entity\User {#4752 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Multicast."
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703833109 {#4734
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4740 …}
+nested: Doctrine\ORM\PersistentCollection {#4742 …}
+votes: Doctrine\ORM\PersistentCollection {#4744 …}
+reports: Doctrine\ORM\PersistentCollection {#4746 …}
+favourites: Doctrine\ORM\PersistentCollection {#4748 …}
+notifications: Doctrine\ORM\PersistentCollection {#4750 …}
-id: 261600
-bodyTs: "'multicast':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/6936413"
+editedAt: null
+createdAt: DateTimeImmutable @1703833109 {#4735
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
| 75 |
DENIED
|
edit
|
App\Entity\EntryComment {#4739
+user: App\Entity\User {#4752 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Multicast."
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703833109 {#4734
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4740 …}
+nested: Doctrine\ORM\PersistentCollection {#4742 …}
+votes: Doctrine\ORM\PersistentCollection {#4744 …}
+reports: Doctrine\ORM\PersistentCollection {#4746 …}
+favourites: Doctrine\ORM\PersistentCollection {#4748 …}
+notifications: Doctrine\ORM\PersistentCollection {#4750 …}
-id: 261600
-bodyTs: "'multicast':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/6936413"
+editedAt: null
+createdAt: DateTimeImmutable @1703833109 {#4735
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
| 76 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4739
+user: App\Entity\User {#4752 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Multicast."
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703833109 {#4734
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4740 …}
+nested: Doctrine\ORM\PersistentCollection {#4742 …}
+votes: Doctrine\ORM\PersistentCollection {#4744 …}
+reports: Doctrine\ORM\PersistentCollection {#4746 …}
+favourites: Doctrine\ORM\PersistentCollection {#4748 …}
+notifications: Doctrine\ORM\PersistentCollection {#4750 …}
-id: 261600
-bodyTs: "'multicast':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/6936413"
+editedAt: null
+createdAt: DateTimeImmutable @1703833109 {#4735
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
| 77 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 78 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4812
+user: App\Entity\User {#4825 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Because not using OOP is hard for gui devs."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703829860 {#4807
date: 2023-12-29 07:04:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4813 …}
+nested: Doctrine\ORM\PersistentCollection {#4815 …}
+votes: Doctrine\ORM\PersistentCollection {#4817 …}
+reports: Doctrine\ORM\PersistentCollection {#4819 …}
+favourites: Doctrine\ORM\PersistentCollection {#4821 …}
+notifications: Doctrine\ORM\PersistentCollection {#4823 …}
-id: 261544
-bodyTs: "'dev':9 'gui':8 'hard':6 'oop':4 'use':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/5998453"
+editedAt: null
+createdAt: DateTimeImmutable @1703829860 {#4808
date: 2023-12-29 07:04:20.0 +01:00
}
} |
|
Show voter details
|
| 79 |
DENIED
|
edit
|
App\Entity\EntryComment {#4812
+user: App\Entity\User {#4825 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Because not using OOP is hard for gui devs."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703829860 {#4807
date: 2023-12-29 07:04:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4813 …}
+nested: Doctrine\ORM\PersistentCollection {#4815 …}
+votes: Doctrine\ORM\PersistentCollection {#4817 …}
+reports: Doctrine\ORM\PersistentCollection {#4819 …}
+favourites: Doctrine\ORM\PersistentCollection {#4821 …}
+notifications: Doctrine\ORM\PersistentCollection {#4823 …}
-id: 261544
-bodyTs: "'dev':9 'gui':8 'hard':6 'oop':4 'use':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/5998453"
+editedAt: null
+createdAt: DateTimeImmutable @1703829860 {#4808
date: 2023-12-29 07:04:20.0 +01:00
}
} |
|
Show voter details
|
| 80 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4812
+user: App\Entity\User {#4825 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Because not using OOP is hard for gui devs."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703829860 {#4807
date: 2023-12-29 07:04:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4813 …}
+nested: Doctrine\ORM\PersistentCollection {#4815 …}
+votes: Doctrine\ORM\PersistentCollection {#4817 …}
+reports: Doctrine\ORM\PersistentCollection {#4819 …}
+favourites: Doctrine\ORM\PersistentCollection {#4821 …}
+notifications: Doctrine\ORM\PersistentCollection {#4823 …}
-id: 261544
-bodyTs: "'dev':9 'gui':8 'hard':6 'oop':4 'use':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/5998453"
+editedAt: null
+createdAt: DateTimeImmutable @1703829860 {#4808
date: 2023-12-29 07:04:20.0 +01:00
}
} |
|
Show voter details
|
| 81 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 82 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
} |
|
Show voter details
|
| 83 |
DENIED
|
edit
|
App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
} |
|
Show voter details
|
| 84 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
} |
|
Show voter details
|
| 85 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 86 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
} |
|
Show voter details
|
| 87 |
DENIED
|
edit
|
App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
} |
|
Show voter details
|
| 88 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
} |
|
Show voter details
|
| 89 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 90 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5243
+user: Proxies\__CG__\App\Entity\User {#5248 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: "DBus works very poorly on Windows unfortunately."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703828906 {#5242
date: 2023-12-29 06:48:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5254 …}
+nested: Doctrine\ORM\PersistentCollection {#5250 …}
+votes: Doctrine\ORM\PersistentCollection {#5252 …}
+reports: Doctrine\ORM\PersistentCollection {#5256 …}
+favourites: Doctrine\ORM\PersistentCollection {#5258 …}
+notifications: Doctrine\ORM\PersistentCollection {#5260 …}
-id: 261526
-bodyTs: "'dbus':1 'poor':4 'unfortun':7 'window':6 'work':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6287901"
+editedAt: null
+createdAt: DateTimeImmutable @1703828906 {#5245
date: 2023-12-29 06:48:26.0 +01:00
}
} |
|
Show voter details
|
| 91 |
DENIED
|
edit
|
App\Entity\EntryComment {#5243
+user: Proxies\__CG__\App\Entity\User {#5248 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: "DBus works very poorly on Windows unfortunately."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703828906 {#5242
date: 2023-12-29 06:48:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5254 …}
+nested: Doctrine\ORM\PersistentCollection {#5250 …}
+votes: Doctrine\ORM\PersistentCollection {#5252 …}
+reports: Doctrine\ORM\PersistentCollection {#5256 …}
+favourites: Doctrine\ORM\PersistentCollection {#5258 …}
+notifications: Doctrine\ORM\PersistentCollection {#5260 …}
-id: 261526
-bodyTs: "'dbus':1 'poor':4 'unfortun':7 'window':6 'work':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6287901"
+editedAt: null
+createdAt: DateTimeImmutable @1703828906 {#5245
date: 2023-12-29 06:48:26.0 +01:00
}
} |
|
Show voter details
|
| 92 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5243
+user: Proxies\__CG__\App\Entity\User {#5248 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: "DBus works very poorly on Windows unfortunately."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703828906 {#5242
date: 2023-12-29 06:48:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5254 …}
+nested: Doctrine\ORM\PersistentCollection {#5250 …}
+votes: Doctrine\ORM\PersistentCollection {#5252 …}
+reports: Doctrine\ORM\PersistentCollection {#5256 …}
+favourites: Doctrine\ORM\PersistentCollection {#5258 …}
+notifications: Doctrine\ORM\PersistentCollection {#5260 …}
-id: 261526
-bodyTs: "'dbus':1 'poor':4 'unfortun':7 'window':6 'work':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6287901"
+editedAt: null
+createdAt: DateTimeImmutable @1703828906 {#5245
date: 2023-12-29 06:48:26.0 +01:00
}
} |
|
Show voter details
|
| 93 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 94 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5264
+user: Proxies\__CG__\App\Entity\User {#5195 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
GNOME also works because Lennart said so.\n
\n
But I think DBUS was a simpler KDE reimplementatioon of something GNOME did.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703950033 {#5262
date: 2023-12-30 16:27:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5265 …}
+nested: Doctrine\ORM\PersistentCollection {#5267 …}
+votes: Doctrine\ORM\PersistentCollection {#5269 …}
+reports: Doctrine\ORM\PersistentCollection {#5271 …}
+favourites: Doctrine\ORM\PersistentCollection {#5273 …}
+notifications: Doctrine\ORM\PersistentCollection {#5275 …}
-id: 264783
-bodyTs: "'also':2 'dbus':11 'gnome':1,19 'kde':15 'lennart':5 'reimplementatioon':16 'said':6 'simpler':14 'someth':18 'think':10 'work':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294400"
+editedAt: null
+createdAt: DateTimeImmutable @1703950033 {#5263
date: 2023-12-30 16:27:13.0 +01:00
}
} |
|
Show voter details
|
| 95 |
DENIED
|
edit
|
App\Entity\EntryComment {#5264
+user: Proxies\__CG__\App\Entity\User {#5195 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
GNOME also works because Lennart said so.\n
\n
But I think DBUS was a simpler KDE reimplementatioon of something GNOME did.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703950033 {#5262
date: 2023-12-30 16:27:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5265 …}
+nested: Doctrine\ORM\PersistentCollection {#5267 …}
+votes: Doctrine\ORM\PersistentCollection {#5269 …}
+reports: Doctrine\ORM\PersistentCollection {#5271 …}
+favourites: Doctrine\ORM\PersistentCollection {#5273 …}
+notifications: Doctrine\ORM\PersistentCollection {#5275 …}
-id: 264783
-bodyTs: "'also':2 'dbus':11 'gnome':1,19 'kde':15 'lennart':5 'reimplementatioon':16 'said':6 'simpler':14 'someth':18 'think':10 'work':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294400"
+editedAt: null
+createdAt: DateTimeImmutable @1703950033 {#5263
date: 2023-12-30 16:27:13.0 +01:00
}
} |
|
Show voter details
|
| 96 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5264
+user: Proxies\__CG__\App\Entity\User {#5195 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5131
+user: Proxies\__CG__\App\Entity\User {#5132 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#4885
+user: App\Entity\User {#4898 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4880
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4886 …}
+nested: Doctrine\ORM\PersistentCollection {#4888 …}
+votes: Doctrine\ORM\PersistentCollection {#4890 …}
+reports: Doctrine\ORM\PersistentCollection {#4892 …}
+favourites: Doctrine\ORM\PersistentCollection {#4894 …}
+notifications: Doctrine\ORM\PersistentCollection {#4896 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4881
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5129
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5133 …}
+nested: Doctrine\ORM\PersistentCollection {#5135 …}
+votes: Doctrine\ORM\PersistentCollection {#5137 …}
+reports: Doctrine\ORM\PersistentCollection {#5139 …}
+favourites: Doctrine\ORM\PersistentCollection {#5141 …}
+notifications: Doctrine\ORM\PersistentCollection {#5143 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5130
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4885}
+body: """
GNOME also works because Lennart said so.\n
\n
But I think DBUS was a simpler KDE reimplementatioon of something GNOME did.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703950033 {#5262
date: 2023-12-30 16:27:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5265 …}
+nested: Doctrine\ORM\PersistentCollection {#5267 …}
+votes: Doctrine\ORM\PersistentCollection {#5269 …}
+reports: Doctrine\ORM\PersistentCollection {#5271 …}
+favourites: Doctrine\ORM\PersistentCollection {#5273 …}
+notifications: Doctrine\ORM\PersistentCollection {#5275 …}
-id: 264783
-bodyTs: "'also':2 'dbus':11 'gnome':1,19 'kde':15 'lennart':5 'reimplementatioon':16 'said':6 'simpler':14 'someth':18 'think':10 'work':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294400"
+editedAt: null
+createdAt: DateTimeImmutable @1703950033 {#5263
date: 2023-12-30 16:27:13.0 +01:00
}
} |
|
Show voter details
|
| 97 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 98 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4959
+user: App\Entity\User {#4972 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Sockets are effectively point-to-point communication. Dbus is a bus. Your question is similar to “what is the point of I2, or an ATA bus when directly wiring ICs gets the job done”. Both have different strengths and weaknesses."
+lang: "en"
+isAdult: false
+favouriteCount: 63
+score: 0
+lastActive: DateTime @1703817689 {#4953
date: 2023-12-29 03:41:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4960 …}
+nested: Doctrine\ORM\PersistentCollection {#4962 …}
+votes: Doctrine\ORM\PersistentCollection {#4964 …}
+reports: Doctrine\ORM\PersistentCollection {#4966 …}
+favourites: Doctrine\ORM\PersistentCollection {#4968 …}
+notifications: Doctrine\ORM\PersistentCollection {#4970 …}
-id: 261262
-bodyTs: "'ata':26 'bus':12,27 'communic':8 'dbus':9 'differ':38 'direct':29 'done':35 'effect':3 'get':32 'i2':23 'ic':31 'job':34 'point':5,7,21 'point-to-point':4 'question':14 'similar':16 'socket':1 'strength':39 'weak':41 'wire':30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/6763393"
+editedAt: DateTimeImmutable @1708920762 {#4954
date: 2024-02-26 05:12:42.0 +01:00
}
+createdAt: DateTimeImmutable @1703817689 {#4955
date: 2023-12-29 03:41:29.0 +01:00
}
} |
|
Show voter details
|
| 99 |
DENIED
|
edit
|
App\Entity\EntryComment {#4959
+user: App\Entity\User {#4972 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Sockets are effectively point-to-point communication. Dbus is a bus. Your question is similar to “what is the point of I2, or an ATA bus when directly wiring ICs gets the job done”. Both have different strengths and weaknesses."
+lang: "en"
+isAdult: false
+favouriteCount: 63
+score: 0
+lastActive: DateTime @1703817689 {#4953
date: 2023-12-29 03:41:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4960 …}
+nested: Doctrine\ORM\PersistentCollection {#4962 …}
+votes: Doctrine\ORM\PersistentCollection {#4964 …}
+reports: Doctrine\ORM\PersistentCollection {#4966 …}
+favourites: Doctrine\ORM\PersistentCollection {#4968 …}
+notifications: Doctrine\ORM\PersistentCollection {#4970 …}
-id: 261262
-bodyTs: "'ata':26 'bus':12,27 'communic':8 'dbus':9 'differ':38 'direct':29 'done':35 'effect':3 'get':32 'i2':23 'ic':31 'job':34 'point':5,7,21 'point-to-point':4 'question':14 'similar':16 'socket':1 'strength':39 'weak':41 'wire':30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/6763393"
+editedAt: DateTimeImmutable @1708920762 {#4954
date: 2024-02-26 05:12:42.0 +01:00
}
+createdAt: DateTimeImmutable @1703817689 {#4955
date: 2023-12-29 03:41:29.0 +01:00
}
} |
|
Show voter details
|
| 100 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4959
+user: App\Entity\User {#4972 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Sockets are effectively point-to-point communication. Dbus is a bus. Your question is similar to “what is the point of I2, or an ATA bus when directly wiring ICs gets the job done”. Both have different strengths and weaknesses."
+lang: "en"
+isAdult: false
+favouriteCount: 63
+score: 0
+lastActive: DateTime @1703817689 {#4953
date: 2023-12-29 03:41:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4960 …}
+nested: Doctrine\ORM\PersistentCollection {#4962 …}
+votes: Doctrine\ORM\PersistentCollection {#4964 …}
+reports: Doctrine\ORM\PersistentCollection {#4966 …}
+favourites: Doctrine\ORM\PersistentCollection {#4968 …}
+notifications: Doctrine\ORM\PersistentCollection {#4970 …}
-id: 261262
-bodyTs: "'ata':26 'bus':12,27 'communic':8 'dbus':9 'differ':38 'direct':29 'done':35 'effect':3 'get':32 'i2':23 'ic':31 'job':34 'point':5,7,21 'point-to-point':4 'question':14 'similar':16 'socket':1 'strength':39 'weak':41 'wire':30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/6763393"
+editedAt: DateTimeImmutable @1708920762 {#4954
date: 2024-02-26 05:12:42.0 +01:00
}
+createdAt: DateTimeImmutable @1703817689 {#4955
date: 2023-12-29 03:41:29.0 +01:00
}
} |
|
Show voter details
|
| 101 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 102 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5032
+user: App\Entity\User {#5045 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5027
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5033 …}
+nested: Doctrine\ORM\PersistentCollection {#5035 …}
+votes: Doctrine\ORM\PersistentCollection {#5037 …}
+reports: Doctrine\ORM\PersistentCollection {#5039 …}
+favourites: Doctrine\ORM\PersistentCollection {#5041 …}
+notifications: Doctrine\ORM\PersistentCollection {#5043 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5028
date: 2023-12-29 02:30:36.0 +01:00
}
} |
|
Show voter details
|
| 103 |
DENIED
|
edit
|
App\Entity\EntryComment {#5032
+user: App\Entity\User {#5045 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5027
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5033 …}
+nested: Doctrine\ORM\PersistentCollection {#5035 …}
+votes: Doctrine\ORM\PersistentCollection {#5037 …}
+reports: Doctrine\ORM\PersistentCollection {#5039 …}
+favourites: Doctrine\ORM\PersistentCollection {#5041 …}
+notifications: Doctrine\ORM\PersistentCollection {#5043 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5028
date: 2023-12-29 02:30:36.0 +01:00
}
} |
|
Show voter details
|
| 104 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5032
+user: App\Entity\User {#5045 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5027
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5033 …}
+nested: Doctrine\ORM\PersistentCollection {#5035 …}
+votes: Doctrine\ORM\PersistentCollection {#5037 …}
+reports: Doctrine\ORM\PersistentCollection {#5039 …}
+favourites: Doctrine\ORM\PersistentCollection {#5041 …}
+notifications: Doctrine\ORM\PersistentCollection {#5043 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5028
date: 2023-12-29 02:30:36.0 +01:00
}
} |
|
Show voter details
|
| 105 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 106 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5116
+user: Proxies\__CG__\App\Entity\User {#5113 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5032
+user: App\Entity\User {#5045 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5027
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5033 …}
+nested: Doctrine\ORM\PersistentCollection {#5035 …}
+votes: Doctrine\ORM\PersistentCollection {#5037 …}
+reports: Doctrine\ORM\PersistentCollection {#5039 …}
+favourites: Doctrine\ORM\PersistentCollection {#5041 …}
+notifications: Doctrine\ORM\PersistentCollection {#5043 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5028
date: 2023-12-29 02:30:36.0 +01:00
}
}
+root: App\Entity\EntryComment {#5032}
+body: "WHY is Gamora?"
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703815229 {#5117
date: 2023-12-29 03:00:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mvirts@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5110 …}
+nested: Doctrine\ORM\PersistentCollection {#5108 …}
+votes: Doctrine\ORM\PersistentCollection {#5112 …}
+reports: Doctrine\ORM\PersistentCollection {#5123 …}
+favourites: Doctrine\ORM\PersistentCollection {#5125 …}
+notifications: Doctrine\ORM\PersistentCollection {#5127 …}
-id: 261167
-bodyTs: "'gamora':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://slrpnk.net/comment/4960286"
+editedAt: null
+createdAt: DateTimeImmutable @1703815229 {#5120
date: 2023-12-29 03:00:29.0 +01:00
}
} |
|
Show voter details
|
| 107 |
DENIED
|
edit
|
App\Entity\EntryComment {#5116
+user: Proxies\__CG__\App\Entity\User {#5113 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5032
+user: App\Entity\User {#5045 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5027
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5033 …}
+nested: Doctrine\ORM\PersistentCollection {#5035 …}
+votes: Doctrine\ORM\PersistentCollection {#5037 …}
+reports: Doctrine\ORM\PersistentCollection {#5039 …}
+favourites: Doctrine\ORM\PersistentCollection {#5041 …}
+notifications: Doctrine\ORM\PersistentCollection {#5043 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5028
date: 2023-12-29 02:30:36.0 +01:00
}
}
+root: App\Entity\EntryComment {#5032}
+body: "WHY is Gamora?"
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703815229 {#5117
date: 2023-12-29 03:00:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mvirts@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5110 …}
+nested: Doctrine\ORM\PersistentCollection {#5108 …}
+votes: Doctrine\ORM\PersistentCollection {#5112 …}
+reports: Doctrine\ORM\PersistentCollection {#5123 …}
+favourites: Doctrine\ORM\PersistentCollection {#5125 …}
+notifications: Doctrine\ORM\PersistentCollection {#5127 …}
-id: 261167
-bodyTs: "'gamora':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://slrpnk.net/comment/4960286"
+editedAt: null
+createdAt: DateTimeImmutable @1703815229 {#5120
date: 2023-12-29 03:00:29.0 +01:00
}
} |
|
Show voter details
|
| 108 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5116
+user: Proxies\__CG__\App\Entity\User {#5113 …}
+entry: App\Entity\Entry {#2419
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1943 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
+slug: "What-is-the-point-of-dbus"
+title: "What is the point of dbus?"
+url: "https://lemmy.world/pictrs/image/f7b2404a-896e-47b5-a954-8bc03c07d8f9.webp"
+body: """
Does anybody know why dbus exists? I’ve been wracking my brain trying to come up with a usecase for dbus that isn’t already covered by Unix sockets.\n
\n
You want to remotely control a daemon? Use sockets. You want the daemon to respond to the client? Sockets. Want to exchange information in json? plaintext? binary data? Sockets can do it. Want to restrict access to a socket? Go ahead, change the socket’s permissions. Want to prevent unauthorized programs from pretending to be someone they’re not? Change the permissions of the directory containing the socket. Want network transparency? That’s why we have abstract sockets.\n
\n
Plenty of well-established software uses sockets. Music player daemon uses sockets. BSPWM uses sockets. Tmux uses sockets. Pipewire uses sockets. Dhcpcd uses sockets. Heck, dbus itself relies on sockets!\n
\n
For developers, using sockets is easy. I once wrote a program that interfaced with BSPWM, and it was a breeze. Dbus, on the other hand, not so much. I tried writing a Python script that would contact Network Manager and check the WiFi signal strength. Right off the bat I’m using some obscure undocumented package for interfacing with dbus. What is an introspection? What is a proxy object? What is an interface? Why do I need 60 lines of (Python!) code for a seemingly trivial operation?\n
\n
So why do some developers decide to use dbus when they could just use unix sockets and save a lot of hassle for themselves and others?
"""
+type: "link"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 76
+favouriteCount: 264
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1712146891 {#2414
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1866 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1946 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 25525
-titleTs: "'dbus':6 'point':4"
-bodyTs: "'60':216 'abstract':106 'access':65 'ahead':70 'alreadi':25 'anybodi':2 'bat':187 'binari':56 'brain':12 'breez':158 'bspwm':121,153 'chang':71,89 'check':179 'client':47 'code':220 'come':15 'contact':175 'contain':95 'control':34 'could':237 'cover':26 'daemon':36,42,118 'data':57 'dbus':5,21,134,159,198,234 'decid':231 'develop':140,230 'dhcpcd':130 'directori':94 'easi':144 'establish':112 'exchang':51 'exist':6 'go':69 'hand':163 'hassl':247 'heck':133 'inform':52 'interfac':151,196,211 'introspect':202 'isn':23 'json':54 'know':3 'line':217 'lot':245 'm':189 'manag':177 'much':166 'music':116 'need':215 'network':99,176 'object':207 'obscur':192 'oper':225 'other':251 'packag':194 'permiss':75,91 'pipewir':127 'plaintext':55 'player':117 'plenti':108 'pretend':82 'prevent':78 'program':80,149 'proxi':206 'python':171,219 're':87 'reli':136 'remot':33 'respond':44 'restrict':64 'right':184 'save':243 'script':172 'seem':223 'signal':182 'socket':29,38,48,58,68,73,97,107,115,120,123,126,129,132,138,142,241 'softwar':113 'someon':85 'strength':183 'tmux':124 'transpar':100 'tri':13,168 'trivial':224 'unauthor':79 'undocu':193 'unix':28,240 'use':37,114,119,122,125,128,131,141,190,233,239 'usecas':19 've':8 'want':31,40,49,62,76,98 'well':111 'well-establish':110 'wifi':181 'would':174 'wrack':10 'write':169 'wrote':147"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703893490
+visibility: "visible "
+apId: "https://lemmy.world/post/10075662"
+editedAt: null
+createdAt: DateTimeImmutable @1703807090 {#1793
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: App\Entity\EntryComment {#5032
+user: App\Entity\User {#5045 …}
+entry: App\Entity\Entry {#2419}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5027
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5033 …}
+nested: Doctrine\ORM\PersistentCollection {#5035 …}
+votes: Doctrine\ORM\PersistentCollection {#5037 …}
+reports: Doctrine\ORM\PersistentCollection {#5039 …}
+favourites: Doctrine\ORM\PersistentCollection {#5041 …}
+notifications: Doctrine\ORM\PersistentCollection {#5043 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5028
date: 2023-12-29 02:30:36.0 +01:00
}
}
+root: App\Entity\EntryComment {#5032}
+body: "WHY is Gamora?"
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703815229 {#5117
date: 2023-12-29 03:00:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mvirts@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5110 …}
+nested: Doctrine\ORM\PersistentCollection {#5108 …}
+votes: Doctrine\ORM\PersistentCollection {#5112 …}
+reports: Doctrine\ORM\PersistentCollection {#5123 …}
+favourites: Doctrine\ORM\PersistentCollection {#5125 …}
+notifications: Doctrine\ORM\PersistentCollection {#5127 …}
-id: 261167
-bodyTs: "'gamora':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://slrpnk.net/comment/4960286"
+editedAt: null
+createdAt: DateTimeImmutable @1703815229 {#5120
date: 2023-12-29 03:00:29.0 +01:00
}
} |
|
Show voter details
|
| 109 |
DENIED
|
edit
|
App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|