#java ftw
Explore tagged Tumblr posts
Text
as you can tell, i'm a master gamer with swift reflexes
#ignore yabujin in the background lol#im like#tired as fuck okay#i havent slept well lately#also im rusty LKOl#yeah im a genius#minecraft#smp#minecraft survival#minecraft server#minecraft meme#minecraft screenshots#minecraft smp#mineblr#minecraft funny#minecraft video#mc#mc java#minecraft java#java ftw#video#yabujin#water bucket
22 notes
·
View notes
Text
this is what i was working on instead of watching pearl lol. i don't have a finished pic but this felt like double spawner easy mode lol. both skele spawners.
tho tbf she and karn were meant to be doing portal 2 but karn had tech issues so now decked out runs. otherwise she'd have done her runs tomorrow perhaps.
2 notes
·
View notes
Note
"It's alright, it's fine, it's only a pillow," he chuckled softly.
He dodged Crow as he opened the cabinet and took out a pair of mugs.
"I don't have any of your coffee, I'll have to get some soon, but for now I have hazelnut, caramel, coconut, and New York cheesecake. Which would you prefer?"
Adjusting his coat as he stepped out of the company car, Alex-though nobody was allowed to call him that-heard the sound of his dress shoes on the marbled museum floor as he made his way to the crowd of officers and whatnot surrounding the scene. Without a word, he pushed his way past them all, flashing his federal badge, ducking under the tape, putting in his earbuds to block out all noise.
As everyone watched, he walked along the perimeter, only stopping to take notes and kneel down to study the dust patterns every so often. Even when people above him began to ask for conclusions, he merely held up a hand for silence and kept going.
In all, Alexander Pine, working up to head of the federal division, was good at his job and it showed. The news wasn’t quite allowed to report his findings for privacy and government reasons, but they found loopholes. He dressed professionally and thus acted as so, leading his colleagues to start placing bets years ago on whether anyone would ever be ‘good enough’ for him to actually date or even marry. He always had excuses not to, and dates usually ended up with the other person declaring that Alex was stuck up before huffing and leaving the restaurant.
Shuonun had left the museam just hours earlier, with the most valuable work in the collection in his gloved hands.
Shuonun was both a shadow and a star. He was a whisper in the night you weren't quite sure you heard, and one of his many aliases graced the front page of the local news most days.
Seldom few connected his many names together and the only one currently doing anything with those names was Alexander Pine. He was the only one who could stop him.
Truthfully Shuonun loved having a nemisis. Especially since Alex didn't have a prayer of catching him. He was always ten steps ahead.
@sword-and-sorrow
277 notes
·
View notes
Text
Gobuster - Directory/File, DNS And VHost Busting Tool Written In Go
Gobuster v3.0 - Directory/File, DNS And VHost Busting Tool Written In Go #Brute-force #bruteforce #Busting
[sc name=”ad_1″]
Gobuster is a tool used to brute-force:
URIs (directories and files) in web sites.
DNS subdomains (with wildcard support).
Virtual Host names on target web servers.
Oh dear God.. WHY!? Because I wanted:
… something that didn’t have a fat Java GUI (console FTW).
… to build something that just worked on the command line.
… something that did not do recursive brute force.
……
View On WordPress
#Brute-force#bruteforce#Busting#DirectoryFile#DNS#Gobuster#linux#resolver#Server#subdomain#subdomains#tool#v30#VHost#windows#wordlist#Written
1 note
·
View note
Text
Future Ficlet: All You Need is Love...and Coffee
Wow, tonight’s episode was brutal. Between the painful Olicity separation in present time and the lack of Olicity in the dark future of the flash-forwards, we aren’t seeing any of the happy right now. There seems to be no hope. Our heroes’ sacrifices were all in vain. Basically, everything sucks.
As kismet would have it, a couple of weeks ago, I shared a fun little head canon with @allimariexf and @hope-for-olicity and they both encouraged me to ‘write the thing.’ I’ve had a terrible case of writer’s block for quite some time (meaning I have a gazillion story ideas and a ton of WIPs that are unfinished). I expected this one to end up dormant in my drafts as well. But after tonight’s episode, I felt the need to finish it because we (and Olicity, of course) deserve a little hope and happy. Set two years in the future, the premise of this little fluffy ficlet is that Felicity needs an assistant but she has particular criteria ;)

