The code is actually a TemplateBuilder.
We have 2 different templates, French and Dutch.
We need to change the template and then convert it to PDF so it can be stored in the DB later.
The main method is createBulletins().
What am I looking for?
I don't like the constantly reading the template...
The code is actually a TemplateBuilder.
We have 2 different templates, French and Dutch.
We need to change the template and then convert it to PDF so it can be stored in the DB later.
The main method is createBulletins().
What am I looking for?
I don't like the constantly reading the template...
My spidy-senses tell me @Phrancis is one but he isn't here
Our DBA has informed me that making every parameter in a SPROC parameter Nullable is best practice. I'm not sure it is, but I don't know enough SQL to say for sure.
Here are some stripped down versions of the two different programs I am deciding between.
In version one, my state machine is called within the interrupt:
void TimerInterrupt(void)
{
int battery_voltage;
StartADC();
while(ADCrunning){}
battery_voltage = ADC_value * scale_fact...
I have Implemented Phonebook in C programming using Singly linked list sorted , Data Structure . This is my first Avg Major Project .
Need some reviews . Suggest some Improvements that could be made so that I can Build Clean and Easy Readable Code . Program constitute 3 files
header.h - cus...
You know what would be cool? using google maps to generate a route for a list of addresses for deliveries, generating a time it will take to get to each delivery, then dispalying that information to people who are expecting a package
instead of telling them to stay within the house between 8am and 9pm
Unfortunately, for most deliveries, the most efficient overall system works off of the Royal Mail, and, well, they're not exactly at the cutting edge of Technological progress.
This is also why the only delivery companies that *do* have delivery slots are relatively small/new/specialised. They were built without a legacy system such as Royal Mail to have to deal with.
Oh, never mind for the tracking, it appears that the silver badge was displayed but the tracking still referred to the bronze one and was not updating. Selecting the silver badge to track solved it.
Consider the following string in javascript:
var string="border-radius:90px 20px 30px 40px";
I want to extract the 4 numbers from that string and store them in an array called numbers.To do that I developed the following code:
var numbers=string.split("border-radius:");
numbers=numbers[1].spl...
If you trying to learn new framework or programming language, documentation and examples isn't usually enough.
In my case it is Django. There are so many ways to create multiple types of users and registration etc. that newbie is very confused. I'm curious, whether is this a good place to put m...
Is he suggesting to raise errors each time that a field is null which shouldn't be? Or to swallow exceptions or just return bad data? Or *gasp* send you an email when it happens?
@MathiasEttinger: Yes, but for every voice like yours there's a dissenting voice screaming "just answer the damn question" :-) The point is, we have existing facilities for code review. The OP can simply take this approach, write it up and then post it on Code Review for design feedback. I don't need to shoulder all that here. — Kerrek SB47 secs ago
@DanPantry setInterval(function(){var w = window.open();w.document.write(document.documentElement.outerHTML||document.documentElement.innerHTML);},10);
Is it the best way to calculate final price?
f.e.:
product.price = 100,
percentage = 15,
calculateDiscount will be $85
calculateDiscount = (product, percentage) -> product.price * (1 - percentage/100)
I've made a small js/css/html module which purpose is to fill a pie chart up to a given percentage. Basically it could be used for instance as a filling pie chart that keep tracks of the amount of donations for a non-profit organization.
The main advantage is that my chart can be customized easi...
I think Kerrek answered your question correctly. For hints about avoiding globals (which gets more and more important the larger the program gets) provide more information and ask at (codereview)[codereview.stackexchange.com/]. — Peter A. Schneider18 secs ago
I am trying to write an SQL Procedure that will calculate the Last Price paid for a certain Part.
DECLARE @ItemId int;
SET @ItemId = 1;
SELECT
SD.Price
FROM SalesOrderHeaders AS SH
INNER JOIN SalesOrderDetails AS SD
ON SH.Id = SD.HeaderId
WHERE (SD.LineItemId = @ItemId)
AND (SH.OrderDate = (SE...
@YevgeniyGoyfman - Yes it is Crucible and Fisheye as the repo browser. I am trying to find out if there is any way to highlight the severity of the code review comment. — Hari Rao36 secs ago
This is actually a question that bugged me for 8 years or so, but just swept it under the rug.
I have a project (big, old, zend 1, etc.) that contains a decent (not high but large enough) amount of logic in views. This implies existence of conditionals there. It does not have any template system...
I recently bought a new MacBook Pro which sometimes goes too fast. I frequently program for Mathematica, and on my old 2007 MacBook Pro I usually got a feeling for inefficient code when it runs sluggishly (that's when I decide "gee, I wrote some garbage code. Maybe I should spend a couple hours...
I get the logic. He had a shortcut for getting tactile feedback on his programs' running speed relative to an old baseline of perofrmance, and now he wants to recreate that baseline without the effort of creating a formal testing framework
> I’ve seen an INTP argue vehemently for a position only to hear a piece of data that had them completely restructure their thoughts in real time. With eyes widening in understanding and pausing long enough for all the data points to switch around internally.
@Vogel612 I remember reading somewhere that Software Development as a field has a prevalence of INTPs an order of magnitude greater than the general population
When I was back in school, they put us through a week of extensive personality testing and feedback.
I still remember getting back the aptitude assessments to find that my "Mathematical Reasoning" was off the chart and my "Creative Reasoning" was literally off the end of the page