@b6 Thank you very much
-
Are you facing the same issue then you can check out python type error slice indices must be integers or None or have an index method Solution and solve it now. it is very common error faced by the programmers
-
Most of the pattern programs written in C or C++ are the same, but different in syntax. This is done so that you can have a pattern program, which can be reused and saved in a library. By doing so, you don't have to type the bunch of code over and over again again, and it is a lot faster than writing a new program each time.
Read this article, as they have shown the most asked pattern programs in C.
-
I was recently trying to implement Mobile number verification on one of my projects. But after a ton of research, I couldn't find any resource or useable service that gives the facilities to do it locally. That makes me think...
DIY
Yes, you can and here is how we are going to do it.
So then I decide to do it by myself creating a separate API for the Mobile verification.
Here is the full article
-
Gole of this article
Gole of this article is getting a comprehensive understanding of the flutter declarative routing and the scenarios like login state, app initialization on startup, splash, onboarding, etc...The full article is available at ishanga.hashnode.dev
-
article title එක සිංහල වලින් තිබුණම ඒක slug එකට convert වෙද්දීං සිංහල characters ඔක්කොම replace වෙනවා
https://gist.github.com/mathewbyrne/1280286
Advance Regular Expression ගැන දැනීමක් නෑ 🙊
-
Guys mata one me fs8000 weight scale ekan serial port (25 pin) walin tx pin ekan wire ekak aran arudino ekata dela weight ekan memeasurement weight eka aran arudino eka variabe ekat ganna
gannaKohmda meka kragane, below is the the pin digram of the weight scale
scalealt textIMG-20200805-WA0008.jpg
-
Traditional Approach
Traditionally, we’ve built and deployed (Hosted) web applications where we have a 24hrs up and running remote computer called server. Our application runs on that server and we are responsible for provisioning and managing the resources for the severs. There are a few issues with this.
wOfS8.png
We are charged for keeping the server up and running even when we are not serving out any requests.
We are responsible for uptime and maintenance of the server and all its resources.
We also responsible for applying the appropriate updates and patches to the server.
As our usage scales we need to manage scaling up our server as well. And as a result manage scaling it down when we don’t have as much usage.
For smaller companies and individual developers this can be a lot to handle. This ends up distracting from the more important job that we have; building and maintaining the actual application. At larger organisations this is handled by the infrastructure team and usually it is not the responsibility of the individual developer. However, the processes necessary to support this can end up slowing down development times. As you cannot just go ahead and build your application without working with the infrastructure team to help you get up and running. In Other hand we have to do a lot of things to secure the server from viruses plus cyber attacks and also we have to monitor servers 24h, it’s a painless thing for developers. As developers we’ve been looking for a solution to these problems and this is where Serverless comes in.
What is Serverless?Serverless computing (or Serverless for short), is an execution model where the cloud provider (AWS, Azure, or Google Cloud) is responsible for executing a piece of code by dynamically allocating the resources. And only charging for the amount of resources used to run the code. The code is typically run inside stateless containers that can be triggered by a variety of events including http requests, database events, queuing services, monitoring alerts, file uploads, scheduled events (cron jobs), etc. The code that is sent to the cloud provider for execution is usually in the form of a function. Hence serverless is sometimes referred to as “Functions as a Service” or “FaaS”.
laravelLampStackI1.png
What is JAMstack ?A modern web development architecture based on client-side JavaScripts, reusable APIs, and prebuilt Markup It’s called JAMstack, JAM stands for JavaScript, APIs, Markup. The JAMstack is an approach to frontend web development (the construction of content and interfaces that users interact with). It allows developers to quickly create and efficiently serve static websites to users.
A JAMstack website or application is constructed using only above three elements. The static website that the user sees is built out of HTML and CSS markup code. JavaScript is used for any necessary dynamic functionality, and for calling APIs. APIs provide the application's backend.
uHGkEXe8lXJsmj6cZNQmIW3bpsEzn0mU9Eun.png
JAMstack ExampleA developer builds a web application that provides updates on European football scores. He creates a backend application that runs on a server he operates and constantly checks the scores of the latest matches. When a user opens up the web application, his server generates HTML pages that display those scores, then sends those pages to the user. However, his web application is somewhat slow: before a user can view those pages, they have to wait for the backend application to run, for the HTML to be generated, and for the HTML to reach their device.
Now suppose the developer rebuilds his entire web application using a JAMstack approach. Instead of writing an entire backend application, he creates a series of lightweight HTML pages that he stores in a CDN (content delivery network). When a user opens up the application, the CDN immediately delivers the corresponding HTML pages to the user, since the CDN is far closer to the user than the developer's server. The application also makes an API call in order to fill out the live football match scores on the page. Now the application loads very quickly for the end user, and from this perspective, there is much less need to write code that will handle the backend, server-side work of updating the scores.
What are the main benefits of using JAMstack?Performance: Almost all of the content in a JAMstack application is made up of static HTML files that are served from a CDN. This is the fastest way to deliver web content to end users.
Scalability: If an application is "scalable," that means that it responds well to large increases in usage. Because the JAMstack frontend is fast and the backend is lightweight, JAMstack applications are often extremely scalable.
Developer experience: JAMstack enables developers to focus on building a compelling frontend user experience, without worrying about the backend or performance issues.
Resources
https://www.cloudflare.com/learning/performance/what-is-jamstack/
-
හලෝ යාලුවනේ. දන්න විදියට හැමෝටම තේරෙන විදියට සිංහලෙන් ගොඩක් කාලය අරගෙන Course එකක් හැදුව PHP ඉගෙන ගන්න ආස ඔයාල වෙනුවෙන්. ඉතින් ඔන්න ඔය පහල තියෙන ලින්ක් එකට ගිහින් ඉගෙන ගන්න ඕන අය ඒව ඉගෙන ගන්න. සබ් ඕන නෑ, ලයික් ඕනෙත් නෑ, ඔයාල මොනා හරි දෙයක් ඉගෙන ගත්තොත් ඒ ඇති. :blush: :blush:
පාඩම් අංක 01
මෙතනදි මම PHP වල මූලිකම දේවල් ටික කතා කරනව. ඒ කියන්නේ අපට PHP වලට අවතීර්න වීමට අවශ්ය Basic ටික. මෙතනදි මම එක වීඩියෝ එකකින් කොටස් 11ක් ආවරනය කරනව. PHP ගැන මුකුත්ම දන්නේ නැති කෙනෙක්ට මේ පාඩම ගොඩාක් වටිනව. :fire:Video Content
#01 Hello Word
#02 String Variable
#03 Integer Variable
#04 Data Array
#05 1Operators
#06 Conditional
#07 All about Loops
#08 While Loop
#09 Do While Loop
#10 For Loop
#11 FunctionVideo 1: https://youtu.be/DkvR2kz2rY0?list=PLZx8DqbwuSlurau-r7KQ7pfrN-cLFonWG
පාඩම් අංක 02
මේ වීඩියෝ එකෙන් මම ඔයාලට PHP යොදාගෙන Database එකක් එක්ක වැඩ කරන්නේ කොහොමද කියල කියල දෙනව. මේක PHP වල ඉතා වටිනා පාඩමක්. Dynamic Website Develope කරනකොට, User Registration එකක් හදනකොට සහ තවත් බොහෝ දෑ සදහා අපිට Database නැතුවම බෑ. Database වර්ග ගනනාවක් තිබුනත් මම මෙතනදි හැමෝම දන්න mySQL ගැන තමා කියල දෙන්නේ.
PHP සහ MySQL Database System ගැන ඉගෙන ගන්න තියෙන හොදම ක්රමය තමා CRUD Method එක ගැන ඉගෙන ගැනීම. මොකක්ද මේ CRUD කියන්නේ. CRUD කියන්නේ පිලිවෙලින් Create,Read,Update,Delete යන වචන වල මුල් අකුරු හතරේ එකතුවයි. ඉතින් අපි දත්ත පද්දතියක් එක්ක වැඩ කරගෙන යනකොට අපිට අනිවාර්යෙන්ම මේ CRUD මෙතඩ් එක ඕන වෙනව. මේ වීඩියෝ එකෙන් මම CRUD මෙතඩ් එක ගැන මම දන්න හැම දේම ඔයාලට කිසිම අඩුවක් නැතිව දන්න සිංහලෙන් කියල දෙනව. :fire:Video 2: https://youtu.be/_LWuz34coSU?list=PLZx8DqbwuSlurau-r7KQ7pfrN-cLFonWG
පාඩම් අංක 03
මේ පාඩමෙන් මම ඔයාලට සරලව Dynamic Contents හසුරවන හැටි සරලව කියල දෙනව.මෙතනදි මම කියල දෙන්න යන්නේ HTML සහ Bootstrap පාවිච්චි කරල හදාගන්න Registration Form එකක තියෙන Data ඉතා පහසුවෙන් PHP සහ MySQL පාවිච්චි කරල Database එකක කොහොමද Save කරන්නේ කියල. ඒ වාගේම වීඩියෝ එකේ අවසානයේ මම මේ විදිහට Save කරගත්තු Data Bootstrap වලින් හදාගත්තු Table එකක View කරන විදිහත් මම මෙතනදි කරල පෙන්නනව.:fire:
Video 3: https://youtu.be/gYAcE2DhCkE?list=PLZx8DqbwuSlurau-r7KQ7pfrN-cLFonWG
ගොඩක් කාලය අරගෙන හදපු වීඩියෝ ටිකක්, බලල මොනා හරි ඉගෙන ගන්න. එහෙනම් හැමෝටම ජය වේවා.!
-
-
ඇත්තටම programming එහෙමත් නැත්තම් coding කියන්නෙ අපිට ලේසියෙන් තේරුම්ගන්න බැරි රොකට් සයන්ස් වගේ පට්ට complex දෙයක්ද? 🤔
නෑ!!!
ඇත්ත කතාව තමයි, programming වල basics හරියට ඉගෙනගත්තට පස්සෙ programming වල තියෙන අනිත් advance concepts තේරුම්ගන්න ගොඩක් ලේසියි. 😎
ඉතින් programming අමාරුයි කියලා හිතෙන අය වෙනුවෙන් මම සති කිහිපයක් මහන්සිවෙලා programming basics එහෙමත් නැත්තම් programming වල මුල ඉදන් object oriented programming දක්වා ගියපු videos 26ක tutorial series එකක් හැදුවා.
මම හිතනවා ඒ videos සෙට් එකම බැලුවට පස්සෙ, ඔයා complex කියලා හිතාගෙන ඉන්න programming තව දුරටත් complex වෙන එකක් නෑ.➤ Basics of Programming
01 - Introduction to Programming and C#
✅ https://youtu.be/2lH5_P8tEPo02 - Downloading & Installation Guide
✅ https://youtu.be/t0ArdRNPBZk03 - Syntax & Hello World
✅ https://youtu.be/YZNdNQY6vpE04 - Comments
✅ https://youtu.be/RDNusv3US8g05 - Variables
✅ https://youtu.be/ajYK8Pn-pRQ06 - Data Types + Variables
✅ https://youtu.be/-LEPNbCD2sI07 - Casting Methods
✅ https://youtu.be/ikamkH-CpWI08 - User Inputs
✅ https://youtu.be/NFEeV0SA8mo09 - Operators
✅ https://youtu.be/tn4g-Ap9cVE➤ Conditional Statements
10 - If Condition
✅ https://youtu.be/KUiXS2w1MVw11 - Switch
✅ https://youtu.be/9mxUszHONj4➤ Repetition Statements
12 - While Loop
✅ https://youtu.be/ZMnC0WQ-XVA13 - Do While Loop
✅ https://youtu.be/XTFX7alHRII14 - For Loop
✅ https://youtu.be/IpMzGJS-lso15 - Break & Continue
✅ https://youtu.be/6Xbr5couGcQ16 - Arrays
✅ https://youtu.be/Wu_sHikchUA17 - Functional Programming
✅ https://youtu.be/4p3dnxRWy50➤ Object-Oriented Programming
18 - Introduction to OOP
✅ https://youtu.be/WXSr8Z8McFY19 - Class vs Object
✅ https://youtu.be/KL1Vuj_7rYE20 - Encapsulation
✅ https://youtu.be/HI4aOjv9Zeg21 - Constructors & Methods
✅ https://youtu.be/4kRUJ35vAlQ22 - Inheritance
✅ https://youtu.be/hMSdSCJWbag23 - Polymorphism
✅ https://youtu.be/3nZAIooxw5024 - Abstraction
✅ https://youtu.be/KhPBK-P12rU25 - Interfaces
✅ https://youtu.be/okt5FpAQs4k26 - Errors & Exception Handling
✅ https://youtu.be/dW9itF40Bpo⭐ Java Basics සිංහලෙන් Tutorial Series
✅ https://youtu.be/NgjR1s5CBNoතාක්ෂණයට සම්බන්ධ මේ වගේ වැදගත් වීඩියෝ බලන්න කැමතිනම්, අපේ youtube channel එක subscribe කරන්නත් අමතක කරන්න එපා ❤
✅ Like ✅ Share ✅ Comment & Stay Connected!#TekStreet
-
The following is showing the basic architectural plan of the system. I want to have 2 databases using a single instance of SQL Server. if one of the databases updated, another one needs to update immediately. (as using trigger) I found that I can do it with consolidation but I don't have any proper way to get it done. what would be the steps to implement that concept?
7f01521a-e6b5-4896-8886-904317a937c7-image.png -
In this post i'm showing you how to send emails via firebase cloud functions by SendGrid. SendGrid is a cloud based email service it has free tier which will help you to begin. Also we have to enable firebase billing to work this correctly, because firebase free plan only allow google services for outbound networking.
For this tutorial i'm assuming you have installed firebase sdk and log into your firebase account.
Setting up things
Open terminal & run firebase init to initilize firebase functions We need two packages for this, add them via npm npm install @sendgrid/mail npm install cors Now open index.js and put below code. const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(); const SENDGRID_API_KEY = "PUT_YOUR_SENDGRID_API_KEY"; const sgMail = require('@sendgrid/mail'); const cors = require("cors")({ origin: true }); exports.sendEmail = functions.https.onRequest((req, res) => { return cors(req, res, () => { const msg = { to: req.body.email, from: '[email protected]', subject: 'SUBJECT', templateId: 'd-02d153b9f48f490bb73bfcc6ad92d892', //SendGrid Template ID // SendGrid Template Variables dynamic_template_data: { name: req.body.name, event_name: req.body.event, date: req.body.date } }; sgMail.send(msg).then(res => { res.send({ success: true, message: res }); }).catch(err => { res.send({ success: false, error: err }); }); }); }); Now deploy our function by running firebase deploy --only functionsNOTE - To work this correctly, you must enable billing on your firebase account
-
-
-
-
JAVA Object-Oriented Programming ගැන සිංහලෙන් Explain කරන tutorial set එකක්.. :open_hands:
Classes & Objects Access modifiers Method Overloading Method Overloading Constructor Method Constructor Overloading Inheritance Method Overriding & super keyword Upcasting & Downcasting Polymorphism Encapsulation Abstract Class InterfaceAuthor: Gayan Sampath
-
java application ekak api develop karadi localhost/port dala develop karata api eka implement karadi ethanta ip ekak dana one server ,eth ape normal pc ekak server ekak akranwan ethana ip ekak damata wadak na modka dynamic ip ne apita thiyane, meka overcome karana man pc eka static ip hadla mysql db server ekak host kara pc ekaka, itapse client pc eka java applicaiton thiyana ekata ee server pc eka ip ekai port ekai dela baluwa eth connect wen nane db ekata,
kohmda hari widhata meka karagne, big help
-
guys man netbeans ekata jasper librarys tika add karala button event ekata code kara print wene report ekak, eth program eka run karala button eka press karama error ekak ewaa, youtube tutorials uth baluwa ungem oya steps tika karadi wada, mage man hithane podi case ekak thyiane, katada puluwan help karana, big help :pick:
sccene eka.PNG
-