Programming

Finding source data used by exposed filters

Drupal - Open Source Content Platform - Tue, 06/19/2018 - 13:53

I've just inherited a drupal site that is for selling very technical components for medical device manufacturers. Most of the site is straightforward. One page involves exposed filters/dropdown menus to help users locate a specific part they are looking for.

Not having used Drupal before, I cannot locate the source of the data that feeds these dropdown filters. This data needs to be updated regularly with new part numbers/new parts/model years etc and so, of course, I need to figure out how.

What should I be looking for, and can it be found through the admin interface?

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

Question Re Github Posting Code / How To Continue my Career

Learn Programming - Tue, 06/19/2018 - 13:48

Hi all,

I work for a company that does web design and I wanted to make a github profile with code I did here (in angular and js) to show my work to prospective employeers.

I am currently using older technology (ASP Classic ) as well as some newer (Angular 1.x) and am apprehensive to show new technology (Express/NodeJS) as if i am still learning they ask for Crazy implementations to be done in a short timeframe with very little testing regression testing / smoke testing and just to to deploy it quickly and get upset when it's not perfect.

I do the following:

  • Adapting Bootstrap themes and adding in new css/js code from a different website into that theme and figuring out the bugs of merging code
  • Responsive coding of new items and cross testing of new changes and items /design change constantly.
  • Adding / updating content to websites(sometimes 20-30 pages of content to be laid out and updated) and about 50-100 changes post that and pages and deploying to 3 platforms.
  • Creating responsive working web emails and adding code for Lotus Notes/Outlook 07/gmail/Iphone simultaneously.

And being compensated under what other people say I should be receiving.

I feel that I want a change.

I have done websites based on bootstrap themes with heavy modifications in css/js/jquery/angular 1.x and wanted to show off my work.

I can change the variable names I used and post but I don't want it to be publicly viewable (Do I use bitbucket repo's and just post individual js files.)

Secondly, I want to extend what I know and have taken the following steps:

  • Purchased the Learn Visual Studio .net course by Bob Tabor and done about 1/4 but stopped as a lot of what I am applying for in NY based city positions is well above what I know (MVC 4/5)
  • Started a course in React from Udemy by Stephen Grider but stopped that as didn't want to be niche and just do React.
  • Studied a lot of CSS/JS/Jquery/ am working through Colt Steele's course on The Web Developer Bootcamp and up to the Mongoose section and find it to be quite interesting and fun.
  • Want to take Microsoft Developer Courses and have certification in web design/html and hope that would let me have better opportunities.
  • Want to learn Python as the pay would be a great increase, but don't want to be all over the place.

Can you advise if I am on the right path or if I am doing things correctly or should be focused on other things.

Also what is this subreddit's discord server?

Thanks,

Dee from ny

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

Im trying to figure out how to replicate this website...

Learn Programming - Tue, 06/19/2018 - 13:42

Hey guys,

I'm really not sure if I this belongs here, but, I don't know if this is simple either, but how does a website like this archive all posts from that one user on its website? Is there an easy way to do this? I would like to replicate this. If this isn't the place for this, someone let me know where to post this.

Thanks!

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

How to access backend?

Learn Programming - Tue, 06/19/2018 - 13:28

Hello, I've got a burning question that I can't really find a concise answer to.

If we were to take an example of a website that analyses spotify user data, and presents them to the user, how would you go about retreiving the information?

The way that I am doing it now is coding a program that moves the cursor, reades the data and presents it. It's simple automation, but there must be an easier way.

Thanks!

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

Question about learning React native or Web Dev.

Learn Programming - Tue, 06/19/2018 - 13:24

I'm currently taking the FreeCodeCamp's Web Development course. I know Python and C++ pretty well, just adding that to the board. At a later point, I'd like to have the skills to make a website but also to make native android and ios apps. I have no intentions of learning Java or Swift at the moment. I'm not going after a highly skilled native app developer status. Just want to get things done. So I chose to learn HTML/CSS and JS because it fits both of my needs.

I just found out about React native, and it seems like it's a discipline of it's own. Do I continue the course or just learn Js on it's own ? Pretty confused..

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

I need some book recommendations about the dos and don'ts in programming (for example something about software architecture)

Learn Programming - Tue, 06/19/2018 - 13:12

Hello everyone,

I didn't study CS. I 'can' code in ABAP and Python. My programs do what they need to, but I often look at my coding thinking I could improve a lot. I'm looking for a book (best would be if it is written in general, but it's fine if it's for a specific programming language) which gives tipps for better coding. I know every programming language is different, but the concepts are basically the same I guess. For example: Often a method is called within a method, which is called in another method etc. How do I 'define' how deep to go. On what does it depend? How do I properly think about which classes I could need before I start programming? As my knowledge is pretty limited from a theoretical side of view I hope you still understand my problem and what I'm looking for.

