!bvqkHNJoPXSDWubkQz:matrix.org

Gavin's Help

127 Members
Join my space Gavin's Chat https://matrix.to/#/#gavinfreeborn:matrix.org3 Servers

Load older messages


SenderMessageTime
25 Nov 2021
@true-aura-coral:matrix.orgTrueAuraCoralI can only assume that it concats lines and add "CDATA"+description+"]"23:27:51
@true-aura-coral:matrix.orgTrueAuraCoral GalacticColourisation#5721: So how do I mention the title variable in the with open 23:28:13
@_discord_515313851693137921:t2bot.ioGalacticColourisation#5721 you just replace file in there with Title but splitting it up frrom a dictionary just messes it up 23:29:16
@_discord_515313851693137921:t2bot.ioGalacticColourisation#5721 * you just replace file in there with Title but splitting it up frrom a dictionary just messes it up 23:29:46
@_discord_515313851693137921:t2bot.ioGalacticColourisation#5721 sorrry its like 3 a.m. here, so im really tired 23:30:04
@true-aura-coral:matrix.orgTrueAuraCoral
In reply to @_discord_515313851693137921:t2bot.io
sorrry its like 3 a.m. here, so im really tired
Okay. i will be here tommorow. So you can sleep probably.
23:31:13
@true-aura-coral:matrix.orgTrueAuraCoralI just came from a vacation23:31:29
@true-aura-coral:matrix.orgTrueAuraCoralso i am also tired23:31:35
@_discord_515313851693137921:t2bot.ioGalacticColourisation#5721 ah okay 23:31:36
26 Nov 2021
@true-aura-coral:matrix.orgTrueAuraCoral

GalacticColourisation#5721: This is the script so far

# Inputs
Title = input("Title: ")
Link = input("Link: ")
Date = input("Date: ")
htmlfile = input("HTML file: ")
rssfile = "rss.xml"

# cdata ~> Description ~> Reads in rss reader I hope :-)
htmlfile = str("<![CDATA[ "+open(htmlfile).read().replace('\n', ' ')+" ]]>")

# Add stuff
with open(rssfile, 'a') as f:
    f.write("\n<item>\n<title>"+Title+"</title>\n<link>"+Link+"</link>\n<pubDate>"+Date+"</pubDate>\n<description>\n"+htmlfile+"\n</description>\n</item>\n")
02:01:00
@true-aura-coral:matrix.orgTrueAuraCoral *

GalacticColourisation#5721: This is the script so far

# Inputs
Title = input("Title: ")
Link = input("Link: ")
Date = input("Date: ")
htmlfile = input("HTML file: ")
rssfile = "rss.xml"

# cdata ~> Description ~> Reads in rss reader I hope :-)
htmlfile = str("<![CDATA[ "+open(htmlfile).read().replace('\n', ' ')+" ]]>")

# Add stuff
with open(rssfile, 'a') as f:
    f.write("\n<item>\n<title>"+Title+"</title>\n<link>"+Link+"</link>\n<pubDate>"+Date+"</pubDate>\n<description>\n"+htmlfile+"\n</description>\n</item>\n")
02:01:16
@true-aura-coral:matrix.orgTrueAuraCoralI need to figure out how to clean up html stuff that rss can't read 02:01:41
@true-aura-coral:matrix.orgTrueAuraCoraland insert 3 lines above the bottom of the file02:01:47
@true-aura-coral:matrix.orgTrueAuraCoralRedacted or Malformed Event18:28:00
@true-aura-coral:matrix.orgTrueAuraCoral GalacticColourisation#5721: So I figured out how to delete the channel and rss and then put it back. Now I need to figure out how to clean up html 18:28:34
@true-aura-coral:matrix.orgTrueAuraCoralimage.png
Download image.png
18:28:38
@true-aura-coral:matrix.orgTrueAuraCoral
# I need to get time instead of asking manuelly for it.
from time import gmtime, strftime

# Inputs
Title = input("Title: ")
Link = input("Link: ")
Date = str(strftime("%a, %d %b %Y %X"))
htmlfile = input("HTML file: ")
rssfile = "rss.xml"

# cdata ~> Description ~> Reads in rss reader I hope :-)
htmlfile = str("<![CDATA[ "+open(htmlfile).read().replace('\n', ' ')+" ]]>")

# Delete channel and rss tags
with open(rssfile) as r:
  text = r.read().replace("\n</channel>\n</rss>", " ")
with open(rssfile, "w") as w:
  w.write(text)

# Add stuff
with open(rssfile, 'a') as f:
    f.write("\n<item>\n<title>"+Title+"</title>\n<link>"+Link+"</link>\n<guid>"+Link+"</guid>\n<pubDate>"+Date+"</pubDate>\n<description>\n"+htmlfile+"\n</description>\n</item>\n\n</channel>\n</rss>")
18:28:55
28 Nov 2021
@_discord_781728658766561350:t2bot.iosbin#0001 changed their display name from /sbin/fsck.xfs#0001 to sbin#0001.17:57:35
@_discord_781728658766561350:t2bot.iosbin#0001 changed their profile picture.17:57:46
@_discord_220613546571071488:t2bot.ioMehdiM joined the room.22:18:32
@_discord_220613546571071488:t2bot.ioMehdiM Hi guys, I need some help on my use of emacs. When i’m in insert mode, i need meta key to type special characters like [ or & but in emacs meta is waiting for a command. So I would like to unset meta key in insert mode. If I need the default meta key behavior, i can switch to normal state. I’m not sure i’m clear. Thanks for your help. 22:24:09
@true-aura-coral:matrix.orgTrueAuraCoral
In reply to @_discord_220613546571071488:t2bot.io
Hi guys, I need some help on my use of emacs. When i’m in insert mode, i need meta key to type special characters like [ or & but in emacs meta is waiting for a command. So I would like to unset meta key in insert mode. If I need the default meta key behavior, i can switch to normal state. I’m not sure i’m clear. Thanks for your help.
I would suggest maybe doing a reinstall of emacs. Maybe this is a keyboard/language issue?
22:30:08
@_discord_220613546571071488:t2bot.ioMehdiM in fact i’m typing on a kind of dvorak layout (bépo, the french version of dvorak) 22:31:10
@true-aura-coral:matrix.orgTrueAuraCoral
In reply to @_discord_220613546571071488:t2bot.io
in fact i’m typing on a kind of dvorak layout (bépo, the french version of dvorak)
Wait so it's a layout not your actual keyboard?
22:33:55
@true-aura-coral:matrix.orgTrueAuraCorallike through software your able to use dvworshack22:34:11
@true-aura-coral:matrix.orgTrueAuraCoralnot the keyboard is what I am trying to say22:34:17
@_discord_220613546571071488:t2bot.ioMehdiM right, the keyboard is an azerty, but the layout is dvorak let’s say. 22:34:42
@_discord_461980943729688616:t2bot.ioGavinok#4195 Do you need meta to access those keys? 23:48:01
29 Nov 2021
@_discord_220613546571071488:t2bot.ioMehdiM Yes I do. 08:53:00
@_discord_525650629620793345:t2bot.ioDuckey#5639 changed their profile picture.09:44:01

There are no newer messages yet.


Back to Room List