| 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 {#4017
+user: App\Entity\User {#3965 …}
+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 {#4026
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4015 …}
+nested: Doctrine\ORM\PersistentCollection {#4013 …}
+votes: Doctrine\ORM\PersistentCollection {#4011 …}
+reports: Doctrine\ORM\PersistentCollection {#4009 …}
+favourites: Doctrine\ORM\PersistentCollection {#3977 …}
+notifications: Doctrine\ORM\PersistentCollection {#3981 …}
-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 {#3962
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
| 7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4017
+user: App\Entity\User {#3965 …}
+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 {#4026
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4015 …}
+nested: Doctrine\ORM\PersistentCollection {#4013 …}
+votes: Doctrine\ORM\PersistentCollection {#4011 …}
+reports: Doctrine\ORM\PersistentCollection {#4009 …}
+favourites: Doctrine\ORM\PersistentCollection {#3977 …}
+notifications: Doctrine\ORM\PersistentCollection {#3981 …}
-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 {#3962
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
| 8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4017
+user: App\Entity\User {#3965 …}
+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 {#4026
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4015 …}
+nested: Doctrine\ORM\PersistentCollection {#4013 …}
+votes: Doctrine\ORM\PersistentCollection {#4011 …}
+reports: Doctrine\ORM\PersistentCollection {#4009 …}
+favourites: Doctrine\ORM\PersistentCollection {#3977 …}
+notifications: Doctrine\ORM\PersistentCollection {#3981 …}
-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 {#3962
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
| 9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4049
+user: App\Entity\User {#4038 …}
+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 {#4055
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4054 …}
+nested: Doctrine\ORM\PersistentCollection {#4053 …}
+votes: Doctrine\ORM\PersistentCollection {#4044 …}
+reports: Doctrine\ORM\PersistentCollection {#4047 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4040 …}
-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 {#4060
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
| 11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4049
+user: App\Entity\User {#4038 …}
+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 {#4055
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4054 …}
+nested: Doctrine\ORM\PersistentCollection {#4053 …}
+votes: Doctrine\ORM\PersistentCollection {#4044 …}
+reports: Doctrine\ORM\PersistentCollection {#4047 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4040 …}
-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 {#4060
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
| 12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4049
+user: App\Entity\User {#4038 …}
+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 {#4055
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4054 …}
+nested: Doctrine\ORM\PersistentCollection {#4053 …}
+votes: Doctrine\ORM\PersistentCollection {#4044 …}
+reports: Doctrine\ORM\PersistentCollection {#4047 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4040 …}
-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 {#4060
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
| 13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4134
+user: App\Entity\User {#4147 …}
+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 {#4129
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4135 …}
+nested: Doctrine\ORM\PersistentCollection {#4137 …}
+votes: Doctrine\ORM\PersistentCollection {#4139 …}
+reports: Doctrine\ORM\PersistentCollection {#4141 …}
+favourites: Doctrine\ORM\PersistentCollection {#4143 …}
+notifications: Doctrine\ORM\PersistentCollection {#4145 …}
-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 {#4130
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
| 15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4134
+user: App\Entity\User {#4147 …}
+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 {#4129
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4135 …}
+nested: Doctrine\ORM\PersistentCollection {#4137 …}
+votes: Doctrine\ORM\PersistentCollection {#4139 …}
+reports: Doctrine\ORM\PersistentCollection {#4141 …}
+favourites: Doctrine\ORM\PersistentCollection {#4143 …}
+notifications: Doctrine\ORM\PersistentCollection {#4145 …}
-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 {#4130
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
| 16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4134
+user: App\Entity\User {#4147 …}
+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 {#4129
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4135 …}
+nested: Doctrine\ORM\PersistentCollection {#4137 …}
+votes: Doctrine\ORM\PersistentCollection {#4139 …}
+reports: Doctrine\ORM\PersistentCollection {#4141 …}
+favourites: Doctrine\ORM\PersistentCollection {#4143 …}
+notifications: Doctrine\ORM\PersistentCollection {#4145 …}
-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 {#4130
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
| 17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4208
+user: App\Entity\User {#4221 …}
+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 {#4202
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 {#4209 …}
+nested: Doctrine\ORM\PersistentCollection {#4211 …}
+votes: Doctrine\ORM\PersistentCollection {#4213 …}
+reports: Doctrine\ORM\PersistentCollection {#4215 …}
+favourites: Doctrine\ORM\PersistentCollection {#4217 …}
+notifications: Doctrine\ORM\PersistentCollection {#4219 …}
-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 {#4203
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4204
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
| 19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4208
+user: App\Entity\User {#4221 …}
+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 {#4202
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 {#4209 …}
+nested: Doctrine\ORM\PersistentCollection {#4211 …}
+votes: Doctrine\ORM\PersistentCollection {#4213 …}
+reports: Doctrine\ORM\PersistentCollection {#4215 …}
+favourites: Doctrine\ORM\PersistentCollection {#4217 …}
+notifications: Doctrine\ORM\PersistentCollection {#4219 …}
-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 {#4203
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4204
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
| 20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4208
+user: App\Entity\User {#4221 …}
+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 {#4202
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 {#4209 …}
+nested: Doctrine\ORM\PersistentCollection {#4211 …}
+votes: Doctrine\ORM\PersistentCollection {#4213 …}
+reports: Doctrine\ORM\PersistentCollection {#4215 …}
+favourites: Doctrine\ORM\PersistentCollection {#4217 …}
+notifications: Doctrine\ORM\PersistentCollection {#4219 …}
-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 {#4203
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4204
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
| 21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4281
+user: App\Entity\User {#4294 …}
+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 {#4276
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4282 …}
+nested: Doctrine\ORM\PersistentCollection {#4284 …}
+votes: Doctrine\ORM\PersistentCollection {#4286 …}
+reports: Doctrine\ORM\PersistentCollection {#4288 …}
+favourites: Doctrine\ORM\PersistentCollection {#4290 …}
+notifications: Doctrine\ORM\PersistentCollection {#4292 …}
-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 {#4277
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
| 23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4281
+user: App\Entity\User {#4294 …}
+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 {#4276
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4282 …}
+nested: Doctrine\ORM\PersistentCollection {#4284 …}
+votes: Doctrine\ORM\PersistentCollection {#4286 …}
+reports: Doctrine\ORM\PersistentCollection {#4288 …}
+favourites: Doctrine\ORM\PersistentCollection {#4290 …}
+notifications: Doctrine\ORM\PersistentCollection {#4292 …}
-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 {#4277
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
| 24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4281
+user: App\Entity\User {#4294 …}
+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 {#4276
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4282 …}
+nested: Doctrine\ORM\PersistentCollection {#4284 …}
+votes: Doctrine\ORM\PersistentCollection {#4286 …}
+reports: Doctrine\ORM\PersistentCollection {#4288 …}
+favourites: Doctrine\ORM\PersistentCollection {#4290 …}
+notifications: Doctrine\ORM\PersistentCollection {#4292 …}
-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 {#4277
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
| 25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4354
+user: App\Entity\User {#4367 …}
+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 {#4349
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4355 …}
+nested: Doctrine\ORM\PersistentCollection {#4357 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4361 …}
+favourites: Doctrine\ORM\PersistentCollection {#4363 …}
+notifications: Doctrine\ORM\PersistentCollection {#4365 …}
-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 {#4350
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
| 27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4354
+user: App\Entity\User {#4367 …}
+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 {#4349
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4355 …}
+nested: Doctrine\ORM\PersistentCollection {#4357 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4361 …}
+favourites: Doctrine\ORM\PersistentCollection {#4363 …}
+notifications: Doctrine\ORM\PersistentCollection {#4365 …}
-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 {#4350
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
| 28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4354
+user: App\Entity\User {#4367 …}
+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 {#4349
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4355 …}
+nested: Doctrine\ORM\PersistentCollection {#4357 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4361 …}
+favourites: Doctrine\ORM\PersistentCollection {#4363 …}
+notifications: Doctrine\ORM\PersistentCollection {#4365 …}
-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 {#4350
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
| 29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4429
+user: App\Entity\User {#4442 …}
+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 {#4423
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 {#4430 …}
+nested: Doctrine\ORM\PersistentCollection {#4432 …}
+votes: Doctrine\ORM\PersistentCollection {#4434 …}
+reports: Doctrine\ORM\PersistentCollection {#4436 …}
+favourites: Doctrine\ORM\PersistentCollection {#4438 …}
+notifications: Doctrine\ORM\PersistentCollection {#4440 …}
-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 {#4424
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4425
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
| 31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4429
+user: App\Entity\User {#4442 …}
+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 {#4423
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 {#4430 …}
+nested: Doctrine\ORM\PersistentCollection {#4432 …}
+votes: Doctrine\ORM\PersistentCollection {#4434 …}
+reports: Doctrine\ORM\PersistentCollection {#4436 …}
+favourites: Doctrine\ORM\PersistentCollection {#4438 …}
+notifications: Doctrine\ORM\PersistentCollection {#4440 …}
-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 {#4424
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4425
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
| 32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4429
+user: App\Entity\User {#4442 …}
+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 {#4423
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 {#4430 …}
+nested: Doctrine\ORM\PersistentCollection {#4432 …}
+votes: Doctrine\ORM\PersistentCollection {#4434 …}
+reports: Doctrine\ORM\PersistentCollection {#4436 …}
+favourites: Doctrine\ORM\PersistentCollection {#4438 …}
+notifications: Doctrine\ORM\PersistentCollection {#4440 …}
-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 {#4424
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4425
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 {#4503
+user: App\Entity\User {#4516 …}
+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 {#4498
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4504 …}
+nested: Doctrine\ORM\PersistentCollection {#4506 …}
+votes: Doctrine\ORM\PersistentCollection {#4508 …}
+reports: Doctrine\ORM\PersistentCollection {#4510 …}
+favourites: Doctrine\ORM\PersistentCollection {#4512 …}
+notifications: Doctrine\ORM\PersistentCollection {#4514 …}
-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 {#4499
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
| 35 |
DENIED
|
edit
|
App\Entity\EntryComment {#4503
+user: App\Entity\User {#4516 …}
+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 {#4498
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4504 …}
+nested: Doctrine\ORM\PersistentCollection {#4506 …}
+votes: Doctrine\ORM\PersistentCollection {#4508 …}
+reports: Doctrine\ORM\PersistentCollection {#4510 …}
+favourites: Doctrine\ORM\PersistentCollection {#4512 …}
+notifications: Doctrine\ORM\PersistentCollection {#4514 …}
-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 {#4499
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
| 36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4503
+user: App\Entity\User {#4516 …}
+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 {#4498
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4504 …}
+nested: Doctrine\ORM\PersistentCollection {#4506 …}
+votes: Doctrine\ORM\PersistentCollection {#4508 …}
+reports: Doctrine\ORM\PersistentCollection {#4510 …}
+favourites: Doctrine\ORM\PersistentCollection {#4512 …}
+notifications: Doctrine\ORM\PersistentCollection {#4514 …}
-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 {#4499
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
| 37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 38 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4576
+user: App\Entity\User {#4589 …}
+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 {#4571
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4577 …}
+nested: Doctrine\ORM\PersistentCollection {#4579 …}
+votes: Doctrine\ORM\PersistentCollection {#4581 …}
+reports: Doctrine\ORM\PersistentCollection {#4583 …}
+favourites: Doctrine\ORM\PersistentCollection {#4585 …}
+notifications: Doctrine\ORM\PersistentCollection {#4587 …}
-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 {#4572
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
| 39 |
DENIED
|
edit
|
App\Entity\EntryComment {#4576
+user: App\Entity\User {#4589 …}
+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 {#4571
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4577 …}
+nested: Doctrine\ORM\PersistentCollection {#4579 …}
+votes: Doctrine\ORM\PersistentCollection {#4581 …}
+reports: Doctrine\ORM\PersistentCollection {#4583 …}
+favourites: Doctrine\ORM\PersistentCollection {#4585 …}
+notifications: Doctrine\ORM\PersistentCollection {#4587 …}
-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 {#4572
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
| 40 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4576
+user: App\Entity\User {#4589 …}
+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 {#4571
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4577 …}
+nested: Doctrine\ORM\PersistentCollection {#4579 …}
+votes: Doctrine\ORM\PersistentCollection {#4581 …}
+reports: Doctrine\ORM\PersistentCollection {#4583 …}
+favourites: Doctrine\ORM\PersistentCollection {#4585 …}
+notifications: Doctrine\ORM\PersistentCollection {#4587 …}
-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 {#4572
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
| 41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4649
+user: App\Entity\User {#4662 …}
+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 {#4644
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4650 …}
+nested: Doctrine\ORM\PersistentCollection {#4652 …}
+votes: Doctrine\ORM\PersistentCollection {#4654 …}
+reports: Doctrine\ORM\PersistentCollection {#4656 …}
+favourites: Doctrine\ORM\PersistentCollection {#4658 …}
+notifications: Doctrine\ORM\PersistentCollection {#4660 …}
-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 {#4645
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
| 43 |
DENIED
|
edit
|
App\Entity\EntryComment {#4649
+user: App\Entity\User {#4662 …}
+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 {#4644
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4650 …}
+nested: Doctrine\ORM\PersistentCollection {#4652 …}
+votes: Doctrine\ORM\PersistentCollection {#4654 …}
+reports: Doctrine\ORM\PersistentCollection {#4656 …}
+favourites: Doctrine\ORM\PersistentCollection {#4658 …}
+notifications: Doctrine\ORM\PersistentCollection {#4660 …}
-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 {#4645
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
| 44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4649
+user: App\Entity\User {#4662 …}
+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 {#4644
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4650 …}
+nested: Doctrine\ORM\PersistentCollection {#4652 …}
+votes: Doctrine\ORM\PersistentCollection {#4654 …}
+reports: Doctrine\ORM\PersistentCollection {#4656 …}
+favourites: Doctrine\ORM\PersistentCollection {#4658 …}
+notifications: Doctrine\ORM\PersistentCollection {#4660 …}
-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 {#4645
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
| 45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
| 46 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4722
+user: App\Entity\User {#4735 …}
+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 {#4717
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4723 …}
+nested: Doctrine\ORM\PersistentCollection {#4725 …}
+votes: Doctrine\ORM\PersistentCollection {#4727 …}
+reports: Doctrine\ORM\PersistentCollection {#4729 …}
+favourites: Doctrine\ORM\PersistentCollection {#4731 …}
+notifications: Doctrine\ORM\PersistentCollection {#4733 …}
-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 {#4718
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
| 47 |
DENIED
|
edit
|
App\Entity\EntryComment {#4722
+user: App\Entity\User {#4735 …}
+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 {#4717
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4723 …}
+nested: Doctrine\ORM\PersistentCollection {#4725 …}
+votes: Doctrine\ORM\PersistentCollection {#4727 …}
+reports: Doctrine\ORM\PersistentCollection {#4729 …}
+favourites: Doctrine\ORM\PersistentCollection {#4731 …}
+notifications: Doctrine\ORM\PersistentCollection {#4733 …}
-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 {#4718
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
| 48 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4722
+user: App\Entity\User {#4735 …}
+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 {#4717
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4723 …}
+nested: Doctrine\ORM\PersistentCollection {#4725 …}
+votes: Doctrine\ORM\PersistentCollection {#4727 …}
+reports: Doctrine\ORM\PersistentCollection {#4729 …}
+favourites: Doctrine\ORM\PersistentCollection {#4731 …}
+notifications: Doctrine\ORM\PersistentCollection {#4733 …}
-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 {#4718
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
| 49 |
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
|