Thanks for your help in advance.

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

"Good architecture allows major architectural decisions to be deferred" - Uncle Bob Martin

Learn Programming - Tue, 06/19/2018 - 13:04

Good architecture allows major architectural decisions to be deferred. The job of an architect is not to make decisions, but to defer decisions as long as possible, to allow the program to be built in the absence of decisions so that decisions can be made later with the most possible information.

Source

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

Scale of 1-10: How "scary" is the SQLite Quirk that ROWID could change?

Learn Programming - Tue, 06/19/2018 - 12:52

First time messing with SQLite. Just a personal project to learn shit.

Was looking at info about the ROWID and it says:

If the rowid is not aliased by INTEGER PRIMARY KEY then it is not persistent and might change. In particular the VACUUM command will change rowids for tables that do not declare an INTEGER PRIMARY KEY. Therefore, applications should not normally access the rowid directly, but instead use an INTEGER PRIMARY KEY.

O.O

It then says somewhere else (I lost the page and it's not in history wtf) that queries using ROWID is around twice as fast as using some other primary key or indexed value.

So is this my choice here? Protect the sanctity of data and have the table use a manual, slow, primary key VERSUS throw caution to the wind in preference of performance?

Or is it not that big of a deal and I should just use the default ROWID for most things? I mean, I will be doing the occasional data clean up, removing unused entries, but I've no need to go settling or collapsing the ROWID.

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

C++ Qt - undefined reference to QFutureInterfaceBase::setThreadPool(QThreadPool*)

Learn Programming - Tue, 06/19/2018 - 12:26

I am trying to make a simple opencv application in combination with Qt but I get the following error. Could someone explain me why I get this error?

error:

undefined reference to `QFutureInterfaceBase::setThreadPool(QThreadPool*)'

mainwindow.cpp

#include "mainwindow.h" #include "ui_mainwindow.h" #include<opencv2/opencv.hpp> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); cv::Mat inputImage = cv::imread("/home/John/Desktop/image.jpg"); cv::imshow("Display Image",inputImage); cv::waitKey(0); } MainWindow::~MainWindow() { delete ui; }

project.pro

QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = xyz TEMPLATE = app # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 #openCV LIBS += -L/usr/local/lib \ -lopencv_shape \ -lopencv_dnn \ -lopencv_videostab \ -lopencv_stitching \ -lopencv_viz \ -lopencv_calib3d \ -lopencv_features2d \ -lopencv_highgui \ -lopencv_objdetect \ -lopencv_superres \ -lopencv_videoio \ -lopencv_imgcodecs \ -lopencv_video \ -lopencv_photo \ -lopencv_imgproc \ -lopencv_ml \ -lopencv_flann \ -lopencv_core INCLUDEPATH += -I/usr/local/include/opencv \ -I/usr/local/include SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h FORMS += \ mainwindow.ui

As far as I know I linked to all the necessary shared objects and added the necessary include paths. I get this error when adding the imread function from openCV.

Thanks

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

Step by Step Learn SAP HANA

Learn Programming - Tue, 06/19/2018 - 12:24

If you are willing to learn SAP HANA from scratch, just follow below links and have a wonderful learning.

Step by Step Installation of SAP HANA

http://www.hightechnology.in

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

What is the significance of GitHub stars?

Learn Programming - Tue, 06/19/2018 - 12:22

Alot of the time I see GitHub stars being mentioned either in blog posts or in talks. What's their significance in software development?

Is it an indicator of popularity?

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

Exploring options for pdf-generator

Learn Programming - Tue, 06/19/2018 - 12:18

The limited print functionality that I've generated in the past has been using bootstrap on the front end; I basically created a dedicated view and triggered the browser print. This works just fine, no problem, for limited client side printing.

I now have a client wanting a massive amount of data printed for a mailer (200+ PDF pages), and this needs to be done server side. My backend is MySQL DB with PHP services running to the DB and serving an API for the front end app. PHP libraries seem like the obvious choice, but they all seem so very difficult to learn and tedious to implement. Is printing really that difficult or is there something huge I'm missing? I am open to other languages if there's a performance and/or step-change usability increase.

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

Refactoring IFs

Learn Programming - Tue, 06/19/2018 - 12:12

Hi guys.

I have the following algorythm written in C++:

... clock += timePassed; int m = clock.getMinute(); int d = clock.getDay(); if (currentMinute != m) { currentMinute = m; timeSubject.notifyObservers(clock); } if (currentDay != d) { currentDay = d; dateSubject.notifyObservers(clock); } ...

notifying the observers is an expensive operation and should be avoided when unnecessary.

What I'd like to do is to get rid of those ifs.

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

Pages