Category: Blog

  • fadein-fade-out-effect-jquery

    AspnetO Blog Series: How to Give jQuery fadeIn and fadeOut Effect to Text in Div?


    AspnetO – Quick Way To Learn Asp.net [http://www.aspneto.com]

    Source:

    1. http://www.aspneto.com/how-to-give-fadein-and-fadeout-effect-using-jquery-in-asp-net.html

    You may also like:

    1. http://www.aspneto.com/jquery-fading-effects-fadein-fadeout-fadeto-fadetoggle-to-div-text.html
    2. http://www.aspneto.com/how-to-call-javascript-function-from-code-behind-in-asp-net-c-vb-net.html
    3. http://www.aspneto.com/fade-in-and-fade-out-effect-using-css3-transition.html
    4. http://www.aspneto.com/oop-concepts-object-oriented-programming-concepts-with-examples.html
    5. http://www.aspneto.com/100-frequently-asked-interview-questions-on-asp-net-sql-server-oop-concepts.html

    This set of modules that is intended to provide small working examples on programming languages like
    Asp.net, C#/Vb, HTML, CSS, JavaScript, jQuery etc or any other third party APIs.

    The modules strive to be simple, well documented and modification friendly to help developers quickly learn
    their inner workings, with a little reading and hands on experience. Don’t be shy if you’re just starting,
    as precisely because of that you will know the questions and problems of a newcomer better than a seasoned developer!

    -----------
    How to use?
    -----------
    
    To run this tutorial, you can follow these easy steps..
    
    1. Extract project anywhere to your computer's physical location
    2. Double click on "FedeInFadeOutEffectUsingjQuery.sln" file
    3. You will see the list of page(s), open it and follow sample code snippet
    4. Change necessary changes (most likely connection string) if applicable & Run it
    5. That's it! You are now ready to go.. ;)
    

    AspnetO is a place where we share, you learn! For more tutorials on web designing and development,
    you can visit us at http://www.aspneto.com. If you find a problem, incorrect code format,
    obsolete or improper code or such, please let us know by contacting us via email
    from http://www.aspneto.com/contact-us/ page with a proper subject.

    Suggestions, corrections and new thread demands are most welcome. Please, No spam. We’ll keep track on you! 🙂

    Visit original content creator repository
    https://github.com/immayankmodi/fadein-fade-out-effect-jquery

  • Zidio-project

    Visit original content creator repository
    https://github.com/GayatriNaik6205/Zidio-project

  • android-na-tropie

    Na tropie

    Branded app for polish scout magazine

    Getting Started

    If you would like to run project in your Android Studio, follow steps:

    1. create app/src/main/res/drawable/nt_logo.png
    2. create app/src/main/res/drawable/nt_small_logo.png
    3. insert own app/google-services.json from firebase
    4. create app/src/main/res/values/settings.xml (see template)
    5. create app/src/main/res/values/nt_colors.xml (see template)

    settings.xml template

    Provide your own api url. Url has to ends with “https://github.com/”.

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <string name="NT_API_URL">http://example.com/api/</string>
    </resources>
    

    nt_colors.xml

    Adjust colors by your discretion.

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <color name="row_post_title">#FFFFFF</color>
        <color name="row_post_background">#FFFFFF</color>
        <color name="app_bar_background">#FFFFFF</color>
        <color name="background">#FFFFFF</color>
        <color name="toggle_color">#FFFFFF</color>
        <color name="colorPrimary">@color/app_bar_background</color>
        <color name="colorPrimaryDark">#FFFFFF</color>
        <color name="colorAccent">#FFFFFF</color>
    </resources>
    

    Important dependencies

    • firebase
    • google-services
    • kotlinx-coroutines

    Contributing

    Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

    Contributors

    Thanks goes out to all people:

    License

    This software is licensed under the Apache License 2.0 excluding images and other graphical elements like colors which rights belongs to NaTropie.zhp.pl. Protected resources are not shared in the repository.

    Visit original content creator repository
    https://github.com/writ3it/android-na-tropie

  • PhageBox

    PhageBox Logo

    Description

    This repository contains a graphical user interface, arduino libraries, and modules that are used within PhageBox. Below are instructions for using this code base, as well as information for initiating the GUI.

    Building the PhageBox.

    For building the phagebox, please review the build manual for a step-by-step build process.

    Graphial User Interface.

    Please see the GUI diagram for more information on what the GUI looks like once opened.

    Starting the GUI

    General Usage:

    usage: phagebox_app.py [-h] -s SERIAL_PORT [-m SLOPE] [-b INTERCEPT] [-v]
    
    optional arguments:
      -h, --help            show this help message and exit
      -s SERIAL_PORT, --serial_port SERIAL_PORT
                            Specify the serial port
      -m SLOPE, --slope SLOPE
                            Slope of (Chip Temp vs Peltier Temp) [Default 1.2]
      -b INTERCEPT, --intercept INTERCEPT
                            y-intercept (Chip Temp vs Peltier Temp) [Default -2]
      -v, --verbose         prints output figures and debug info
    

    Example (Mac):

    python phagebox_app.py -s /dev/tty.usbserial-1430
    

    Example (Windows):

    python phagebox_app.py -s COM4
    

    Embedded Device Software.

    Software box diagram

    Install

    To use this library, drag the entire contents of src/phagebox_embedded/ into your local arduino libary and import. More detailed instructions can be found in the arduino documentation.

    Arduino sketch example

    This example uses an Arduino sketch to import the PhageBox library and initialize the embedded software. This sketch is also available here: PhageBox/arduino/phagebox_controller/phagebox_controller.ino

    #include <PhageBox.h>
    
    void setup()
    {
        Serial.begin(9600);
        init_phagebox();
    }
    
    void loop()
    {
        start_phagebox();
    }
    

    Usage once library is installed

    Once installed, you can send commands through Serial/UART for controlling backlight, magnetic module and temperature modules:

    1. Heater 1 for 32 PCR cycles. Cycles: 15 seconds at 90C, 20 seconds at 50C, and 60 seconds at 72C.
    <H,1,32,15,90,20,50,60,72>
    
    1. Heater 2 for 32 PCR cycles. Cycles: 15 seconds at 90C, 20 seconds at 50C, and 60 seconds at 72C.
    <H,2,32,15,90,20,50,60,72>
    
    1. Toggle the LED
    <B,0,1>
    
    1. Toggle the MAGNET
    <B,1,0>
    
    1. Toggle both the MAGNET and LED
    <B,1,1>
    
    Visit original content creator repository https://github.com/Dreycey/PhageBox
  • PhageBox

    PhageBox Logo

    Description

    This repository contains a graphical user interface, arduino libraries, and modules that are used within PhageBox. Below are instructions for using this code base, as well as information for initiating the GUI.

    Building the PhageBox.

    For building the phagebox, please review the build manual for a step-by-step build process.

    Graphial User Interface.

    Please see the GUI diagram for more information on what the GUI looks like once opened.

    Starting the GUI

    General Usage:

    usage: phagebox_app.py [-h] -s SERIAL_PORT [-m SLOPE] [-b INTERCEPT] [-v]
    
    optional arguments:
      -h, --help            show this help message and exit
      -s SERIAL_PORT, --serial_port SERIAL_PORT
                            Specify the serial port
      -m SLOPE, --slope SLOPE
                            Slope of (Chip Temp vs Peltier Temp) [Default 1.2]
      -b INTERCEPT, --intercept INTERCEPT
                            y-intercept (Chip Temp vs Peltier Temp) [Default -2]
      -v, --verbose         prints output figures and debug info
    

    Example (Mac):

    python phagebox_app.py -s /dev/tty.usbserial-1430
    

    Example (Windows):

    python phagebox_app.py -s COM4
    

    Embedded Device Software.

    Software box diagram

    Install

    To use this library, drag the entire contents of src/phagebox_embedded/ into your local arduino libary and import. More detailed instructions can be found in the arduino documentation.

    Arduino sketch example

    This example uses an Arduino sketch to import the PhageBox library and initialize the embedded software. This sketch is also available here: PhageBox/arduino/phagebox_controller/phagebox_controller.ino

    #include <PhageBox.h>
    
    void setup()
    {
        Serial.begin(9600);
        init_phagebox();
    }
    
    void loop()
    {
        start_phagebox();
    }
    

    Usage once library is installed

    Once installed, you can send commands through Serial/UART for controlling backlight, magnetic module and temperature modules:

    1. Heater 1 for 32 PCR cycles. Cycles: 15 seconds at 90C, 20 seconds at 50C, and 60 seconds at 72C.
    <H,1,32,15,90,20,50,60,72>
    
    1. Heater 2 for 32 PCR cycles. Cycles: 15 seconds at 90C, 20 seconds at 50C, and 60 seconds at 72C.
    <H,2,32,15,90,20,50,60,72>
    
    1. Toggle the LED
    <B,0,1>
    
    1. Toggle the MAGNET
    <B,1,0>
    
    1. Toggle both the MAGNET and LED
    <B,1,1>
    
    Visit original content creator repository https://github.com/Dreycey/PhageBox
  • kibana-kubernetes

    Kibana Kubernetes

    This formula will help you to deploy and test a Kubernetes-ready Kibana cluster.

    Prerequisites

    You need to have a running Kubernetes cluster on your system (version 1.17 or newer).
    If you want to run it locally right on your PC or laptop, you can use minikube, kind, or docker-desktop. Personally, I use docker-desktop since I’m using Windows 10, it integrates seamlessly with the running Ubuntu instance on WSL2.

    You can check the version using kubectl version command.

    kubectl version
    
    Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-13T16:04:18Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}

    Make sure your kubectl has a kustomize command.

    kubectl kustomize --help
    
    # make sure running this command doesn't produce any errors.

    You will also need to have an Elasticsearch running on Kubernetes. Configure kibana settings, point to your Elasticsearch URL.
    For seamless integration, you may check github.com/husniadil/elasticsearch-kubernetes to deploy an Elasticsearch cluster.

    Deploying

    You should fulfill the prerequisites above before proceeding.

    # we're going to use a namespace called `monitoring`
    # so first create it if you don't have one
    kubectl create namespace monitoring
    
    # clone this repo
    git clone https://github.com/husniadil/kibana-kubernetes
    
    # go to elasticsearch-kubernetes directory
    cd elasticsearch-kubernetes
    
    # apply kubernetes resource config
    # note: dot after -k indicates current directory
    kubectl apply -k .
    
    # check status until you see that all pods have been run
    # keep checking
    kubectl get all -n monitoring
    
    # once all pods are ready, you can access it via load-balancer host
    curl http://kibana.monitoring.svc.cluster.local
    # or load-balancer IP
    curl http://10.103.9.167

    Destroying

    Destroying your cluster is simple as well. Make sure that you know what you are doing.

    # note: dot after -k indicates current directory
    kubectl delete -k .

    Disclaimer

    This script is provided as is and it’s intended for educational purpose. For production-ready deployment, you have to know Kibana best practices, you may find some useful references below.

    For reading

    Visit original content creator repository
    https://github.com/husniadil/kibana-kubernetes

  • awesome-webvis

    Awesome WebVIs

    A curated list of awesome WebVIs and resources for making awesome free-range organic WebVIs 🤘.

    Contents

    What are WebVIs

    WebVIs are web applications created using G Web Development Software 🧙‍♂️.

    WebVIs build standalone HTML + JS + CSS webpages that can acquire data (usually from a web service), do some analysis, and present the data in scientific and engineering web controls. G Web Development Software allows you to use the LabVIEW graphical programming language (also known as the G programming language) to create web applications.

    Find out more at webvi.io, on NI’s What Is G Web Development Software? page, or from the video What is G Web?.

    Getting Started

    Documentation

    Documentation and examples provided by National Instruments 🦅.

    Examples

    Manuals

    Training

    Forums

    Videos

    Add-Ons

    Libraries from the community to add new capabilities to WebVIs 🧩.

    Tutorials

    Tutorials, blogs, hands-ons, social media, and articles on WebVIs 📰.

    Articles

    Social media

    Presentations

    Presentations about WebVIs from NIWeek, LabVIEW User Groups, and the community 🗣.

    Just for Fun

    Games and other fun WebVIs you can play right away in the browser 🕹.

    Spotted in the Wild

    Screenshots and videos of WebVIs being used inconspicuously in the wild 🔍.

    Discover WebVIs on GitHub using the webvi GitHub topic, find WebVI source by searching for the gviweb file extension, or find built WebVIs with a clever search.

    If you find a built WebVI on GitHub you can also use an online tool like githack.com to quickly preview and run the built WebVI in your browser.

    Experimental

    Crazy experiments that try to push WebVIs to their limits 🧪.

    • WebVI Experiments – Playground with lots of examples and experiments using the JSLI with G Web. Demo.

    Non-English Resources

    Awesome WebVI resources in non-english languages 🌐.

    Visit original content creator repository https://github.com/rajsite/awesome-webvis
  • recipes-app

    Recipe App

    Netlify Status

    Welcome to the Recipe App! This application allows you to search for recipes, view details, and save your favorites. It is built using React and the Spoonacular API.

    Check out the live site: Recipe App

    Table of Contents

    Features

    • Search for recipes query.
    • View detailed recipe information.
    • View Similar recipes in the Detailed recipe page.

    Installation

    To run this project locally, follow these steps:

    1. Clone the repository:

      git clone https://github.com/your-username/recipe-app.git
      cd recipes-app
    2. Install dependencies:

      npm install
    3. API Key Setup: To access the Spoonacular API, you need an API key. Follow the instructions below to get a new API key and set it up in the project.

    API Key Setup

    1. Get an API Key:

      • Go to the Spoonacular API website.
      • Sign up for an account if you don’t have one.
      • Generate a new API key from your account dashboard.
    2. Set up the API Key in your project:

      • Open the file src/config/config.js.
      • Replace the placeholder with your API key:
        const API_KEY = 'YOUR_API_KEY_HERE';

    Usage

    Once you have set up the API key, you can run the app locally:

    npm run dev

    Contributing

    Pull requests are welcome. Please fork the repository and create a pull request with your changes.

    License

    MIT

    Visit original content creator repository https://github.com/BMomani/recipes-app
  • cloudbusting

    cloudbusting plugin for Craft CMS

    Purge cloudflare cache for Craft CMS entries on save

    Installation

    To install cloudbusting, follow these steps:

    1. Download & unzip the file and place the cloudbusting directory into your craft/plugins directory
    2. -OR- do a git clone https://github.com/TaisceCheol/cloudbusting.git directly into your craft/plugins folder. You can then update it with git pull
    3. -OR- install with Composer via composer require TaisceCheol/cloudbusting
    4. Install plugin in the Craft Control Panel under Settings > Plugins
    5. The plugin folder should be named cloudbusting for Craft to see it. GitHub recently started appending -master (the branch name) to the name of the folder for zip file downloads.

    cloudbusting works on Craft 2.4.x and Craft 2.5.x.

    cloudbusting Overview

    cloudbusting makes life easier when using a Craft CMS site behind Cloudflare. Whenever you save an entry cloudbusting will purge the Cloudflare cache for that entry’s url. That’s it.

    Using cloudbusting

    All you need to do to start using cloudbusting is provide your credentials on the settings page.

    Largely based on the brilliant work of Craft-Shopify

    Brought to you by the Irish Traditional Music Archive

    Visit original content creator repository
    https://github.com/TaisceCheol/cloudbusting

  • ToDoList-Redux

    ToDoList-Redux

    Topic : Redux based ToDo / Task application

    Objectives

    Lately I have been looking at migrating part of the code from the application I am developing from UIKit to SwiftUI. While the pure transition from UIKit to SwiftUI was actually pretty smooth in my first tribulation, the architectural framework I am using for UIKit, just doesn’t seem to fit very well to SwiftUI. This led me on a wild-goose chase for other, more suited, framework for SwiftUI.

    Enters Redux

    While on my search I came across Redux (deja vu ?) and more specifically SwiftRex. There are a ton of other Redux frameworks for Swift out there, but SwiftRex seemed to line up pretty well with what I was looking for, and its creator, @luizmb, was super responsive and very helpful in getting me started.

    ToDo / Task application

    As I was going through the evaluation of the different Swift Redux frameworks, I saw numerous “Counter” examples. This seems like the “Hello World !” equivalent for Redux. However it’s really not nearly enough to get a decent feel for how well it will suit one’s needs.

    So I used a fairly basic Task application to compare those different Swift Redux framework. I initially started reading about how to model app state using Store object using ObservableObject. Thanks to some really good reading from Peter Friese and Majid Jabrayilov, I settled on a design for the initial Task application (read those links if you want to learn more about the different designs).

    Jump directly to what interests you :

    Iterations

    1. First Redux Concepts (swiftrex-option1b)

    The first approach is based on a very light introduction of Redux and SwiftRex concepts :

    You can find some great explanations from Luis here on the different possible approaches I was going after.

    However, while this was a good first step, it was nowehre near what Luis described as “Option 1b”, and it still wasn’t making much use of the Redux framework since it was directly tying the cell view into the ForEach of the TaskList.

    2. Container / Rendering View (swiftrex-containerview)

    This iteration was my attempt to implement what Luis had described as “Option 1b” :

    • it creates an abstration level, i.e. the “Container” concept that Majid described in his post, between the actual view and the parent view. But with a little twist… by pushing the notion of State and Actions to that container,
    • it still leaves the implementation of the Rendering View and puts the Container View in charge of doing the data binding job,
    • the Container View uses Combine’s @ObservedObject to receive an ObservableViewModel from the calling View,
    • that now forces us to use a projection of our original view model — we’re a little more Redux-like.

    3. ObservableViewModel in the Rendering View itself (swiftrex-observableviewmodel)

    Another approach suggested by Luis was to integrate the View Model directly in the Rendering View (i.e. bypassing the Container View), while still keeping the View independent of any “higher level” Application Logic.

    While I didn’t like this approach initially because the presence of the ObservableViewModel forces the creator of the Rendering View to know about this particular SwiftRex concept, it somewhat grew on me, because of its simplicity :

    • it uses an extension of the Rendering View to define the Redux-specific concepts,
    • it still leaves the Rendering View itself very clean, when doing so…
    • the separation of (Redux) concerns in the extension (and here) allows us to define more Redux-like concepts, like projection, at the appropriate layer ; see for example how the TaskList extension allows us to define a projection specifically for the CheckmarkCellView (i.e. abstracting that mapping logic where it makes sense),
    • it allows us to have a fairly clean call from the parent View, because we’ve abstracted most of the binding logic out in the extensions.

    Now, a lot of the changes between #2 and #3 were purely cosmetic and a lot of the simplifications introduced in #3 could have been made for CheckmarkCellContainerView as well. But we’re slowly getting to what I consider a more “Redux-like” approach.

    Note : I am still a little confused about “lift vs. projection” but the last iteration helped in understanding where projection comes in (notice that I have not made any additional use of lift, outside of the App level reducer). Might do that in the next iteration.

    4. Router construct and precursor to ViewProducer (swiftrex-router)

    This next phase packs a lot of changes (most of them provided by Luiz).

    Router

    Overall, at the App level, those changes are introducing a new concept : the Router. It’s a set of static functions that provide Views, given the global store.

    import SwiftRex
    struct Router {
        static func taskListView<S: StoreType>(store: S) -> TaskList
        where S.StateType == AppState, S.ActionType == AppAction {
            TaskList(
                viewModel: TaskList.viewModel(store: store.projection(action: AppAction.list, state: \AppState.tasks)),
                rowView: { id in taskListRowView(store: store, taskId: id) }
            )
        }
    
        static func taskListRowView<S: StoreType>(store: S, taskId: String) -> CheckmarkCellView
        where S.StateType == AppState, S.ActionType == AppAction {
            CheckmarkCellView(
                viewModel: CheckmarkCellView.viewModel(
                    store: store.projection(action: AppAction.task, state: \AppState.tasks),
                    taskId: taskId
                )
            )
        }
    }

    This is slowly taking us toward the ViewProducer concept that Luiz mentioned a little while ago. This is important because it now allows us to “direct” the traffic via taskListView and taskListRowView directly from the global Store.

    So the state, that was somehow stored at the view model level, was moved back where it should have been all along : at the top of the Application, in AppState.

    struct AppState: Equatable {
        var appLifecycle: AppLifecycle
        var tasks: [Task]  
    ...
    }

    So projections, which are view / context specific, can be utilized as a “reduced” domain of expertise for each view.

    Item abstraction

    The other important change was the use of a “generic” Item in the TaskList (which we could certainly have renamged ItemList as it is becoming more and more generic). In essence the view model for TaskList is really only concerned about IDs and that’s it — because the actual binding of cell-specific values to the cell elements are handled outside, thanks to the Router.

        struct State: Equatable {
            var title: String
            var tasks: [Item]
        ...    
        }

    It also allowed us to split list-related actions and task-related actions,

    enum AppAction {
        case appLifecycle(AppLifecycleAction)
        case list(ListAction)
        case task(TaskAction)
    }
    
    enum ListAction {
        case add
        case remove(IndexSet)
        case move(IndexSet, Int)
    }
    
    enum TaskAction {
        case toggle(String)
        case update(String, String)
    }

    as well as break down the Reducers into their respective areas of expertise so we can compose the App Reducer from them all :

    extension Reducer where ActionType == AppAction, StateType == AppState {
        static let app =
            Reducer<TaskAction, [Task]>.task.lift(
                action: \AppAction.task,
                state: \AppState.tasks
            ) <> Reducer<ListAction, [Task]>.list.lift(
                action: \AppAction.list,
                state: \AppState.tasks
            ) <> Reducer<AppLifecycleAction, AppLifecycle>.lifecycle.lift(
                action: \AppAction.appLifecycle,
                state: \AppState.appLifecycle
            )
    }
    
    extension Reducer where ActionType == ListAction, StateType == [Task] {
        static let list = Reducer { action, state in
            var state = state
            switch action {
                case .add:
                    state.append(Task(title: "", priority: .medium, completed: false))
                case let .remove(offset):
                    state.remove(atOffsets: offset)
                case let .move(offset, index):
                    state.move(fromOffsets: offset, toOffset: index)
            }
            return state
        }
    }
    
    extension Reducer where ActionType == TaskAction, StateType == [Task] {
        static let task = Reducer { action, state in
            var state = state
            switch action {
                case let .toggle(id):
                    if let index = state.firstIndex(where: { $0.id == id }) {
                        state[index].completed.toggle()
                    }
                case let .update(id, title):
                    if let index = state.firstIndex(where: { $0.id == id }) {
                        state[index].title = title
                    }
            }
            return state
        }
    }

    The final outcome is that we have a now much more streamlined View creation in the ForEach :

    struct TaskList: View {
        @ObservedObject var viewModel: ObservableViewModel<Action, State>
        let rowView: (String) -> CheckmarkCellView
        
        var body: some View {
            NavigationView {
                VStack(alignment: .leading) {
                    List {
                        ForEach(self.viewModel.state.tasks) { rowView($0.id) }
                            .onDelete { viewModel.dispatch(.remove($0)) }
                            .onMove { viewModel.dispatch(.move($0, $1)) }
                    }
    ...

    and we’re probably just one step away from being able to abstract the return type of rowView to make TaskList completely generic (currently tied to CheckmarkCellView).

    More Actions

    We’ve also introduced some changes to the Actions :

    • we have a new .update(String) Action that is used with our new TextField. That gives us the ability to update the State when the user inputs or modifies the title of a Task.
    • the .add action doesn’t need any parameter since we just create a new empty Task when the user clicks on the “+ New Task” button.

    Questions

    While those were marked as resolved, there are several interesting questions that were asked, or derived work that was produced, in the course of making this demo application :

    Visit original content creator repository
    https://github.com/npvisual/ToDoList-Redux