1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
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 {#4038
+user: App\Entity\User {#3986 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4047
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4036 …}
+nested: Doctrine\ORM\PersistentCollection {#4034 …}
+votes: Doctrine\ORM\PersistentCollection {#4032 …}
+reports: Doctrine\ORM\PersistentCollection {#4030 …}
+favourites: Doctrine\ORM\PersistentCollection {#3998 …}
+notifications: Doctrine\ORM\PersistentCollection {#4002 …}
-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 {#3983
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4038
+user: App\Entity\User {#3986 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4047
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4036 …}
+nested: Doctrine\ORM\PersistentCollection {#4034 …}
+votes: Doctrine\ORM\PersistentCollection {#4032 …}
+reports: Doctrine\ORM\PersistentCollection {#4030 …}
+favourites: Doctrine\ORM\PersistentCollection {#3998 …}
+notifications: Doctrine\ORM\PersistentCollection {#4002 …}
-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 {#3983
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4038
+user: App\Entity\User {#3986 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4047
date: 2023-12-31 03:39:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4036 …}
+nested: Doctrine\ORM\PersistentCollection {#4034 …}
+votes: Doctrine\ORM\PersistentCollection {#4032 …}
+reports: Doctrine\ORM\PersistentCollection {#4030 …}
+favourites: Doctrine\ORM\PersistentCollection {#3998 …}
+notifications: Doctrine\ORM\PersistentCollection {#4002 …}
-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 {#3983
date: 2023-12-31 03:39:30.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4073
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Dbus is a better name"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703974899 {#4079
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4074 …}
+nested: Doctrine\ORM\PersistentCollection {#4065 …}
+votes: Doctrine\ORM\PersistentCollection {#4068 …}
+reports: Doctrine\ORM\PersistentCollection {#4063 …}
+favourites: Doctrine\ORM\PersistentCollection {#4061 …}
+notifications: Doctrine\ORM\PersistentCollection {#4059 …}
-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 {#4080
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4073
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Dbus is a better name"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703974899 {#4079
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4074 …}
+nested: Doctrine\ORM\PersistentCollection {#4065 …}
+votes: Doctrine\ORM\PersistentCollection {#4068 …}
+reports: Doctrine\ORM\PersistentCollection {#4063 …}
+favourites: Doctrine\ORM\PersistentCollection {#4061 …}
+notifications: Doctrine\ORM\PersistentCollection {#4059 …}
-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 {#4080
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4073
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Dbus is a better name"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703974899 {#4079
date: 2023-12-30 23:21:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4074 …}
+nested: Doctrine\ORM\PersistentCollection {#4065 …}
+votes: Doctrine\ORM\PersistentCollection {#4068 …}
+reports: Doctrine\ORM\PersistentCollection {#4063 …}
+favourites: Doctrine\ORM\PersistentCollection {#4061 …}
+notifications: Doctrine\ORM\PersistentCollection {#4059 …}
-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 {#4080
date: 2023-12-30 23:21:39.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5216
+user: Proxies\__CG__\App\Entity\User {#5217 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5214
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5218 …}
+nested: Doctrine\ORM\PersistentCollection {#5220 …}
+votes: Doctrine\ORM\PersistentCollection {#5222 …}
+reports: Doctrine\ORM\PersistentCollection {#5224 …}
+favourites: Doctrine\ORM\PersistentCollection {#5226 …}
+notifications: Doctrine\ORM\PersistentCollection {#5228 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5215
date: 2023-12-30 10:31:02.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#5216
+user: Proxies\__CG__\App\Entity\User {#5217 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5214
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5218 …}
+nested: Doctrine\ORM\PersistentCollection {#5220 …}
+votes: Doctrine\ORM\PersistentCollection {#5222 …}
+reports: Doctrine\ORM\PersistentCollection {#5224 …}
+favourites: Doctrine\ORM\PersistentCollection {#5226 …}
+notifications: Doctrine\ORM\PersistentCollection {#5228 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5215
date: 2023-12-30 10:31:02.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5216
+user: Proxies\__CG__\App\Entity\User {#5217 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5214
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5218 …}
+nested: Doctrine\ORM\PersistentCollection {#5220 …}
+votes: Doctrine\ORM\PersistentCollection {#5222 …}
+reports: Doctrine\ORM\PersistentCollection {#5224 …}
+favourites: Doctrine\ORM\PersistentCollection {#5226 …}
+notifications: Doctrine\ORM\PersistentCollection {#5228 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5215
date: 2023-12-30 10:31:02.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5285
+user: Proxies\__CG__\App\Entity\User {#5286 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5216
+user: Proxies\__CG__\App\Entity\User {#5217 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5214
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5218 …}
+nested: Doctrine\ORM\PersistentCollection {#5220 …}
+votes: Doctrine\ORM\PersistentCollection {#5222 …}
+reports: Doctrine\ORM\PersistentCollection {#5224 …}
+favourites: Doctrine\ORM\PersistentCollection {#5226 …}
+notifications: Doctrine\ORM\PersistentCollection {#5228 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5215
date: 2023-12-30 10:31:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "Hichard Stallman?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704168647 {#5283
date: 2024-01-02 05:10:47.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
"@vsis@feddit.cl"
]
+children: Doctrine\ORM\PersistentCollection {#5287 …}
+nested: Doctrine\ORM\PersistentCollection {#5289 …}
+votes: Doctrine\ORM\PersistentCollection {#5291 …}
+reports: Doctrine\ORM\PersistentCollection {#5293 …}
+favourites: Doctrine\ORM\PersistentCollection {#5295 …}
+notifications: Doctrine\ORM\PersistentCollection {#5297 …}
-id: 272230
-bodyTs: "'hichard':1 'stallman':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://bolha.forum/comment/859159"
+editedAt: null
+createdAt: DateTimeImmutable @1704168647 {#5284
date: 2024-01-02 05:10:47.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#5285
+user: Proxies\__CG__\App\Entity\User {#5286 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5216
+user: Proxies\__CG__\App\Entity\User {#5217 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5214
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5218 …}
+nested: Doctrine\ORM\PersistentCollection {#5220 …}
+votes: Doctrine\ORM\PersistentCollection {#5222 …}
+reports: Doctrine\ORM\PersistentCollection {#5224 …}
+favourites: Doctrine\ORM\PersistentCollection {#5226 …}
+notifications: Doctrine\ORM\PersistentCollection {#5228 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5215
date: 2023-12-30 10:31:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "Hichard Stallman?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704168647 {#5283
date: 2024-01-02 05:10:47.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
"@vsis@feddit.cl"
]
+children: Doctrine\ORM\PersistentCollection {#5287 …}
+nested: Doctrine\ORM\PersistentCollection {#5289 …}
+votes: Doctrine\ORM\PersistentCollection {#5291 …}
+reports: Doctrine\ORM\PersistentCollection {#5293 …}
+favourites: Doctrine\ORM\PersistentCollection {#5295 …}
+notifications: Doctrine\ORM\PersistentCollection {#5297 …}
-id: 272230
-bodyTs: "'hichard':1 'stallman':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://bolha.forum/comment/859159"
+editedAt: null
+createdAt: DateTimeImmutable @1704168647 {#5284
date: 2024-01-02 05:10:47.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5285
+user: Proxies\__CG__\App\Entity\User {#5286 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5216
+user: Proxies\__CG__\App\Entity\User {#5217 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4157
+user: App\Entity\User {#4170 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4152
date: 2024-03-17 09:02:14.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4158 …}
+nested: Doctrine\ORM\PersistentCollection {#4160 …}
+votes: Doctrine\ORM\PersistentCollection {#4162 …}
+reports: Doctrine\ORM\PersistentCollection {#4164 …}
+favourites: Doctrine\ORM\PersistentCollection {#4166 …}
+notifications: Doctrine\ORM\PersistentCollection {#4168 …}
-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 {#4153
date: 2023-12-30 10:01:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "*Those who don’t understand Unix are condemned to reinvent it, poorly.* ~HS"
+lang: "en"
+isAdult: false
+favouriteCount: 13
+score: 0
+lastActive: DateTime @1703928662 {#5214
date: 2023-12-30 10:31:02.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5218 …}
+nested: Doctrine\ORM\PersistentCollection {#5220 …}
+votes: Doctrine\ORM\PersistentCollection {#5222 …}
+reports: Doctrine\ORM\PersistentCollection {#5224 …}
+favourites: Doctrine\ORM\PersistentCollection {#5226 …}
+notifications: Doctrine\ORM\PersistentCollection {#5228 …}
-id: 264347
-bodyTs: "'condemn':8 'hs':13 'poor':12 'reinvent':10 'understand':5 'unix':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.cl/comment/2888707"
+editedAt: null
+createdAt: DateTimeImmutable @1703928662 {#5215
date: 2023-12-30 10:31:02.0 +01:00
}
}
+root: App\Entity\EntryComment {#4157}
+body: "Hichard Stallman?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704168647 {#5283
date: 2024-01-02 05:10:47.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@chitak166@lemmy.world"
"@vsis@feddit.cl"
]
+children: Doctrine\ORM\PersistentCollection {#5287 …}
+nested: Doctrine\ORM\PersistentCollection {#5289 …}
+votes: Doctrine\ORM\PersistentCollection {#5291 …}
+reports: Doctrine\ORM\PersistentCollection {#5293 …}
+favourites: Doctrine\ORM\PersistentCollection {#5295 …}
+notifications: Doctrine\ORM\PersistentCollection {#5297 …}
-id: 272230
-bodyTs: "'hichard':1 'stallman':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://bolha.forum/comment/859159"
+editedAt: null
+createdAt: DateTimeImmutable @1704168647 {#5284
date: 2024-01-02 05:10:47.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4230
+user: App\Entity\User {#4243 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4225
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4231 …}
+nested: Doctrine\ORM\PersistentCollection {#4233 …}
+votes: Doctrine\ORM\PersistentCollection {#4235 …}
+reports: Doctrine\ORM\PersistentCollection {#4237 …}
+favourites: Doctrine\ORM\PersistentCollection {#4239 …}
+notifications: Doctrine\ORM\PersistentCollection {#4241 …}
-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 {#4226
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4230
+user: App\Entity\User {#4243 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4225
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4231 …}
+nested: Doctrine\ORM\PersistentCollection {#4233 …}
+votes: Doctrine\ORM\PersistentCollection {#4235 …}
+reports: Doctrine\ORM\PersistentCollection {#4237 …}
+favourites: Doctrine\ORM\PersistentCollection {#4239 …}
+notifications: Doctrine\ORM\PersistentCollection {#4241 …}
-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 {#4226
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4230
+user: App\Entity\User {#4243 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4225
date: 2023-12-30 02:22:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4231 …}
+nested: Doctrine\ORM\PersistentCollection {#4233 …}
+votes: Doctrine\ORM\PersistentCollection {#4235 …}
+reports: Doctrine\ORM\PersistentCollection {#4237 …}
+favourites: Doctrine\ORM\PersistentCollection {#4239 …}
+notifications: Doctrine\ORM\PersistentCollection {#4241 …}
-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 {#4226
date: 2023-12-30 02:22:50.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4304
+user: App\Entity\User {#4317 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4298
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 {#4305 …}
+nested: Doctrine\ORM\PersistentCollection {#4307 …}
+votes: Doctrine\ORM\PersistentCollection {#4309 …}
+reports: Doctrine\ORM\PersistentCollection {#4311 …}
+favourites: Doctrine\ORM\PersistentCollection {#4313 …}
+notifications: Doctrine\ORM\PersistentCollection {#4315 …}
-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 {#4299
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4300
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4304
+user: App\Entity\User {#4317 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4298
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 {#4305 …}
+nested: Doctrine\ORM\PersistentCollection {#4307 …}
+votes: Doctrine\ORM\PersistentCollection {#4309 …}
+reports: Doctrine\ORM\PersistentCollection {#4311 …}
+favourites: Doctrine\ORM\PersistentCollection {#4313 …}
+notifications: Doctrine\ORM\PersistentCollection {#4315 …}
-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 {#4299
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4300
date: 2023-12-30 01:20:21.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4304
+user: App\Entity\User {#4317 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4298
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 {#4305 …}
+nested: Doctrine\ORM\PersistentCollection {#4307 …}
+votes: Doctrine\ORM\PersistentCollection {#4309 …}
+reports: Doctrine\ORM\PersistentCollection {#4311 …}
+favourites: Doctrine\ORM\PersistentCollection {#4313 …}
+notifications: Doctrine\ORM\PersistentCollection {#4315 …}
-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 {#4299
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4300
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 {#5200
+user: Proxies\__CG__\App\Entity\User {#5201 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4304
+user: App\Entity\User {#4317 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4298
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 {#4305 …}
+nested: Doctrine\ORM\PersistentCollection {#4307 …}
+votes: Doctrine\ORM\PersistentCollection {#4309 …}
+reports: Doctrine\ORM\PersistentCollection {#4311 …}
+favourites: Doctrine\ORM\PersistentCollection {#4313 …}
+notifications: Doctrine\ORM\PersistentCollection {#4315 …}
-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 {#4299
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4300
date: 2023-12-30 01:20:21.0 +01:00
}
}
+root: App\Entity\EntryComment {#4304}
+body: "There’s still no standard on how to use dbus so I don’t get your point"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703949659 {#5198
date: 2023-12-30 16:20:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5202 …}
+nested: Doctrine\ORM\PersistentCollection {#5204 …}
+votes: Doctrine\ORM\PersistentCollection {#5206 …}
+reports: Doctrine\ORM\PersistentCollection {#5208 …}
+favourites: Doctrine\ORM\PersistentCollection {#5210 …}
+notifications: Doctrine\ORM\PersistentCollection {#5212 …}
-id: 264768
-bodyTs: "'dbus':10 'get':15 'point':17 'standard':5 'still':3 'use':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294314"
+editedAt: null
+createdAt: DateTimeImmutable @1703949659 {#5199
date: 2023-12-30 16:20:59.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#5200
+user: Proxies\__CG__\App\Entity\User {#5201 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4304
+user: App\Entity\User {#4317 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4298
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 {#4305 …}
+nested: Doctrine\ORM\PersistentCollection {#4307 …}
+votes: Doctrine\ORM\PersistentCollection {#4309 …}
+reports: Doctrine\ORM\PersistentCollection {#4311 …}
+favourites: Doctrine\ORM\PersistentCollection {#4313 …}
+notifications: Doctrine\ORM\PersistentCollection {#4315 …}
-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 {#4299
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4300
date: 2023-12-30 01:20:21.0 +01:00
}
}
+root: App\Entity\EntryComment {#4304}
+body: "There’s still no standard on how to use dbus so I don’t get your point"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703949659 {#5198
date: 2023-12-30 16:20:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5202 …}
+nested: Doctrine\ORM\PersistentCollection {#5204 …}
+votes: Doctrine\ORM\PersistentCollection {#5206 …}
+reports: Doctrine\ORM\PersistentCollection {#5208 …}
+favourites: Doctrine\ORM\PersistentCollection {#5210 …}
+notifications: Doctrine\ORM\PersistentCollection {#5212 …}
-id: 264768
-bodyTs: "'dbus':10 'get':15 'point':17 'standard':5 'still':3 'use':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294314"
+editedAt: null
+createdAt: DateTimeImmutable @1703949659 {#5199
date: 2023-12-30 16:20:59.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5200
+user: Proxies\__CG__\App\Entity\User {#5201 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4304
+user: App\Entity\User {#4317 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4298
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 {#4305 …}
+nested: Doctrine\ORM\PersistentCollection {#4307 …}
+votes: Doctrine\ORM\PersistentCollection {#4309 …}
+reports: Doctrine\ORM\PersistentCollection {#4311 …}
+favourites: Doctrine\ORM\PersistentCollection {#4313 …}
+notifications: Doctrine\ORM\PersistentCollection {#4315 …}
-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 {#4299
date: 2024-02-29 14:04:11.0 +01:00
}
+createdAt: DateTimeImmutable @1703895621 {#4300
date: 2023-12-30 01:20:21.0 +01:00
}
}
+root: App\Entity\EntryComment {#4304}
+body: "There’s still no standard on how to use dbus so I don’t get your point"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703949659 {#5198
date: 2023-12-30 16:20:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5202 …}
+nested: Doctrine\ORM\PersistentCollection {#5204 …}
+votes: Doctrine\ORM\PersistentCollection {#5206 …}
+reports: Doctrine\ORM\PersistentCollection {#5208 …}
+favourites: Doctrine\ORM\PersistentCollection {#5210 …}
+notifications: Doctrine\ORM\PersistentCollection {#5212 …}
-id: 264768
-bodyTs: "'dbus':10 'get':15 'point':17 'standard':5 'still':3 'use':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294314"
+editedAt: null
+createdAt: DateTimeImmutable @1703949659 {#5199
date: 2023-12-30 16:20:59.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
38 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4378
+user: App\Entity\User {#4391 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4373
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4379 …}
+nested: Doctrine\ORM\PersistentCollection {#4381 …}
+votes: Doctrine\ORM\PersistentCollection {#4383 …}
+reports: Doctrine\ORM\PersistentCollection {#4385 …}
+favourites: Doctrine\ORM\PersistentCollection {#4387 …}
+notifications: Doctrine\ORM\PersistentCollection {#4389 …}
-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 {#4374
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
39 |
DENIED
|
edit
|
App\Entity\EntryComment {#4378
+user: App\Entity\User {#4391 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4373
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4379 …}
+nested: Doctrine\ORM\PersistentCollection {#4381 …}
+votes: Doctrine\ORM\PersistentCollection {#4383 …}
+reports: Doctrine\ORM\PersistentCollection {#4385 …}
+favourites: Doctrine\ORM\PersistentCollection {#4387 …}
+notifications: Doctrine\ORM\PersistentCollection {#4389 …}
-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 {#4374
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
40 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4378
+user: App\Entity\User {#4391 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4373
date: 2023-12-30 01:14:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4379 …}
+nested: Doctrine\ORM\PersistentCollection {#4381 …}
+votes: Doctrine\ORM\PersistentCollection {#4383 …}
+reports: Doctrine\ORM\PersistentCollection {#4385 …}
+favourites: Doctrine\ORM\PersistentCollection {#4387 …}
+notifications: Doctrine\ORM\PersistentCollection {#4389 …}
-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 {#4374
date: 2023-12-30 01:14:49.0 +01:00
}
} |
|
Show voter details
|
41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
43 |
DENIED
|
edit
|
App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
} |
|
Show voter details
|
45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
46 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5168
+user: Proxies\__CG__\App\Entity\User {#5169 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4452}
+body: "*can hold dpassengers"
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1703875130 {#5166
date: 2023-12-29 19:38:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5170 …}
+nested: Doctrine\ORM\PersistentCollection {#5172 …}
+votes: Doctrine\ORM\PersistentCollection {#5174 …}
+reports: Doctrine\ORM\PersistentCollection {#5176 …}
+favourites: Doctrine\ORM\PersistentCollection {#5178 …}
+notifications: Doctrine\ORM\PersistentCollection {#5180 …}
-id: 262702
-bodyTs: "'dpasseng':3 'hold':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6294397"
+editedAt: null
+createdAt: DateTimeImmutable @1703875130 {#5167
date: 2023-12-29 19:38:50.0 +01:00
}
} |
|
Show voter details
|
47 |
DENIED
|
edit
|
App\Entity\EntryComment {#5168
+user: Proxies\__CG__\App\Entity\User {#5169 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4452}
+body: "*can hold dpassengers"
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1703875130 {#5166
date: 2023-12-29 19:38:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5170 …}
+nested: Doctrine\ORM\PersistentCollection {#5172 …}
+votes: Doctrine\ORM\PersistentCollection {#5174 …}
+reports: Doctrine\ORM\PersistentCollection {#5176 …}
+favourites: Doctrine\ORM\PersistentCollection {#5178 …}
+notifications: Doctrine\ORM\PersistentCollection {#5180 …}
-id: 262702
-bodyTs: "'dpasseng':3 'hold':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6294397"
+editedAt: null
+createdAt: DateTimeImmutable @1703875130 {#5167
date: 2023-12-29 19:38:50.0 +01:00
}
} |
|
Show voter details
|
48 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5168
+user: Proxies\__CG__\App\Entity\User {#5169 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4452}
+body: "*can hold dpassengers"
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1703875130 {#5166
date: 2023-12-29 19:38:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5170 …}
+nested: Doctrine\ORM\PersistentCollection {#5172 …}
+votes: Doctrine\ORM\PersistentCollection {#5174 …}
+reports: Doctrine\ORM\PersistentCollection {#5176 …}
+favourites: Doctrine\ORM\PersistentCollection {#5178 …}
+notifications: Doctrine\ORM\PersistentCollection {#5180 …}
-id: 262702
-bodyTs: "'dpasseng':3 'hold':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6294397"
+editedAt: null
+createdAt: DateTimeImmutable @1703875130 {#5167
date: 2023-12-29 19:38:50.0 +01:00
}
} |
|
Show voter details
|
49 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
50 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5184
+user: Proxies\__CG__\App\Entity\User {#5185 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4452}
+body: "Get into de bus?"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703872190 {#5182
date: 2023-12-29 18:49:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5186 …}
+nested: Doctrine\ORM\PersistentCollection {#5188 …}
+votes: Doctrine\ORM\PersistentCollection {#5190 …}
+reports: Doctrine\ORM\PersistentCollection {#5192 …}
+favourites: Doctrine\ORM\PersistentCollection {#5194 …}
+notifications: Doctrine\ORM\PersistentCollection {#5196 …}
-id: 266042
-bodyTs: "'bus':4 'de':3 'get':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/5999826"
+editedAt: null
+createdAt: DateTimeImmutable @1703872190 {#5183
date: 2023-12-29 18:49:50.0 +01:00
}
} |
|
Show voter details
|
51 |
DENIED
|
edit
|
App\Entity\EntryComment {#5184
+user: Proxies\__CG__\App\Entity\User {#5185 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4452}
+body: "Get into de bus?"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703872190 {#5182
date: 2023-12-29 18:49:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5186 …}
+nested: Doctrine\ORM\PersistentCollection {#5188 …}
+votes: Doctrine\ORM\PersistentCollection {#5190 …}
+reports: Doctrine\ORM\PersistentCollection {#5192 …}
+favourites: Doctrine\ORM\PersistentCollection {#5194 …}
+notifications: Doctrine\ORM\PersistentCollection {#5196 …}
-id: 266042
-bodyTs: "'bus':4 'de':3 'get':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/5999826"
+editedAt: null
+createdAt: DateTimeImmutable @1703872190 {#5183
date: 2023-12-29 18:49:50.0 +01:00
}
} |
|
Show voter details
|
52 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5184
+user: Proxies\__CG__\App\Entity\User {#5185 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4452
+user: App\Entity\User {#4465 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Its so that your system can hold passengers\n
\n
![bus](https://www.localmotionofboston.com/wp-content/uploads/2019/01/Local_Motion_Web-89.jpg)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 20
+score: 0
+lastActive: DateTime @1709578291 {#4447
date: 2024-03-04 19:51:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4453 …}
+nested: Doctrine\ORM\PersistentCollection {#4455 …}
+votes: Doctrine\ORM\PersistentCollection {#4457 …}
+reports: Doctrine\ORM\PersistentCollection {#4459 …}
+favourites: Doctrine\ORM\PersistentCollection {#4461 …}
+notifications: Doctrine\ORM\PersistentCollection {#4463 …}
-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 {#4448
date: 2023-12-29 16:44:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4452}
+body: "Get into de bus?"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1703872190 {#5182
date: 2023-12-29 18:49:50.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@possiblylinux127@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#5186 …}
+nested: Doctrine\ORM\PersistentCollection {#5188 …}
+votes: Doctrine\ORM\PersistentCollection {#5190 …}
+reports: Doctrine\ORM\PersistentCollection {#5192 …}
+favourites: Doctrine\ORM\PersistentCollection {#5194 …}
+notifications: Doctrine\ORM\PersistentCollection {#5196 …}
-id: 266042
-bodyTs: "'bus':4 'de':3 'get':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/5999826"
+editedAt: null
+createdAt: DateTimeImmutable @1703872190 {#5183
date: 2023-12-29 18:49:50.0 +01:00
}
} |
|
Show voter details
|
53 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
54 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4526
+user: App\Entity\User {#4539 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4520
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 {#4527 …}
+nested: Doctrine\ORM\PersistentCollection {#4529 …}
+votes: Doctrine\ORM\PersistentCollection {#4531 …}
+reports: Doctrine\ORM\PersistentCollection {#4533 …}
+favourites: Doctrine\ORM\PersistentCollection {#4535 …}
+notifications: Doctrine\ORM\PersistentCollection {#4537 …}
-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 {#4521
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4522
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
55 |
DENIED
|
edit
|
App\Entity\EntryComment {#4526
+user: App\Entity\User {#4539 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4520
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 {#4527 …}
+nested: Doctrine\ORM\PersistentCollection {#4529 …}
+votes: Doctrine\ORM\PersistentCollection {#4531 …}
+reports: Doctrine\ORM\PersistentCollection {#4533 …}
+favourites: Doctrine\ORM\PersistentCollection {#4535 …}
+notifications: Doctrine\ORM\PersistentCollection {#4537 …}
-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 {#4521
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4522
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
56 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4526
+user: App\Entity\User {#4539 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4520
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 {#4527 …}
+nested: Doctrine\ORM\PersistentCollection {#4529 …}
+votes: Doctrine\ORM\PersistentCollection {#4531 …}
+reports: Doctrine\ORM\PersistentCollection {#4533 …}
+favourites: Doctrine\ORM\PersistentCollection {#4535 …}
+notifications: Doctrine\ORM\PersistentCollection {#4537 …}
-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 {#4521
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4522
date: 2023-12-29 13:51:54.0 +01:00
}
} |
|
Show voter details
|
57 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
58 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5232
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4526
+user: App\Entity\User {#4539 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4520
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 {#4527 …}
+nested: Doctrine\ORM\PersistentCollection {#4529 …}
+votes: Doctrine\ORM\PersistentCollection {#4531 …}
+reports: Doctrine\ORM\PersistentCollection {#4533 …}
+favourites: Doctrine\ORM\PersistentCollection {#4535 …}
+notifications: Doctrine\ORM\PersistentCollection {#4537 …}
-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 {#4521
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4522
date: 2023-12-29 13:51:54.0 +01:00
}
}
+root: App\Entity\EntryComment {#4526}
+body: "By “start with dbus” do you mean with the `dbus-launch` utility? I think it’s needed because it sets some environment variables that thunar uses to actually find and connect to the bus. If you run just the daemon “on the side”, thunar won’t know how to connect to it. Kind of how you need `$DISPLAY` to be set correctly for X11 applications to work."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704501036 {#5230
date: 2024-01-06 01:30:36.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@MonkderZweite@feddit.ch"
]
+children: Doctrine\ORM\PersistentCollection {#5233 …}
+nested: Doctrine\ORM\PersistentCollection {#5235 …}
+votes: Doctrine\ORM\PersistentCollection {#5237 …}
+reports: Doctrine\ORM\PersistentCollection {#5239 …}
+favourites: Doctrine\ORM\PersistentCollection {#5241 …}
+notifications: Doctrine\ORM\PersistentCollection {#5243 …}
-id: 284109
-bodyTs: "'actual':29 'applic':66 'bus':35 'connect':32,51 'correct':63 'daemon':41 'dbus':4,11 'dbus-launch':10 'display':59 'environ':23 'find':30 'kind':54 'know':48 'launch':12 'mean':7 'need':18,58 'run':38 'set':21,62 'side':44 'start':2 'think':15 'thunar':26,45 'use':27 'util':13 'variabl':24 'won':46 'work':68 'x11':65"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6443846"
+editedAt: null
+createdAt: DateTimeImmutable @1704501036 {#5231
date: 2024-01-06 01:30:36.0 +01:00
}
} |
|
Show voter details
|
59 |
DENIED
|
edit
|
App\Entity\EntryComment {#5232
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4526
+user: App\Entity\User {#4539 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4520
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 {#4527 …}
+nested: Doctrine\ORM\PersistentCollection {#4529 …}
+votes: Doctrine\ORM\PersistentCollection {#4531 …}
+reports: Doctrine\ORM\PersistentCollection {#4533 …}
+favourites: Doctrine\ORM\PersistentCollection {#4535 …}
+notifications: Doctrine\ORM\PersistentCollection {#4537 …}
-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 {#4521
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4522
date: 2023-12-29 13:51:54.0 +01:00
}
}
+root: App\Entity\EntryComment {#4526}
+body: "By “start with dbus” do you mean with the `dbus-launch` utility? I think it’s needed because it sets some environment variables that thunar uses to actually find and connect to the bus. If you run just the daemon “on the side”, thunar won’t know how to connect to it. Kind of how you need `$DISPLAY` to be set correctly for X11 applications to work."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704501036 {#5230
date: 2024-01-06 01:30:36.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@MonkderZweite@feddit.ch"
]
+children: Doctrine\ORM\PersistentCollection {#5233 …}
+nested: Doctrine\ORM\PersistentCollection {#5235 …}
+votes: Doctrine\ORM\PersistentCollection {#5237 …}
+reports: Doctrine\ORM\PersistentCollection {#5239 …}
+favourites: Doctrine\ORM\PersistentCollection {#5241 …}
+notifications: Doctrine\ORM\PersistentCollection {#5243 …}
-id: 284109
-bodyTs: "'actual':29 'applic':66 'bus':35 'connect':32,51 'correct':63 'daemon':41 'dbus':4,11 'dbus-launch':10 'display':59 'environ':23 'find':30 'kind':54 'know':48 'launch':12 'mean':7 'need':18,58 'run':38 'set':21,62 'side':44 'start':2 'think':15 'thunar':26,45 'use':27 'util':13 'variabl':24 'won':46 'work':68 'x11':65"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6443846"
+editedAt: null
+createdAt: DateTimeImmutable @1704501036 {#5231
date: 2024-01-06 01:30:36.0 +01:00
}
} |
|
Show voter details
|
60 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5232
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4526
+user: App\Entity\User {#4539 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4520
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 {#4527 …}
+nested: Doctrine\ORM\PersistentCollection {#4529 …}
+votes: Doctrine\ORM\PersistentCollection {#4531 …}
+reports: Doctrine\ORM\PersistentCollection {#4533 …}
+favourites: Doctrine\ORM\PersistentCollection {#4535 …}
+notifications: Doctrine\ORM\PersistentCollection {#4537 …}
-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 {#4521
date: 2024-03-27 19:27:12.0 +01:00
}
+createdAt: DateTimeImmutable @1703854314 {#4522
date: 2023-12-29 13:51:54.0 +01:00
}
}
+root: App\Entity\EntryComment {#4526}
+body: "By “start with dbus” do you mean with the `dbus-launch` utility? I think it’s needed because it sets some environment variables that thunar uses to actually find and connect to the bus. If you run just the daemon “on the side”, thunar won’t know how to connect to it. Kind of how you need `$DISPLAY` to be set correctly for X11 applications to work."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704501036 {#5230
date: 2024-01-06 01:30:36.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@MonkderZweite@feddit.ch"
]
+children: Doctrine\ORM\PersistentCollection {#5233 …}
+nested: Doctrine\ORM\PersistentCollection {#5235 …}
+votes: Doctrine\ORM\PersistentCollection {#5237 …}
+reports: Doctrine\ORM\PersistentCollection {#5239 …}
+favourites: Doctrine\ORM\PersistentCollection {#5241 …}
+notifications: Doctrine\ORM\PersistentCollection {#5243 …}
-id: 284109
-bodyTs: "'actual':29 'applic':66 'bus':35 'connect':32,51 'correct':63 'daemon':41 'dbus':4,11 'dbus-launch':10 'display':59 'environ':23 'find':30 'kind':54 'know':48 'launch':12 'mean':7 'need':18,58 'run':38 'set':21,62 'side':44 'start':2 'think':15 'thunar':26,45 'use':27 'util':13 'variabl':24 'won':46 'work':68 'x11':65"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6443846"
+editedAt: null
+createdAt: DateTimeImmutable @1704501036 {#5231
date: 2024-01-06 01:30:36.0 +01:00
}
} |
|
Show voter details
|
61 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
62 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4599
+user: App\Entity\User {#4612 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Sometimes you want loose coupling."
+lang: "en"
+isAdult: false
+favouriteCount: 31
+score: 0
+lastActive: DateTime @1703838283 {#4594
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4600 …}
+nested: Doctrine\ORM\PersistentCollection {#4602 …}
+votes: Doctrine\ORM\PersistentCollection {#4604 …}
+reports: Doctrine\ORM\PersistentCollection {#4606 …}
+favourites: Doctrine\ORM\PersistentCollection {#4608 …}
+notifications: Doctrine\ORM\PersistentCollection {#4610 …}
-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 {#4595
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
63 |
DENIED
|
edit
|
App\Entity\EntryComment {#4599
+user: App\Entity\User {#4612 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Sometimes you want loose coupling."
+lang: "en"
+isAdult: false
+favouriteCount: 31
+score: 0
+lastActive: DateTime @1703838283 {#4594
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4600 …}
+nested: Doctrine\ORM\PersistentCollection {#4602 …}
+votes: Doctrine\ORM\PersistentCollection {#4604 …}
+reports: Doctrine\ORM\PersistentCollection {#4606 …}
+favourites: Doctrine\ORM\PersistentCollection {#4608 …}
+notifications: Doctrine\ORM\PersistentCollection {#4610 …}
-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 {#4595
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
64 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4599
+user: App\Entity\User {#4612 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Sometimes you want loose coupling."
+lang: "en"
+isAdult: false
+favouriteCount: 31
+score: 0
+lastActive: DateTime @1703838283 {#4594
date: 2023-12-29 09:24:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4600 …}
+nested: Doctrine\ORM\PersistentCollection {#4602 …}
+votes: Doctrine\ORM\PersistentCollection {#4604 …}
+reports: Doctrine\ORM\PersistentCollection {#4606 …}
+favourites: Doctrine\ORM\PersistentCollection {#4608 …}
+notifications: Doctrine\ORM\PersistentCollection {#4610 …}
-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 {#4595
date: 2023-12-29 09:24:43.0 +01:00
}
} |
|
Show voter details
|
65 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
66 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4672
+user: App\Entity\User {#4685 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4667
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4673 …}
+nested: Doctrine\ORM\PersistentCollection {#4675 …}
+votes: Doctrine\ORM\PersistentCollection {#4677 …}
+reports: Doctrine\ORM\PersistentCollection {#4679 …}
+favourites: Doctrine\ORM\PersistentCollection {#4681 …}
+notifications: Doctrine\ORM\PersistentCollection {#4683 …}
-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 {#4668
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
67 |
DENIED
|
edit
|
App\Entity\EntryComment {#4672
+user: App\Entity\User {#4685 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4667
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4673 …}
+nested: Doctrine\ORM\PersistentCollection {#4675 …}
+votes: Doctrine\ORM\PersistentCollection {#4677 …}
+reports: Doctrine\ORM\PersistentCollection {#4679 …}
+favourites: Doctrine\ORM\PersistentCollection {#4681 …}
+notifications: Doctrine\ORM\PersistentCollection {#4683 …}
-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 {#4668
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
68 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4672
+user: App\Entity\User {#4685 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+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 {#4667
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4673 …}
+nested: Doctrine\ORM\PersistentCollection {#4675 …}
+votes: Doctrine\ORM\PersistentCollection {#4677 …}
+reports: Doctrine\ORM\PersistentCollection {#4679 …}
+favourites: Doctrine\ORM\PersistentCollection {#4681 …}
+notifications: Doctrine\ORM\PersistentCollection {#4683 …}
-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 {#4668
date: 2023-12-29 08:54:41.0 +01:00
}
} |
|
Show voter details
|
69 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
70 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5153
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4672
+user: App\Entity\User {#4685 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4667
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4673 …}
+nested: Doctrine\ORM\PersistentCollection {#4675 …}
+votes: Doctrine\ORM\PersistentCollection {#4677 …}
+reports: Doctrine\ORM\PersistentCollection {#4679 …}
+favourites: Doctrine\ORM\PersistentCollection {#4681 …}
+notifications: Doctrine\ORM\PersistentCollection {#4683 …}
-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 {#4668
date: 2023-12-29 08:54:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4672}
+body: "Great point about policies! Setting permissions on sockets only gets you so far… I guess if you really wanted to, you could create an individual socket for every method of every resource, and have granular permissions that way. But that would be quite messy"
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703842212 {#5151
date: 2023-12-29 10:30:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@fiohnah@lemmy.blahaj.zone"
]
+children: Doctrine\ORM\PersistentCollection {#5154 …}
+nested: Doctrine\ORM\PersistentCollection {#5156 …}
+votes: Doctrine\ORM\PersistentCollection {#5158 …}
+reports: Doctrine\ORM\PersistentCollection {#5160 …}
+favourites: Doctrine\ORM\PersistentCollection {#5162 …}
+notifications: Doctrine\ORM\PersistentCollection {#5164 …}
-id: 261816
-bodyTs: "'could':22 'creat':23 'everi':28,31 'far':13 'get':10 'granular':35 'great':1 'guess':15 'individu':25 'messi':44 'method':29 'permiss':6,36 'point':2 'polici':4 'quit':43 'realli':18 'resourc':32 'set':5 'socket':8,26 'want':19 'way':38 'would':41"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289446"
+editedAt: null
+createdAt: DateTimeImmutable @1703842212 {#5152
date: 2023-12-29 10:30:12.0 +01:00
}
} |
|
Show voter details
|
71 |
DENIED
|
edit
|
App\Entity\EntryComment {#5153
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4672
+user: App\Entity\User {#4685 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4667
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4673 …}
+nested: Doctrine\ORM\PersistentCollection {#4675 …}
+votes: Doctrine\ORM\PersistentCollection {#4677 …}
+reports: Doctrine\ORM\PersistentCollection {#4679 …}
+favourites: Doctrine\ORM\PersistentCollection {#4681 …}
+notifications: Doctrine\ORM\PersistentCollection {#4683 …}
-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 {#4668
date: 2023-12-29 08:54:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4672}
+body: "Great point about policies! Setting permissions on sockets only gets you so far… I guess if you really wanted to, you could create an individual socket for every method of every resource, and have granular permissions that way. But that would be quite messy"
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703842212 {#5151
date: 2023-12-29 10:30:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@fiohnah@lemmy.blahaj.zone"
]
+children: Doctrine\ORM\PersistentCollection {#5154 …}
+nested: Doctrine\ORM\PersistentCollection {#5156 …}
+votes: Doctrine\ORM\PersistentCollection {#5158 …}
+reports: Doctrine\ORM\PersistentCollection {#5160 …}
+favourites: Doctrine\ORM\PersistentCollection {#5162 …}
+notifications: Doctrine\ORM\PersistentCollection {#5164 …}
-id: 261816
-bodyTs: "'could':22 'creat':23 'everi':28,31 'far':13 'get':10 'granular':35 'great':1 'guess':15 'individu':25 'messi':44 'method':29 'permiss':6,36 'point':2 'polici':4 'quit':43 'realli':18 'resourc':32 'set':5 'socket':8,26 'want':19 'way':38 'would':41"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289446"
+editedAt: null
+createdAt: DateTimeImmutable @1703842212 {#5152
date: 2023-12-29 10:30:12.0 +01:00
}
} |
|
Show voter details
|
72 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5153
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4672
+user: App\Entity\User {#4685 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+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 {#4667
date: 2024-02-27 00:46:31.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4673 …}
+nested: Doctrine\ORM\PersistentCollection {#4675 …}
+votes: Doctrine\ORM\PersistentCollection {#4677 …}
+reports: Doctrine\ORM\PersistentCollection {#4679 …}
+favourites: Doctrine\ORM\PersistentCollection {#4681 …}
+notifications: Doctrine\ORM\PersistentCollection {#4683 …}
-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 {#4668
date: 2023-12-29 08:54:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4672}
+body: "Great point about policies! Setting permissions on sockets only gets you so far… I guess if you really wanted to, you could create an individual socket for every method of every resource, and have granular permissions that way. But that would be quite messy"
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703842212 {#5151
date: 2023-12-29 10:30:12.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@fiohnah@lemmy.blahaj.zone"
]
+children: Doctrine\ORM\PersistentCollection {#5154 …}
+nested: Doctrine\ORM\PersistentCollection {#5156 …}
+votes: Doctrine\ORM\PersistentCollection {#5158 …}
+reports: Doctrine\ORM\PersistentCollection {#5160 …}
+favourites: Doctrine\ORM\PersistentCollection {#5162 …}
+notifications: Doctrine\ORM\PersistentCollection {#5164 …}
-id: 261816
-bodyTs: "'could':22 'creat':23 'everi':28,31 'far':13 'get':10 'granular':35 'great':1 'guess':15 'individu':25 'messi':44 'method':29 'permiss':6,36 'point':2 'polici':4 'quit':43 'realli':18 'resourc':32 'set':5 'socket':8,26 'want':19 'way':38 'would':41"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6289446"
+editedAt: null
+createdAt: DateTimeImmutable @1703842212 {#5152
date: 2023-12-29 10:30:12.0 +01:00
}
} |
|
Show voter details
|
73 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
74 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4745
+user: App\Entity\User {#4758 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Multicast."
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703833109 {#4740
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4746 …}
+nested: Doctrine\ORM\PersistentCollection {#4748 …}
+votes: Doctrine\ORM\PersistentCollection {#4750 …}
+reports: Doctrine\ORM\PersistentCollection {#4752 …}
+favourites: Doctrine\ORM\PersistentCollection {#4754 …}
+notifications: Doctrine\ORM\PersistentCollection {#4756 …}
-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 {#4741
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
75 |
DENIED
|
edit
|
App\Entity\EntryComment {#4745
+user: App\Entity\User {#4758 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Multicast."
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703833109 {#4740
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4746 …}
+nested: Doctrine\ORM\PersistentCollection {#4748 …}
+votes: Doctrine\ORM\PersistentCollection {#4750 …}
+reports: Doctrine\ORM\PersistentCollection {#4752 …}
+favourites: Doctrine\ORM\PersistentCollection {#4754 …}
+notifications: Doctrine\ORM\PersistentCollection {#4756 …}
-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 {#4741
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
76 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4745
+user: App\Entity\User {#4758 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Multicast."
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703833109 {#4740
date: 2023-12-29 07:58:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4746 …}
+nested: Doctrine\ORM\PersistentCollection {#4748 …}
+votes: Doctrine\ORM\PersistentCollection {#4750 …}
+reports: Doctrine\ORM\PersistentCollection {#4752 …}
+favourites: Doctrine\ORM\PersistentCollection {#4754 …}
+notifications: Doctrine\ORM\PersistentCollection {#4756 …}
-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 {#4741
date: 2023-12-29 07:58:29.0 +01:00
}
} |
|
Show voter details
|
77 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
78 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4818
+user: App\Entity\User {#4831 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Because not using OOP is hard for gui devs."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703829860 {#4813
date: 2023-12-29 07:04:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4819 …}
+nested: Doctrine\ORM\PersistentCollection {#4821 …}
+votes: Doctrine\ORM\PersistentCollection {#4823 …}
+reports: Doctrine\ORM\PersistentCollection {#4825 …}
+favourites: Doctrine\ORM\PersistentCollection {#4827 …}
+notifications: Doctrine\ORM\PersistentCollection {#4829 …}
-id: 261544
-bodyTs: "'dev':9 'gui':8 'hard':6 'oop':4 'use':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/5998453"
+editedAt: null
+createdAt: DateTimeImmutable @1703829860 {#4814
date: 2023-12-29 07:04:20.0 +01:00
}
} |
|
Show voter details
|
79 |
DENIED
|
edit
|
App\Entity\EntryComment {#4818
+user: App\Entity\User {#4831 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Because not using OOP is hard for gui devs."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703829860 {#4813
date: 2023-12-29 07:04:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4819 …}
+nested: Doctrine\ORM\PersistentCollection {#4821 …}
+votes: Doctrine\ORM\PersistentCollection {#4823 …}
+reports: Doctrine\ORM\PersistentCollection {#4825 …}
+favourites: Doctrine\ORM\PersistentCollection {#4827 …}
+notifications: Doctrine\ORM\PersistentCollection {#4829 …}
-id: 261544
-bodyTs: "'dev':9 'gui':8 'hard':6 'oop':4 'use':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/5998453"
+editedAt: null
+createdAt: DateTimeImmutable @1703829860 {#4814
date: 2023-12-29 07:04:20.0 +01:00
}
} |
|
Show voter details
|
80 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4818
+user: App\Entity\User {#4831 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Because not using OOP is hard for gui devs."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703829860 {#4813
date: 2023-12-29 07:04:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4819 …}
+nested: Doctrine\ORM\PersistentCollection {#4821 …}
+votes: Doctrine\ORM\PersistentCollection {#4823 …}
+reports: Doctrine\ORM\PersistentCollection {#4825 …}
+favourites: Doctrine\ORM\PersistentCollection {#4827 …}
+notifications: Doctrine\ORM\PersistentCollection {#4829 …}
-id: 261544
-bodyTs: "'dev':9 'gui':8 'hard':6 'oop':4 'use':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://programming.dev/comment/5998453"
+editedAt: null
+createdAt: DateTimeImmutable @1703829860 {#4814
date: 2023-12-29 07:04:20.0 +01:00
}
} |
|
Show voter details
|
81 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
82 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
} |
|
Show voter details
|
83 |
DENIED
|
edit
|
App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
} |
|
Show voter details
|
84 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
} |
|
Show voter details
|
85 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
86 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
} |
|
Show voter details
|
87 |
DENIED
|
edit
|
App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
} |
|
Show voter details
|
88 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
} |
|
Show voter details
|
89 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
90 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5249
+user: Proxies\__CG__\App\Entity\User {#5254 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: "DBus works very poorly on Windows unfortunately."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703828906 {#5248
date: 2023-12-29 06:48:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5260 …}
+nested: Doctrine\ORM\PersistentCollection {#5256 …}
+votes: Doctrine\ORM\PersistentCollection {#5258 …}
+reports: Doctrine\ORM\PersistentCollection {#5262 …}
+favourites: Doctrine\ORM\PersistentCollection {#5264 …}
+notifications: Doctrine\ORM\PersistentCollection {#5266 …}
-id: 261526
-bodyTs: "'dbus':1 'poor':4 'unfortun':7 'window':6 'work':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6287901"
+editedAt: null
+createdAt: DateTimeImmutable @1703828906 {#5251
date: 2023-12-29 06:48:26.0 +01:00
}
} |
|
Show voter details
|
91 |
DENIED
|
edit
|
App\Entity\EntryComment {#5249
+user: Proxies\__CG__\App\Entity\User {#5254 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: "DBus works very poorly on Windows unfortunately."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703828906 {#5248
date: 2023-12-29 06:48:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5260 …}
+nested: Doctrine\ORM\PersistentCollection {#5256 …}
+votes: Doctrine\ORM\PersistentCollection {#5258 …}
+reports: Doctrine\ORM\PersistentCollection {#5262 …}
+favourites: Doctrine\ORM\PersistentCollection {#5264 …}
+notifications: Doctrine\ORM\PersistentCollection {#5266 …}
-id: 261526
-bodyTs: "'dbus':1 'poor':4 'unfortun':7 'window':6 'work':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6287901"
+editedAt: null
+createdAt: DateTimeImmutable @1703828906 {#5251
date: 2023-12-29 06:48:26.0 +01:00
}
} |
|
Show voter details
|
92 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5249
+user: Proxies\__CG__\App\Entity\User {#5254 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: "DBus works very poorly on Windows unfortunately."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703828906 {#5248
date: 2023-12-29 06:48:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5260 …}
+nested: Doctrine\ORM\PersistentCollection {#5256 …}
+votes: Doctrine\ORM\PersistentCollection {#5258 …}
+reports: Doctrine\ORM\PersistentCollection {#5262 …}
+favourites: Doctrine\ORM\PersistentCollection {#5264 …}
+notifications: Doctrine\ORM\PersistentCollection {#5266 …}
-id: 261526
-bodyTs: "'dbus':1 'poor':4 'unfortun':7 'window':6 'work':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6287901"
+editedAt: null
+createdAt: DateTimeImmutable @1703828906 {#5251
date: 2023-12-29 06:48:26.0 +01:00
}
} |
|
Show voter details
|
93 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
94 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5270
+user: Proxies\__CG__\App\Entity\User {#5201 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
GNOME also works because Lennart said so.\n
\n
But I think DBUS was a simpler KDE reimplementatioon of something GNOME did.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703950033 {#5268
date: 2023-12-30 16:27:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5271 …}
+nested: Doctrine\ORM\PersistentCollection {#5273 …}
+votes: Doctrine\ORM\PersistentCollection {#5275 …}
+reports: Doctrine\ORM\PersistentCollection {#5277 …}
+favourites: Doctrine\ORM\PersistentCollection {#5279 …}
+notifications: Doctrine\ORM\PersistentCollection {#5281 …}
-id: 264783
-bodyTs: "'also':2 'dbus':11 'gnome':1,19 'kde':15 'lennart':5 'reimplementatioon':16 'said':6 'simpler':14 'someth':18 'think':10 'work':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294400"
+editedAt: null
+createdAt: DateTimeImmutable @1703950033 {#5269
date: 2023-12-30 16:27:13.0 +01:00
}
} |
|
Show voter details
|
95 |
DENIED
|
edit
|
App\Entity\EntryComment {#5270
+user: Proxies\__CG__\App\Entity\User {#5201 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
GNOME also works because Lennart said so.\n
\n
But I think DBUS was a simpler KDE reimplementatioon of something GNOME did.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703950033 {#5268
date: 2023-12-30 16:27:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5271 …}
+nested: Doctrine\ORM\PersistentCollection {#5273 …}
+votes: Doctrine\ORM\PersistentCollection {#5275 …}
+reports: Doctrine\ORM\PersistentCollection {#5277 …}
+favourites: Doctrine\ORM\PersistentCollection {#5279 …}
+notifications: Doctrine\ORM\PersistentCollection {#5281 …}
-id: 264783
-bodyTs: "'also':2 'dbus':11 'gnome':1,19 'kde':15 'lennart':5 'reimplementatioon':16 'said':6 'simpler':14 'someth':18 'think':10 'work':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294400"
+editedAt: null
+createdAt: DateTimeImmutable @1703950033 {#5269
date: 2023-12-30 16:27:13.0 +01:00
}
} |
|
Show voter details
|
96 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5270
+user: Proxies\__CG__\App\Entity\User {#5201 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5137
+user: Proxies\__CG__\App\Entity\User {#5138 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4891
+user: App\Entity\User {#4904 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Lennart said so."
+lang: "en"
+isAdult: false
+favouriteCount: 5
+score: 0
+lastActive: DateTime @1709403326 {#4886
date: 2024-03-02 19:15:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4892 …}
+nested: Doctrine\ORM\PersistentCollection {#4894 …}
+votes: Doctrine\ORM\PersistentCollection {#4896 …}
+reports: Doctrine\ORM\PersistentCollection {#4898 …}
+favourites: Doctrine\ORM\PersistentCollection {#4900 …}
+notifications: Doctrine\ORM\PersistentCollection {#4902 …}
-id: 261287
-bodyTs: "'lennart':1 'said':2"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5933238"
+editedAt: null
+createdAt: DateTimeImmutable @1703818435 {#4887
date: 2023-12-29 03:53:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
No. DBUS has its roots in freedesktop.org and the KDE+Gnome projects. It’s basically a desktop agnostic reimplemented of KDE’s DCOP, which was itself a simplified CORBA (gnome was using ORBit at the time, if I recall correctly). DBUS was so useful that the domain spaces its been applied to soon rapidly outgrew the desktop space, and this is why it’s usually started earlier these days.\n
\n
It also works on Windows.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 21
+score: 0
+lastActive: DateTime @1703828554 {#5135
date: 2023-12-29 06:42:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5139 …}
+nested: Doctrine\ORM\PersistentCollection {#5141 …}
+votes: Doctrine\ORM\PersistentCollection {#5143 …}
+reports: Doctrine\ORM\PersistentCollection {#5145 …}
+favourites: Doctrine\ORM\PersistentCollection {#5147 …}
+notifications: Doctrine\ORM\PersistentCollection {#5149 …}
-id: 261514
-bodyTs: "'agnost':18 'also':71 'appli':51 'basic':15 'corba':29 'correct':40 'day':69 'dbus':2,41 'dcop':23 'desktop':17,57 'domain':47 'earlier':67 'freedesktop.org':7 'gnome':11,30 'kde':10,21 'orbit':33 'outgrew':55 'project':12 'rapid':54 'recal':39 'reimplement':19 'root':5 'simplifi':28 'soon':53 'space':48,58 'start':66 'time':36 'use':32,44 'usual':65 'window':74 'work':72"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ca/comment/5934503"
+editedAt: null
+createdAt: DateTimeImmutable @1703828554 {#5136
date: 2023-12-29 06:42:34.0 +01:00
}
}
+root: App\Entity\EntryComment {#4891}
+body: """
GNOME also works because Lennart said so.\n
\n
But I think DBUS was a simpler KDE reimplementatioon of something GNOME did.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703950033 {#5268
date: 2023-12-30 16:27:13.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@corsicanguppy@lemmy.ca"
"@troyunrau@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#5271 …}
+nested: Doctrine\ORM\PersistentCollection {#5273 …}
+votes: Doctrine\ORM\PersistentCollection {#5275 …}
+reports: Doctrine\ORM\PersistentCollection {#5277 …}
+favourites: Doctrine\ORM\PersistentCollection {#5279 …}
+notifications: Doctrine\ORM\PersistentCollection {#5281 …}
-id: 264783
-bodyTs: "'also':2 'dbus':11 'gnome':1,19 'kde':15 'lennart':5 'reimplementatioon':16 'said':6 'simpler':14 'someth':18 'think':10 'work':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.dbzer0.com/comment/6294400"
+editedAt: null
+createdAt: DateTimeImmutable @1703950033 {#5269
date: 2023-12-30 16:27:13.0 +01:00
}
} |
|
Show voter details
|
97 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
98 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4965
+user: App\Entity\User {#4978 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Sockets are effectively point-to-point communication. Dbus is a bus. Your question is similar to “what is the point of I2, or an ATA bus when directly wiring ICs gets the job done”. Both have different strengths and weaknesses."
+lang: "en"
+isAdult: false
+favouriteCount: 63
+score: 0
+lastActive: DateTime @1703817689 {#4959
date: 2023-12-29 03:41:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4966 …}
+nested: Doctrine\ORM\PersistentCollection {#4968 …}
+votes: Doctrine\ORM\PersistentCollection {#4970 …}
+reports: Doctrine\ORM\PersistentCollection {#4972 …}
+favourites: Doctrine\ORM\PersistentCollection {#4974 …}
+notifications: Doctrine\ORM\PersistentCollection {#4976 …}
-id: 261262
-bodyTs: "'ata':26 'bus':12,27 'communic':8 'dbus':9 'differ':38 'direct':29 'done':35 'effect':3 'get':32 'i2':23 'ic':31 'job':34 'point':5,7,21 'point-to-point':4 'question':14 'similar':16 'socket':1 'strength':39 'weak':41 'wire':30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/6763393"
+editedAt: DateTimeImmutable @1708920762 {#4960
date: 2024-02-26 05:12:42.0 +01:00
}
+createdAt: DateTimeImmutable @1703817689 {#4961
date: 2023-12-29 03:41:29.0 +01:00
}
} |
|
Show voter details
|
99 |
DENIED
|
edit
|
App\Entity\EntryComment {#4965
+user: App\Entity\User {#4978 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Sockets are effectively point-to-point communication. Dbus is a bus. Your question is similar to “what is the point of I2, or an ATA bus when directly wiring ICs gets the job done”. Both have different strengths and weaknesses."
+lang: "en"
+isAdult: false
+favouriteCount: 63
+score: 0
+lastActive: DateTime @1703817689 {#4959
date: 2023-12-29 03:41:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4966 …}
+nested: Doctrine\ORM\PersistentCollection {#4968 …}
+votes: Doctrine\ORM\PersistentCollection {#4970 …}
+reports: Doctrine\ORM\PersistentCollection {#4972 …}
+favourites: Doctrine\ORM\PersistentCollection {#4974 …}
+notifications: Doctrine\ORM\PersistentCollection {#4976 …}
-id: 261262
-bodyTs: "'ata':26 'bus':12,27 'communic':8 'dbus':9 'differ':38 'direct':29 'done':35 'effect':3 'get':32 'i2':23 'ic':31 'job':34 'point':5,7,21 'point-to-point':4 'question':14 'similar':16 'socket':1 'strength':39 'weak':41 'wire':30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/6763393"
+editedAt: DateTimeImmutable @1708920762 {#4960
date: 2024-02-26 05:12:42.0 +01:00
}
+createdAt: DateTimeImmutable @1703817689 {#4961
date: 2023-12-29 03:41:29.0 +01:00
}
} |
|
Show voter details
|
100 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4965
+user: App\Entity\User {#4978 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Sockets are effectively point-to-point communication. Dbus is a bus. Your question is similar to “what is the point of I2, or an ATA bus when directly wiring ICs gets the job done”. Both have different strengths and weaknesses."
+lang: "en"
+isAdult: false
+favouriteCount: 63
+score: 0
+lastActive: DateTime @1703817689 {#4959
date: 2023-12-29 03:41:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4966 …}
+nested: Doctrine\ORM\PersistentCollection {#4968 …}
+votes: Doctrine\ORM\PersistentCollection {#4970 …}
+reports: Doctrine\ORM\PersistentCollection {#4972 …}
+favourites: Doctrine\ORM\PersistentCollection {#4974 …}
+notifications: Doctrine\ORM\PersistentCollection {#4976 …}
-id: 261262
-bodyTs: "'ata':26 'bus':12,27 'communic':8 'dbus':9 'differ':38 'direct':29 'done':35 'effect':3 'get':32 'i2':23 'ic':31 'job':34 'point':5,7,21 'point-to-point':4 'question':14 'similar':16 'socket':1 'strength':39 'weak':41 'wire':30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.sdf.org/comment/6763393"
+editedAt: DateTimeImmutable @1708920762 {#4960
date: 2024-02-26 05:12:42.0 +01:00
}
+createdAt: DateTimeImmutable @1703817689 {#4961
date: 2023-12-29 03:41:29.0 +01:00
}
} |
|
Show voter details
|
101 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
102 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5038
+user: App\Entity\User {#5051 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5033
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5039 …}
+nested: Doctrine\ORM\PersistentCollection {#5041 …}
+votes: Doctrine\ORM\PersistentCollection {#5043 …}
+reports: Doctrine\ORM\PersistentCollection {#5045 …}
+favourites: Doctrine\ORM\PersistentCollection {#5047 …}
+notifications: Doctrine\ORM\PersistentCollection {#5049 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5034
date: 2023-12-29 02:30:36.0 +01:00
}
} |
|
Show voter details
|
103 |
DENIED
|
edit
|
App\Entity\EntryComment {#5038
+user: App\Entity\User {#5051 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5033
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5039 …}
+nested: Doctrine\ORM\PersistentCollection {#5041 …}
+votes: Doctrine\ORM\PersistentCollection {#5043 …}
+reports: Doctrine\ORM\PersistentCollection {#5045 …}
+favourites: Doctrine\ORM\PersistentCollection {#5047 …}
+notifications: Doctrine\ORM\PersistentCollection {#5049 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5034
date: 2023-12-29 02:30:36.0 +01:00
}
} |
|
Show voter details
|
104 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5038
+user: App\Entity\User {#5051 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5033
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5039 …}
+nested: Doctrine\ORM\PersistentCollection {#5041 …}
+votes: Doctrine\ORM\PersistentCollection {#5043 …}
+reports: Doctrine\ORM\PersistentCollection {#5045 …}
+favourites: Doctrine\ORM\PersistentCollection {#5047 …}
+notifications: Doctrine\ORM\PersistentCollection {#5049 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5034
date: 2023-12-29 02:30:36.0 +01:00
}
} |
|
Show voter details
|
105 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
106 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5122
+user: Proxies\__CG__\App\Entity\User {#5119 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5038
+user: App\Entity\User {#5051 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5033
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5039 …}
+nested: Doctrine\ORM\PersistentCollection {#5041 …}
+votes: Doctrine\ORM\PersistentCollection {#5043 …}
+reports: Doctrine\ORM\PersistentCollection {#5045 …}
+favourites: Doctrine\ORM\PersistentCollection {#5047 …}
+notifications: Doctrine\ORM\PersistentCollection {#5049 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5034
date: 2023-12-29 02:30:36.0 +01:00
}
}
+root: App\Entity\EntryComment {#5038}
+body: "WHY is Gamora?"
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703815229 {#5123
date: 2023-12-29 03:00:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mvirts@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5116 …}
+nested: Doctrine\ORM\PersistentCollection {#5114 …}
+votes: Doctrine\ORM\PersistentCollection {#5118 …}
+reports: Doctrine\ORM\PersistentCollection {#5129 …}
+favourites: Doctrine\ORM\PersistentCollection {#5131 …}
+notifications: Doctrine\ORM\PersistentCollection {#5133 …}
-id: 261167
-bodyTs: "'gamora':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://slrpnk.net/comment/4960286"
+editedAt: null
+createdAt: DateTimeImmutable @1703815229 {#5126
date: 2023-12-29 03:00:29.0 +01:00
}
} |
|
Show voter details
|
107 |
DENIED
|
edit
|
App\Entity\EntryComment {#5122
+user: Proxies\__CG__\App\Entity\User {#5119 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5038
+user: App\Entity\User {#5051 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5033
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5039 …}
+nested: Doctrine\ORM\PersistentCollection {#5041 …}
+votes: Doctrine\ORM\PersistentCollection {#5043 …}
+reports: Doctrine\ORM\PersistentCollection {#5045 …}
+favourites: Doctrine\ORM\PersistentCollection {#5047 …}
+notifications: Doctrine\ORM\PersistentCollection {#5049 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5034
date: 2023-12-29 02:30:36.0 +01:00
}
}
+root: App\Entity\EntryComment {#5038}
+body: "WHY is Gamora?"
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703815229 {#5123
date: 2023-12-29 03:00:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mvirts@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5116 …}
+nested: Doctrine\ORM\PersistentCollection {#5114 …}
+votes: Doctrine\ORM\PersistentCollection {#5118 …}
+reports: Doctrine\ORM\PersistentCollection {#5129 …}
+favourites: Doctrine\ORM\PersistentCollection {#5131 …}
+notifications: Doctrine\ORM\PersistentCollection {#5133 …}
-id: 261167
-bodyTs: "'gamora':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://slrpnk.net/comment/4960286"
+editedAt: null
+createdAt: DateTimeImmutable @1703815229 {#5126
date: 2023-12-29 03:00:29.0 +01:00
}
} |
|
Show voter details
|
108 |
DENIED
|
moderate
|
App\Entity\EntryComment {#5122
+user: Proxies\__CG__\App\Entity\User {#5119 …}
+entry: App\Entity\Entry {#2388
+user: Proxies\__CG__\App\Entity\User {#1943 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1962 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1924 …}
+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 {#2410
date: 2024-04-03 14:21:31.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1886 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1948 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+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 {#1850
date: 2023-12-29 00:44:50.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#5038
+user: App\Entity\User {#5051 …}
+entry: App\Entity\Entry {#2388}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "What’s the point of sockets?"
+lang: "en"
+isAdult: false
+favouriteCount: 15
+score: 0
+lastActive: DateTime @1708900617 {#5033
date: 2024-02-25 23:36:57.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5039 …}
+nested: Doctrine\ORM\PersistentCollection {#5041 …}
+votes: Doctrine\ORM\PersistentCollection {#5043 …}
+reports: Doctrine\ORM\PersistentCollection {#5045 …}
+favourites: Doctrine\ORM\PersistentCollection {#5047 …}
+notifications: Doctrine\ORM\PersistentCollection {#5049 …}
-id: 261102
-bodyTs: "'point':4 'socket':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6285669"
+editedAt: null
+createdAt: DateTimeImmutable @1703813436 {#5034
date: 2023-12-29 02:30:36.0 +01:00
}
}
+root: App\Entity\EntryComment {#5038}
+body: "WHY is Gamora?"
+lang: "en"
+isAdult: false
+favouriteCount: 18
+score: 0
+lastActive: DateTime @1703815229 {#5123
date: 2023-12-29 03:00:29.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@renzev@lemmy.world"
"@mvirts@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#5116 …}
+nested: Doctrine\ORM\PersistentCollection {#5114 …}
+votes: Doctrine\ORM\PersistentCollection {#5118 …}
+reports: Doctrine\ORM\PersistentCollection {#5129 …}
+favourites: Doctrine\ORM\PersistentCollection {#5131 …}
+notifications: Doctrine\ORM\PersistentCollection {#5133 …}
-id: 261167
-bodyTs: "'gamora':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://slrpnk.net/comment/4960286"
+editedAt: null
+createdAt: DateTimeImmutable @1703815229 {#5126
date: 2023-12-29 03:00:29.0 +01:00
}
} |
|
Show voter details
|
109 |
DENIED
|
edit
|
App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+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 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-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 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|