Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "\t"
-
Substitute Teacher who apparently majors in Java sees my copy.
T - Your programs are incomplete
M - You mean ?
T - Where are the braces ?
M - Its Python
T - It works ?
M - Yes
T - It works on linux ?
M - Yes -_-6 -
me: *reads java book on phone*
guy next to me: *looking at my screen* you're a hacker, right?
ಠ_ಠ14 -
If you ever feel you're not self-confident enough, think about the guy who told his manager at Google about the great idea he had been working on: a T-Rex that jump over cactus when there's no internet connection in Chrome.3
-
I just got a text from T-Mobile telling me about their updated privacy policy and that I can “opt out.” So, naturally I do exactly this.
After a little bit, I land on their “Do not sell my data” page and discover that, not only does it have 175+ trackers,
it doesn’t even fucking work. Also, on the desktop version of the site, the very control allowing the user to opt out of having their data shared/sold doesn’t even render.
These are all absolutely inexcusable.20 -
I was wearing my tux t-shirt today and while walking through the city I suddenly heard a boy (around 3-4 years) say to his mom: 'He had a penguin on his t-shirt!'
I smiled and this made my day. :)7 -
. _ _ _ /\/|
/ \ _
| [ o]-[ o] l l
\ ¬ / l l
////////// l l
/ \ \ / l_l
/ \ \ _ _ _ _ l
/ \ _ _|_ |- -| \ /\
| ===== |_ |
D E V E L O P E R
A T
N I G H T4 -
Project Manager: "So that's the feature we need you to add... T-shirt size?"
Me: "Depends what shop I go to, sometimes L, sometimes XL-"
Project Manager: "No, no. T-shirt size... Estimate. Small means hours, Medium means days, Large means weeks."
Me: "Oh... 4 hours."
Wtf.10 -
static void TryOut<T>(T newStuff)
{
try
{
self.Learn(newStuff);
}
catch (NotUnderstandingException)
{
// At some point, it will work, just call it again
TryOut(newStuff);
}
}4 -
@dfox How about a Devrant t-shirt feature?
Where you can enter the id of your favorite rant. Then it just prints the t-shirt with the Devrant logo and the text from the rant.
Would be awesome!4 -
Girlfriend had issue with her Python code (she does mathmatics, not actual programming):
```
t = 51.74636335135748
i = int(t*100) // 5174, wrong value
```
instead of
```
t = 51.74636335135748
i = int(t)*100 // 5000, right value...
```
She asked me if I could fix it for her.
I found the issue but wanted her to understand what went wrong.
She didn't care "because she didn't have time for it".
Well, then it's quite simple for me: I have no time to help her :^)7 -
Hey, why isn't X working?
Well, whats it doing
It doesn't work
That doesn't help
OMG it blue screened
What did the blue screen say?
How do you fix it?
T e l l M e W h a t I t S a i d S o I C a n H e l p Y o u
I'm factory resetting it now1 -
Going through code left by a senior developer who quit.. Dated 2015..
public static T IfThenElse<T>(bool isTrue, T ifYes, T ifNo)
{
if(isTrue) { return ifNo ; }
else if(!isTrue) { return ifNo ;}
Debugger.Break();
throw new Exception("") ;
}
.....
There was a unit test for it well
....
............. Wow, just wow9 -
#include <time.h>
char*w = "AAAA########+++///9999AA Good %s!\n\0Morning\0Day\0Afternoon\0Evening\0Night";
int main(){time_t t=time(0);return printf(w+25, w+w[localtime(&t)->tm_hour]);}
//bisqwit's code8 -
IM conversations with a client
(t==0): Me: Hey A, I'm writing this logic and wanted your confirmation, would you like X when Y?
(t==2): A: *A is typing....*
(t==10): A:
(t==54): A: *A is typing....*
(t==126): A:
(t==265): A: *A is typing....*
(t==334): A: *A is typing....*
(t==386): A: *A is typing....*
(t==439): A: yes2 -
Guy: - Why the hell do you keep adding new tests with "TDD" in the commit log? Is this because you're wearing this stupid TDD t-shirt!? You're only supposed to maintain this! There's nothing to develop! Nothing here will ever be test-driven!
Cprn: (turns around)
T-shirt: *Technical Debt Development*6 -
Type T ( something something... )
...
Type * TP = T;
TP.do()
> Be me
> Production code
> Update Type structure
> SEGV
> Wtf why was this even working
> Ask senior
> senior y u do dis
> bc
> Why were no errors
...
> mfw
> He says
"I added -fpermissive and forgot..."
On production since May
...
...
...
... 20072 -
public void NoRant()
{
I have a small hobby.. T-Shirts.. I make them for myself sometimes, when I'm bored.. so.. I thought to myself.. If I don't get a T-shirt from devRant.. I'll make one myself))) I found myself making several designs.. Here's one example:
}29 -
While attending a class for mobile app development a couple of months back, the day the teacher (T) unveiled the class project:
T: You must build an Android app. You can do whatever you want.
T: Don't overcomplicate though. For example, online servers won't be valued!
T: But don't make it too easy. For example, don't make a tic-tac-toe. That won't be valued!
T: And remember, you must use device sensors, like the camera, GPS, accelerometer ...
T: But don't just throw the sensor functionality if it doesn't make sense in the app you're building. That won't be valued either!
T: You have one week to think and send me a proposal.
Me: What the fuck do you want me to do then?9 -
hi there,
i always wanted to have "developer t-shirts" but never liked those cheesy shirts with slogans or jokes everyone of us heard a thousand times. i always wanted something more classy - which shows i'm a programmer but also looks stylish.
so i started to make some designs and have uploaded them to teespring. it's called "foobar apparel" and everything is about foobar.
since this is my first t-shirt campaign i would love your feedback - what do you think about them?
of course i'm happy if you like them and want to buy some - mine are already shipping :)
here's the links: https://teespring.com/stores/...
if this is not the right place to post this here, just delete it - sorry.7 -
So, my last rant here was 3 years ago, and i just signed in again to devrant to post this fucking shit.
There is this guy who is a Project Manager in my office, I haven´t work with him but he sits in front of me and i have to listen to his bullshit almost every fucking day. Anyways, the other day he was talking to some other guy (a PM, also) and he said something like this:
"Programming is the most overrated thing ever, everyone can do it, you could do it, i could do it just googling stuff, i could even replace almost every programmer in this office, it´s the easiest thing ever. a programmer couldn´t do my job even if his life depended on it ´cause they can´t talk, they can´t manage people, they can´t manage their own time, heck they can´t even manage to talk to each other. they´re just a bunch of incels who think they´re important and their job is shit anyway".
They don´t see us as human begins, they see us as necessary evil.
(apologize if i wrote something wrong. English is not my first language)8 -
AT&T: We've fixed your voicemail setup issue, use <APP> to set it up
Me: About fucking time
*uses app*
AT&T: Voicemail setup failed. Also, we've eaten 300MB of your 500MB of mobile data.15 -
It took forever to get SSH access to our office network computers from outside. Me and other coworkers were often told to "just use teamviewer", but we finally managed to get our way.
But bloody incompetents! There is a machine with SSH listening on port 22, user & root login enabled via password on the personal office computer.
"I CBA to setup a private key. It's useless anyways, who's ever gonna hack this computer? Don't be paranoid, a password is enough!"
A little more than 30 minutes later, I added the following to his .bashrc:
alias cat="eject -T && \cat"
alias cp="eject -T && \cp"
alias find="eject -T && \find"
alias grep="eject -T && \grep"
alias ls="eject -T && \ls"
alias mv="eject -T && \mv"
alias nano="eject -T && \nano"
alias rm="eject -T && \rm"
alias rsync="eject -T && \rsync"
alias ssh="eject -T && \ssh"
alias su="eject -T && \su"
alias sudo="eject -T && \sudo"
alias vboxmanage="eject -T && \vboxmanage"
alias vim="eject -T && \vim"
He's still trying to figure out what is happening.5 -
Well done, T-Mobile!
They have an iOS app to handle contract stuff. That app integrates their shop system via an internal browser.
The shop notifies me, that the used browser is not supported by the shop...
Oh and the browser is an embedded safari on iOS 12.5 -
Ticket from legal department: implement GDPR recommendation, log customer consent, separate checkboxes to opt-in to T&C and newsletter
Ticket from marketing department: small print T&C on sign-up, remove "conversion killer" checkbox
This is why we need a product owner4 -
My boss is the head of IT.
I am the head of software, I have nothing todo with user rights in our software, this is head of IT things...
So my boss is gone, holiday.
User T calls in: Hey, I need rights for finance software X. Now.
Me: Yeah, my boss is gone for good, which rights exactly you need?
T: I don't know. Give me admin rights.
Me: I am not going to do that.
T: I will call my boss (head of her department, same level as my boss). He will tell you to do that.
Me: I will not listen to him, he don't decide about rights. IF you talk to the head of finance and he tells me you can have admin rights in the finance software, I could give it to you. Let him write a email to me about it.
T: Okay.
2 Minutes later.
Email, Head of finance: Hey Wasseratem, I don't decide for rights for the finance software X, normaly Head of IT does that.
(CC to T)
Email back: Yeah, he is gone, he will be back in 2 days, then he can decide.
Email from Head of Department of T: Give T admin rights. now.
Email back, CC Head of Department of T, Head of finance: No I will not do that (etc. explain why)
What the fck is T joking me?
Now She will not get any rights for thursday even when she will walk into my office with a gun.3 -
Hired a new BI developer. She tested reasonably ok in SQL, and certainly showed good strengths in visualising data, plus had a good attitude in the interview. We hired her. She broke her laptop the first day. We got her another then she complained the camera didn't work but didn't realise the lever in front of the camera was to move the privacy shutter off and on.
Assigned her some work of taking queries that are used in a BI tool that targets the transactional database directly, and re-jigging them for Snowflake which we're using as a data warehouse now, aggregating all our data into one place. Yet, she's struggling to understand why the SQL query she's pasted in doesn't work as-is.
I go over it again; the source schemas and tables are this, but in Snowflake we've named them this. She then bemoans how much work that is to change them all - I say use find and replace. She then struggles with Snowflake syntax errors and asks for a guide on T-SQL to Snowflake. I show her Google and say "this is what I did when I hit these problems - search for 'Snowflake equivalent to T-SQL getdate()' or 'how to get current date in Snowflake' but she still doesn't understand. I ask if she's every had to work between T-SQL and MySQL or MySQL and PostgreSQL or Oracle and so on and she says yes. I say the syntax isn't the same, is it? And she goes oh, now I understand.
She scored reasonably in her SQL test but I'm now concerned there's something fundamental missing in her grasp of SQL. I gave her a detailed demo of the tools, I explained in the interview and on her start about our move to a data warehouse for all our apps, and put her through some training plus gave her time to work through our Confluence pages - not expecting she'll remember everything, but more to ensure she recalls they exist and what the general contents are.
Anyhow, that's my rant.6 -
Anyone else saw the IT movie poster for the first time and thought 'what does this movie have anything to do with I.T?'
Or saw an "I'm an IT girl" t shirt and thought that it's awesome that there's a t shirt for I.T girls
#myfriendsthinkimafreak #howcodingchangemylife1 -
I lose all focus when I hear my coworker spell out websites on the phone... "H-T-T-P, BACKSLASH BACKSLASH..."5
-
https://youtu.be/1-xGerv5FOk- Alan Walker - Alone
My friend asked me,
"Can you make some thing like this?"
Timestamps:
00:06 (Link: https://youtu.be/1-xGerv5FOk?t=6s)
00:08 (Link: https://youtu.be/1-xGerv5FOk?t=8s)
00:13~00:22 (Link: https://youtu.be/1-xGerv5FOk?t=13s)
Me : *uhhh*3 -
**** $h!t **** $h!t WHY IN THE BLOODY HELL ARE YOU KEEP FORGETTING AND FORGETTING TO BRING A SINGLE EARPHONES TO OFFICE???? BRAIN, WHYYYYYY?4
-
just got directly sneezed on in the office from someone walking behind me. Turns out he's full of a cold.
That's my November fucked then
t**t15 -
So, here is the worst experience, not one.. but recent two of many of the encounters I had with my OOP teacher... (I am in Second Year of Engineering). Lets Call him T.
To give a background of T... He knows nothing but acts like he is the master... you'll get to know this...
Incident #0:
*me developing a website for a client and T just bumps in*
T: Hey, what are you upto.
M:Nothing sir, just some Web-dev stuff.
T: What languages do you use?
M: I am currently using embedded ruby.
T: No no, I meant, what languages do you use for web-dev?
*inner* M: Ok, try to act stupid... He is not worth of all the knowledge.
M: Sorry sir, I just use simple HTML-CSS.
T: Ohh, I use Wordpress... It's a great language to build websites.
*inner* M: He has no idea what WP really is, he is a fuckshit.
T: It's so simple and easy, that you code for Desktop view, press Ctrl-M and then it automatically makes it for mobile view.
*inner* M: Bursts out into laughter
M: OK sir, will look over it.
Incident #1:
*He is teaching, suddenly topic comes of Oracle Certification for Java*
T: I know many of you have idea about java, but do you have what it takes to be an OCJP..
*inner* M: LOL...
T: It is a really hard thing, and I can bet... I can bet *he did repeat that twice* that no one from you can even qualify OCJP.
*inner* M: It's time... It's time
M: Excuse me sir, first of all it's OCA... OCJP does not exist anymore... And secondly, I am an OCA...
*inner* M: Yeah... Fuck you bitch!
*assucimg inner* T:Fuck, asshole..$#@#%@!@$@%#
And whole class was like -> o.O1 -
!dev related
went from verizon's ludicrous 210 a month to 165 for 2 lines with t mobile...threw in a samsung s9 for myself, wife will keep her iphone7s plus and I am a happy camper. Why didn't I do this sooner? because fuck me I am an idiot......2 -
Well... I guess I'm about to part money to devRant literally just for the purpose of getting the black theme 🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚🌚2
-
Me: Codes a really cool website animation in javascript for 2 days.
*Opens youtube, random tutorial for the same animation in CSS in 30 min.*
Me: * Cries in the corner. T-T *9 -
t-shirts are an ideal way to express one's frustration with the world, yet the devrant avatar t-shirts options are pretty benign.
Can't we have more ranty options?6 -
Stackoverflow started 8 years ago.
Is there no hope for us "noobs" to ever see the 'k' at the end of our points?
All these 100K + users and i'm over here rejoicing in the 48 points that I was able to muster up with some effort T-T7 -
Conversion rates and shipping make it awfully expensive to get official t-shirts here in India, so I decided to experiment with t-shirt printing till the time I can earn enough to donate directly to open source foundations.
I call this design "FUCK YOU, AUTODESK!!"
(Yes it's literally just the logo. Yes I'm not a graphic designer)
Not too bad, but the print could've been better. Time to start tweaking things.8 -
typescript, I HATE you!
ME: Trying to extend Subject and override Subject.subscribe(PartialObserver<T>)
ME: export class MySubject<T> extends Subject<T> {
subscribe(obs?:PartialObserver<T>): Subscription {
return super.subscribe(obs);
}
}
ME: compile
TS: Compilation error! No such method to override!
ME: load the app -- ERROR
ME: recompile
TS: Compilation error! No such method to override!
ME: load the app -- works perfectly
:confusedjackie:
Make up your mind! So is that class compileable or not???
If not -- how the fuck does it work then???
If yes -- why the fuck do you yell in my face with all those errors???8 -
I *cannot* be the first person in history that wants to do this.
Someone much smarter than must have already done, packaged it and sold distribution rights to the T-shirt.
Time to Google the sh*t out of it... -
As someone who didn´t work with dependency injection in almost all projects before:
I legitimately sat here for half an hour and asked myself how to fucking access a new database context...
Me:
You can´t just add that to the constructor.
Dependency Inection:
Yes you can!2 -
One of my most inspirational places to create devRant rants! I visit it every week. For a Sunday fun experiment I will gift the first person to guess where it is a devRant 'devie' stress ball or t-shirt. You must provide specific details. We can figure out prize logistic details thru @dfox. There are hints in the image 😀 Enjoy!16
-
Unity just mailed me:
H E Y U W A N T S U M U N I T E V I D E O S ?
I should really unsubscribe from the mailing list.5 -
today I learned that there are actually two ways how you can wire a RJ45 socket (wifi cable)
today was also a longer day than planned ...11 -
A colleague of mine was wearing his Funcunit t-shirt on a plane yesterday. The flight attendant asked him about his "Fun Cunt" t-shirt.
-
Reading OpenSource lib that write in TypeScript is a nightmare
WTF:
export function concatMap<T, I, R>(
project: (value: T, index: number) => ObservableInput<I>,
resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R
): OperatorFunction<T, I|R> {
return mergeMap(project, resultSelector, 1);
}
That is just fucking definition, no execution code inside1 -
Collect more SWAGS
Collect more laptop stickers
Collect more free t-shirts
Collect more free goodies -
My teacher joked in class about trying to get #octothorpe trending. Two days later he's wearing a t-shirt that says it, turns out someone already thought of it and it's on a t-shirt on Amazon with prime shipping lol 2018 is crazy
-
f**king stupid google, go f**king eat s**t. We are using .dev for develop domain in our company, and all of a suddent we can’t access our dev sites anymore, WTF. Bulls**t!!!!9
-
"A programmer was arrested for writing unreadable code. He refused to comment."
H/T: (@Mr_Drinksonme)1 -
C# Collection class had me pulling my hair out for hours the past two days.
With a list, you can do new List<T>(IEnumerable<T>) and it creates a new list with the contents of the parameter in it.
With new Collection<T>(ICollection<T>), however, the new object is a reference to the parameter passed in.
Is it just me, or does that seem fucking bonkers?2 -
Im ranting in progress of the issue so i dont get the urge to do any of the things not seem as acceptable to fix this issue.
Issue: yesterday i activated a device i havent had any (even prepaid) service on in years, and had a 'new'(to me) number assigned...
Today, after being sick so muting nuisances immediately for rest, i check, 3missed calls from the same, less spammy looking number. I havent use this number for even a txt code verification at all... aside from 1 call to comcast (for the blissful irony of seeing if its an option (they need to survey physically) since im suing my current isp who didnt take my VERY NICE and explictly required in their business t&c, refund for the issue's duration.. after months of tryjng to directly get a message (not using my not technically hacking expertise like just scrubbing for email formatting and popped up in their inbox (calling them is more frowned upon)...
Their conclusion as to "why" (they nvr solved the issue... dhcpv6 was in aggressive lease mode(no response per lease(NOT batches) of about 60 for about 20 devices which i ofc use my /28 static ipv4 block... not ipv6 (they also claimed there was no logs til i dug and found verbose, long history high/med high debug level logs in their prop. dev's gui... which they forced me to use, has 2 separate cores/stacks which is done for 1 reason only... constant simultaneous ipv4 and ipv6 (so ofc was auto enabled)...
Basically it was spamming do to a config issue with their scripts, and their WAN6 dev/script's config. Have found a single person who knows what ipv6 (or v4) or wan6 device actually means... their conclusion from multiple "specialist departments " ..."we dont support ipv6 so if u had issues caused by using something we dont support it's your fault... sooooo ludacris.
.... ok back to main point.
callback options
1 schedule a call back for "later"
2 dont schedule and hang up/try some other time
3. cancel callback and join the end of the cue(from previous message it told me a callback in 6-10m or lose your place in line and go to the end... hours later no call and they definitely have the number as it reiterated -.-
...
answer to wait in line>
experiencing extremely high wait time
>your current wait time 31-60m
2.5sec later.. let me connect you to a rep ...etc (identical as in callback options intro)
> your current wait time is 30sec
waiting nearly 25min whilst typing this.(i did make sweet potato stuff, propagated a rose, fed JSON some of his new, in closure buffet of things he previously never encounted and bought a literal ton of rubber mulch)40min to a rep 5more to solve (last guy at same position didnt know this option exited, despite me decribing it verbosely to him.
Everything the automated syst asks is about account numer... there is none ive never even had a burner that was at&t brand.
Wzf.3 -
C#: The fact that T[,] (multi dimensional arrays) implement IEnumerable, but not IEnumerable<T>.
But one dimensional arrays do.
But you can still foreach over them.
What in the actual hell?
Now I have to write something ugly like
var bruh = values.Cast<float>();23 -
as you guys know this is still related on my prev rants, today i just found out that we cant bring or use headphone while we are on our work stations and guess what you cant chat with your team mates too unless its official business regarding the project other topics such as hobbies or anything are not allowed and you will get reported to the boss...
like G*d dammit you cant code since everything is blocked.. you cant install dev tools and sh*t you cant browse any websites *good thing is the did not block this site.. so far* ... you cant talk... its just staring at the ceiling for 8 freaking hrs -_- someone pls kill me8 -
When even core C# implementations break some of the SOLID principles.
ReadOnlyCollection<T>, MembershipProvider, ... -
Am I the only one who gets stupid nervous for interviews, I always get the hand shakes real bad about T-20 before the interview then they go away about T-5 before the interview. Doesn't matter what I am interviewing for, every time.6
-
I just spent like an hour trying to fix some piece of code and guess what was the problem? a fucking TYPO! That was so frustrating LMAO (laughing but crying inside) T-T1
-
I just got paid, to spend, I've decided to reward myself with some t-shirts, right now I cannot afford devrant t-shirts, so help me choose any 2 from this here https://www.redwolf.in/
My budget is Rs.500/tshirt and I want to buy 2 of them..6 -
Why write tests for frontend when I can clearly see it works......I mean, c'mon, the like button is incrementing....this button doesn't like been tested (T-T)10
-
AT&T LTE broadband: 25Mbps down, 10Mbps up, $100/month
T-Mobile LTE broadband: 90Mbps down, 25Mbps up, $50/month
straight fucking upgrades out of nowhere11 -
Its everyones favorite time again. Wisecrack's 8th grade hoborants about mathematics.
Lets start with the example
a=89
b=223
p=a*b=19847
If
(1/(5/p))/b = 17.8
and naturally
p/5 =3969.4
3969.4/b = 17.8
What I find interesting is that...
p/17.8 = 1115.0
..for any product and factors (given two factors), the result will always be an integer.
Why is this?
You can see that
t= 1115.0*b = 248645.0
And if
17.8*(p/a) = 3969.4
Then
17.8*(t/p) = 223.0 (our factor, b)
a*(t/p)
1115.0
p/1115
17.8
also a*(t/p) = 1115.0
I could be once again misunderstanding but
what it looks like is that theres some real number that always transforms p into an integer on the ring of integers (Z) representing multiples of the factors of p.
Now notice
b/17.8 = 12.52808988764045
We can also get that number like so..
t/p = 12.52808988764045
I think (though I could be mistaken) is that the reason is because t is b*1115 and 12.52808988764045 is the ratio between b and 17.8 as well as the ratio between
p and 1115.
And if we do
t/√p = 1764.9495488858483
1764.9495488858483^2 = 3115046.9101123596
also incidentally
3115046.9101123596/t =12.52808988764045
3115046.9101123596/12.52808988764045 =
t (this is obvious but I want to point it out anyway), or 248645.0
and
1115/b = 5.0
248645.0/5 = 49729.0
and
√49729.0 = b
Why is this last part true, that √(t/5) = b?11 -
Rust's Fn traits feel weird. The argument tuple is a generic parameter, but the return type is an associated type, even though Rust is supposed to use Hindley-Milner type inference, so inferring through return type should always fail if this were a regular trait.
Then, this would mean that blanket implementations for Fn(T) and Fn(T, U) should conflict because AnyTrait<(T)> and AnyTrait<(T, U)> aren't mutually exclusive. I tried, they work just fine.
There's some weird and I suspect unnecessary special case magic here, and I'd like to uncover it.17 -
I own a small software company and we are going to make T-shirts for all my coworkers, mainly programmers.
We are about 20 people and I wanted to make the shirts witg a small company logo, but the primary should be dev related text, slogans, jokes or illustrations.
But I'm out of ideas, being a programmer myself, I though Dev rant would have some cool suggestions 😎
Hit me!10 -
I'm probably not the first, but ...
template <typename T>
using $ = std::shared_ptr<T>;
I mean... C'mon!10 -
I choose mine (full-stack) because I worked on countless projects on my own and always had the curiosity that span the whole picture although I'm leaning towards a T-shape specialist.
-
Do people have a favorite site for dev clothing? I want to get some sort of a python t-shirt for my younger sibling. Simple google searches aren’t doing the trick for me...1
-
(%{DATE})(.*)(Sent)( ID)(\[)(?<index>(.*))(])( /)(?<m>(?!m0)(?!m1)(m.*))(/)(?<t>(t.*))(/)(?<p>(p.*))(/)(?<r>(r.*))(/S\[)(?<s>(.*))(]/R\[)(?<r>(.*))(])
Heyyyy I am not a grok robot!!!6 -
https://youtu.be/5OhJ00an0mI?t=148
As per this ad Samsung use HTML & bootstrap to change voice of bixby.
can someone tell me how can i do this?
(If anyone from Samsung. Inline CSS is bad practice)3 -
I want to merge select and delete/drop query together and make it as one in MySQL. For ex:
Select * from t where year = 2015 and drop table tab;
or
Select * from t where year = 2015 and delete from tab;
and ya you can't use ';' for merging4 -
#Amazon #Alexa #Super #Skills t-shirt.
My skill, Inspire in GitHub.
https://github.com/aleplusplus/... -
!Rant
Hey there devs check out my T-Shirt design on
https://redbubble.com/people/...
It's my first design too. So how's it3 -
Why on earth can one perform calculations on pointers in c++? I can think of a dozen ways this could go wrong, but none where this is useful.
Following example:
int t = 1234;
int tt = 5555;
int* p = &t;
int* pp = *(p + 1):
Here pp will give me 5555...5 -
I f**king hate you JS, I hate you.
I beg our vast developer community, please replace this sh*t, or else
to Microsoft, let the devs access GitHub copilot for free. I don't want my best coding practices to fade away bcuz of this sh*t.1 -
typedef bool Bool;
Class Description
{
public:
inline Bool IsTypeA() const { return IsType(TYPE_A); }
inline Bool IsTypeB() const { return IsType(TYPE_B); }
inline Bool IsTypeC() const { return IsType(TYPE_C); }
Bool IsType(DescriptionType T) const { return (T == Type()); }
DescriptionType Type() const { return m_Type; }
private:
DescriptionType m_Type;
}
I can't make this shit up3 -
I can't tell if I didn't understand an important detail about Rust traits or the system is badly underdesigned, but I keep bumping into situations where the most general correct implementation of an std trait on a container clashes with one of the std implementations, and I would need a very obvious negative statement to make them mutually exclusive (for example that T in MyPtr<T> can never implement Borrow<MyPtr<T>>)3
-
Time complexity doubt
How can you say T(n) ≤ 3T(floor(n/4)) + cn²
Given that T(n) =3T(floor(n/4)) +Θ(n²)
Won't it imply Θ(n²) ≤ cn², which seems incorrect (or am i wrong to think its incorrect?)4 -
java.util.Optional.or, orElse and orElseGet should really have their signatures changed so they can widen the type. For example, `Optional<T> or(Supplier<? extends Optional<? extends T>> supplier)` should really be `<U, S super T & U> Optional<S> or(Supplier<? extends Optional<? extends U>> supplier)`
Then we could eliminate the following unchecked cast:
```
public static double getOrNan(Optional<? extends Number> optionalNumber) {
return ((Optional<Number>)optional).getOrElse(Double.NaN).doubleValue();
}
```2 -
I am trying to decompose a 3D matrix using python library scikit-tensor. I managed to decompose my Tensor (with dimensions 100x50x5) into three matrices. My question is how can I compose the initial matrix again using the decomposed matrix produced with Tensor factorization? I want to check if the decomposition has any meaning. My code is the following:
import logging
from scipy.io.matlab import loadmat
from sktensor import dtensor, cp_als
import numpy as np
//Set logging to DEBUG to see CP-ALS information
logging.basicConfig(level=logging.DEBUG)
T = np.ones((400, 50))
T = dtensor(T)
P, fit, itr, exectimes = cp_als(T, 10, init='random')
// how can I re-compose the Matrix T? TA = np.dot(P.U[0], P.U[1].T)
I am using the canonical decomposition as provided from the scikit-tensor library function cp_als. Also what is the expected dimensionality of the decomposed matrices.1 -
Try playing T-Rex game in chrome with dark mode enabled. For me, this looks like a bug, but maybe it's a feature!1
-
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int arr[n];
int count=0;
for(int i=0;i<n;i++){
cin>>arr[i];
count^=arr[i];
}
cout<<count<<endl;
}
return 0;
}
In the above program,
how does this code snippet work?
count^=arr[i];8 -
https://www.tiktok.com/t/ZTRnwVAtU/
Daily moments of zen
Sure many people here will appreciate
Enjoy2 -
Don't trust [VIEW_DEFINITION] in [INFORMATION_SCHEMA].[VIEWS]! It gets truncated at 4000 characters. According to Microsoft, it should be NULL when exceeding 4000 chars. Not true!