how do databases maintain connections so reliably? Ask Programming |
- how do databases maintain connections so reliably?
- Conflicted about finishing my BS in Software Development
- Is there any lib that I can I use to score audio input against lyrics or a song that has been sung?
- How do you not lose motivation for big personal projects?
- How do I web scrape a web page that has a generic url?
- Best way to create grid on frontend?
- Feasibility of ripping PDF (or other filetypes) to Excel in a special way
- Advice sought on how to sort a long text file, in a particular way, on Linux, in dash, bash, C or perhaps python
- Does anyone have any recommendations for metric tracking software?
- Best approach for an (int, char) co-ordinate system for a chess board? [Java]
- Difference + pros and cons of c style arrays vs stl arrays. C++
- When to use UNION in MYSQL?
- Simulating a cluster of web servers on localhost
- Feeling under-prepared for post graduation
- C++ How do I access private members of a one class that has a private member function of the different class ?
- Is the git monopoly a bad thing?
- How should you plan/implement OTA strategies?
- Why aren't the URL query strings I'm generating working?
- Creating an Outline Using XML or HTML
- Access Control Lists for Recordsets
- How to clean up or simplify the terminal?
- Is it possible to rename several .txt files based on a specific line?
how do databases maintain connections so reliably? Posted: 18 Dec 2018 05:09 PM PST i can leave a connection open for more than 24 hours, an individual query can run for up to an hour, scanning terabytes of data, and transferring dozens of gigabytes. while failures during these operations are very rare. it seems a lot more robust than all but the most advanced web sites. [link] [comments] |
Conflicted about finishing my BS in Software Development Posted: 18 Dec 2018 08:37 PM PST Hey everyone! I have currently been working toward my BS in Software Development online. All the classes are online. I wanted to see if people had any thoughts on my dilemma. I currently work full time as a PHP/JS developer and make around 65-70K a year salaried. I'm also poised for a promotion (again) within the next year. I have over 5 years of professional experience, and yet I am young - under 25. My university classes cost ~$890 a month. While fairly easy to afford, i also find myself wishing I could save more - especially since I am planning on getting married in the next year. Should I suck it up and get the degree, or will it not benefit me any at this point since I already have my foot in the door? I have 3 more years of classes. [link] [comments] |
Is there any lib that I can I use to score audio input against lyrics or a song that has been sung? Posted: 18 Dec 2018 07:50 PM PST If I wanted to do this for a karaoke program, where it gives a score on how well you have sung the song, what lib can I use to score the input against some data? [link] [comments] |
How do you not lose motivation for big personal projects? Posted: 18 Dec 2018 07:43 PM PST I am working on a social media project and I'm about 6% done. I'm having to google almost everything for every little feature it's becoming pretty tedious. I'm kind of losing motivation now. Any advice? [link] [comments] |
How do I web scrape a web page that has a generic url? Posted: 18 Dec 2018 05:47 AM PST I am learning to web scrape and I need to get info from a particular page, but when I save the page and check it again it is a blank page. The page itself is a list of searches and unlike Amazon where I can see the keywords, I search I can't here. Here's the page. Any ideas as to how I get around this? [link] [comments] |
Best way to create grid on frontend? Posted: 18 Dec 2018 06:33 PM PST I basically want a grid of 10x10 buttons on a page for a game. I do not want these squares to resize based on the screen size that is viewing the webpage. Is there any javascript plugins with some functionality like this? I am using bootstrap right now to do this but it rearranges the buttons based on how big the screen is.. [link] [comments] |
Feasibility of ripping PDF (or other filetypes) to Excel in a special way Posted: 18 Dec 2018 05:37 PM PST Hi there. This might be too big or vague a question, but any help thinking about how to get started would be appreciated. I have intermediate Python experience. Basically, what I would like to do is draw my own cells over text in a PDF or other file, and rip that directly into a spreadsheet formatted the same way. How could I accomplish this? I imagine it would have to use OCR cell-by-cell as opposed to ripping the text. Would a web app be the way to go? Having options for keeping the same cell layout for all PDF pages or switching for individual page count would be useful. All thoughts are welcome. Thank you. [link] [comments] |
Posted: 18 Dec 2018 05:26 PM PST Dear all I have a long (> 7,000 lines) text file that has the following format. For example: What I want to do, is to sort the entries - the paragraphs (the blocks seperated by blank lines) - alphabetically, by their first line. So, in the example above, the block starting 'Hotblack Desiato' should precede the block starting 'Tricksy Estate Agents'. I have a little programming ability (mainly in Bash and Javascript) but this task is beyond me (and I need to get it right, for the file in question is important). I've got shell (bash, dash) on my machine, I can compile C on my machine, and I've got Python too though I'm not used to running stuff in Python. Can anyone help? I imagine this sort of task comes up from time to time. Note finally that I can't easily port the text file into a database application (I don't think so, anyway), partly because the number of fields in each entry varies and those fields are in no order (e.g. phone number does not always preceed address and sometimes there is no phone number). The file has some garbage characters in it too (though I'm trying to take them out). [link] [comments] |
Does anyone have any recommendations for metric tracking software? Posted: 18 Dec 2018 04:59 PM PST Does anyone have any recommendations for a self-hosted metric tracking system? I'm thinking the likes of Coveralls.io, CodeClimate, Codacy, etc. I currently use Zabbix and Nagios Core for network and datacenter monitoring, but neither of those have a web API for submitting data (at least not that I've been able to find). I've also looked at Prometheus/Grafana, but those (a) look to be overkill, (b) seem to be focused on hardware metrics, and (c) are not passive. If there's nothing out there I'll look into writing my own solution with Python+Flask and making it open source, of course. Problem is, I don't really have much time to do that... Must-Haves:
Nice-to-Haves
Don't need/want
Why these requirements?Well, a variety of reasons. Management is cheap and paranoid. I like setting up self-hosted solutions (it's fun). We need to start tracking things like coverage, complexity, LoC, and other metrics because management likes numbers and pretty graphs. We'll be adding in non-code metrics like equipment monitors, program utilization, and error counts, so something specific to software isn't really suitable (also why we need the web API for submitting data). [link] [comments] |
Best approach for an (int, char) co-ordinate system for a chess board? [Java] Posted: 18 Dec 2018 12:17 PM PST Hey all, I'm currently working on writing a 'chessboard' class, in Java. One of the first problems encountered is the initialisation of the board. I have a chessPiece class so all of that is abstracted away, I'm just dealing with setting up the squares. So far I've got a 2-D array for each chess square, and the object type is 'Square', which I was gonna have as a private class, which holds an integer row, and char column. This isn't my decision, it's based on the allocated spec for the problem, so I can't just revert to using (int,int) co-ordinate system. My question is, whats the best approach to initialise a chessboard, for 64 squares, where the rows are integers and the columns chars (between 'A' - 'H'). This isn't a particularly hard problem, the issue I'm having is doing this in a sophisticated manner. I need the solution to be... elegant. Sorry for the randomness. If anyone's dealt with this problem before, I'd love some guidance. [link] [comments] |
Difference + pros and cons of c style arrays vs stl arrays. C++ Posted: 18 Dec 2018 11:18 AM PST Can't think of anything other than stl arrays having member functions such as .at() [link] [comments] |
Posted: 18 Dec 2018 01:48 PM PST Hi, I'm still learning MYSQL and the guide i follow breezes over union is there any special use for it. Are there any good examples i could look at where it would be useful. [link] [comments] |
Simulating a cluster of web servers on localhost Posted: 18 Dec 2018 01:32 PM PST I am trying to simulate a cluster of web/raft servers to test their fault tolerance. I have Go code written to start a server, but I need to be able to start multiple servers, and procedurally take individual servers down. I currently have it written using goroutines in a for loop to start multiple servers at once. But those familiar with Go might know that this isn't exactly the best way to implement this, as I can't kill goroutines from the outside, and if do rig a way to shut them down from the inside, their subroutines (the part that I also really need to kill) doesn't come down. If I just start a single server from the command line, and open multiple servers in multiple terminals, killing them with a quick Ctrl+C does exactly what I am looking for and kills the entirety of the process, simulating the failure of the server. Is there any programmatic way I can stop and start multiple servers, preferably in Go? I have been working at this for weeks now to no avail, any advice would be appreciated, thanks! [link] [comments] |
Feeling under-prepared for post graduation Posted: 18 Dec 2018 09:40 AM PST So a little bit of backstory: I was really into computers in highschool. I took some basic programming and cad classes and built a couple computers. I was kind of known as the computer guy and I helped out a lot of my parents friends with computers. However, my parents weren't super tech friendly so they didn't have WiFi in the house at all (which is partially my fault), which made it really difficult for a new programmer to figure out wtf all of the errors in his code meant. Up until this point I had been planning on going into compsci, but I shifted my focus to something that was a bit easier to figure out and decided that I wanted to go into music. My parents supported me for the most part, and I ended up going to university for composition. However, after about a year I decided that it wasn't for me, and after two years I transferred to the university's science school and changed my degree to a B.S. in compsci. It's going to be difficult, but I plan to still graduate on time with just a few summer classes. This semester was my first as compsci and I loved it. Everyone's been super supportive and have been telling me how well I'm doing considering the really heavy workload that I've taken on (next semester I'm basically taking double the full-time credit number). However, I feel super under-prepared for professional life and don't know if I'm going to know enough to get a job when I graduate. I'm doing everything I'm supposed to, I just don't feel like I know enough, and I feel like I'm shooting in the dark a lot of the time. TLDR: I switched into compsci my junior year and feel like I'm way behind where I need to be for work post graduation. Do you guys have any words of advice for building up technical skills or personal projects I should work on to gain experience? Right now my main area of frustration is working with peripherals and networking, if that helps at all. [link] [comments] |
Posted: 18 Dec 2018 12:19 PM PST Sorry if my question doesn't make much sense. Ill try to explain it better here. Let's say I have a class called Location with two member variables for x and y locations. Then a different class called Ship with a private member variable of Location loc. How would I set the value of the instance of a Ship to the imputed value of the Location by the user? I am not allowed to use protected member in my code to give access to it. I feel as if the solution involves using "this" operator and pointers but, I am unsure on the syntax and the logic of it. Any direction would be helpful I can't find any examples in my book or online with my same situation. I can show you the code I am working on as well if you need it. [link] [comments] |
Is the git monopoly a bad thing? Posted: 17 Dec 2018 11:34 PM PST Git has basically become the standard DVCS in and outside of the industry with almost 90% market share according to some graph from 2016. With this market share it makes every other DVCSs almost irrelevant, even though some of them are arguably better than git in one way or another. While the open source community generally values variety, this doesn't seem to be case with git, as everyone just gets in line and uses git because it's the most popular solution. Can't this monopoly of git eventually be harmful to the foss ecosystem? [link] [comments] |
How should you plan/implement OTA strategies? Posted: 18 Dec 2018 10:16 AM PST Through a side project at work I have 5 Raspberry Pis deployed running a compiled program incorporated in test setups. To handle SW updates I wrote a python program that looks on boot for updated binary on a USB stick, if present it is present the python script setups up the new program and ejects the USB stick. This method has been manageable to track down 5 setups and update but we are looking to scale up to 25-30 setups. In my case the boxes may have WiFi always or will only see active WiFi access point when I need to push an update. I've done a bit of googling and most things I can find on OTA is in regards to Android or iPhone's method of updating or for remote reprogramming of Arduino. What I am looking for is good design methods or strategies to incorporate a program to check, retrieve and perform self updates. I am not looking for a service to manage deployed devices. Thanks for your input! [link] [comments] |
Why aren't the URL query strings I'm generating working? Posted: 18 Dec 2018 09:58 AM PST I'm scraping data from a high school scouting website using their search page to navigate. If I were to manually search for schools that have a football team in California, a query string of the form ?state=CA&sport=football is appended to the URL of the default search page. The problem is that not all sports seem to work when I enter it programmatically. It seems that only the sports under "Popular Sports" work. Even if I were to copy and paste into a new tab the URL generated from a search for badminton teams, the old tab will show a search results page, but the new tab will have a 503 error page. It seems like it could be a sessionID problem, but I haven't been able to find anything in Chrome dev tools when visiting the page. [link] [comments] |
Creating an Outline Using XML or HTML Posted: 18 Dec 2018 08:40 AM PST I'm working with some Word documents that were written a long time ago. They were written in non-standard outline format and are near impossible to edit. I wanted to put the content on our wiki but I find that creating a complex outline in Atlassian to be very difficult. I'd like to put the documents in a universal open format. I think that the answer would be HTML or XML. HTML would be fairly easy, though it might get complex with many levels in an outline. XML might work too. I could define my own XSD and XSLT for presentation. In the interest of not reinventing the wheel, I'm looking for existing examples of using XML to create an outline document similar to the type of outline that many of us were taught to create in preparation for writing an academic report in school. I haven't found an example yet. Does anyone know of one? [link] [comments] |
Access Control Lists for Recordsets Posted: 18 Dec 2018 08:38 AM PST Using PHP/Mysql - I have Role-based access control implemented and working well for features of my application. Roles can access certain pages and perform certain actions, others can't. No problem there. I'm having issues with the architecture surrounding user-created data that should be restricted by user and role. Here's an example. A group account might have "
(that's simplified but you get the idea) I'm currently adding this logic to all my different API endpoint queries and I know if I add roles its going to be really unscalable to continue updating all of my endpoints. My working idea is to create a method to return the customer access list and just call that in each API endpoint and check that the requested customerId is in that list. The downside there is that it bumps nearly all my endpoints from one query on the database up to two. Any feedback / code samples appreciated. Thanks. [link] [comments] |
How to clean up or simplify the terminal? Posted: 18 Dec 2018 08:24 AM PST I'm a noob to coding. Basically whenever I run code, the terminal prints out a whole bunch of extra stuff like the commands, file name, etc. If I type 'print("Hello")', I only want to see 'Hello' instead of all that extra stuff. How can I do that? [link] [comments] |
Is it possible to rename several .txt files based on a specific line? Posted: 18 Dec 2018 06:42 AM PST I have a bunch of text files in the same folder, and when opening them in Notepad++, each file has relevant content in line 48. Is there a script or anything I can run to rename every file after the content of line 48? Thank you. [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment