• Breaking News

    Sunday, March 11, 2018

    What programming designs, principles and algorithms should i learn? learn programming

    What programming designs, principles and algorithms should i learn? learn programming


    What programming designs, principles and algorithms should i learn?

    Posted: 10 Mar 2018 07:28 AM PST

    I'm still kinda new to programming and I've encountered term such as A*, static programming and etc and it made me wonder what I should learn.

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

    I've been subscribed to dailycodingproblem for only a week now but i found it to be really educational

    Posted: 10 Mar 2018 09:40 AM PST

    Many of you probably know about this site but I stumbled upon https://dailycodingproblem.com recently I found it really helpful for preparing for tech interviews.

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

    Ideas for beginner to intermediate in Python?

    Posted: 10 Mar 2018 07:50 PM PST

    I'm just stuck and figured this may be the best place to post. I've looked everywhere else online but I can't seem to find something to my level that will actually be somewhat useful to me. Without making this post too much longer I consider myself a beginner, starting to get to an intermediate level of skill, in Python. Any ideas for a project I should try?

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

    Java online compiler with code walkthrough

    Posted: 10 Mar 2018 09:57 PM PST

    I graduated a few years ago but I used a pretty useful compiler to practice visualizing the code and I thought maybe someone here might find it useful. This also helped me get better at debugging/walking through code. This one is only for java but there is also a python version.

    https://cscircles.cemc.uwaterloo.ca/java_visualize/

    They have some code examples at the bottom with step throughs/walkthroughs.

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

    Good books/resourses for learning file handling, SQL Database linking & Qt-GUI for C++?

    Posted: 10 Mar 2018 10:17 PM PST

    Hi!

    I have some programming knowledge and a bit of experience in basic C++. I want to learn proper file handling, using/manipulating an SQL database & adding a GUI via Qt.

    I am looking for books or tutorials which cover these topics comprehensively. Most of the stuff I found online were less than satisfactory. So I would like some recommendations before moving ahead. Also is it worth getting PluralSight for this? Do they have videos covering these topics?

    Thank you! :D

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

    [C] Segmentation fault, when trying to use a function that resides in a shared library

    Posted: 10 Mar 2018 10:06 PM PST

    SOLVED SEE BELOW

    I'm trying to call a function that resides inside a shared object ".so", my program compiles however when I try to run it, it crashes.

    Code inside voca.h

    void SaySomething(void); 

    Code inside voca.c

    #include <stdio.h> void SaySomething(void) { printf("Something!\n"); } 

    Code inside the Makefile file to create the libvoca.so file

    CC=gcc CFLAGS=-std=c11 -fPIC LDFLAGS=-shared -o TARGET_LIB=output/libvoca.so HEADERS=include/voca.h SOURCES=include/voca.c .PHONY: all all: ${TARGET_LIB} ${TARGET_LIB}: ${CC} ${CFLAGS} ${LDFLAGS} $@ ${HEADERS} ${SOURCES} 

    Code inside test.c from which I'm trying to call libvoca.so

    #include <stdio.h> void SaySomething(void); int main(void) { SaySomething(); return 0; } 

    Command used to compile from the command line in ubuntu 17.10

    $ gcc -Wall -L/home/RedditLord/Desktop/cp/JS2C/voca/output test.c -lvoca -o test 

    What am I doing wrong and How can I fix it?

    EDIT: I followed part of the tutorial where it says that you have to add a .conf file with the name of your shared library and inside of it the location where your .so resides to the /etc/ld.so.conf.d/ directory and then reload the ld.so.conf.d cache using sudo ldconfig http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

    Beside from the initial problem that's now solved, Is there anything that I'm doing wrong or that would be considered as a wrong practice? and If so how can I solve it?.

    Thanks.

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

    What exactly is a constructor, and what does it do?

    Posted: 10 Mar 2018 06:58 AM PST

    https://stackoverflow.com/questions/625083/python-init-and-self-what-do-they-do

    I have this resource here about init_(self) in python, and I am utterly clueless. One comment says:

    init is what is called as a constructor in other OOP languages such as C++/Java. The basic idea is that it is a special method which is automatically called when an object of that Class is created

    This makes zero sense to me. Special method, automatically called? Okay, but why? Why do we call it, or construct it?

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

    Hello guys! New here. I am super interested in programming a 2d game.

    Posted: 10 Mar 2018 11:10 PM PST

    I don't know where to start. I have some knowledge on how to program. I don't know how to get the tools or knowledge to even begin programming.

    How do I get the programs and tools to even begin programming? Any info on how to get started will be extremely helpful.

    submitted by /u/-Nostalgic-
    [link] [comments]

    How do I learn to apply programming to actually computer/mobile concepts?

    Posted: 10 Mar 2018 06:33 AM PST

    I am very comfortable with coding in many languages in general, as I'm a third year CS major with a great gpa. I understand concepts and algorithms and if you tell me to solve a programming assignment, I could do it. However I have not the slightest clue how to actually apply this to making real desktop applications. I have no idea how to append my programming knowledge to real life things. For example, in reddit everyday there's always someone that says they automated some process to extract data from website A and mixed it up and outputted it somewhere. I am able to actually process the data but I have no idea how I'm supposed to extract anything from any website. When I look at other people's git hub, I see huge program files with directories and readmes and etc all working together with instructions to install. All I can do however is have one single .java file with maybe a few classes in it that require you to feed in an input and gives out some output. Where do I go about getting better at this? What should I be practicing?

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

    A Noob Trying to Figure Out How To Program A Bot?

    Posted: 10 Mar 2018 10:36 PM PST

    Hello Reddit I hope your having a great day or night. I'm trying to install an Instagram bot for my company. But I'm having issues on the final leg of this thing. A friend suggested I turn to reddit for help so Im hoping you can help.

    Here is the video I followed. https://www.youtube.com/watch?v=ASO-cZO6uqo

    Here is the error I'm getting. https://imgur.com/a/JwH0H

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

    Are there any opportunities for inexperienced devs to work with non-profit groups?

    Posted: 10 Mar 2018 09:01 AM PST

    I'm really interested in getting 'practical' knowledge and working on projects that might help someone. Plus the opportunity to work with a team sounds awesome.

    Anyone know of any programs like this?

    Sorry if this is an inappropriate question for the sub. I checked the FAQs and posting guidelines and this seemed ok.

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

    Nginx fails when I try to increase client_max_body_size

    Posted: 10 Mar 2018 11:17 PM PST

    My site works fine but my log.django file is showing a django.template.base.VariableDoesNotExist error and I can't identify which variable is not valid.

    Here's the full traceback:

    Traceback (most recent call last): File "/home/zorgan/app/env/lib/python3.5/site-packages/django/template/base.py", line 903, in _resolve_lookup (bit, current)) # missing attribute django.template.base.VariableDoesNotExist: Failed lookup for key [lst] in "[{'None': None, 'True': True, 'False': False}, {'user_inbox': <QuerySet [<Inbox: Inbox object>]>, 'allauth_login': <LoginForm bound=False, valid=False, fields=(login;password;remember)>, 'request': <WSGIRequest: GET '/post/'>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fd0339c67f0>, 'user_settings': <UserSettings: UserSettings object>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fd033a1db70>,'user': <SimpleLazyObject: <User: zorgan>>, 'DEFAULT_MESSAGE_LEVELS': {'ERROR': 40, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'DEBUG': 10}, 'csrf_token': <SimpleLazyObject: 'bagt2zVjPiMiyi0ojTxTVbHHOBiIei7hqZQZ5sDITfzZ9khSbszkDCvcawQuHSxR'>, 'allauth_signup': <SignupForm bound=False, valid=False, fields=(username;email;password1;password2)>, 'inbox_status': 'read'}, {}, {'form_post': <PostForm bound=False, valid=False, fields=(title;content;entered_category;image;imageURL;user)>, 'via': 'news'}, {}, {'block': <Block Node: footer. Contents: [<TextNode: '\\n\\n'>, <IfNode>, <TextNode: '\\n\\n'>]>}]" 

    Any idea?

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

    Creating a boilerplate to learn

    Posted: 10 Mar 2018 10:43 PM PST

    So I'm currently teaching myself react by reading guides on the internet. I've learned how webpack works and what babel is. I'd like to know if creating a boilerplate is something that would actually help as I have no clue if I'm actually structuring the project correctly or even using react correctly.

    I have the boilerplate up on github but I'm no where near comfortable sharing it yet. Another question I have is if my github is in my CV, if someone takes a look at said boilerplate what would they figure of a guy teaching himself by making a boilerplate? Should I be creating complete apps instead?

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

    No module named pandas._libs.tslib

    Posted: 10 Mar 2018 10:31 PM PST

    Importing pandas I get this error saying

     File "C:\Users\edgar\AppData\Roaming\Python\Python36\site-packages\pandas\__init__.py", line 26, in <module> from pandas._libs import (hashtable as _hashtable, File "C:\Users\edgar\AppData\Roaming\Python\Python36\site-packages\pandas\_libs\__init__.py", line 4, in <module> from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime ModuleNotFoundError: No module named 'pandas._libs.tslib' 

    pip install pandas says its requirements are satisfied. I'm not sure what to do here?

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

    Python Program Guidance

    Posted: 10 Mar 2018 07:39 AM PST

    Hi,

    I had a quick question regarding a Python program I have been working on. It takes in thousands of lines of soccer match data, (the data includes projected winner, projected scores, actual scores, actual winners, etc.). I have my program going through and finding the accuracy of the projections and a few other basic outputs.

    My problem is taking my code to the next level - so far everything I have done I haven't really been challenged by for this and I want to use this to become more advanced in Python. Any ideas on where I can take this code?

    Thanks

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

    Should i take cs50 from edx or just buy bjarnes textbook on c++ if i want to learn c++?

    Posted: 10 Mar 2018 06:08 PM PST

    Everyone i ask is 50/50 on whether you should learn c first ao idk what to do

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

    K-means clustering or other data mining algorithm in python

    Posted: 10 Mar 2018 09:45 PM PST

    Does anyone know where I can find an already implemented data mining algorithms in python? Can't seem to find any

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

    How do i transfer json data from remote devices over the internet to a server

    Posted: 10 Mar 2018 09:28 PM PST

    Have couple of raspberry pi's deployed as remote ir signature trackers .I want to send the data over the internet to my server.What i can't seem to wrap my head around is how do i do this over the internet to a my front end gui. Everything will be done in python

    The pi's have been connected to cellular modems for internet access.

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

    How do I use keyboard shortcuts with Gtk StackSwitcher?

    Posted: 10 Mar 2018 09:25 PM PST

    What I want to do is make a shortcut keyboard key to switch between Page 1 and Page 2. For instance, pressing Ctrl+S would take me to Page 1 if I am not already there and likewise pressing Ctrl+R would take me to Page 2. I searched the documentation but I couldn't find anything related to what I need. Is there a way to implement it? Below is the code snippet I am working on:

    class App(Gtk.Application): def __init__(self, *args, **kwargs): super(App, self).__init__(*args, **kwargs) self.connect('activate', self.on_activate) self.send_stack = None self.receive_stack = None self.send_receive_stack = None self.header_button_handler_id = None self.pre_sign_widget = None def on_activate(self, app): ui_file_path = os.path.join( os.path.dirname(os.path.abspath(__file__)), "app.ui") appwindow = 'applicationwindow1' builder = Gtk.Builder() builder.add_objects_from_file(ui_file_path, [appwindow]) window = builder.get_object(appwindow) window.set_wmclass ("sign", "sign") window.set_title("sign") window.connect("delete-event", self.on_delete_window) self.headerbar = window.get_titlebar() self.header_button = builder.get_object("back_refresh_button") self.header_button.connect('clicked', self.on_header_button_clicked) sw = builder.get_object('stackswitcher1') # I want to be able to press Alt+S and Alt+R respectively # to switch the stack pages to Send and Receive. # sw.get_children() self.stack_switcher = sw self.send_receive_stack = builder.get_object("send_receive_stack") self.send_receive_stack.connect('notify::visible-child', self.on_sr_stack_switch) ## Load Send part self.send = SendApp() ss = self.send.stack p = ss.get_parent() if p: p.remove(ss) ss.connect('notify::visible-child', self.on_send_stack_switch) ss.connect('map', self.on_send_stack_mapped) klw = self.send.klw klw.connect("key-activated", self.on_key_activated) klw.connect("map", self.on_keylist_mapped) klw.props.margin_left = klw.props.margin_right = 15 self.send_stack = ss ## End of loading send part # Load Receive part self.receive = PswMappingReceiveApp(self.on_presign_mapped) rs = self.receive.stack rs.connect('notify::visible-child', self.on_receive_stack_switch) scanner = self.receive.scanner scanner.connect("map", self.on_scanner_mapped) self.receive_stack = rs self.send_receive_stack.add_titled(self.send_stack, "send_stack", _("Send")) self.send_receive_stack.add_titled(rs, "receive_stack", _("Receive")) accel_group = Gtk.AccelGroup() window.add_accel_group(accel_group) self.receive.accept_button.add_accelerator("clicked", accel_group, ord('o'), Gdk.ModifierType.MOD1_MASK, Gtk.AccelFlags.VISIBLE) self.receive.accept_button.set_can_default(True) window.show_all() self.add_window(window) 
    submitted by /u/ZER_0_NE
    [link] [comments]

    Is it worth it to continue with Ruby?

    Posted: 10 Mar 2018 09:15 PM PST

    I've been really enjoying learning Ruby, but is it a worthwhile investment of my time? I don't see many job postings for Ruby and it seems everyone is using Python in place of it anyway, should I just focus my effort on Python? Ruby just seems like such an elegant and well though out language, but is the time investment worth it in 2018?

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

    Looking for additional JS resources and advice

    Posted: 10 Mar 2018 09:10 PM PST

    Currently taking a course on Udemy "The Web Developers Boot Camp", while it is good and I have learned an insane amount of JS from it, it is now moving into the back-end of the course with node.js. The problem is, I am now realizing I still don't feel good with pure vanilla JS and the whole node.js is now really confusing me. What I am going to do is hold off on this part of the course right now and just work on my pure javascript skills.

    What other courses are out there to help me with this? Youtube, Udemy, etc. Or, doesn't have to be a video, if anyone has any links to other sources that would be helpful as well.

    I know the basics of JS. Can do the basics with it (arrays, objects, loops, click events, DOM manipulation), but I am certainly still a beginner.

    Also, would another good way to learn be to just start coding a mini project? Maybe some sort of simple application? The problem with this is that I still don't know where to start, and if I look up a tutorial video, I feel like I'll just be following what they are doing without actually learning the information myself. Anyone got any tips on this?

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

    (C) What is a sub-structure when referring to a self-referential structures?

    Posted: 10 Mar 2018 08:18 PM PST

    How would I create a substructure with variables?

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

    CSS: Use Custom Selection To Apply Highlight Style

    Posted: 10 Mar 2018 02:10 PM PST

    https://media.giphy.com/media/7zJnV2Tg5Sb2VaDAlQ/giphy.gif

    The ::selection CSS pseudo-element allows you to apply styles to your text when it's highlighted. It's a great way to add some pizzaz to your site 💃

    For Firefox, you will need to use ::-moz-selection 👍

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

    Help debugging Chromcast receiver app

    Posted: 10 Mar 2018 07:07 PM PST

    If anyone has any experience with chromecast development and/or Javascript, I could use your help! I've posted the details here -> https://www.reddit.com/r/Chromecast/comments/83iit0/help_debugging_chromecast_receiver_app/

    Thanks!

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

    No comments:

    Post a Comment