15,916,449 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ben J. Boyle (Top 50 by date)
Ben J. Boyle
1-Aug-17 12:21pm
View
Yep, I've used several email services in the past that required a POP get to authenticate before it would allow an SMTP send. Never really questioned it, just checked the box in the options to do it that way when required.
Ben J. Boyle
27-Jun-17 10:04am
View
Not something I can help with myself, but people are going to want to know a) what is the error, and b) where (on what line) does the error occur? A little bit more information can make responses a whole lot more helpful.
Ben J. Boyle
13-Jun-17 13:26pm
View
Any errors in the console?
Ben J. Boyle
12-Jul-16 15:29pm
View
What's not clear? The developer clearly chose to return a more flexible type than forcing a list or an array. As @cigwork says this would allow the internals of the function to change without having to alter any code that uses the results of the function.
Ben J. Boyle
12-Jul-16 15:25pm
View
Show some code so folks have a clue what you've tried.
Ben J. Boyle
5-Jul-16 13:47pm
View
What are you trying to accomplish? What is your code not doing that you want it to do? Why is that dragon purple?
Ben J. Boyle
29-Jun-16 13:14pm
View
Show us some code. What have you implemented? What's not working?
Ben J. Boyle
28-Jun-16 11:57am
View
You could write to the SQL server log, perhaps. See xp_logevent https://msdn.microsoft.com/en-us/library/ms186244.aspx
You could also send en email with the data in it. It really depends on how you need to see the information, and if it's something you want to be able to look at further down the line.
Ben J. Boyle
24-Jun-16 10:09am
View
Assuming the browser supports it and you have the required phone elements you can use the "tel" protocol on a link to initiate a call.
<a href="tel:18675309">>Call Jennifer</a>
Mobile browsers will initiate a call using the phone hardware, what desktops will do it debatable but Skype can intercept those and make a call and I'm sure other calling platforms can too.
Ben J. Boyle
24-Jun-16 10:03am
View
Also check your browser console, see if you're getting any errors.
Ben J. Boyle
23-Jun-16 9:15am
View
Something like this.
Create a table:
create table aq_pr_audit (
aq_pr_id int,
reset_timestamp datetime,
aa_exec_count int
)
Then alter your scheduled job to run this (you could also put it in a stored proc and execute that in the schedule):
BEGIN TRANSACTION RESETLOG
insert into aq_pr_audit (aq_pr_id, reset_timestamp, aa_exec_count)
select aq_pr_id, getdate(), aa_exec_count
from aq_pr_log
where aa_exec_count >6000
update aq_pr_log set aa_exec_count = 0 where aa_exec_count >6000;
COMMIT TRANSACTION RESETLOG
Ben J. Boyle
15-Jun-16 9:11am
View
You'll have to give us more to go on for us to be able to answer that question - which operating system are you using? Does your AV solution include a firewall?
Ben J. Boyle
15-Jun-16 9:00am
View
So change the firewall rules. If it's your own firewall, you should be able to do that, if a company firewall talk to your network people about adding an exception, even if it means having your supervisor authorize it.
Ben J. Boyle
14-Jun-16 10:18am
View
Windows 10 isn't a browser - are you having problems in Edge? IE 11? Chrome?
How about some screenshots of what it should look like and what it does look like?
Ben J. Boyle
27-Apr-16 16:36pm
View
Indeed they do: https://www.2checkout.com/documentation
Including .NET samples and libraries: https://github.com/2Checkout/2checkout-dotnet
Try to run through those docs, OP, and come back with more specific questions.
Ben J. Boyle
22-Apr-16 14:44pm
View
Glad you got to the bottom of it!
Ben J. Boyle
22-Apr-16 13:38pm
View
Which SQL server version are you using? I'm not 100% sure but I think the max size for VarBinary may have changed over the years, but my memory is telling me 2GB.
Ben J. Boyle
22-Apr-16 13:30pm
View
Bit wary of doing that with something that's more or less just informational - been jumped on for doing it in the past.
Ben J. Boyle
22-Apr-16 13:25pm
View
Couple of things. First, and it's not the problem that you're asking about, don't use string concatenation to build your query string - use parameters instead, consistently and not just for some columns.
As to your question, you'll need to check the max length of the columns in your database, and the size of the data your trying to save. One or more of the data items is bigger than the field you're trying to store it in, but without knowing the table structure or the data you're using we can't tell you which.
Ben J. Boyle
20-Apr-16 14:10pm
View
It's safe to say there's a "fault" in his reasoning...
Ben J. Boyle
20-Apr-16 10:09am
View
Here's a decent book on the subject of transaction log management - free PDF link is on the page.
http://www.sqlservercentral.com/articles/books/94938/
Ben J. Boyle
1-Apr-16 16:18pm
View
Huh! it came up at the top of the quick questions and I didn;t see the date - deleting now though.
Ben J. Boyle
8-Mar-16 10:10am
View
Both the value for "bal" and the value from the textbox are strings, so you may be falling fouls of the string comparison, where for example "10" is less than "2"
Ben J. Boyle
8-Mar-16 10:06am
View
Hi. it looks like you meant to comment on a specific article. The author of that article will likely not see this question, and if they do they won't know it relates to them. You can comment on an article by clicking the "Add a Comment or Question" button at the bottom of the page.
Ben J. Boyle
24-Feb-16 11:21am
View
Background Intelligent Transfer Service (BITS)
https://msdn.microsoft.com/en-us/library/aa362708(v=vs.85).aspx
Ben J. Boyle
21-Jan-16 9:50am
View
Sure, if you need something more immediate you can put together an event receiver that pushes the data to another database.
Ben J. Boyle
24-Aug-15 11:39am
View
Why not use gamecenter? it's designed for leaderboards and achievements and to allow players to see what their friends are doing.
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameCenterOverview/GameCenterOverview.html
Ben J. Boyle
19-Aug-15 10:43am
View
You can't execute javascript in a stored procedure, but take a look at this stored proc making an HTTP Request, might be enough to get you going: http://www.geekzilla.co.uk/View24CF9B2B-4099-4ED7-B360-89B14C11DAE8.htm
Ben J. Boyle
4-Aug-15 11:15am
View
"Can it be done through the designer *or by some other means?*"
I'll stop now either way. It's up to the OP if that fits his requirement or not.
Ben J. Boyle
4-Aug-15 10:26am
View
My example wasn't referring to metadata, or at least that wasn't my intent - i just used Tablename and ColumnName because I didn't know the data domain the requester was working in. I've just added a working example based on a table with defined columns, tested on a SQL server database.
Ben J. Boyle
3-Aug-15 18:49pm
View
That's the only way I can read the question. Without having a schema to work with I jut used generic names for table and column. What's your interpretation? English is an odd language sometimes and maybe I misinterpreted it.
Odd request either way though!
Ben J. Boyle
3-Aug-15 11:35am
View
You can also limit your query to just the permission you need to check and have a single row returned. Rather than the concatenated row that has all permissions, edit your query just to find "Does user x have edit permission?" when in an edit scenario, or "does user y have read permission?" - either would return the single row you need for the situation at hand.
In addition, you can also cache the data at the web server so that you're not constantly hitting the database.
Ben J. Boyle
30-Jul-15 11:45am
View
Which platform are you pushing to? I think both Google and Apple support some kind of grouping mechanism that would allow you to send a single message to the entire group (or all application users) rather than needing to send to each individual client.
I'm not familiar with PushSharp but it would likely support that scenario too.
Ben J. Boyle
29-Jul-15 9:07am
View
Do you actually have data in that week?
If you don't and you want the week to appear anyway, you may be better off using a table that contains the weeks and the relevant date ranges and joining that in the query. The grouping and sum structure would stay the same but there's be no need for the math on the dates to sort out the ends of the weeks.
Ben J. Boyle
28-Jul-15 14:19pm
View
+5 just for the hint LOL
Ben J. Boyle
28-Jul-15 12:59pm
View
Do you need to give your project any permissions? Perhaps INTERNET?
Ben J. Boyle
23-Jul-15 9:17am
View
There should be no reason why your code being written in notepad would stop it working.
I just copied the sample from the quick start, saved it to my machine (test.html) and opened the file. Chrome opens and displays, IE throws a warning about blocking scripts which only seems to be an issue if you open the file directly rather than using a web server - probably a security precaution to stop malicious scripts running on the local machine.
If you;re still having problems, I;d try using Chrome or setting up a web server and serving the files that way. If that still doesn't work then post your code, and checkl the console log in the browser for errors.
Ben J. Boyle
22-Jul-15 14:46pm
View
Might also be helpful here to know which OS you're targeting.
Ben J. Boyle
9-Jul-15 14:07pm
View
How do the two tables link? you table defs won't work for us because you don;t include the employees table.
Here's a quick and dirty query that shows the method I would use to handle the question based on one of your tables:
Select [USER_NAME],
sum(case when IS_SICK = 1 then 1 else 0 end) as is_sick,
sum(case when IS_FORMAL_MISSION = 1 then 1 else 0 end) as is_formal_mission,
sum(case when UNJUSTIFIED =1 then 1 else 0 end) as unjustified
from leavs_def
group by [USER_NAME]
Ben J. Boyle
9-Jul-15 10:56am
View
Code 39 supports uppercase letters (A through Z), numeric digits (0 through 9) and a special characters (-, ., $, /, +, %, and space). If your content contains anything other than those then that's likely your problem.
Make sure that txtCode only allows entry of the characters listed above.
Ben J. Boyle
9-Jul-15 10:51am
View
You might want to format that code some so we can see the structure more easily (Code project allows you to select text and mark it as code, which will format for you). Also any information about the error you're getting would be useful too else all you'll get is speculation.
Ben J. Boyle
9-Jul-15 10:38am
View
No tools exist that i know of, but here's a tutorial that walks you through the conversion for a number of the more common constructs: http://code.tutsplus.com/tutorials/from-jquery-to-javascript-a-reference--net-23703
Ben J. Boyle
9-Jul-15 10:30am
View
Don't know if this will help you but try taking out enableviewstatemac="false" from your code - a security update from MS has removed support and it might be causing you issues.
http://blogs.msdn.com/b/webdev/archive/2014/09/09/farewell-enableviewstatemac.aspx
Your machine key entry looks to be OK, and that's all we've needed to configure on our farm enabled projects.
Ben J. Boyle
18-Jun-15 14:31pm
View
Isn't this what replication was designed for? Why reinvent the wheel?
Ben J. Boyle
18-Jun-15 10:15am
View
You know as well as I do that the first question people are going to ask is "what error are you getting?"
Ben J. Boyle
18-Jun-15 9:34am
View
I'm guessing the first problem is that you should be replacing "PageID" with the ID of the page whose albums you're trying to access. So PageID + "/albums" instead of "PageID/albums"
Ben J. Boyle
17-Jun-15 14:20pm
View
I believe if you use a formula instead of a fixed value you can set the formula to CurrentDate. Been a while since I used CR though.
Ben J. Boyle
15-Jun-15 14:09pm
View
Perhaps BigRock's customer support would be of more help. Can;t see anything obvious n their help section and without a user account we can;t see what's available in the control panel.
Ben J. Boyle
15-Jun-15 14:01pm
View
If you include the XML from your layout we can see more clearly what's going on and give you some more direction.
Ben J. Boyle
10-Jun-15 14:50pm
View
See the huge number of articles here on CodeProject. Here's the run of content from the Android Tutorial Contest http://www.codeproject.com/KB/android/#Android+Tutorial+Contest
What you'll need to watch is that Android Studio has only relatively recently become the "Standard" as suggested by Google so a lot of the older content will be based on Eclipse. The concepts and code transfer between the two, but the IDE's are different so you'll need to do a little translation or be selective in the articles you use.
Google's own dev tutorials are pretty good to get you started too - https://developer.android.com/develop/index.html
Show More