This should have been the easy part.
After months of enticing investors, obtaining the proper licenses and permits, all the legal mumbo jumbo, and locating the perfect office space, hiring an executive assistant is going to be the breaking point where she finally loses her sanity.
Which completely defeats the purpose of trying to find someone to help her in the first place.
She has been doing fine on her own, thriving actually, since she decided it was time to recommence building a tech company from the ground up, sans Curtis this time. This venture, for better or worse, will be all hers. Her vision. Her name. Her legacy.
Despite her initial apprehension at that thought, she has a clarity and confidence in her mission and goals that has propelled her forward at a pace she couldn’t have imagined. So far, choosing which of her many prototypes she wanted to launch first has been her biggest challenge.
Until now.
She had narrowed down the stack of over 100 applications to the eight most qualified for the position, and began the interview process at 7:00 this morning.
The first one had been punctual, neat, and lacking any sort of personality whatsoever.
The second one arrived twenty minutes late and then interrupted Felicity mid-interview to take a non-emergency personal call on her cell phone.
The third one tapped her super long artificial nails on the edge of Felicity’s desk the entire time and included ‘loud typer’ when asked how her current co-workers would describe her.
The fourth one was a chaotic whirlwind who overshared details of his personal life on every single question.
Maybe he just had too much caffeine in his system. Or maybe she doesn’t have enough.
Coffee. She needs coffee. Her next interviewee isn’t scheduled to come in for another hour, so she takes the reprieve to just lay her head down on her desk for a moment in order to gather up the energy she needs to make the trek down the block for her caffeine fix.
“One vanilla soy latte, extra sugar, extra cinnamon, extra whip cream.”
Oh yes. That’s exactly what she wants. Why she is thinking it in Oliver’s voice, she doesn’t know. Her coffee daydream is so vivid, she can even smell the soothing notes of vanilla with hints of sweet cinnamon spice wafting through the air. Mmmmmmmm.
“Felicity….honey, are you okay?” Oliver’s voice again. She slowly lifts her head and sees her husband standing on the other side of her desk, holding a large cup emblazoned with the logo of her favorite java joint and her name scrawled across it in black marker.
“I am now,” she practically purrs as he hands over her treasured treat. After taking a deep inhale and a long swallow, she blissfully smiles at him. “It’s perfect. You’re perfect.” Suddenly jumping up out of her chair, she shares the revelation brought on by the jolt of caffeine in her system. “Oh! I have a great idea! You should apply to be my EA.”
Oliver chuffs out a laugh. “Because I brought you coffee? Your standards must be pretty low.”
“Worried you couldn’t cut it, Mr. Queen?” she asks, arching an eyebrow in challenge.
“I think my time served as Mayor proves otherwise,” he retorts with an air of gravitas but mimics her gesture, silently letting her know that he enjoys her teasing him and is willing to play along.
She shakes her head. “Nope, not helpful. You couldn’t even get me a break on my taxes when you were the mayor. What are your current qualifications?”
He ponders the inquiry for a moment before responding proudly, “I’m the head chef at Chez Queen.”
She rolls her eyes at Oliver’s corny moniker for their kitchen but gives him an encouraging smile. “Oh yeah, I’ve eaten there a few times. The food is magnificent. But do you have any business experience?”
His expression goes from proud to smug. “As a matter of fact, I do. I was formerly the CEO of Queen Consolidated.”
She takes another swig of coffee and checks an incoming text on her cell phone before reminding him, “I happen to have first-hand knowledge you wouldn’t have made it a week without your super smart and highly efficient EA.”
“That’s true,” he concedes with a grin, “though on the downside, she only brought me coffee one time. One”, he repeats, taking her coffee and phone and setting them off to the side. Placing his palms flat on the edge of her desk, he leans in closer, a visible twinkle in his vivid blue eyes. “I think she actually broke our coffeemaker. Violently,” he teases in a conspiratorial whisper.
Mirroring her husband, she leans in over the desk until their noses are almost touching. “A little violence doesn’t scare you, does it, Mr. Queen?” She allows her gaze to run down the length of his torso, visibly appreciating the definition of his biceps that his jacket cannot conceal. “You look like you could handle yourself just fine.”
“I like to stay in shape.” He feigns modesty but she knows her husband and can recognize that look in his eyes. “Some cardio, free weights, martial arts, salmon ladder…”
“That’s so hot” she blurts out, temporarily slipping out of character as her brain produces an amazing visual of sweaty and shirtless Oliver making his way up the salmon ladder. Will there ever be a day when that doesn’t turn her on? Probably not, and judging from the self-satisfied smirk on his face, he mentioned it on purpose just to get that very reaction out of her. Determined to get back on track, she rephrases, “I mean, that sounds interesting.” She decides a change of topic would be helpful to give her an advantage in their little game. “Computer skills?”
She immediately regrets that question when Oliver gives her a feral smile that makes her weak in the knees. Lowering his voice to the same octave he uses when he is dressed in green leather, he divulges, “I’ve hacked a federal prison network.”
Guh, game over. In all her years with Oliver, that is the sexiest thing he has ever said. She quickly makes her way around the desk and invades his personal space. “Seems like you’re a man of many talents,” she coos appreciatively, latching onto his arm and nuzzling her face into the sleeve of his jacket to breathe in the scent that is uniquely Oliver.
“My wife taught me a thing or two,” he boasts, turning so they are face-to-face and he can wrap his arms around her.
Her hands instinctively move from his arm to his chest, resting over his heart. “She must be an amazing woman.”
Oliver nods in agreement, his nose nuzzling hers. “She is. She’s the best.”
“I know you’re just saying that to get husband points and its working,” she acknowledges affectionately, her hand caressing the stubble on his jaw. He tilts his head into her palm like a contented cat and she takes the opportunity to kiss him like she wanted to since she saw him in front of her desk, whether it was five minutes ago with coffee or nine years ago with a bullet-ridden laptop.
Oliver moans and deepens the kiss, the fervent strokes of his tongue making her long for more. “Okay, you’re hired,” she pants, breaking the kiss when her need for air temporarily overcomes her need for Oliver. “Smoak Tech is a start-up so your health care package consists of me patching you up if you are injured and I’m sure we can work out some type of compensation for your time and skills,” provocatively shifting her body against his and feeling his obvious interest through his jeans and her skirt. Two soft kisses and one firm rotation of his hips later, she is internally debating the sturdiness of her desk and whether they have time for her to show him exactly what she means by ‘compensation’ before her next appointment shows up.
“That’s a very tempting offer, Ms. Smoak” he murmurs into her hair as his hand travels down her back and immediately finds its usual place on the curve of her shapely ass, pulling her impossibly closer, “but I’m afraid my current employer really needs me right now and I just can’t bear to leave her,” his free hand gesturing to the stroller where their daughter slumbers peacefully.
Felicity sighs, pure happiness filling her heart and clearing her mind as she rests her head on her husband’s chest to gaze lovingly at the chubby-cheeked, perfect amalgamation of her and Oliver they brought into the world just four short months ago. “Sounds like she has you wrapped around her little finger.”
Oliver rests his chin on the top of her head and she can hear the love and contentment in his voice when he whispers in her hair, “From the very first moment I met her. She takes after her mother that way.”
A/N: Thank you for reading! I hope this helped to soothe the sting of all the angst. Queen family feels FTW. William was not in this fic because at that time of day, he should be in school and also I didn’t want to traumatize him any further with Olicity’s blatant flirty flirt. The poor kid has seen enough already lol.
Huge thanks and virtual hugs to @allimariexf and @hope-for-olicity for all the fun conversations and being all around wonderful :)
Oliver’s ‘current employer’ ;)

