• Breaking News

    Wednesday, May 12, 2021

    What practices have served you best ramping up at new senior-level jobs? Ask Programming

    What practices have served you best ramping up at new senior-level jobs? Ask Programming


    What practices have served you best ramping up at new senior-level jobs?

    Posted: 12 May 2021 04:53 PM PDT

    I'm taking a new job soon. The caliber of people I'll be working with and the scale of the product will be a big step up for me. It's also the first time I'll be starting in a senior role on a product that I'm genuinely excited about working on.

    That being said, I've never really given much thought to how to hit the ground running at previous jobs, but I'm feeling like I should be more methodical and intentional about my first days, weeks and months this time around. How do you get up to speed quickly? How do you position yourself for success?

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

    Reverse engineering ios app

    Posted: 12 May 2021 03:54 PM PDT

    Hey everyone I'm looking to learn more about RE iOS apps with ghidra or similar IDA Pro alternatives. The price of Ida pro is something I'm not comfortable paying until I learn more about this subject. If anyone can give any advice or pointers to decompiling iOS game apps or to disassemble them to assembly code please lmk. I'm new to RE and just trying to find resources for how to use ghidra for iOS apps but all I've found is how to use Ida pro for it and I'm stuck on exactly how the process works. Any advice would be greatly helpful.

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

    Profiling Python code (application: video processing on a Raspberry Pi)

    Posted: 12 May 2021 04:45 PM PDT

    Hi everybody: I'm playing with a Raspberry Pi zero and a small camera, and I intend to make a timelapse service/mini-site/thingy.

    What makes it not entirely trivial is that I want the Pi to serve the last "X" minutes of timelapse when requested: to do so, I plan to pass the pictures one by one into an encoder, save the resulting data packets to a circular buffer, and when the request comes "mux" the packets into a .mp4 file on the fly. I also intend to use the hardware-accelerated H.264 encoder of the Pi, which in theory is capable of 1080p30 - at seconds/minutes per frame, instead of frames per second, the CPU load should be very low.

    I got the basic frame-by-frame encoding working, and I'm trying to understand its performance before I go further. I have noticed that as of now, it takes about a second to encode each 1280x960 frame... not a show stopper, but shouldn't it be much faster if the Pi can do real time video?

    The only library I've found that allows this fine-grained manipulation of video data in Python, pyav, is not super well documented... This is the code I've written:

    #!/usr/bin/env python3 import picamera import picamera.array import av from datetime import datetime from time import sleep camera = picamera.PiCamera() camera.resolution = (1280, 960) buf1 = picamera.array.PiRGBArray(camera) av.logging.restore_default_callback() #workaround pyav bug 751 of = av.open('/tmp/testmov.mp4', mode='w') stream = of.add_stream('h264_omx', rate=24) stream.width = 1280 stream.height = 960 stream.pix_fmt = 'yuv420p' camera.start_preview() t0 = datetime.now() print('Camera started up') sleep(2) for i in range(30): print('Cycle /#',i,' - ',(datetime.now()-t0).total_seconds()) camera.capture(buf1, 'rgb') for packet in stream.encode(av.video.frame.VideoFrame.from_ndarray(buf1.array, format='rgb24')): of.mux(packet) print('Frame /#',i,' saved - ',(datetime.now()-t0).total_seconds()) sleep(0.5) buf1.truncate(0) print('Finalizing') for packet in stream.encode(): of.mux(packet) of.close() 

    I have executed it with -m cProfile and tried to understand the output (never really used a profiler before...) Am I right if I say that it takes half a second to take each picture, and then 300 ms to encode it, based on the following output?

    ncalls tottime percall cumtime percall filename:lineno(function) 30 1.563 0.052 1.563 0.052 {av.video.frame.from_ndarray} 1 0.001 0.001 1.699 1.699 array.py:30(<module>) 48/18 0.158 0.003 1.946 0.108 {built-in method _imp.exec_dynamic} 30 0.003 0.000 3.038 0.101 camera.py:523(_stop_capture) 60 0.008 0.000 3.399 0.057 encoders.py:401(stop) 48 4.234 0.088 4.260 0.089 {built-in method _imp.create_dynamic} 31 8.892 0.287 8.892 0.287 {method 'encode' of 'av.stream.Stream' objects} 182 10.859 0.060 10.859 0.060 {method 'acquire' of '_thread.lock' objects} 30 0.004 0.000 10.864 0.362 threading.py:264(wait) 30 0.003 0.000 10.869 0.362 threading.py:534(wait) 30 0.002 0.000 14.254 0.475 encoders.py:382(wait) 30 0.007 0.000 15.214 0.507 camera.py:1292(capture) 31 17.029 0.549 17.029 0.549 {built-in method time.sleep} 1 0.101 0.101 50.374 50.374 30sec.py:3(<module>) 169/1 0.018 0.000 50.374 50.374 {built-in method builtins.exec} 

    Thanks in advance to everyone.

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

    I built a domestic violence app and need help with Android Permissions

    Posted: 12 May 2021 12:50 PM PDT

    I'm building the app with Appery.io. It has been completed and uploaded to the google play store. When I tested it on appery everything works fine. After it was posted to the play store, the login function does not work. I'm using appery's cloud database. I think the problem is I need to request a specific Android permission. However, after looking into I don't understand which one I need. Any advice?

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

    Audio Focus / Two sounds simultaneously.

    Posted: 12 May 2021 11:57 AM PDT

    Can an app change another apps audio focus?

    The reason for this would be to create an app which allows sounds from two sources to be played at the same time. Currently none (to my knowledge and extensive search) exist on the play store.

    An example of this would be to have Spotify and YouTube playing simultaneously.

    The permission to pause an apps audio focus can be revoked via enabling developer mode and using PC software called Android Debug Bridge.

    adb shell cmd appops set com.google.android.youtube TAKE_AUDIO_FOCUS ignore

    Ignore or deny, the default is allow. The app might not work correctly.

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

    Importing a CSV file to neo4j with a column that has csv values

    Posted: 12 May 2021 05:43 PM PDT

    I have a CSV file that contains a userid, an email, names and finally a contacted field.

    The contacted field shows other users that the user has contacted, but in the case of multiple users it contains a list where each user that has been contacted is seperated by a ','.

    For instance, I have the entry : 1,noaddress@fake.com,fakename,"4,5,6,7" which means user with userid 1 contacted users with id 4, 5, 6 and 7.

    How can I import this to neo4j while creating a 'contacted' relationship between 1 and 4,5,6,7 ?

    I have very little experience with neo4j and cypher, and have thus been struggling with this quite a bit and am not finding the documentation particularly helpful.

    Any help is appreciated.

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

    What’s the name for this type of tag?

    Posted: 12 May 2021 09:07 PM PDT

    Some online forms allow you to add tags to make the data you enter easier to categorize. What is this type of tagging called? Googling "tagging" results in too many markup related hits. I'm looking for an API that can do this for me rather than reinventing the wheel because I know this king of tagging has been around for over a decade. Do you know of more specific terminology for this technique?

    If it helps, I'm working on a user registration form that tries to auto-complete tags based on tags that other users created or add a new tag. The tags would correspond to topics that are related to users' registration forms.

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

    Question Regarding Data Transfer between Raspberry Pi via Bluetooth

    Posted: 12 May 2021 02:33 PM PDT

    I am trying to connect two raspberry pi via Bluetooth as to send sensor data from the client pi to the server pi. I understand how to connect the two pi's, I would like some insight on how to create a way of transferring data between the two. My first instinct is to use TCP or UDP, but I don't know if it works with Bluetooth. Thank you in advance.

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

    Does anyone have any tips for someone going into Computer Science for college

    Posted: 12 May 2021 12:44 AM PDT

    (Serious) By the way i'm starting to learn java and I don't start till September

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

    How is my backend stack?

    Posted: 12 May 2021 07:41 PM PDT

    A stack using google cloud platform. NodeJS server hosted on Cloud Run, backend uses cloudsql pg, authentication uses firebase (so I don't need to set up JWT) ability to test locally while connecting to cloudsql by using docker.

    One test command and everything is ready for dev, pressing save refreshes project via nodemon.

    Deploying is smooth as well!

    I feel like this medium weight backend stack could be a very useful template for all future backend projects. Would you guys like a tutorial? Setting this thing up, the test environment etc took me quite a while. Thank lord I got help from another redditor. But the wheel is invented =]

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

    How do I use the JimpFONT npm package?

    Posted: 12 May 2021 07:39 PM PDT

    I can't find any resources on it, just a simple example on the package homepage: https://www.npmjs.com/package/jimpfont

    I am calling the function same as in the example... Here is my code:

    const JimpFONT = require('jimpfont');const jimpFONT = new JimpFONT();

    console.log("Creating Jimp Font");const fontpath = path.join(__dirname, 'Freedom-10eM.ttf');

    console.log(fontpath);

    const jimpfont = await jimpFONT.CreateFont("Sworder", 80, 30, fontpath, 20, "#FFFFFF").catch(err=>console.log(err));

    This results in the following error:

    [JimpFONT] Error: Error: Stream yields empty buffer !

    I have downloaded a .ttf font and placed it in the correct folder. Doubley checked the console.log to make sure it is in the correct place. What could be the problem here?

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

    Cannot figure out this my sql error

    Posted: 12 May 2021 07:33 PM PDT

    mysql> create view data as -> select e.eid,e.ename,a.aid,a.a_name -> from employees e,aircraft a, -> certified c -> where a.aid=c.air_id and c.emp_id=e.eid -> group by e.eid; Query OK, 0 rows affected (0.01 sec)

    mysql> select* from data;

    The error I got: ERROR 1055 (42000): Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'flightt.a.aid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

    Previous code: mysql> desc flights; +------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+-------------+------+-----+---------+-------+ | fl_no | char(6) | NO | PRI | NULL | | | from_place | varchar(15) | YES | | NULL | | | to_place | varchar(15) | YES | | NULL | | | distance | varchar(5) | YES | | NULL | | | departure | time | YES | | NULL | | | arrival | time | YES | | NULL | | | price | int | YES | | NULL | | +------------+-------------+------+-----+---------+-------+ 7 rows in set (0.00 sec)

    mysql> desc aircraft; +--------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+-----+---------+-------+ | a_name | varchar(30) | YES | | NULL | | | aid | char(6) | NO | PRI | NULL | | | cruise_range | varchar(15) | YES | | NULL | | +--------------+-------------+------+-----+---------+-------+ 3 rows in set (0.01 sec)

    mysql> desc employees; +--------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------+-------------+------+-----+---------+-------+ | eid | char(6) | NO | PRI | NULL | | | ename | varchar(30) | YES | | NULL | | | salary | int | YES | | NULL | | +--------+-------------+------+-----+---------+-------+ 3 rows in set (0.00 sec)

    mysql> desc certified; +--------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------+---------+------+-----+---------+-------+ | emp_id | char(6) | NO | MUL | NULL | | | air_id | char(6) | NO | MUL | NULL | | +--------+---------+------+-----+---------+-------+ 2 rows in set (0.00 sec)

    mysql> select *from flights; +-------+------------+-----------+----------+-----------+----------+-------+ | fl_no | from_place | to_place | distance | departure | arrival | price | +-------+------------+-----------+----------+-----------+----------+-------+ | 1 | Bangalore | Mangalore | 890 | 10:45:00 | 12:00:00 | 9500 | | 2 | Bangalore | Delhi | 2589 | 12:35:00 | 04:30:00 | 33500 | | 3 | Bangalore | Mumbai | 3785 | 02:45:00 | 05:25:00 | 25000 | | 4 | Delhi | Mumbai | 7800 | 09:15:00 | 12:05:00 | 15000 | | 5 | Delhi | Kathmandu | 15000 | 04:15:00 | 05:30:00 | 28000 | | 6 | Bangalore | Pattna | 20500 | 10:00:00 | 07:45:00 | 65000 | | 7 | Bangalore | Goa | 19000 | 12:00:00 | 06:30:00 | 99000 | +-------+------------+-----------+----------+-----------+----------+-------+ 7 rows in set (0.00 sec)

    mysql> select *from aircraft; +------------+-----+--------------+ | a_name | aid | cruise_range | +------------+-----+--------------+ | Airbus 985 | 1 | 20580 | | Boeing 777 | 2 | 27000 | | Jetair 741 | 3 | 37000 | | Airbus 901 | 4 | 18000 | | airbus 333 | 5 | 18500 | | boeing 123 | 6 | 8800 | | boeing 747 | 7 | 8580 | +------------+-----+--------------+ 7 rows in set (0.00 sec)

    mysql> mysql> select *from certified; +--------+--------+ | emp_id | air_id | +--------+--------+ | 101 | 1 | | 102 | 2 | | 103 | 3 | | 105 | 4 | | 107 | 5 | | 104 | 6 | | 106 | 7 | | 107 | 7 | | 108 | 7 | | 109 | 4 | | 110 | 3 | | 101 | 2 | | 101 | 5 | | 106 | 4 | | 101 | 7 | | 109 | 5 | +--------+--------+ 16 rows in set (0.00 sec)

    mysql> select *from employees; +-----+-------+--------+ | eid | ename | salary | +-----+-------+--------+ | 101 | Arnie | 30000 | | 102 | Brnie | 85000 | | 103 | Crnie | 50000 | | 104 | Drnie | 45000 | | 105 | Ernie | 90000 | | 106 | Frnie | 75000 | | 107 | Grnie | 100000 | | 108 | Hrnie | 30000 | | 109 | Irnie | 85000 | | 110 | Jrnie | 50000 | +-----+-------+--------+ 10 rows in set (0.00 sec)

    mysql> select a_name -> from aircraft a,employees e,certified c -> where c.emp_id=e.eid and c.air_id=a.aid and e.salary>=80000; +------------+ | a_name | +------------+ | Boeing 777 | | Airbus 901 | | airbus 333 | | boeing 747 | | Airbus 901 | | airbus 333 | +------------+ 6 rows in set (0.00 sec)

    mysql> select c.emp_id,max(a.cruis_ran) -> from employees e,certified c,aircraft a -> where e.eid=c.emp_id and c.air_id=a.aid group by c.emp_id mysql> select distinct c.emp_id,max(a.cruise_range) from employees e,certified c,aircraft a where e.eid=c.emp_id and c.air_id=a.aid group by c.emp_id having count(*)>=3; +--------+---------------------+ | emp_id | max(a.cruise_range) | +--------+---------------------+ | 101 | 8580 | +--------+---------------------+ 1 row in set (0.00 sec)

    mysql> select max(salary) -> from employees -> where salary not in (select max(salary) from employees); +-------------+ | max(salary) | +-------------+ | 90000 | +-------------+ 1 row in set (0.00 sec)

    mysql> select distinct e.ename from employees e,certified c where e.eid=c.emp_id and e.salary -> < (select min(price) from flights f where f.from_place='Bangalore'AND to_place='Pattna'); +-------+ | ename | +-------+ | Arnie | | Crnie | | Drnie | | Hrnie | | Jrnie | +-------+ 5 rows in set (0.00 sec)

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

    What are some cool ways to gain experience in programming?

    Posted: 12 May 2021 07:15 PM PDT

    I am trying to apply for Software Engineering jobs. I am trying to add more programming experience to my resume, and I was wondering what are some ways to gain more. I am fresh out of college, and I did not make smart choices in terms of internships. Any advice is greatly appreciated.

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

    Help with some django html and css

    Posted: 12 May 2021 07:09 PM PDT

    Template:

    {% extends 'mainsite/layout.html' %} {% block body %} <h1>Dashboard</h1> {% comment %} <h4>Token: {{ token }}</h4> {% endcomment %} <div class="articles" id='articles-dashboard'></div> <script> fetch('{% url 'api:news' %}?q={{ query }}', { method: 'get', headers: { 'Authorization': 'Token {{ token }}' } }) .then(request => request.json()) .then(data => { console.log(data) short_data = data['articles'].slice(0, 5) short_data.forEach(article => { let cardContainer = document.createElement('div') cardContainer.className = 'card' cardContainer.style.width = '15vw' let image = document.createElement('img') image.src = article['urlToImage'] image.class = 'card-img-top' image.style.width = '100%' image.style.height = '15vw' let cardBody = document.createElement('div') cardBody.className = 'card-body' let cardTitle = document.createElement('h5') cardTitle.className = 'card-title' cardTitle.innerHTML = article['title'] let cardDescription = document.createElement('p') cardDescription.className = 'card-text' cardDescription.innerHTML = article['articlePreview'] let date = new Date( Date.parse(article['timePublished']) ) let formattedDate = date.toISOString().replace(/T/, ' ').replace(/\..+/, '') let cardDate = document.createElement('p') cardDate.className = 'card-text' cardDate.style.color = 'grey' cardDate.innerHTML = formattedDate let cardPublisher = document.createElement('p') cardPublisher.className = 'card-text' cardPublisher.style.color = 'grey' cardPublisher.innerHTML = `Published by ${article['source']}` let container = document.querySelector('#articles-dashboard') cardBody.appendChild(cardTitle) cardBody.appendChild(cardDescription) cardBody.appendChild(cardDate) cardBody.appendChild(cardPublisher) cardContainer.appendChild(image) cardContainer.appendChild(cardBody) container.append(cardContainer) }) }) </script> {% endblock %} 

    CSS

    .content { padding: 10px; } .articles { display: flex; /* flex: 0 0 33.3333%; */ flex-wrap: wrap; flex-direction: row; } .articles>* { flex: 1 1 15vw; } .card-img-top { width: 100%; height: 15vw; object-fit: cover; } .card { margin: 10px; flex-grow: 1; } 

    layout.html

    {% load static %} <!doctype html> <html lang="en"> <head> <title>MediaFetch</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="stylesheet" href="{% static 'mainsite/styles.css' %}"> </head> <body> {% url 'index' as homepage %} {% url 'logout' as logout %} {% url 'login' as login %} {% url 'register' as register %} {% url 'dashboard' as dashboard %} <nav class="navbar navbar-expand-sm navbar-dark bg-dark"> <button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#collapsibleNavId" aria-controls="collapsibleNavId" <a class="navbar-brand" href="#">MediaFetch</a> aria-expanded="false" aria-label="Toggle navigation"></button> <div class="collapse navbar-collapse" id="collapsibleNavId"> <ul class="navbar-nav mr-auto mt-2 mt-lg-0"> <li class="nav-item {% if request.path == homepage %}active{% endif %}"> <a class="nav-link" href="{{ homepage }}">Home <span class="sr-only">(current)</span></a> </li> {% if user.is_authenticated %} <li class="nav-item {% if request.path == logout %}active{% endif %}"> <a href="{{ logout }}" class="nav-link">Logout</a> </li> <li class="nav-item {% if request.path == dashboard %}active{% endif %}"> <a href="{{ dashboard }}" class="nav-link">Dashboard</a> </li> {% else %} <li class="nav-item {% if request.path == login %}active{% endif %}"> <a class="nav-link" href="{{ login }}">Login</a> </li> <li class="nav-item {% if request.path == register %}active{% endif %}"> <a class="nav-link" href="{{ register }}">Register</a> </li> {% endif %} </ul> <form class="form-inline my-2 my-lg-0"> <input class="form-control mr-sm-2" type="text" placeholder="Search"> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> </form> </div> </nav> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <div class="content"> {% block body %} {% endblock %} </div> </body> </html> 

    Basically the issue is that the cards aren't going in rows, only columns. There is one single column of the cards, but not rows like I would expect. How can I fix this?

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

    Are there any APIs that allow constellation, star, and planetary tracking?

    Posted: 12 May 2021 06:41 PM PDT

    I'm working on an app and would like to be able to know what constellations are visible each night based on the user's location. I was hoping I could find an API that would allow just that but I'm having trouble finding anything.

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

    How to make mplayer play a gif on repeat until requested to stop?

    Posted: 12 May 2021 02:15 PM PDT

    Hi, so I was wondering if it is possible to make mplayer repeat a gif until I request it to stop?

    Alternatively, is there a python library that can achieve this same task, and have capability to go to fullscreen automatically also?

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

    Uncaught Exception: ValueError: The truth value of a StockDataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()

    Posted: 12 May 2021 01:07 PM PDT

    I am trying to compare two sets of indicators to generate a signal in a trading strategy. The error stems from these lines:

    def ema1(self):

    stock = pd.Series(StockDataFrame(self.candles))

    ema_1 = stock['ema1'].to_numpy()

    return ema_1

    def ema2(self):

    stock = pd.Series(StockDataFrame(self.candles))

    ema_2 = stock['ema2'].to_numpy()

    return ema_2

    def ema3(self):

    stock = pd.Series(StockDataFrame(self.candles))

    ema_3 = stock['ema3'].to_numpy()

    return ema_3

    def should_long(self) -> bool:

    return self.ema1 > self.ema2 & self.ema3

    I have tried adding parenthesis however this has not fixed the error.

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

    Migrating XML with XSLT

    Posted: 12 May 2021 06:06 AM PDT

    Hi.

    I have an interesting problem, just curious to know if anyone has some recommendations about how to do this.

    I have some XML configuration data for an old version of some software. There's also an accompanying stylesheet used to produce the config info.

    Unfortunately, the software vendor only supports using the XML configuration on the same version of the software, so it can't be used to move configuration data during an upgrade.

    I'd like to develop a way to do exactly that - export the XML config, use the stylesheet for the upgraded version to produce a new config file that can be used on the newer version of the software. I know there will need to be some minor changes (to accommodate new features and make minor config changes) so the recommended solution needs to be able to accommodate that as well.

    Thanks in advance for your help.

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

    Who is working on advancing XHTML, if anyone?

    Posted: 12 May 2021 02:48 AM PDT

    XHTML wiki states: "The standard known as XHTML5 is being developed as an XML adaptation of the HTML5 specification."

    But W3C shut down the XHTML 2 Working Group, in October 2009.

    Is XHTML basically just chapter in web history books today?

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

    Help with team code quality

    Posted: 12 May 2021 08:55 AM PDT

    I'm stuck in a situation where I have a great job but my team cares very little for code quality. For the last few years I have been fighting uphill battles trying to get people to embrace unit tests, coding standards, semantic versioning, keeping up changelogs, etc, but there's resistance at every step. Management doesn't want devs "doing extra work" for it and all but a handful of devs are apathetic about it all. If it means less work for them then they're happy. These people are smart but they can't seem to wrap their heads around the fact that by embracing these things we're saving ourselves more work in the future and creating a much better product.

    This is driving me crazy because I feel like apart from a couple other devs who also care about professionalism I am constantly cleaning up after people. I open up a file and there's obvious memory leaks, inconsistencies, etc.

    I dont want to leave this position because outside of this issue it's a quality gig that pays really well and is very laid back. Any ideas on how I can help improve the team culture around code quality?

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

    Why no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’) ?

    Posted: 12 May 2021 12:08 AM PDT

    the return is int

    #include<iostream> using namespace std; class Vector2D{ private: int x,y; public: Vector2D(int xx,int yy):x(xx),y(yy){} void set(int xx,int yy){ x=xx; y=yy; } int getx(){ return x; } int gety(){ return y; } friend int operator*(const Vector2D& a,const Vector2D& b); }; int operator*(const Vector2D& a,const Vector2D& b){ return a.x*b.x+a.y*b.y; } int main(){ Vector2D a(9,10),b(17,0); cout<<"(9,10) * (17,0) = "<<a*b<<end; return 0; } 
    submitted by /u/JacksonSteel
    [link] [comments]

    (Civilian Question) What is name of programming speciality that would compare and match dynamic website to a a .csv file?

    Posted: 12 May 2021 08:33 AM PDT

    Hi all,

    Bear with me, I know this is not a job posting sub. I want to write a clear project goal and post it to the right sub, to the right developers.

    I'm trying find out what kind of programmer does this kind of programming. Is this webdevelopment? database building? Python? PHP?

    I have a .csv file with approx 1K records. I want to find new daily matches when comparing this .csv file with daily new content found on two public-facing searchable database-websites. (They both allow what I guess are API searches? Think looking for new eBay listings that match your wants list. These sites are not eBay, btw.)

    Mods, hope I'm not crossing any boundaries. Thanks.

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

    Which language/platform should I use to create a simple Crosshair Overlay program?

    Posted: 12 May 2021 08:20 AM PDT

    So as my next programming project I'm trying to write a "Crosshair overlay" app. Basically on a windows machine - I want a program that can display an image (like a logo or a target crosshair) all the time, on any application window. It should always be visible in the center of the screen, even when running running fullscreen gpu accelerated games.

    Could someone please guide me on which platform to use (I am proficient in python, java and webdev - but maybe this needs something like C#, idk) and which libs/frameworks to look up?

    Thanks in advance!

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

    Automate button click on drop down menu

    Posted: 12 May 2021 07:50 AM PDT

    This may seem like a very broad question but I haven't had any luck finding the answer.

    So for work I use Cisco Finesse and when we go to break/return from break, we have to change our status via a drop down menu. Is there a way to write a script or something that will automate the status to change on its own given a time frame?

    Basically, can I program this button to be clicked at a specific time without engagement from me?

    Thanks!

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

    No comments:

    Post a Comment