« first day (74 days earlier)      last day (3108 days later) » 

4:39 AM
0
Q: CSS attribute parser

KolinkI have implemented my own BBCode system (as part of my custom-built forum package), and one of the BBCode tags is [css=Valid CSS here]...[/css] => <div style="$1">...</div> It works, but I had to lay down some rules such as "don't use position:absolute" and this means rules have to be enforced. ...

 
 
3 hours later…
7:22 AM
0
Q: Custom MySQLi preparing practices

Dave ChenI have build a small function that selects information in this matter [] = array(): $mysqli->select( 'users', [ 'privilegeLevel', 'registerDate' ], [ 'username' => $username, 'password' => $password ] ); There are three parameters to select: ...

 
 
5 hours later…
12:11 PM
0
Q: Does this question belong to stackoverflow or programmers?

Aseem BansalI asked this question a few days ago and I started a bounty also but I am having confusion about this question. Is it better suited on programmers or stackoverflow?

 
 
3 hours later…
2:54 PM
0
Q: Converting in new interface

Wish_2_flyThis code is detecting object from the video and its working , but there are two things , this code is mixing 2 interface of opencv in c++ , and i am trying it to convert into new interface , but still am not getting it in new interface completely . void surf_detection(Mat img_1,Mat img_2); /** ...

0
Q: Is there a faster way to get ASP.Net Validation messages in a Page or UserControl?

EricA little background: I'm maintaining an ancient system written in ASP.Net Webforms. There are lots of validation groups for different user controls, and we want to display the error messages from them in modal dialogs at the page level. Rather then deal with the complexities of having a Valida...

 
3:33 PM
0
Q: Android sqlite approach opinion

SimonVeloperI'm posting this question in order to ask to the community an opinion about my approach in using sqlite databases in android. Everything seems to work very well, but since the moment I have not so many years of experience, maybe there is some side effect I can't see. I state that I don't like wo...

 
 
1 hour later…
4:55 PM
0
Q: Building a generic context menu using BackboneJS. I need help figuring out how to generically bind events

Sean AndersonI've taken a stab at making a context menu using BackboneJS. Here's the overall structure: Collections: /collection/contextMenuGroups /collection/contextMenuItems Models: /model/contextMenu /model/contextMenuGroup /model/contextMenuItem Views: /vi...

0
Q: Method has a high complexity - is this acceptable for readability or would it be better to refactor into smaller methods?

Ecnalyrdef save_with_payment if valid? charge = Stripe::Charge.create(:amount => (self.plan.price * 100).to_i, :currency => 'usd', :card => stripe_card_token, :description => "Charge for #{user.email}") self.stripe_charge_id = charge.id self.starts_at = D...

 
5:37 PM
1
Q: Checking if CLI arguments are valid files/directories in Python

Matthew RankinI frequently write Python scripts that require three command line arguments: config_file — A CSV configuration file input_dir — The directory containing the input files to be processed output_dir — The directory where the output files should be stored I found myself copying/pasting two functi...

 
6:17 PM
0
Q: When one property is calculated from another

wootscootinboogieI've got a class with a property TotalCost which is calculated by some simple math of two other properties, CostOfFood and NumberOfPeople. The code works the way I want it to, but I was wondering if this is a satisfactory method in the long run of application development, a bad idea to have one ...

0
Q: Handling nil: Trying to avoid #try in Ruby

nickcoxdotmeYesterday, I introduced a bug into our codebase by calling #titleize on a string that could possibly come in as nil: def route medication.route_name.titleize end This threw an error on production and a coworker fixed this by adding try: def route medication.route_name.try(:titleize) end ...

0
Q: Arduino More maintainable code

user2587674Straight to the point: Can you give me pointers on how to make this code more maintainable? In the future, I want to add more more things to this, but first it should be easy to maintain/read. Should making a library be considered? What it does: Takes input from the serial line and converts it ...

 
 
3 hours later…
9:00 PM
0
Q: Critique wanted on JS

maninjeansPlease forgive me if this is totaly the wrong place. I'm trying to re-learn some JS fundamentals and wondered if anyone knowledgabe could tell me if I'm doing something very wrong in my approach to this simple word counting class. The idea is to produce an output that will be printed to a file wi...

 
9:42 PM
0
Q: CSS code organizing

Alexey SidashI like to keep my code organized. Usually in several files. Is it good for css. For instance: I have three files. First - layout.html, this is the main template. Second - grid.css is style sheet where I decribe position of all elements. Third - style.css is where I describe appearence of eleme...

 

« first day (74 days earlier)      last day (3108 days later) »