#this was really short#but i finished it#i'll take that as a win#olicity fluff#olicity ficlet#olicity future fic#my fic
66 notes
·
View notes
Photo

One letter variables ftw⠀ ----------------------------- ⠀ ⠀ #variables #ProgrammerHumor #Programmer #Developer #coding #ProgrammerLife #dev #development #ProgrammingFun #ProgrammingJokes #backend #frontend #software #ComputerScience #github #android #Linux #Ubuntu #WebDevelopment #Java #MachineLearning #JavaScript #Server #code #coding #Python #StackOverflow ⠀ -----------------------------⠀ If you're a programmer who can relate with us, visit: https://www.terminalbytes.com/humor/⠀ ----------------------------- — view on Instagram https://scontent.cdninstagram.com/vp/61b1c727a1fd30142fbef8a9745aec9c/5D906D36/t51.2885-15/sh0.08/e35/s640x640/61775708_106777893834834_5758841524891032950_n.jpg?_nc_ht=scontent.cdninstagram.com
2 notes
·
View notes
Text
headphones probably, but all I have are earbuds. they make my ears wet and itchy >:(
wiggling my fingers?? I guess?? depends from person to person tho
tippy toes. mostly. I think.
"has autism" but it depends on who's talking
baggy but I HAVE to have on my binder or my shirt and pants feel WRONG
I've never tried being cuddled. or even comforted tbh so idfk
living with other people rn and I kinda hate all of them. all of them. but i dont think i could survive on my own anyway
socks all the way. hanes socks dont have seams
subtitles. but I also have ADHD and am hard of hearing
my cat is my actual service animal, though he isnt registered. I should, though.
both??? they're different vibes. I think I hate knowing my online friends irl.
minecraft depends a lot. on the person, mostly, but also on whether its playstation, java, or bedrock. java ftw
hot weather. I like basking. i moved to arizona for a reason.
tag game {awetistic version!} [this or that]
headphones or earbuds/airpods?
wiggling your toes or wiggling your fingers?
standing on your tippy toes or waddling while walking?
“autistic person” or “person with autism”?
baggy clothing or skin tight?
cuddling while overstimulated or no touching at all?
living alone or living with other people?
socks (inside-out or right-side-out) or no socks at all?
subtitles or no subtitles?
service animals or no?
in-real-life friends or online friends?
minecraft or no?
hot weather or cold weather?
for my answers:
airpods all the way ☺️
wiggling toes never fails 🥲
penguin waddle 🐧
autistic person
baggy clothing i literally can’t stand anything skin tight
no touching while overstimulated but in general i love snuggling 🥰
living with other people for right now (codependency on an all time high) 😩
socks worn right-side-out! i have some ocd tendencies according to 3 psychiatrists and this definitely helps manage those tendencies (i find the word choice hilarious idk why) so i don’t have to wash my feet as much to avoid feeling like i can’t breathe 👍🏼
i can’t see without subtitles
i definitely want to get a service dog at some point in my life 💕
online friends till the day i pass on GOD
MINECRAFTTTTTTT
i live in a sorta kinda budget desert 🌵 so i’ve become more accustomed to hot weather
no need to be tagged to do this game! however you can tag as many people as you like if you want to share it <3
i’m tagging: @gardenradish @ramenisweird @lovewallysblog @lightstar789 @autisticdreamdrop :)
437 notes
·
View notes
Text
Marvell Motherboards Driver Download For Windows 10
Related searches
Marvell Motherboards Driver Download For Windows 10 Version
Marvell Windows 10 Drivers
Marvell Motherboards Driver Download For Windows 10 64-bit
» driver marvell 91xx per windows 10
» marvell 91xx windows 10 driver
» marvell 91xx config windows 10 ドライバ
» windows 10 marvell 91xx config
» marvell 91xx config windows 10
» pilote marvell 91xx windows 10
» marvell 91xx windows 10 treiber
» pilotes raid marvell 91xx windows 10
» marvell marvell 91xx
» marvell 91xx driver windows 7
The Windows 8 driver will work fine on Windows 10 but the driver at Marvell is slightly older than the driver provided here. This driver is found at EVGA's driver download page (EVGA - Download Center) and is for the Z87 FTW motherboard. Also, it is listed as a Windows 8/8.1 driver named 'SATA 3/6G (Non-Intel)'but works flawlessly on Windows 10. This is a Windows 10 WHQL certified driver, which is not provided by default on some systems, for Windows 10, including the X58A chipset and other older Intel chipset motherboards. This will upgrade the SATA3 Controller from Marvell, on your motherboard, to the latest Windows 10 drivers.
Marvell Motherboards Driver Download For Windows 10 Version

If you are missing the Marvell 91xx Config ATA Device Driver, here is where to find it for Windows 10. Download it, install it, and you should be good to go. Place a checkmark for the driver file you want to download and click Next; the drive file download starts automatically; Step Two- Extract the file.
DRIVER 82801JB ICH10 FOR WINDOWS 7 X64 DOWNLOAD. Additionally, use another computer to download driver. This is the software driver package for the installed marvell miniport device. Can i install marvell miniport driver - which windows os versions does it run on? 06 kb 834624 bytes on 8. 0 statement of this computer is very useful.
marvell 91xx driver windows 10
at UpdateStar

