• Breaking News

    Tuesday, December 7, 2021

    Is this bool expression simplification true? Ask Programming

    Is this bool expression simplification true? Ask Programming


    Is this bool expression simplification true?

    Posted: 07 Dec 2021 01:48 AM PST

    !(A && B) = !A || !B

    submitted by /u/truckerjoe99
    [link] [comments]

    WHERE clause go through three columns in order

    Posted: 07 Dec 2021 04:00 AM PST

    Hello,

    currently I have this sql that returns the first match for name variable:

    SELECT * from Tablename WHERE name = :name LIMIT 1


    But now I need to make it go through 3 columns.

    if its not found in the "name" column, then search in "fullname" column. If its not found even there then search in "id" column.


    First thing I can think of is using the "OR" operator, but that would probably not work because:

    I want only the first result. And if the match is in row 100 for "name" but row 1 for "fullname", i still want the 100th row one.

    Does anyone know how to do this?

    submitted by /u/Des0
    [link] [comments]

    Biggest noob here, I want to make a mailto and add an img to it on a website.

    Posted: 07 Dec 2021 06:13 AM PST

    <a [href="mailto:vir***rn@gmail.com](mailto:href="mailto:virsboteknikern@gmail.com)"</a><img src="https://cdn-icons.flaticon.com/png/128/6126/premium/6126019.png?token=exp=1638881850~hmac=e98c6c407ccdee6b63399d83da3bfff6" width="40" height="55"/>

    this is what I have, but when I click it nothing happens

    submitted by /u/niklasdaking
    [link] [comments]

    File issues when trying to run in ROS

    Posted: 07 Dec 2021 05:33 AM PST

    Hello,

    I am trying to run a program in ROS that uses an intel real sense camera, but let me go back first.

    I initially tried running my script for the camera from the home directory on my raspberry pi 4. I got the issue "AttributeError: module 'pyrealsense2' has no attribute 'pipeline'. I then solved this by copying the three pyrealsense ".so" files to the home directory (The same as the python file I am trying to run.

    Once I got it working by itself, I then tried moving everything into my larger ROS python script. I then moved everything (including the .so files) into my source folder (/catkin_workspace/src/ros_kortex/kortex_examples/src/full_arm). This directory is where my ROS python file is located, so I assumed it would have the same positive affect by moving everything here, but when I run my script I get the original error of ""AttributeError: module 'pyrealsense2' has no attribute 'pipeline'". In the header of my ROS file I have,

    sys.path.append('/home/pi/catkin_workspace/src/ros_kortex/kortex_examples/src/full_arm') and this helps when importing external python scripts to my main file.

    I then have

    import realsense_depth #Class with camera functions

    If adding the .so files helped when the files were in the home directory, then why is it not working when I move everything into this new directory? any ideas?

    submitted by /u/Automatic_Judgment_2
    [link] [comments]

    How do i know if I'm programming the right way?

    Posted: 07 Dec 2021 05:19 AM PST

    I'm a mostly self taught programmer , and I'm programming in C# using .net The thing is I make apps and they work. But IDK. If the way I make them is.... "Practical" For example till 2 month ago i didn't even know what a "Linked list" is and I used regular arrays for everything Since then I always wondered how to make sure I'm writing code "The right way" I don't know if i delivered the message but i hope you get it. Any advice would be appreciated.

    submitted by /u/TiredP0tat0
    [link] [comments]

    Most comfortable chair for long coding sessions?

    Posted: 07 Dec 2021 04:13 AM PST

    Something that gets me in the zone? Something that supports good posture for improved patience Preferably something that looks decent.

    Peace

    / E

    submitted by /u/sriyukteswar
    [link] [comments]

    Is doing a project the key to improving programming?

    Posted: 07 Dec 2021 01:17 AM PST

    Is doing a project the key to improving programming? -> Is doing a project the key to improving programming skill?

    Right now, I'm making projects into curiosities and things that I don't know about

    but I don't feel like I've grown much.

    and I feel I am poop

    1 . should i keep that I am doing?

    2 . If question of title is true, What specific projects will help you grow?

    submitted by /u/User012340
    [link] [comments]

    Programmers, what you suggest for productivity via tools

    Posted: 06 Dec 2021 10:54 PM PST

    I personally enjoy learning tools that are productivity related.

    And i learn those when i can't focus in programming.

    I am learning vim today.

    What other tools you suggest?

    submitted by /u/dark-horse-1402
    [link] [comments]

    Algorithm Project

    Posted: 06 Dec 2021 10:40 PM PST

    Hi! Thank you in advance for reading my description.

    I would like to make a project that involves visualizing some basic sorting algos. I plan to begin with the heap sort and work my way up from there. I am no problem with the mechanics of the heap sort and implementing that, but I don't have much experience with UI and bringing projects to 'life'. I want it to be interactive while it is sorting, so people can see the actual steps involved. I know that will depend on the input too. Does anyone have any recommendations for how I can implement this. Ideally in java, but open to python or C++ too.

    I am thinking it would be a java UI library and work my way from there? Let me know!

    submitted by /u/aidan_01
    [link] [comments]

    I want to be able to play mp4 videos without a library

    Posted: 06 Dec 2021 10:07 PM PST

    if u want to say "u should not do it because its reinventing the wheel",pls ignore this post

    Now I could extract each container, but I don't know how to make a video from these containers

    [ftyp, size: 32, offset: 0] [moov, size: 10727, offset: 32] [mvhd, size: 108, offset: 40] [trak, size: 7964, offset: 148] [tkhd, size: 92, offset: 156] ..... 

    Question

    1 . How can I play mp4 with these info?

    (I am welcome even answer is blog link)

    (because I could not find blog that explain about this details)

    submitted by /u/User012340
    [link] [comments]

    No comments:

    Post a Comment