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 - "count"
-
My wife wants me to learn another language. I told her I was already fluent in half a dozen languages, and decent at ton more.
Apparently computer languages don't count...11 -
🎉 As of today, I can proudly count myself among the members of the "Killed Prod on A Friday Afternoon" club. 🎉16
-
I noticed that I frequently notice patterns in my ++ count
I may have a slight obsession with numbers. There are too many screenshots with numbers in my gallery
This is also kind of an evolution of my avatar and my ++ count20 -
Fun fact is that I only noticed the 666 rant count AFTER changing my avatars gender for fun/trolling!14
-
2017 Front End development anyone?
Wouldn't be surpised if in 2018, Javascript frameworks would reach 100+ in count. 😋
Source: https://github.com/kamranahmedse/...15 -
Just realized I'm commenting about how to summon Cthulhu with regex, while my upvote count is 666...
Őh bøy. Ţhįş įs ÑØŤ ģôíņğ ţø ęňđ węļĺ6 -
True fact!
Had my practical exam yesterday on Data Structures using C.
Had included this in my code
if(!count)
break;
Examiner: What type is count?
Me: Sir, it's an integer.
Then he asked me what was not expected.
Examiner: What does this exclamatory mark do?
In my mind: Now's the right time for the world to end. 😛9 -
Dear windows 10
I won't mind a weekly 30 minutes update but...
My ubuntu connects to wifi in 2 seconds
My lubuntu connects to wifi in 2 seconds
My archlinux connects in 1 second(don't ask why)
My raspbian starts up and connects in 10 seconds
WHY WOULD YOU TAKE MORE THAN A SYSTEMS BOOTING PROCESS TO GET CONNECTED?12 -
Developers who writes something similar
if (count >= 0) { return true; }
else { return false; }
deserves a special room in hell.16 -
how people count
normal people: 1 2 3 4 5 6....
me: 0 1 2 3 4 5 6...
them: wtf u doing, 0 is not included8 -
In a weekend release chatroom, the lead- working from WiFi in a bar- asks "What's the issue count?" But forgot the "o".4
-
I draw things! I bet we all draw things, but I still think it counts as nerdy.
...unless you draw UML diagrams on whiteboards. Doesn't count.
... unless you draw stick figures battling ON those UML diagrams. Counts.
... unless those stick figures battling demonstrate dependencies or demographics. Doesn't count.
... unless you put little pirate hats on them. Counts.
... unless you're contracting for a Somali counter-piracy recon project. Doesn't count.
... unless you also include dank memes. Counts.3 -
Then there's that awkward moment when variable "count" doesn't work because I called it "cunt" later on.6
-
I was today years old when I discovered the CSS property column-count.
Do you have any fucking idea how many times I’ve used CSS grid or flex box or BOTH when all I wanted was to make a layout with a set number of columns?
Why the fuck didn’t I know about this thing?
Did you know about this thing?17 -
So I ran grep to count the occurrences of the word "bitch" In a pretty large project of ours... eleven. ELEVEN.12
-
You know a website is really good when the error count is synced with the time you're on the page.2
-
So today I decided to change the passwords on some online accounts...
Sony: "Don't use the same symbol twice in a row. Oh, and how about 4 reset emails because the first 3 times it won't work?"
Me: "Okay, this password meets all requirements"
Sony: "I don't believe you lol."
Twitch: "Error: Your password length must be between 8 and 40 symbols!"
Me: "But mine has 24 symbols and the password field shows a green checkbox"
Twitch: "Error: Your password length must be between 8 and 40 symbols!"
Aaaargh! Did they hire toddlers as interns or something?1 -
Teaching my girlfriend how to code and she’s got to the indexes start at 0 crisis.
Just to make her feel better, anyone else remember their indexes start at 0 crisis? 😅
So far the convo is “why does count start at 1 and index start at 0?!? Developers can’t fucking count”35 -
Is it bad ive got a mental count down to when I'll reach 6969 ++?
I'm not planning on growing up any time soon so judge away lol3 -
Having trouble sleeping, gonna count the "I don't have a social life" posts until I fall asleep.
(Might post the results in the comment, stay tuned)25 -
Rails console:
> `ModelOne.joins("ModelTwo")`
# => ActiveRecord::StatementInvalid (Mysql2::Error: Unknown table 'database_name.model_ones')
MariaDB:
> `select count(*) from database_name.model_ones`
# => 13274641
It's right there, ffs4 -
Most cutting-edge?
Well, there was this one website, with border-radius > 0 on everything... does that count?5 -
Did a code test at an interview, had to aggregate data from a db. They stored cities with population count and users referenced cities.. 6 cities had a higher user count than population 🤔
They were a little taken back and suggested the population data must be outdated 😉.. it got a bit awkward1 -
-bestfriEND
-boyfriEND
-girlfriEND
-friEND
Only: “
int count = 1;
while (count < 2) {
count—;
cout << count;
}”
Has no END.3 -
I am at +301. How do I know for sure my ++ count isn't frozen and I actually have a billion ++'s??8
-
Is it just the novice in me that finds the Haskell community's misguided obsession over character count really annoying? Learn You a Haskell For Greater Good states
> Shorter code means less bugs
A lot of people and resources seem to share this opinion, but it's obviously false. Simpler code means less bugs, but look at this function which just means "apply this applicative to each element of a list"
> sequence :: (Applicative f) => [f a] -> f [a]
> sequence = foldr (liftA2 (:)) (pure [])
This isn't "less buggy", it's fucking madness. The same in JS, the king of unreadable languages, would be:
function sequence(seq, val, apply = (f, x) => f(x)) {
seq.map(f => apply(f, val))
}
Seriously, how can you design a strictly typed language that gets beaten by JS in readability?16 -
It takes 2 hands to count the number of times everyday that I lose my mouse curse due to have too many monitors.4
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rant
Now go and count them and tell me if this is a rant or not!5 -
There are two types of people in this world. Those who count from 0 to n - 1 and those who count from 1 to n.
Which one are you?6 -
Am I the only one who isn't getting any mention notification and even ++ count is updating periodically?
Ugh! dR bug count is increasing day after day..21 -
I'm pretty much sure somewhere in the wide world Web there's a clients community joking about ordering developers to fix their printers and stuff...
while making EEEEVILLLL laughs.1 -
I hope devRant doesn't store ++ count as a signed 8-bit integer... Otherwise the next ++ this rant gets sets it to -128!2
-
Shameless blog plug, but it does count as a rant 😅
Seriously folks, stop calling everything a service.
https://likelikeatemyshield.com/pos...15 -
!rant
Reddit comment on a thread about Joomla! sites being vulnerable to SQL-injections:
"Joomla sites are so infested they became sentient.
Joomla sites needs no webmaster, some one else will administer it for you.
Joomla sites have very good SEO, specially in "v1agra c1alis p3nis size"
Traffic count with Joomla is high, all the bots breaking all the vulnerabilities count for somethin'."
😂 Pure gold.1 -
Any modern tech stack is this thing times 100 if we wanna count layers between our users and our cpus
Thank Python and next js for that11 -
If you do this, please, don't have children.
P.D. count the number of *if*srant kill me pliz thinking of my children frankencode bad code pichardo for president ng cry angular6 -
Annoying git cli inconsistencies:
git branch --list
git stash list
Lost count of the times I have entered
git branch list6 -
What's your programming background music?
I listen to classical music
These days mostly Chinese traditional
(No I'm not Chinese)27 -
One of our most essential functions was giving a weird warning: C4706. Turns out that one of our team member wrote if(count =! 0)... Yes, he's new here
-
my wife got in contact over my website because of the content. the pen friendship escalated quickly. does that count?1
-
Perform code review and see stuff like this...
var count = dbContext.Posts.ToList().Count();
Selecting millions of rows from database just to get a count...4 -
Not sure if it's the worst code review but it's a recent one.
We don't really do code reviews where I work unfortunately but my coworker used my framework for the first time (build some nice composer libraries for cmdline projects) and asked if I could make them do autoloading.
He never used namespaces before so I was glad to help him out.
What I saw was a dreadful mess. His project was called "scripts" so good luck picking a namespace...
Than it was all lose functions in the executable file. All those functions are however called by a class in another file (if they where not calling eachother as a cascading mess). That class was extending an abstract class from my library as instructed. However I never imagined my lib being raped like that.
The functions themselves are a horrible mess. Nothing uniform completely different style (our documentation states PSR's should be used).
Parameters counts higher than 5.
Variable names like Object and Dobject (in calling function Dobject is Object but it needs a fresh one.
If statements on parameters that need basically split it in two (should simply be to functions)
If else statement with return of same variable as a single line (sane people use ternary for that)
Note that I said functions. All of it should have been OO and methods. Would have saved at least some of the parameter hell.
I could go on and on. Do I think the programmer is bad yes (does not even grasp interfaces, dep injection, foreach loops). Is this his best work no. He said that for a one of script like this it just has to work. Not going to be used elsewhere. I disagree as it is a few thousand lines of code that others have to read too.2 -
Staring at computer trying to figure out why I can't read a float from modbus. I swapped the bytes correctly for my platform. I also ensured the endianess of the words matched my platform (byte endianess is not the sames as word endianess, fml). Was driving home thinking about what could be wrong. My mind saw this code:
uint32_t newint;
for(int count=0; count<2; count++){
newint |= words[count] << count;
}
Then I am fuck! It should be:
newint |= words[count] << (count*16);
This was later turned into float. I kept getting values in the 1e-40 or some shit. Now it makes sense. The upper word was not set.
This is such newb shit. Fuck you newb shit I should just know!
Reading more I realized that the endianess of words can vary between devices even though the spec calls for big endian words. Fuck you non-compliant vendors! So I gotta add a flag for fucked up devices. Fine. The pay off is a generic way to add modbus to our opcua server. I want this easily editable in the field. For now it is readonly. So that makes it nicer.
Just a little torqued that I solved this driving home instead of at work. Too close to the code. I think tomorrow I will have my boss review it to tell me of other logical crap I missed.3 -
I'm so pissed off at twitter REST API. On their site is a example: https://api.twitter.com/1.1/... but it doesn't work, Volley always returned 404, and guess what I tried. I changed the order of screen name and count to this: https://api.twitter.com/1.1/... and it works. I don't even. I sat there pulling my hair out for 2 hours just for this, fuck.3
-
The cubicle next to me keeps count of how many "WTF"s I say each day. It's pretty close to the number of "Fuck You"s (good or bad).
-
There was this guy on LinkedIn who has done many projects on Ruby on Rails
I asked him the exact count of projects.
He said it's tough to keep track.3 -
I fix antique code for a living and regularly come across code like this, and this is actually the good stuff!
Worst usecase for a goto statement? What do you think?
int sDDIO::recvCount(int bitNumber){
if (bitNumber < 0 || bitNumber > 15) return 0; //ValidatebitNumber which has to be 0-15
//Send count request
if (!(send(String::Format(L"#{0:X2}{1}\r", id, bitNumber)) && flushTx())){
bad: //Return 0 if something went wrong
return 0;
}
String^ s = recv(L"\r"); //Receive request data
if (s->Length != 9) goto bad; //Validate lenght
s = s->Substring(3, 5); //Take only relevant bits
int value; //Try to parse value and send to bad if fails
bool result = Int32::TryParse(s, value);
if (!result) goto bad;
int count = value - _lastCount[bitNumber]; //Maximumpossible count on Moxa is 65535.
if (count < 0) count += 65536; //If the limit reached, the counter resets to 0
_lastCount[bitNumber] = value; //This avoids loosing count if the 1st request was
//made at 65530 and the 2nd request was made at 5
return count;
}4 -
Just noticed that it's possible to get a negative vote count on a devRant profile. So I'm wondering if it's possible to underflow the vote count? @dfox3
-
When managements' response is repeatedly, "we are working on it" - don't count on it anytime soon.1
-
today when I was asked to fix some code I couldn't help but count if those variables where used more times :D2
-
I'm not getting why you guys complain about being judged for "hacking" while using the terminal.
In my case I'd occasionally like to open a terminal in my lubuntu (or archlinux in my previous times where the laptop was running smooth and i had to learn everything about how an OS works and spending most of the time searching about errors to find more desperate people and no answers but the community's hopefully growing and it's the best distro if you're an experienced linux user but not in my case so i had to use lubuntu for now until mastering it) to trigger those around me and try to prove them wrong afterwards.
I'll hit the airport for fun when i have time.3 -
I’ve been thinking that “low code” generally means high body count. You can take that as a pun, or not.6
-
int count = getCount();
txtCount.setText(count);
> Could not find resource ID #0x00
Couple hours of head scratching later
"You idiot. You forgot to use String.valueOf(), didn't you?" -
What is the most infamous bug you know?
Mine is the YouTube view count bug which took them way too long to fix.4 -
Hahaha ahah ahaha ahha haha ha :') does saying that its a solo project and throwing me into a team of incompetent researchers count? Does specifying a python-ish stack and giving me c++ and fortran code count? Does not fucking paying me until i threatened to leave the job and delete everything i wrote for them count? Does speaking to 9billion people to get the same job as fulltime because i spent 8 hours working for them anyway count?
-
$test = TRUE;
$baby = TRUE;
$egg = 1
$sperm = 1;
if ($test != 'TRUE') {
print "No Baby.";
} else {
foreach($eggs as $egg)
{
$baby = count($egg + $sperm);
return $baby;
printf("Congratulations");
}
}10 -
I love pipes in R. Really wish more mainstream languages would adopt that *looking at you python, nodejs-tc39, rust, cpp*
Just something about doing
data %>% group_by(age) %>% summarize ( count= n() ) %>% print
As oppose to
print(summarize (group_by(data, age), count=n()) )18 -
Does downloading on all the scripts to a 3D webgl game to a free server so my friends could play it count?
-
Why do all the cool things have terrible documentation?
I'm looking at you Gnuradio and OpenCV!
Doxygen doesn't count if you don't actually write doc comments!!3 -
Does DevRant count as social media? I don't think I'm allowed to post to social media while I'm at work. *Asks DevRant anyways*1
-
Does spectrum count?!🤔
Jumping jack, loads of tapes & other silly games, my radio & kidnapped tv in the living room 😍😍 yay! -
Safari is slowly becoming the new Internet Explorer.
I'm loosing count over how many javascript workarounds i need to make for that abomination.5 -
What's your view on workplace relationships or hook ups? 😄
(Sticking an RJ45 in your pooper doesn't count btw.)9 -
@dfox @trogus would you guys mind sharing some statistics on devRant? I've been very curious about the following metrics:
- Daily active users
- Weekly active users
- All time rants count
- Monthly comments count
- Total users count
Thanks for reading and thanks even more for making this beautiful platform 😃9 -
It's small but still tangible.
I really like that username and password both have the same character count.1 -
Pursuing knowledge in python, as my first "real" programming language (does bash count? 😂) - wish me luck guys!4
-
I imagine if every girl was to ask for my S.O point count before dating me then I would die single...1
-
Hey devs!!
I just can't stop myself from sharing this.
Its been two years now ... my junior is working. and now she is handling standalone WP projects.. but somehow her task got stucked so I was asked to help her.
So I just said check the count of variables and she messaged me with code .. Ma'am this isn't working .. Haha.. I mean come on she better can google out atleast for syntax :(
<?php if(count($content2 == 3) && count($interestt2 == 3))
{
print_r($content2);
print_r($interestt2);
}else{
echo "not checked";
}
?>2 -
It is as if this community is not too large.
It's always the same people commenting and posting rants
We can even count them12 -
Embracing the change
meanwhile implementing change number: oh wait, Forgot the count 🥵🤯
Ever happened?joke/meme programming memes we are programmers coding life programming comic programming is life programmer life2 -
find /etc/www/jobs/good | lncount
Count: 0
find /etc/www/jobs/crap | lncount
Error: integer overflow: "count too big" -
!rant
Do we have a number, for how many users have joined devRant?
...I mean, yeah, social media and the Play Store page for devRant display a number, but I'd like to hear it from the source :D14 -
I can count the number of people who know the difference between pod install and pod update on one hand.
-
I'm discovering all I can configure with Arch... just figured to tell you, since if I don't do it doesn't count, right?...1
-
Social life? Do aikido/japanese classes count?
...Hanging out on discord and/or MMOs DOES count, right? Right?! -
WTF?
TL;DR Integration between software failed so hard I lost 20% of my progress in one hit. Yay! /s
I, being a Fool, signed up to do NaNoWriMo this year (50k words in 30 days of November). I've won it before, and failed it before, and this year was especially stupid as I've got a bigger pile on my plate than usual, what with getting as quickly up to speed on c# and React as I can in prep for starting the new job in December.
I started on a high - 4k on day one, woohoo! To my delight, my writing software Scrivener now had an integration feature to let you update your total word count straight to your account instead of manually entering it. I added my credentials, hit the button, refreshed the page, all updated. So far so good.
Then, on day two, I wrote 1700-ish words. Still good, well ahead of target, took me over 5k. Updated through Scrivener, checked it updated the site, still good.
Then, yesterday, I logged in and added a tiny tiny number of words (brain went blah), and was horrified to discover it had taken 1900 words off my count!
Cue panic as I frantically searched for the missing words, trying to find any evidence of where they'd gone. Gave up after half an hour of futility, bashed out enough to squeak back over 5k, confirmed it had updated.
I'm not unfamiliar with the general stupidity most organisations have on integration - they don't have it, or it's an afterthought, or it's just plain terrible - but this was a ridiculously simple thing to do, I'd have thought? Passing one fucking number and some date/time tracking?
This is what I get for trying to do too many things at once, I guess! -
To many "Quantum" this days: Firefox Quantum, Samsung TV Quantum, Quantum computer.......wait does that last one count??5
-
Does anyone else's manager measure their performance based on jira ticket count or merges to master? It feels like a new lines-of-code measure to me...5
-
You never know how many services you subscribe to until you count the emails that arrive to you because GDPR
-
Weekly drama call 1.
(the number reflects the devrant broadcast count not the actual count).
We work with a remote team and the project manager there just loves to talk. It started as something adorable(?) but it's just plain annoying now. He keeps on talking and talking and talking. We just muted him, had a good laugh and missed nothing. Nobody has any idea when he'll stop.
:/
.
.2 -
Count the number of keyboards in your room (including musical keyboards).
1,.. 2,.. 3,.. 4,.. 5,.. 6,.. Damn, that is a lot.11 -
To renew a VPN trial (hide.me if I recall correctly), you're taken to a countdown till you're able to click the renew button.
var count = 0;1 -
Posted on Twitter
A thread of Rittenhouse facts
I learned watching trial
So many spread lies
I couldn’t keep my silence
RIP follower count35 -
There are only 15 devrant++ users :(
I remember times where the list contained so many people that it took very long to count the number of devrant++ users16 -
when did you follow PHP developers last used PHP without a framework or at least used PHP itself for the most part?
a foreach and if don't count .. obviously 😁7 -
OnClick handler on buttons in Samsung devices keeps count of no. of times you have pressed it and executes only after pressing no less than 3 times.
#slowAF #S9+ -
Curious how devRant's "Top" (weekly) feed works? How are the posts sorted? ++ count? ++ count + comments? ++ and comments each have different weightage?
The posts seem to be in a haphazard order10 -
When you reported a bug using Google's own sample code. Only changing the list item count = 1 will cause it to never display the data. Yet being marked as **WorkingAsIntended**
-
When I wrote count++ in Python and got syntax error. Darn!!! I just applied Java and C syntax again!2
-
More linux driver woes:
Driver is passed a file position and byte count when asked to read from a device. Sounds easy, right? FUCK no.
For reads, driver is passed struct `filp` with field `f_pos`, a direct pointer to the same struct field, int `count` as a number of bytes to read, and `buf` to return those bytes with. Problem is, requesting, say, 256 bytes from location 10000000h will give the driver `filp->f_pos = 0`, `f_pos = 256`, and `count = 0`. I don't know how to fix this and there's NO help for this shit. None whatsoever.
This shit, right here, is why Linux drivers suck ass.4 -
So yesterday evening when going to bed I wanted to sleep asap.
Therefore I used a 'tactic' called count to ten and then start over again. This is supposed to be relaxing so you stop thinking about other things an you get sleepy faster.
It usually works...
...But then my brain decided to write a program for said procedure in my mind. I actually started thinking:
int count=0;
While ( ! isAsleep() ){
think(count);
count++;
If( count == 10 ){
count = 0;
}
}
It didn't really help me falling asleep...1 -
I miss when the world still seemed to function off some reasonable system and there seemed like there was always something or someone you could count on14
-
Non satanic, sugar free, high pitched male voiced, positive Metal that won't let me leave the desk until having a back pain.
-
Does it count as a learning experience if I have still not yet fully learned it? Then it's estimating tasks.
Fix this bug where the modal is rendered underneath the message-count-badge on your profile? Heh should be easy, 10 mins to set a higher z-index.
Final cost: two weeks, where I needed two status meetings and drawing on the whiteboard to explain why this happens and why it needs a major restructuring.1 -
It's time for war!
I have two examples doing the same thing. They're bot generated by chatGPT.
React:
import React, { useState } from 'react';
function IncrementalButton() {
// Create state to hold the count value
const [count, setCount] = useState(0);
// Function to handle incrementing the count
const increment = () => {
setCount(count + 1);
};
return (
<div>
<h2>Count: {count}</h2>
<button onClick={increment}>Increment</button>
</div>
);
}
export default IncrementalButton;
VUE:
<template>
<div>
<h2>Count: {{ count }}</h2>
<button @click="increment">Increment</button>
</div>
</template>
<script>
export default {
data() {
return {
count: 0,
};
},
methods: {
increment() {
this.count++;
},
},
};
</script>
<style>
/* Add your CSS styles here if needed */
</style>
Whats better in your opinion?17 -
installing kendo ui in an application we've worked hard on slimming down. package count for getting datagrids up and running you ask? 12; direct dependencies, mind you. FML
-
You count distance in songs rather with km/cm?
That's cute, you know for how long have been working at my place? - Half of Frank Zappa's discography -
Don't know If it count as a function, but my favorite thing in python are its comprehensions, there is hardly something more usefull
-
I thought devRant week count would have overflowed and gone back to 1.
Qhat sort of year has more than 52 weeks, feels like the estimates PMs give ... -
What If one day the UNIX time turn it opposite, and starting count down to January 1, 2070. When it comes to zero, it will be the end of world.4
-
Am I right in thinking that the ++ count in your profile page only references rants you've upvoted, and not comments you've upvoted? 😢2
-
Legitimately thinking about making a joke website to count how many times music starts playing from my phone after I disconnect my headphones...2
-
More stars in the universe or LEDs on earth? Screen pixels do not count.
Edit: what if we added pixels?4 -
!tips
Hey codebroes! Give me your best programming movie, serial, documentary.
That episode from NCIS where they created a GUI for tracking down a criminal doesn't count!3 -
Is there a website which includes leading states in the total electoral vote count? Not just won states?5
-
I remember that when I was in pre- school they actually taught us to count from 0. I wonder how many of us from there came to be programmers
-
public function index(Request $request): array
{
$parameters = json_decode($request->get('lazyEvent'), true);
if (isset($parameters['page'])) {
$page = $parameters['page'];
} else {
$page = 0;
}
$queryBuilder = DB::table('companies')
->leftJoin('company_contact', 'company_contact.company_id', '=', 'companies.id')
->groupBy('companies.id')
;
if (isset($parameters['filters']['name'])) {
$queryBuilder
->where('name', 'like', '%' . $parameters['filters']['name']['value'] . '%')
;
}
$total = $queryBuilder
->count()
;
$companies = $queryBuilder
->select('companies.id', 'name', 'email', 'phone', DB::raw("COUNT('company_contact.id') AS contact_count"))
->orderBy('name')
->offset($page * $parameters['rows'])
->limit($parameters['rows'])
->get();
return ['companies' => $companies, 'totalRecords' => $total];
}
what is this shit? I get $total 1 when in reality is $companies count is 51
I am thinking avout writing whole sql as raw because I cannto get fucking count correctly21 -
Just a question about a generic social app. Using mongodb , 3 entities ,like comment and post . how do I display posts in feeds with comment count and like count . since its mongodb I can't do joins . the other way is to maintain a data structure on the server side . or yet another way would be making 2 extra queries to db for retrieving like and comments count . Any other way this is possible or is it possible to form a query in mongo db to retrieve all 3 at the same time???1
-
Which moron had the idea to name the register containing the address of the current instruction PROGRAM COUNTER? It fucking doesn't count programs, it points to an instruction.6
-
do competitors count? today i am a lecturer. the other one from another company talks bullshit all the time. unfortunately we have to show an united front.
-
Visual Studio with C# :
list.Count
"The property Count cannot be used because the get accessor is inaccessible"
list.Count()
"You can use the Count property"
why10 -
Count the fingers on both hands
if it comes 10 then f**k u
else if it is < 10 you are definitely a programmer.14 -
#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 -
Twitter now allows to add up to 4 images and format count them in symbols count. I have no idea what to do with such a great power.
-
Also my Science Teacher who quoted Einstein. I don't know anything unless I teach it to someone. I wonder, do rubber duckys count?
-
I can't count likes form my database for an specific post. I made a function that will count all the like by "post.id". It shows the like on the web page when I clicked on like button and it disappears when I refresh the browser. but likes are still remaining in the database but it won't appear on the webpage.
Here are the flask code:
def like_count(post_id):
if request.form.get('like') != None:
if (Like.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Like.query.filter_by(post_id=post_id).count()
else:
return 0
def dislike_count(post_id):
if request.form.get('dislike') != None:
if (Dislike.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Dislike.query.filter_by(post_id=post_id).count()
else:
return 0
Here are the html code:
<!--dislike-->
<form method="POST" action="">
<input name="dislike" value="1" class="input-style" >
<input value="{{post.id}}" name="post_id" class="input-style">
<button class="fas fa-thumbs-down" class="like-button" >
<div class="like-count" >
{{dislike_count(post.id)}}
</div>
</button>
</form>
<!--like-->
<form method="POST" action="" >
<input name="like" value="1" class="input-style" >
<input name="post_id" value="{{post.id}}" class="input-style" >
<button class="fas fa-thumbs-up" class="like-button" >
<div class="like-count" >
{{like_count(post.id)}}
</div>
</button>
</form>8 -
I've been working on a project that involves realtime messaging and i intend to also allow the comments count to update in real-time with websocket.
What i currently do is, when a user post's a comment the socket is notified to refresh the posts list page. (But if many users are commenting simultaneously that would be so many updates per few seconds. )
What's the best way around realtime comment-count updates in webapps.8 -
I am using python and matplotlib as a substitute for microsoftword plotting .. could i count myself as a programmer ? Lol
-
pow function accept var ?for example x2=2 ;
int count =2;
pow(count, x);
should return 4 but return other value9 -
How many of you keep an engineering notebooks anymore.
Wiki's count
Just curiouser!
How many of you know how to use a slide rule -
Fucking wrong parameter number.
select id,
name,
email,
logo,
IF(company_contact_ids is null, 0, contact_count) as contact_count
from (
select `companies`.`id`,
`name`,
`email`,
`phone`,
`logo`,
COUNT('company_contact.id') as contact_count,
GROUP_CONCAT(company_contact.id) as company_contact_ids
from `companies`
left join `company_contact` on `company_contact`.`company_id` = `companies`.`id`
where name like '%:name%'
group by `companies`.`id`
order by `name` asc
) as companies;
how many parameters do you see? I see 1.
https://pasteboard.co/KjDUjA3.png
Now how many parameters you see in $bindings array? I see 1
Fuck you laravel creators - it is not fucking wrong count. Why this error lies to me? Or what fucking count do you expect if I defined in the fucking query 1 parameter?3 -
Does anybody know how to make the story points from sub-tasks in Jira count towards reports when they're completed?
This graph is completely meaningless.1 -
I used to use Twitter for character count often while debugging or writing test cases. Now the shitty ring counter is freaking useless😑
-
Which DB good in group and sum operation?
I have an entity like
Chair {
id,
count: x
appartment_id,
floor_id,
build_id
}
And I need a group by appartment_id OR floor_id OR build_id and sum count.5 -
I don't know if making gameplay highlight vids count as geeky, but I enjoy doing it :)
*sneaky selfpromotion*
Youtube: DeaDlyAsFMJ2 -
I've just had an Ops rant on the Twitter ... does that count?
ops ops ops ... We're all effing Ops NOW! @devopsunicorn