Marvell Windows 10 Drivers
More
marvell 91xx driver 1.2.0.1039
More
marvell 91xx console driver 1.0.0.1045
More
Realtek High Definition Audio Driver 6.0.9030.1
REALTEK Semiconductor Corp. - 168.6MB - Freeware -
Audio chipsets from Realtek are used in motherboards from many different manufacturers. If you have such a motherboard, you can use the drivers provided by Realtek. more info...
More
Realtek Ethernet Controller Driver 10.46.1231.2020
This package installs the software (Ethernet Controller driver). more info...
More
Windows Live Essentials 16.4.3528.0331
Windows Live Essentials (previously Windows Live Installer) is a suite of freeware applications by Microsoft which aims to offer integrated and bundled e-mail, instant messaging, photo-sharing, blog publishing, security services and other … more info...
More
Driver Booster 8.3.0.361
Driver Booster 4, as a powerful and easy-to-use driver updater, provides 1-click solution to rapidly & securely update outdated and faulty drivers and install the best matched missing drivers not only for your device drivers but also for … more info...
More
Marvell wireless 12.10.17.3
ethernet driver more info...
More
NVIDIA HD Audio Driver 1.3.38.40
High Definition Audio Driver for NVIDIA devices. more info...
More
NVIDIA Graphics Driver 461.51
Supported Products:GeForce 500 series:GTX 590, GTX 580, GTX 570, GTX 560 Ti, GTX 560, GTX 550 Ti, GT 545, GT 530, GT 520, 510GeForce 400 series:GTX 480, GTX 470, GTX 465, GTX 460 v2, GTX 460 SE v2, GTX 460 SE, GTX 460, GTS 450, GT 440, GT … more info...
More
Intel Graphics Media Accelerator Driver 15.17.9.2182
Intel Graphics Media Accelerator Driver is a graphics driver for Intel GMA based motherboards. more info...
Descriptions containing
marvell 91xx driver windows 10
More
Realtek High Definition Audio Driver 6.0.9030.1
REALTEK Semiconductor Corp. - 168.6MB - Freeware -
Audio chipsets from Realtek are used in motherboards from many different manufacturers. If you have such a motherboard, you can use the drivers provided by Realtek. more info...
More
Mozilla Firefox 85.0.2
Coupon Search Plugin for Firefox, find some of the best discounts and deals around from the best retailers on the net. Coupons, discount codes and more. CouponMeUp have thousands of the best coupons from hundreds of online retailers. more info...
More
Microsoft Silverlight 5.1.50918.0
Silverlight is essentially nothing more than Microsoft's vision of a cross-browser, cross-platform plug-in designed to be the source of rich online user experiences and to dislodge Flash from its current dominant position on the market. more info...
More
Realtek Ethernet Controller Driver 10.46.1231.2020
This package installs the software (Ethernet Controller driver). more info...
More
Google Chrome 88.0.4324.150
Chrome is a web browser developed by Google. It is characterized by its speed and many innovative features. more info...
More
Microsoft Visual C++ 2008 Redistributable 11.0.61030.0
The Microsoft Visual C++ 2008 Redistributable Package installs runtime components of Visual C++ Libraries required to run applications developed with Visual C++ on a computer that does not have Visual C++ 2008 installed. more info...
More
Mozilla Maintenance Service 85.0.2
Firefox now installs an optional service called the Mozilla Maintenance Service. This service allows Firefox to install updates without requiring you to click yes in the Windows User Account Control (UAC) dialog. more info...
More
NVIDIA HD Audio Driver 1.3.38.40
High Definition Audio Driver for NVIDIA devices. more info...
More
Windows Live Essentials 16.4.3528.0331
Windows Live Essentials (previously Windows Live Installer) is a suite of freeware applications by Microsoft which aims to offer integrated and bundled e-mail, instant messaging, photo-sharing, blog publishing, security services and other … more info...
More
Microsoft Visual C++ 2010 Redistributable 12.0.30501
The Microsoft Visual C++ 2010 SP1 Redistributable Package installs runtime components of Visual C++ Libraries required to run applications developed with Visual C++ 2010 SP1 on a computer that does not have Visual C++ 2010 SP1 installed. more info...
Additional titles containing
marvell 91xx driver windows 10
More
Realtek High Definition Audio Driver 6.0.9030.1
REALTEK Semiconductor Corp. - 168.6MB - Freeware -
Audio chipsets from Realtek are used in motherboards from many different manufacturers. If you have such a motherboard, you can use the drivers provided by Realtek. more info...
More
Realtek Ethernet Controller Driver 10.46.1231.2020
This package installs the software (Ethernet Controller driver). more info...
More
NVIDIA Graphics Driver 461.51
Supported Products:GeForce 500 series:GTX 590, GTX 580, GTX 570, GTX 560 Ti, GTX 560, GTX 550 Ti, GT 545, GT 530, GT 520, 510GeForce 400 series:GTX 480, GTX 470, GTX 465, GTX 460 v2, GTX 460 SE v2, GTX 460 SE, GTX 460, GTS 450, GT 440, GT … more info...
More
Update for Windows for x64-based Systems (KB4023057) 2.57.0.0
More
Windows Live Essentials 16.4.3528.0331
Windows Live Essentials (previously Windows Live Installer) is a suite of freeware applications by Microsoft which aims to offer integrated and bundled e-mail, instant messaging, photo-sharing, blog publishing, security services and other … more info...
Most recent searches
Marvell Motherboards Driver Download For Windows 10 64-bit
» qualcomm atheros bluetott suite
» holtek rgb dram
» download davi
» kaiserbaas video to dvd maker driver
» 雅马哈xg50 win7
» come aggiornare moveslink
» powerutility ダウンロード windows10 fujitsu
» colin mcrae rally 2.0 download
» echo secrets of the lost cavern download
» spss statistics 25 win64
» pl rappelz gpotato eu
» sony music center for pc windows 7
» postal 2 awp-delete review
» telecharger reiboot for android
» descargar ieee.802.11
» notion windows 10 32 bits
» le dor
» driver toolkit donwload
» so utilities
» java se runtime environment 1.8.0
0 notes
Text
android kotlin listener
original source : https://antonioleiva.com/listeners-several-functions-kotlin/
참고자료) inline reserved keyword 설명 https://antonioleiva.com/lambdas-kotlin/
링크하단 부분에 나옴
One question I get often is how to simplify the interaction with listeners that have several functions on Kotlin. For listeners (or any interfaces) with a single function is simple: it automatically lets you replace it by a lambda. But that’s not the case for listeners with several functions.
So in this article I want to show you different ways to deal with the problem, and you may even learn some new Kotlin tricks on the way!
The problem
When we’re dealing with listeners, let’s say the OnclickListener for views, thanks to optimizations that Kotlin do over Java libraries, we can turn this:
view.setOnClickListener(object : View.OnClickListener { override fun onClick(v: View?) { toast("View clicked!") }})
into this:
view.setOnClickListener { toast("View clicked!") }
The problem is that when we get used to it, we want it everywhere. But this doesn’t escalate when the interface has several functions.
For instance, if we want to set a listener to a view animation, we end up with this “nice” code:
view.animate() .alpha(0f) .setListener(object : Animator.AnimatorListener { override fun onAnimationStart(animation: Animator?) { toast("Animation Start") } override fun onAnimationRepeat(animation: Animator?) { toast("Animation Repeat") } override fun onAnimationEnd(animation: Animator?) { toast("Animation End") } override fun onAnimationCancel(animation: Animator?) { toast("Animation Cancel") } })
You may argue that the Android framework already gives a solution for it: the adapters. For almost any interface that has several methods, they provide an abstract class that implements all methods as empty. In the case above, you could have:
view.animate() .alpha(0f) .setListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { toast("Animation End") } })
Ok, a little better, but this have a couple of issues:
The adapters are classes, which means that if we want a class to act as an implementation of this adapter, it cannot extend anything else.
We get back to the old school days, where we need an anonymous object and a function to represent something that it’s clearer with a lambda.
What options do we have?
Interfaces in Kotlin: they can contain code
Remember when we talked about interfaces in Kotlin? They can have code, and as such, you can declare adapters that can be implemented instead of extended (you can do the same with Java 8 and default methods in interfaces, in case you’re using it for Android now):
interface MyAnimatorListenerAdapter : Animator.AnimatorListener { override fun onAnimationStart(animation: Animator) = Unit override fun onAnimationRepeat(animation: Animator) = Unit override fun onAnimationCancel(animation: Animator) = Unit override fun onAnimationEnd(animation: Animator) = Unit }
With this, all functions will do nothing by default, and this means that a class can implement this interface and only declare the ones it needs:
class MainActivity : AppCompatActivity(), MyAnimatorListenerAdapter { ... override fun onAnimationEnd(animation: Animator) { toast("Animation End") } }
This solution eliminates one of the problems I explained at the beginning, but it forces us to still declare explicit functions for it. Missing lambdas here?
Besides, though this may save from using inheritance from time to time, for most cases you’ll still be using the anonymous objects, which is exactly the same as using the framework adapters.
But hey! This is an interesting idea: if you need an adapter for listeners with several functions, better use interfaces rather than abstract classes. Composition over inheritance FTW.
Extension functions for common cases
Let’s move to cleaner solutions. It may happen (as in the case above) that most times you just need the same function, and not much interested in the other. For AnimatorListener, the most used one is usually onAnimationEnd. So why not creating an extension function covering just that case?
view.animate() .alpha(0f) .onAnimationEnd { toast("Animation End") }
That’s nice! The extension function is applied to ViewPropertyAnimator, which is what animate(), alpha, and all other animation functions return.
inline fun ViewPropertyAnimator.onAnimationEnd(crossinline continuation: (Animator) -> Unit) { setListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator) { continuation(animation) } }) }
I’ve talked about inline before, but if you still have some doubts, I recommend you to take a look at the official reference.
As you see, the function just receives a lambda that is called when the animation ends. The extension does the nasty work for us: it creates the adapter and calls setListener.
That’s much better! We could create one extension function per function in the listener. But in this particular case, we have the problem that the animator only accepts one listener. So we can only use one at a time.
In any case, for the most repeating cases (like this one), it doesn’t hurt having a function like this. It’s the simpler solution, very easy to read and to understand.
Using named arguments and default values
But one of the reasons why you and I love Kotlin is that it has lots of amazing features to clean up our code! So you may imagine we still have some alternatives. Next one would be to make use of named arguments: this lets us define lambdas and explicitly say what they are being used for, which will highly improve readability.
We can have a function similar to the one above, but covering all the cases:
inline fun ViewPropertyAnimator.setListener( crossinline animationStart: (Animator) -> Unit, crossinline animationRepeat: (Animator) -> Unit, crossinline animationCancel: (Animator) -> Unit, crossinline animationEnd: (Animator) -> Unit) { setListener(object : AnimatorListenerAdapter() { override fun onAnimationStart(animation: Animator) { animationStart(animation) } override fun onAnimationRepeat(animation: Animator) { animationRepeat(animation) } override fun onAnimationCancel(animation: Animator) { animationCancel(animation) } override fun onAnimationEnd(animation: Animator) { animationEnd(animation) } }) }
The function itself is not very nice, but that will usually be the case with extension functions. They’re hiding the dirty parts of the framework, so someone has to do the hard work. Now you can use it like this:
view.animate() .alpha(0f) .setListener( animationStart = { toast("Animation start") }, animationRepeat = { toast("Animation repeat") }, animationCancel = { toast("Animation cancel") }, animationEnd = { toast("Animation end") } )
Thanks to the named arguments, it’s clear what’s happening here.
You will need to make sure that nobody uses this without named arguments, otherwise it becomes a little mess:
view.animate() .alpha(0f) .setListener( { toast("Animation start") }, { toast("Animation repeat") }, { toast("Animation cancel") }, { toast("Animation end") } )
Anyway, this solution still forces us to implement all functions. But it’s easy to solve: just use default values for the arguments. Empty lambdas will make it:
inline fun ViewPropertyAnimator.setListener( crossinline animationStart: (Animator) -> Unit = {}, crossinline animationRepeat: (Animator) -> Unit = {}, crossinline animationCancel: (Animator) -> Unit = {}, crossinline animationEnd: (Animator) -> Unit = {}) { ... }
And now you can do:
view.animate() .alpha(0f) .setListener( animationEnd = { toast("Animation end") } )
Not bad, right? A little more complex than the previous option, but much more flexible.
The killer option: DSLs
So far, I’ve been explaining simple solutions, which honestly may cover most cases. But if you want to go crazy, you can even create a small DSL that makes things even more explicit.
The idea, which is taken from how Anko implements some listeners, is to create a helper which implements a set of functions that receive a lambda. This lambda will be called in the corresponding implementation of the interface. I want to show you the result first, and then explain the code that makes it real:
view.animate() .alpha(0f) .setListener { onAnimationStart { toast("Animation start") } onAnimationEnd { toast("Animation End") } }
See? This is using a small DSL to define animation listeners, and we just call the functions that we need. For simple behaviours, those functions can be one-liners:
view.animate() .alpha(0f) .setListener { onAnimationStart { toast("Start") } onAnimationEnd { toast("End") } }
This has two pros over the previous solution:
It’s a little cleaner: you save some characters here, though honestly not worth the effort only because of that
It’s more explicit: it forces the developer say which action they’re overriding. In the previous option, it was up to the developer to set the named argument. Here there’s no option but to call the function.
So it’s essentially a less-prone-to-error solution.
Now to the implementation. First, you still need an extension function:
fun ViewPropertyAnimator.setListener(init: AnimListenerHelper.() -> Unit) { val listener = AnimListenerHelper() listener.init() this.setListener(listener) }
This function just gets a lambda with receiver applied to a new class called AnimListenerHelper. It creates an instance of this class, makes it call the lambda, and sets the instance as the listener, as it’s implementing the corresponding interface. Let’s see how AnimeListenerHelper is implemented:
class AnimListenerHelper : Animator.AnimatorListener { ... }
Then, for each function, it needs:
A property that saves the lambda
The function for the DSL, that receives the lambda executed when the function of the original interface is called
The overriden function from the original interface
private var animationStart: AnimListener? = null fun onAnimationStart(onAnimationStart: AnimListener) { animationStart = onAnimationStart } override fun onAnimationStart(animation: Animator) { animationStart?.invoke(animation) }
Here I’m using a type alias for AnimListener:
private typealias AnimListener = (Animator) -> Unit
This would be the complete code:
fun ViewPropertyAnimator.setListener(init: AnimListenerHelper.() -> Unit) { val listener = AnimListenerHelper() listener.init() this.setListener(listener) } private typealias AnimListener = (Animator) -> Unit class AnimListenerHelper : Animator.AnimatorListener { private var animationStart: AnimListener? = null fun onAnimationStart(onAnimationStart: AnimListener) { animationStart = onAnimationStart } override fun onAnimationStart(animation: Animator) { animationStart?.invoke(animation) } private var animationRepeat: AnimListener? = null fun onAnimationRepeat(onAnimationRepeat: AnimListener) { animationRepeat = onAnimationRepeat } override fun onAnimationRepeat(animation: Animator) { animationRepeat?.invoke(animation) } private var animationCancel: AnimListener? = null fun onAnimationCancel(onAnimationCancel: AnimListener) { animationCancel = onAnimationCancel } override fun onAnimationCancel(animation: Animator) { animationCancel?.invoke(animation) } private var animationEnd: AnimListener? = null fun onAnimationEnd(onAnimationEnd: AnimListener) { animationEnd = onAnimationEnd } override fun onAnimationEnd(animation: Animator) { animationEnd?.invoke(animation) } }
The resulting code looks great, but at the cost of doing much more work.
What solution should I use?
As usual, it depends. If you’re not using it very often in your code, I would say that none of them. Be pragmatic in these situations, if you’re going to write a listener once, just use an anonymous object that implements the interface and keep writing code that matters.
If you see that you need it more times, do a refactor with one of these solutions. I would usually go for the simple extension that just uses the function we are interested in that moment. If you need more than one, then evaluate which one of the two latest alternatives works better for you. As usual, it depends on how extensively you’re going to use it.
Hope this lines help you next time you find yourself in a situation like this. If you solve this differently, please let me know in the comments!
Thanks for reading 🙂
0 notes
Text
so we tried minecraft beta.
#minecraft#smp#minecraft survival#out of context#minecraft server#mineblr#minecraft funny#minecraft smp#minecraft meme#minecraft memes#minecraft java#java ftw#minecraft beta#old minecraft#beta minecraft#notch
9 notes
·
View notes
Text
I don't really get asks so I'll answer them straight from here.
🏃♀️ walk
🐴 the black one
🐺 not anymore
🐯 pre 1.14, yes
🦅 idk
🐈 jellie because it looks like my cat jimi
🕸 leave them
🐾 strider
🌵 i don't have to, i live in a mushroom fields!
🌲 oak :)
🌾 both
🌷 wither roses 🥀
🌙 depends on the light level, biome, and my mood
💤 no
🌍 mushroom fields
🍗 golden apples
🎂 neither
🏹 both
🎼 pigstep or 13
🗺 no
🏝 both
🌋 scoop into bucket to build with later
🛤 roller coasters
⛲ yes
🏛 simple
📷 not really
💎 building
💡 lanterns
🛏 light blue
🛋 no
🎁 no bonus chest
♥️ yeah
🔱 i have 5 tridents and build with coral and conduits, and my favorite zombie variant is the drowned. take a guess.
🐠 the pink and light blue one (🏳️⚧️)
🔈 full volume, subtitles on
🏳 yes, skull pattern
💀 fave: wither skeleton, least fave: silverfish
🎒 food, weapons, potions, tools
🏆 i got up to level 97
🎨 both
🖼 i love paintings! my favorites are the skeleton/skull ones (including the wither painting)
🔥 no
💦 decreased
🥕 apple
🌐 server
💰 yeah
⚰ not frequently
🔮 yes, mending and unbreaking ftw
🍽 i watch it vigilantly
🍵 hells yes
🐖 too much
🐉 i need elytra and shulker boxes so...
✌normal or easy
🐬 no :(
⚒ vanilla
📅 8 or 9 years
🕹 java and nintendo switch
▶️ i would if they weren't all associated with poop-and-pie >:(
📦 just put stuff in an empty chest
🚪 warped or oak
👕 waluigi in a tux, but it changes frequently
🧚♀️ hells yes
⛏ purpur or blackstone
Minecraft emoji asks
🏃♀️Do you prefer to walk or sprint?
🐴 Favourite horse pattern?
🐺 Do you tend to tame wolves?
🐯 Do you tend to tame ocelots?
🦅 Favourite parrot colour?
🐈 Favourite cat colour (1.14)?
🕸 Do you kill spiders once they’re passive or leave them?
🐾 Favourite passive mob?
🌵 How do you defend your base?
🌲Favourite tree and type of wood?
🌾 Do you farm above ground or under cover?
🌷Favourite flower?
🌙 Do you spend time outside at night?
💤 Do you sleep every night?
🌍 Favourite biome?
🍗 What is your preferred source of food?
🎂 Do you tend to make cakes or more complicated food like pies or stew?
🏹 Bow and arrow or sword?
🎼 Favourite Music disc?
🗺 Do you make and use maps?
🏝Island craft or play on the mainland?
🌋 How do you deal with lava? Do you use it in your builds?
🛤 Do you build minerails? What do you use them for?
⛲️ Do you use water in your builds?
🏛 What architecture style do you build in most?
📷 Do you make gifs or share screenshots?
💎 What do you use diamonds for?
💡What is your preferred source of lighting?
🛏 What colour is your bed? (Or the one you sleep in most).
🛋 Do you build furniture for your base?
🎁 Bonus chest or no bonus chest?
❤️ Do you keep your health at max all the time?
🔱 Thoughts on the aquatic update?
🐠 Do you have a favourite tropical fish?
🔈 What sound settings do you play with? Do you play with subtitles?
���️ Do you use banners in your builds? Do you have a favourite dye pattern?
💀 Favourite hostile mob? Least favourite hostile mob?
🎒 What items do you typically keep on your hotbar?
🏆 What level are you on the world/ server you play on most?
🎨 Do you tend to play on creative or survival?
🖼 Do you like the default paintings? Do you have a favourite?
🔥 Have you ever had a base burn down?
💦 What particle settings do you play with?
🥕 Do you have a favourite crop?
🌐 Do you prefer to play alone or on a server?
💰 Do you trade with villagers often?
⚰️ How often do you tend to die?
🔮 Do you tend to enchant things? What are your favourite enchantments?
🍽 Do you watch your hunger level vigilantly or let it get low?
🍵 Do you like to use potions?
🐖 How much time do you spend in the nether?
🐉 Do you put much emphasis on reaching The End?
✌️ Do you ever play on peaceful? What mode do you prefer?
🐬 Do you give dolphins blocks to play with?
⚒ Do you play with or without mods? Which mods do you use?
📅 How long have you been playing minecraft?
🕹 Which edition do you play? If you play java, which version is your favourite? Which version do you typically play on?
▶️ Do you watch any minecraft YouTubers?
📦 What kind of storage system do you use? (Or describe your storage setup).
🚪 Favourite door or trap doors?
👕 What does your current skin look like?
🧚♀️ Do you like to use elytra?
⛏ Favourite building block?
5K notes
·
View notes
Photo

Gotta stay fresh out here on the road! @desert_essence and @harrys ftw! . #harrys #desertessence #tourlife #vanlife #flobots #riseandshine #bass #bassist #bassplayer #food #foodie #whole30 #organic #paleo #coffee #java #espresso
#bass#bassplayer#riseandshine#whole30#coffee#espresso#organic#harrys#bassist#desertessence#paleo#vanlife#tourlife#food#java#foodie#flobots
2 notes
·
View notes
Video
youtube
PLEASE READ DESCRIPTION! Don't forget to like, comment, and subscribe if you like my content! Also, don't forget to click read more about social links and stuff. Walkthrough of Coffee and Colonialism as part of Transport Fever 2 Campaign mode. This is uncut and includes all main and bonus objectives. Mission Description: The island of Java: a tropical jewel in the midst of the Indian Ocean, conscientiously administrated by meticulous Dutch bureaucracy. The year is 1870 and the colony is undergoing a transformation. Recently individuals have been allowed to lease farmland and manage plantations. The fertile land offers ideal conditions for exporting a multitude of colonial goods. Off on the way to an exotic experience! LINKS Social: -Twitch: http://bit.ly/2MIaBOd -Non-Gaming Channel: hyperurl.co/j5w3dy -Twitch VOD Channel: hyperurl.co/yg8i18 -Discord: http://bit.ly/2ca81PE -Imgur: http://bit.ly/2ckec28 -Facebook: http://bit.ly/2bPiBMt -Twitter: http://bit.ly/2cpGHfa -Instagram: http://bit.ly/2c66vRn -Steam Profile: http://bit.ly/2bWgCD8 -Steam Group: http://bit.ly/2bVD1lw Support: -Patreon: http://bit.ly/2m3POFY -Green Man Gaming: http://bit.ly/2cqrL3k -Tad: http://bit.ly/2eumvtaD -CD Keys: http://bit.ly/2MIatyd -Humble: http://bit.ly/2DPdgTs -Donate/Tip: http://bit.ly/2MLAEno -Anonuymus Donate/Tip: http://bit.ly/2DPdiuy -Cryptocurrnecy: http://bit.ly/2MJkKKu Information: -Game Mods Spreadsheet: http://bit.ly/2cqrxJA Computer Specs: Gaming PC: CPU: Intel Core i7-7700k 4.2 GHz, Quad-Core https://amzn.to/2Mu8AGQ CPU Cooler: be quiet! Dark Rock Pro 4 https://amzn.to/2Jlqn15 Motherboard: Gigabyte AORUS GA-Z270X Gaming 7 (LGA 1151 ATX) RAM: Kingston HyperX Fury Black 16GB (2 x 8GB) DDR4-2133MHz SSD: Samsung 840 EVO 500GB HDD1: Seagate Barracuda 3TB 7200RPM https://amzn.to/2J5RT2k HDD2: Western Digital Black 2TB 7200RPM https://amzn.to/32rCzER HDD3: Western Digital Blue 4TB 5400RPM https://amzn.to/32wB9ch HDD4: Western Digital Black 6TB https://amzn.to/2p17k55 Case: NZXT Phantom 530 Black CD: Lite-On iHAS124-04 DVD/CD Writer https://amzn.to/2BoETk2 GPU: EVGA GeForce GTX 1070 SC ACX 3.0 Black Edition (8GB GDDR5) https://amzn.to/2VXSrfP PSU: Seasonic M12II Bronze EVO 850W, 80+ Bronze Streaming/Recording PC Specs: CPU: AMD Ryzen 7 1800X 3.6GHz, Octa-Core https://amzn.to/2P2vt5L CPU Cooler: Corsair H100i V2 https://amzn.to/33QtRQV Motherboard: MSI B350M Mortar (AM4 Micro ATX) RAM: G.Skill Ripjaws V 16GB (2 x 8GB) DDR4-2400MHz HDD1: Western Digital Blue 2TB 5400RPM https://amzn.to/2N0miAp HDD2: Seagate Barracuda 500GB 7200RPM HDD3: Seagate Barracuda 4TB 5900RPM https://amzn.to/2pFeITq SSD: Western Digital Black PCIe 256GB https://amzn.to/33Gipai GPU: EVGA GeForce GTX 1050 Ti FTW ACX (4GB GDDR5) Case: Thermaltake Core V21 https://amzn.to/2J8niRH PSU: Corsair RM750x, 80+ Gold https://amzn.to/2BtP7zA Capture: AVerMedia Live Gamer 4K https://amzn.to/2VXrVmM Peripherals: Logitech G27 Logitech Extreme 3D Pro https://amzn.to/35OBt8j Saitek X52 Pro https://amzn.to/2VUSd9m Blue Yeti https://amzn.to/31uvYbv Simu SKRS Thrustmaster TFRP https://amzn.to/35JvWjn Logitech C922 https://amzn.to/2qpIwE1 Logitech C920 https://amzn.to/2P2Ec87 Corsair K68 https://amzn.to/2J4SGAH Logitech G502 RGB https://amzn.to/2VXc4ob Rail Driver https://amzn.to/2pxNeiS Steam Controller https://amzn.to/31xhEPr XBOX One Controller https://amzn.to/2quFLS3 XBOX 360 Wired Controller Track IR 5 https://amzn.to/2P6IaMX 3x ASUS VE248H (24"/1080p) https://amzn.to/33NThyx ------------------------------------------------------------------------------------------------------- Finally, I will not tolerate incessantly negative posts on my videos. So please remain civil and conduct yourself with some semblance of proper decorum. Comments ARE moderated, and yours will be deleted and you will be banned if I deem you non-conducive to my channel.
0 notes
Photo

Stack Overflow ftw 💯 . Follow @programmer_life_ . . . . . . . . . . #stackoverflow #questions #stackoverjoke #stackoverflow_meme #tech #computer #programming #code #compsci #computerscience #software #engineer #developer #programmer #coder #web #app #technology #development #javascript #python #java #js #react #programminglanguage #developers #humor #startuplife #alphacoder https://www.instagram.com/p/BwFN3xOhe5I/?utm_source=ig_tumblr_share&igshid=ur0w1qpyqvu9
#stackoverflow#questions#stackoverjoke#stackoverflow_meme#tech#computer#programming#code#compsci#computerscience#software#engineer#developer#programmer#coder#web#app#technology#development#javascript#python#java#js#react#programminglanguage#developers#humor#startuplife#alphacoder
0 notes
Text
Update 2:00pm:

I actually did get some work done. I called BCBSIL to see what payment options I had during this time and was given some pretty important information.
So, if any of you have Blue Cross Blue Shield through the healthcare.gov Marketplace, LISTEN UP!
There is a 3 month grace period for you to pay your bill. That applies to everyone no matter what.
A message was sent out on March 17th regarding the COVID-19 pandemic. It should be in your member portal once you login. The higher ups are still working to figure out financial assistance for people who have been laid off or lost their jobs. That information is forthcoming and as soon as I find out what’s up, I’ll post it.
With the important stuff out of the way, I did manage to buy those aquatic plants super cheap on eBay. Everywhere else, they were super expensive, like $20 or more for a single plant, not including shipping. I got all my plants in bundles of two or more for about $7 per listing, and free expedited shipping. eBay FTW! And these are all reputable sellers with high ratings and good feedback/reviews.
What did I buy?
Moneywort, Jungle Val, Anubias Nana, Java Fern, and Micro Crypt





To Do List 4/1/2020
Motherfucker, it’s April Fools. Of course it is. Why else would my life feel like a joke right now?
It’s past 1pm and I’ve slept through the morning. My BIL made lunch (grilled cheese) and I haven’t done fuckall. My to do list is basically the same as it was yesterday.

Let’s see if I can actually get something done.
Oh, and not on the list but on my calendar: therapy at 4:30pm.
#to do list#physical distancing#important information#bcbs#covid 19 payment assistance#aquatic plants
4 notes
·
View notes
Photo

Python ftw⠀ ----------------------------- ⠀ ⠀ #python #c #ProgrammerHumor #Programmer #Developer #coding #ProgrammerLife #dev #development #ProgrammingFun #ProgrammingJokes #backend #frontend #software #ComputerScience #github #android #Linux #Ubuntu #WebDevelopment #Java #MachineLearning #JavaScript #Server #code #coding #Python #StackOverflow ⠀ -----------------------------⠀ For more, visit: https://www.terminalbytes.com/humor/⠀ ----------------------------- — view on Instagram https://scontent.cdninstagram.com/vp/4b60d5101c738a1d9265986eac4e6964/5D9C0B14/t51.2885-15/e35/62223956_2209222115822842_7711569904829242122_n.jpg?_nc_ht=scontent.cdninstagram.com
2 notes
·
View notes