Opening SO in another tab to ask that question, but keeping this window open. In the mean time, anyone want to take a crack at this question? stackoverflow.com/questions/35835894/…
@Hosch250 I tried but there's not a way that I could find to do perma-delete, seems like VBA has to first mark it as deleted (i.e. "move to deleted items") and then empty the deleted items from the server
How exactly is requesting a resource for code review "not about programming"? — James B. Byrne47 secs ago
This question as currently presented would be off-topic on Code Review, as the code to be reviewed must be included in the question (rather than a screenshot/image of it. Besides that, if the code works as intended and the author is looking for improvements, Code Review would be appropriate. — Phrancisjust now
You should probably post this on Code Review instead. This code "works" but you want a more efficient solution. — rayryeng7 secs ago
@JamesB.Byrne He's asking for a directory service to find people. The programming is incidental. However, if there is specific, working code that OP wants reviewed and can post publicly, then Code Review may be helpful. If the code is not working, it could be part of another question here at SO. — Dan Lyons37 secs ago
I am working on a MSSQL Database (for a program called Sage 200). There are many tables in the database, however, I want to be notified of changes (new record inserted or existing record updated) via Trigger on a specific table.
I also want to support multiple rows on this table being updated at...
I have recently written if a 3D point is within a specified trapezoid. It does it by checking 3 different planes of the trapezoid. I place the relevant 2 coordinates from the 3D point into the current plane being checked, this will form four triangles within the plane, if this area is greater tha...
yeah, except their "view" API is one of the shittiest db access API I've ever seen. but my code uses it and writes like Entity Framework nonetheless :)
that said I haven't seen a ton of db access API's.. but between Sage's "Views" and, say, DAO, ADODB, ADO.NET, Linq-to-SQL, Entity Framework, and NHibernate, I pick any but the former.
Goal: I am trying to build teams of 5 people. Each person has an integer elo (rank). My goal is to make all the teams as equal/fair as possible, by having the average elo of each team be as close as possible to one another.
Approach: My initial thought was to go through the list of elos and take...
I need to validate database connections in a separate function.
Why is SonarQube plugin for Jenkins complaining about the open statement if I close it in the finally block?
final String PING = "SELECT 1 from dual";
public boolean validateConnection(Connection conn, boolean isKeepAlive) {
Prepa...
I'm quite new to Python and I have been trying to find a way to search a csv for a test string and return the index of that item in the csv.
I am using the code below but find it hard to believe that there is not a function built in to the csv module to do this.
I want to perform the 'lookup' s...
So, you have found your way to the Code Review main chat room, The 2nd Monitor, perhaps for one of these reasons:
You were invited or "pinged" by a site moderator or other user to discuss a post on the main Code Review site;
You visited Code Review for the 1st or Nth time, and noticed the chat ...
Thank you. I actually had a question about that post. Someone posted a much more idiomatic and cleaned up version of my code in an answer, is it acceptable to use that code in the original post? (because the focus is performance)
This question would probably have been better if asked on Meta Stack Overflow, as you're really asking if SO is the appropriate place for code reviews or not. As such your question isn't about why your code doesn't work, which is the basic reason for SO, but instead is where to go when your code works but you want to improve it. — the Tin Man52 secs ago
@Malachi I'm still a little confused, though; it seems to me that no matter what function is opening the XML, any method can retrieve the data? Sorry, I know I'm getting my words mixed up. I'm trying my best to explain, but I'm confused. :D
@Malachi No, but I can upload it to my Drive and share it with you. :D
@Malachi OK I think I can ask my question in fewer words; any function I write can access the XML DB if it has the variable "xml" in its arguments and employ the $(xml).find('Character').each(function () { function?
you should create a variable for your characters though
then you don't have to keep writing out $(xml).find('Character').each(function () {
you can create Character objects with the first function and wrap them into an array or whatever.
@Shortstuff81000, we need to get you going on Github or BitBucket so we can work on stuff together, then you can share with these guys more easily as well. that way we can clone the whole thing (if you want to have your project open source) and run it on our machines
I did create a Character object. I could create an array of characters with XML data in it, and still limit the number of characters to 5. (player + 4 "guests"). It's going to be based on Clue a little bit. :D I shared my project with you @Malachi
Wrote a small bash-script today that downloads the latest swedish wordpress archive , extracts it and writes wp-config.php
Would appreciate any feedback that could improve it / prettify it.
The script assumes that the database name & the username is always the same.
#!/bin/bash
#Download word...
I have need for a task scheduler determined by a directed graph. The tasks are held in a std::vector<task_type>, while the dependency graph is held in a adjacency_list<vecS, vecS, bidirectionalS> (bidirectionalS so that I have access to the in_degree() function). A single dispatch will start the ...
Working on a little Sprite Kit game, I had the problem that I wanted a couple of things to wait until a group of sprite nodes had stopped their animation.
I decided to use a GCD dispatch group to monitor the sprites' actions. The nodes that I was concerned about were all instances of the same c...
I've just finished writing a simple python 3 program which converts a custom input file to XML.
It works as it is, but I think that I somehow messed up the code as I had to open several files, append to them, close them, loop through files and so on.
I thought of splitting my code into methods,...
We have reviewed DDL SQL code before, which includes DB structure. But reviewing an ERD diagram, yes that is off-topic, unless it comes with the DDL code as well
Goal
I have a large string (~10MB in ~400k lines). I want to "efficiently" split it on a delimiter and map the resulting sets of lines. Efficiently is defined as something that is fast (wall time), even when RAM may be limited.
The delimiter is always a fixed string comprising a full line of th...
I have been using a static class to connect and retrieve information from a MySQL database and also reading about how static works in php. I'm still not sure if the code is bad or not and why (besides the usual static are dangerous). Also, code improvements suggestions will be appreciated.
class...
I'm only just starting to delve into the wondrous world of functional programming and Promises; to start with I've converted a bunch of procedural code in (what I believe to be) is a more readable approach using functional programming paradigms and Promises.
The module is a simple wrapper of the...
I'm not a big fan of appending the SQL procedure/function name and parameters through a function though... that potentially exposes every stored script in the database
Surely there's a better way of doing that... I hope...
I have created a simple application that has grown a little bit. Though most likely it won't grow anymore, I have looked back and I realized that it has become a little monster in terms of how many almost identical properties and methods I have created. Please let me know how this could be made m...
I am working on a LargeInteger class to store Integers beyond the size of long long as a dynamic character array. I have overloaded most of the relevant operators to be used with the large integers. I would appreciate comments on my implementation.
I would like to find a way to further streamlin...
I posted a question about this code yesterday and have made several updates. I'd just like to know if there are any other major errors or spots for improvement. I have three MySQL tables:
students
student_id | student_name | hometown
classes
class_id | class_name | description
student_x_cla...
I've been trying to do this CF problem for about 20 hours: http://www.codeforces.com/contest/631/problem/E
The editorial (solution explanation) for this problem is here: http://codeforces.com/blog/entry/43551
I don't have enough rep here to post more than 2 links, but inside the editorial you c...
Emacs's first moderator election has come to a close, the votes have been tallied, and the 3 new moderators are:
They'll be replacing the existing crew shortly — please thank them for volunteering, and share your assistance and advice with them as they learn the ropes!
Please join me in tha...
You might remember my post last week which confused and troubled a lot of you. I wasn't clear enough then, so I hope you'll let me try again:
We love Emacs and we love empowering people to build Q&A sites.
This community is all about getting answers to long tail Emacs questions. If you have an ...