User Controls
Posts That Were Thanked by Sophie
-
2018-09-26 at 4:46 PM UTC in Do you suck at regex?
You're right that you can't match a regular expression against a dictionary, only strings, but what you probably want to do is iterate over the keys of the JSON where you know this address might exist and match each of those values. E.g. if you JSON looks like:
{
"items": [
{
"addr": "Opts:map[Addr:0.tcp.domain.com:15273]",
"foo": 42
},
...
]
}
Then you would want to do something like:
ports = []
for item in loaded_json['items']:
match = re.match(r'(?:tcp://)?0\.tcp\.domain\.com:(\d+)', item['addr'])
if match:
ports.append(match.groups(1))
The regular expression there assumes the domain will always be "0.tcp.domain.com", and the protocol will either be "tcp" or omitted. If that's not a reasonable assumption it can be generalized.
-
2018-09-23 at 9:08 AM UTC in The Retarded Thread: Sploo Needs AttentionIs is weird that when I get depressed, I imagine my face in a little square on a nightly news bulletin, beard grown in, head shaved? In block letters there's something about two heavily armed and armored gunmen. I look at my face in the mirror and I try to imagine how much more aged, how much more stern and beaten that face would look? And what would be the final straw? Would it be something big? Or just maybe someone fucked up and forgot the avocado on his breakfast burrito. Maybe that's all it took. But I feel sort of jealous of the man on the tv. He figured it out. For once instead of laying around feeling angry and tired, he did some something. Anything. Followed it through to completion. And since they can't track down family who have anything to say, they end up interviewing the black dude outside the grocery store. "Yeah I knowd dat dude. I mean he was cool nawmeen? Always bought me Reeses and brought me pizza n beer. always seemed friendly,But I never thought he do some wild shut like dat".
/end creative writing segment. North Hollywood bank robbery also do be fly tho, for the record. -
2018-09-21 at 11:10 PM UTC in THE PLOT THICKENS
-
2018-09-21 at 8:51 PM UTC in The Retarded Thread: Sploo Needs Attentionhe hands his shit-bag back to his dealer and tells him to fill 'er up again.
-
2018-09-20 at 11:56 PM UTC in Recommend me a phoneAndroid. Something that you can take apart with the need of a heatgun. Something that is fairly easy to root. At least a good brand.
-
2018-09-19 at 9:29 PM UTC in The Retarded Thread: Sploo Needs AttentionAlmost a year without smoking weed as a lifestyle for me. ONE MONTH WITHOUT SYNCANS!
It has actually helped me a lot. I don't plan on starting again anytime soon. God bless.- mmQ,
- Sudo,
- stare rape,
- Sophie
-
2018-09-18 at 11:50 PM UTC in The Retarded Thread: Sploo Needs Attention
-
2018-09-18 at 7:58 PM UTC in The Retarded Thread: Sploo Needs Attention
-
2018-09-17 at 8:59 PM UTC in The Retarded Thread: Sploo Needs AttentionI think it goes on forever in some fashion. To me, nothingness is still something. There's always gotta be something over the wall, even if it's empty.
I don't think humans can actually comprehend the concepts of nothing or everything. Not as they are.
We are hard wired to think of things using reference points and motion. Try to think of everything. No matter how big it is, your visual will always have a border of some kind.
Truly marvelous! -
2018-09-17 at 7:40 PM UTC in Dear Americans, when the Europeans blessed you with whiteness, why did you throw it away and become a minority to niggers?This post has been edited by a bot I made to preserve my privacy.
-
2018-09-17 at 5:30 PM UTC in I was just shocked by electricity
Originally posted by Jiggaboo_Johnson 1/2 inch is the core of wire to hold 500 amps…gauge 0000. You tend to have more than 1 wire…and then there is the insulation…that adds up to 2-4inch cable..aka the forearm of an OG NIS.
What application was this singular 500amp 240v wire being used for???
there isnt such thing as 500A anywhere unless your work9ng in hardcore power station or smelting or a foundry. -
2018-09-17 at 3:21 PM UTC in Evidence of Ukraine's Role in Downing of MH-17 Beginning to LeakThe Ukrainians had BUK launchers nearby they denied they even had. I really don't know much about MH 17 because I heard grainy audio of Russians talking about a "bird" flying over towards them. They also tried to use the sunflower field with the bodies as leverage afterwards.
Maybe it was Ukrainian jets but it really wouldn't surprise me. Ukrainians fight like kosovars and if there was an untapped organ market they'd be gutting each other. I'm pissed the Russians never took marioupol and Ukraine hasn't had to answer for Odessa or the snipers in maidan square. I'm pissed porky and that creep who looks like Moby are still wielding power. I'm pissed there is still a dispute over crimea when it should be pretty cut and dry. Nobody disputes crimea wanted to be Russian, they just didn't like the means of achieving it and gaslighted to deflect from how crazy the maidan protests were. I'm pissed Canada has been sending millions to Ukraine for decades for the cause of "promoting democracy" because there are a bunch of the round headed farmer fucks in Saskatchewan. A girl I went with in high school was Ukrainian and basically the most hopelessly naive person ever. I think porky banks on everyone being as dumb as her. -
2018-09-17 at 3:17 AM UTC in Attn: HTS
-
2018-09-16 at 11:55 PM UTC in Hannah Hays, possible retard, can no longer get work
Originally posted by mmQ That guy sounds like Borat, thus I can't take him seriously.
That's the quebecois accent.
I was wondering who this guy is, Jean-Francois Gariépy.
Found this.
"i fell in love with a mental retard" -
2018-09-16 at 3:17 PM UTC in Is there any point in having non violent sex?Sudo consideres it violent sex when his girl lifts him out of the wheelchair, gently places him on the bed and rides him to his agonized screams.
-
2018-09-16 at 3:12 PM UTC in Is there any point in having non violent sex?Or, you're an edgelord who thinks this is how adults have sex. How you saw it portrayed in the porn videos you watch constantly.
When you get into a real relationship, unless it's completely based around hardcore, ass-pounding sex, then you realize that the sex you have is much more enjoyable when it's passionate and love-felt. -
2018-09-16 at 5:46 AM UTC in one funny thing about drugs and
-
2018-09-15 at 8:17 AM UTC in The Retarded Thread: Sploo Needs AttentionI watched this story earlier about the smartest guy, potentially ever, with an IQ of 200. He's just a farm hand, living rurally, good humble man. He's worked a bunch of different hard working type jobs, never exploited his intelligence. But in his place he's got like thousands of theories and maths and he's doing so many good things to advance us. He's not spoken of or known really, but hes trying to do good. I really liked it. He didn't use a bunch of pretentious words or try to seem like some smarty pants.
Which reminded me of something someone said, not sure who, something to the effect of 'if you can't explain what you're saying to a 6 year old, you don't know what you're saying.'
Obviouslt that isn't holistically true but it's a thing Ive always believed too kinda. If you're smart, explain things in the simplest possible way. There's no reason not to. -
2018-09-14 at 12:01 AM UTC in Are you a song or album person?
-
2018-09-13 at 11:10 PM UTC in Moved from windows to mac... The windows I/O bottlenecks was the defining factorthe hardest part is telling your dad you're gay