• Breaking News

    Monday, May 24, 2021

    Programmers are stereotyped as being too awkward to talk to talk to their crush, yet most programmers are married anyway. Programmers of reddit, how did you meet your husband / wife? Ask Programming

    Programmers are stereotyped as being too awkward to talk to talk to their crush, yet most programmers are married anyway. Programmers of reddit, how did you meet your husband / wife? Ask Programming


    Programmers are stereotyped as being too awkward to talk to talk to their crush, yet most programmers are married anyway. Programmers of reddit, how did you meet your husband / wife?

    Posted: 24 May 2021 05:17 PM PDT

    Character string in emu8086

    Posted: 24 May 2021 03:11 PM PDT

    Hi everyone.i'm fairly new to the 8086 language. a program to have the presence of a character string for example Reddit2 in array of n = 90 which starts at the address 300h.does anyone know how to write it ?. Thanks

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

    How are y’all managing V2 objects

    Posted: 24 May 2021 12:49 PM PDT

    Had a live site incident last week where a commit to Master with 1000 lines of changed SQL code managed to reference an old table. (The v1 instead of a recent v2)

    Anyone have a good practice for making sure you use the newer table version/sproc/etc?

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

    Mingw + wxWidgets grief

    Posted: 24 May 2021 10:41 AM PDT

    Has anyone here used Fedora34 "mingw64-wxWidgets3-static.noarch", etc. to port a non-trivial program to Windows? I'm finding a distressingly large number of flaws which will require \many** ugly workarounds. Anyone else experience this kind of thing? (I'm trying to decide whether to 1) bull ahead, 2) recode with Qt, or 3) forget a Windows port entirely.)

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

    Wanting to create something that reads webpage data and applies a certain attendance code to sheets

    Posted: 24 May 2021 10:38 PM PDT

    Howdy, I'm an educator and with everything going on in the world, school is basically all online. I'm getting tired of having to go through my Canvas course (left side of the picture provided in comments) and then having to code a kid either PAS (present) or ABS (absent) in my sheets (right side of the picture).

    Is there any way I can create some type of script or program that reads the dates (I realize I would have to change the date format in my sheets) and if the are the same then it'll write in PAS, but if a date is missing it'll write in ABS?

    Thanks!

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

    How do I debug this code? It's a simple for loop, but I don't get the documentation

    Posted: 24 May 2021 10:20 PM PDT

    i3pystatus is a status bar for some Ubuntu distributions. I'm trying to use a module called file which takes text from files and shows it on the bar, but I don't understand the documentation. Its source code and main documentation is:

    from os.path import join from i3pystatus import IntervalModule class File(IntervalModule): """ Rip information from text files components is a dict of pairs of the form: :: name => (callable, file) * Where `name` is a valid identifier, which is used in the format string to access the value of that component. * `callable` is some callable to convert the contents of `file`. A common choice is float or int. * `file` names a file, relative to `base_path`. transforms is a optional dict of callables taking a single argument (a dictionary containing the values of all components). The return value is bound to the key. """ settings = ( "format", "components", "transforms", "base_path", "color", "interval", ) required = ("format", "components") base_path = "/" transforms = {} color = "#FFFFFF" def run(self): cdict = {} for key, (component, file) in self.components.items(): with open(join(self.base_path, file), "r") as f: cdict[key] = component(f.read().strip()) for key, transform in self.transforms.items(): cdict[key] = transform(cdict) self.output = { "full_text": self.format.format(**cdict), "color": self.color } 

    In theory, it takes in a dict of a function to convert the values and a file containing the values. This is how I'm calling it from my config file: (num.txt just has one number)

    dict2 = {int: "num.txt"} status.register("file", format="{dict2}", components=dict2, base_path="<my base path>", log_level=True) 

    But this returns the error "ValueError: too many values to unpack (expected 2)." I've tried watching self.componentsand componentsin PyCharm, but they say it's not defined until the def run(self), but after that PyCharm won't tell me its value.

    How can I debug this? I think it boils down to

    for key, (component, file) in self.components.items(): with open(join(self.base_path, file), "r") as f: cdict[key] = component(f.read().strip()) 

    But I don't get why component, file are in parentheses while key isn't. How do I call the module correctly? What's a better way to debug this?

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

    How to go about making a simple drag and drop website builder?

    Posted: 24 May 2021 05:15 PM PDT

    I am interested in developing a drag and drop website builder. Like webflow or square space, but not as advanced. Just want to be able to drag sections into a page and edit the contents of each section and generate the code for the page.

    Is there any way I can make one of these?

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

    Reverse Image Searching Using C

    Posted: 24 May 2021 10:49 AM PDT

    Okay, so I'm new here, and I've been stuck thinking and trying to figure out how to do this specific thing for around two days now.

    Is there any way to conduct a reverse image search using C programming? The project requires me to use C rather than C# or C++ and I'm just lost. So is there anyone who may be able to help

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

    How to decide what language/technology to use ?

    Posted: 24 May 2021 05:10 AM PDT

    Different languages offer each the possibility to obtain the same result. For example, building a REST API. I'm comfortable with Java spring boot but also with JavaScript and Express. I know that both allow me to obtain the same result, I have a slight preference for using Java but its very subjective.

    Is there a technical way to objectively compare technologies to know which one is actually better or suits my needs not just between java and JavaScript but anytime I need to make a choice?

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

    How to and save the met delimiters when using strtok()?

    Posted: 23 May 2021 11:59 PM PDT

    char str[50]="dfdsf{}.,dfdo,L!oo"; char* p=strtok(str,".,|~?!(){}<>"); 
    submitted by /u/JacksonSteel
    [link] [comments]

    Why isn't boundingBox appearing around detected objects?

    Posted: 24 May 2021 06:16 AM PDT

    I'm currently working on an object detection application (written in Java) on Android that uses Google ML Kit to detect objects within a live streamed camera preview. My issue today lies with WHY exactly the code needed to display a boundingBox around the detected object isn't appearing within my display.

    The following code displayed is what was instructed to be used to draw a Rectangle boundingBox around the detected objects by the aforementioned hyperlinked article to Google ML documentation.

    .addOnSuccessListener(detectedObjects -> { Log.d("TAG", "onSuccess" + detectedObjects.size()); for (DetectedObject detectedObject : detectedObjects) { Rect boundingBox = detectedObject.getBoundingBox(); Integer trackingId = detectedObject.getTrackingId(); for (DetectedObject.Label label : detectedObject.getLabels()) { String text = label.getText(); int index = label.getIndex(); float confidence = label.getConfidence(); } } }) 

    Any additional information needed to supplement this question will be provided upon request. Thank you

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

    How/where to start creating an App?

    Posted: 24 May 2021 06:26 AM PDT

    What is the best way to start creating an App? We have to build a simple App for a univesity course (e-entrepreneurship) but we do not know where to start and what resources to use. I am quite new to the topic and I just started taking some computer science courses. ( I am a business major) I would really appreciate some help if you know some helpful resources, tips, websites etc.

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

    Why did Google need to copy Java declaring code but Microsoft and Apple didn't?

    Posted: 24 May 2021 04:39 AM PDT

    I am completely ignorant about anything related to programming so please (a) pardon me for using any term incorrectly, (b) explain this to me like I'm 5. I am a law student interested in understanding the recent Google v Oracle decision by SCOTUS. in the dissenting opinion, the court stated that MS and Apple wrote their own declaring code for their API while Google copied the declaring code so that existing Java programmers could easily transfer their skills in developing apps for Google.

    As far I understand, Google does not need someone to be Java fluent (if that's what its called?) for them to develop apps for Android. So why was it necessary for them to copy the declaring code?

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

    How to programmatically access the underlying parts of an Excel file?

    Posted: 24 May 2021 01:57 AM PDT

    As you may or may not know the Open Office XML File Format versions of MS Excel files (i.e. xlsx and xlsm) are "zipped" up collections of XML files. The link below is a blogpost that explains how you can manually access and interact with the underlying XML.

    XML & ZIP: Explore Your Excel Workbooks File Structure (professor-excel.com)

    How could I go about doing some of the steps programmatically? I ultimately want to be able to iterate through a bunch of folders and file, make some amends to the XML, and rezip back to an Excel file.

    I am intermediate in programming in either Python of VBA, so not asking after the pure coding of e.g. the looping etc, but I suppose the more meta question of how to get my code to interact with these components.

    Thanks in advance

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

    (JavaScript) Trying to send XMLHttpRequest to a Node program; confused by both what's being added to address and CORS error

    Posted: 23 May 2021 08:12 PM PDT

    I'm trying to make a tool for myself (this does not need to work online or for anyone else) and I need to be able to send data between a Node program that'll be running in the background and an HTML page. I made the Node program respond to a port and send back the rest of the URL as a successful test (i.e. I can enter "127.0.0.1:8080/asdf" in my browser and see the text "/asdf" returned). When I try to make an XMLHttpRequest to "127.0.0.1:8080" from the page I'm building, though, the request returns a status of "0", and my browser says there's an error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///{the location of the HTML file}/127.0.0.1:8080/asdf. (Reason: CORS request not http)."

    A) Why is "file:///{the location of the HTML file}/" being placed in front of where I'm trying to send the request?

    B) How do I get around the CORS error and actually have this communication work?

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

    No comments:

    Post a Comment