15,890,438 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 TheSniper105 (Top 128 by date)
TheSniper105
2-Jul-20 1:15am
View
thank you all i deleted the question
TheSniper105
1-Jul-20 7:52am
View
sorry but where is the correct place to find such answers
TheSniper105
10-Mar-19 8:01am
View
startDate <= c.Update_Date && endDate >= c.Update_Date
will fall if the search peroid is from 26/01/2017 to 25/02/2017 will return nothing as the first modification is 08/03/2017
i expect it to return the oldSalary before modification in 08/03/2017 wich is 2200
TheSniper105
30-Jul-18 1:15am
View
1) Count Bill Details by Product Id; take the top 2.
how ?
TheSniper105
24-Jan-18 23:23pm
View
i think it is from last vs update before it works fine i hope they fix it
TheSniper105
24-Jan-18 1:20am
View
how to can detect it in task manager i know where to find i need the way to detect it
TheSniper105
23-Jan-18 5:16am
View
how to detect that ?
TheSniper105
28-Sep-17 0:22am
View
it is executed in 00:00:31 faster than the query in question and i found another solution i accept your answer because it gives me a key to make query faster (join instead of sub query) i found solution that executes in 00:00:00 :D
TheSniper105
26-Sep-17 0:38am
View
not same query as i want
TheSniper105
25-Sep-17 7:43am
View
it takes much time when enable that option
TheSniper105
25-Sep-17 7:06am
View
i did
TheSniper105
21-Sep-17 0:30am
View
but you did not answer the question i already visit the above links before
TheSniper105
21-Sep-17 0:25am
View
thank you but this is so old
TheSniper105
20-Sep-17 0:31am
View
make sure that action you try to navigate have not that attribute [RequireHttps]
TheSniper105
19-Sep-17 3:31am
View
never mind dear you are welcome
TheSniper105
19-Sep-17 0:56am
View
this error can be also happens if you have a wrong entities configuration or mapping! I think something mess between your relationships. is the database at this point exists or it is should be created at this query?
TheSniper105
18-Sep-17 4:23am
View
could you give us of the data you have and what you want to do ?
TheSniper105
18-Sep-17 1:36am
View
what is the problem ?
TheSniper105
18-Sep-17 1:31am
View
did you check your connection string in config file ?
in server explorer does that connection point to the right database ?
TheSniper105
6-Sep-17 1:42am
View
thank you very much worked for me i go for first solution as i use different provider
but only one note replace EntityFunctions with DbFunctions as the first is obsolete now
TheSniper105
26-Oct-16 5:04am
View
yes but same error
TheSniper105
25-Oct-16 12:30pm
View
not working
TheSniper105
26-Jun-15 11:02am
View
ok how to get the active tab using pure js
TheSniper105
21-Jun-15 6:15am
View
how to browse the online code on azure ???
TheSniper105
17-Apr-15 13:42pm
View
how to access newValue of each textBox ??
TheSniper105
3-Apr-15 14:05pm
View
what is (FileName) and what is the use of
System.IO.StreamReader file =
new System.IO.StreamReader("c:\\test.txt");
why you use ReadLines???
TheSniper105
3-Apr-15 13:27pm
View
always read the first line how to move to next line
TheSniper105
3-Apr-15 13:01pm
View
this will read the entire file every 120000
but i need only to read one line at 120000 milliseconds
then read next line after 120000 milliseconds
how to make that??
TheSniper105
2-Apr-15 12:31pm
View
can you please write code explain this part
you're probably better off just having default constructor setting default values to the employee fields.
in answer so i can mark it accepted
TheSniper105
10-Mar-15 1:23am
View
yeas thank you i found that the only solution is making ajax call is synchronous
TheSniper105
6-Mar-15 16:39pm
View
yeas that is the problem Ajax request is asynchronous can you post solution so any one can benefit from solution
TheSniper105
6-Mar-15 15:57pm
View
number of employee in that department is stored in total variable (did short for department id )
TheSniper105
6-Mar-15 4:14am
View
see update code the problem now is return total
TheSniper105
5-Mar-15 19:17pm
View
this is not what i want
i want yo get the employees count in depratment i pass to function
ex if i pass 2 to the function empPerDept then that function will return total count of employees in department 2
like select Count(*) from emp where dept=2 can u help
TheSniper105
6-Feb-15 23:13pm
View
simple and clean thank you
TheSniper105
3-Feb-15 20:43pm
View
the code work after i had to write another JSON.stringify(jsonStr) beside your code
TheSniper105
20-Dec-14 0:21am
View
convert rows to columns
TheSniper105
20-Dec-14 0:21am
View
@PIEBALDconsult it works only with aggregate functions (when working with numbers) here i work with strings only
TheSniper105
9-Dec-14 16:23pm
View
3000
TheSniper105
12-Nov-14 21:07pm
View
(i first searched google but found nothing)
not what i want i want delete file content not the file itself
TheSniper105
9-Nov-14 23:56pm
View
i prefer hard way as i' not actually run sql statments
TheSniper105
9-Nov-14 23:55pm
View
can you print them all ??
TheSniper105
9-Nov-14 21:29pm
View
other tools like what ??
TheSniper105
3-Nov-14 19:45pm
View
how to make sure for example that jack will be the first first word if user entered space before it (i always enter jack in every string first word i.e jack is constant )
TheSniper105
2-Nov-14 20:30pm
View
so how to access for example the third word can you provide example ?
TheSniper105
29-Oct-14 23:17pm
View
for sure i will not put them in same C file i only want to know if they are equal
what do you mean it depends on the call?
TheSniper105
18-Oct-14 10:09am
View
sorry if you misunderstand me what i asked is just help find solution not writing the code please see again i have updated it
TheSniper105
18-Oct-14 10:01am
View
thanks
TheSniper105
18-Oct-14 10:00am
View
ok can you post your solution to achieve what i want ?
TheSniper105
18-Oct-14 9:45am
View
so how to insert data at index 1 ,index 2,index 3 without array ?
TheSniper105
17-Oct-14 9:21am
View
C doesn't have any built in boolean types so how you use bool bJump = false??
TheSniper105
15-Oct-14 23:16pm
View
ok but i try to make menu for learning only (i want to apply what i learned about loops and control structure only )
TheSniper105
15-Oct-14 21:40pm
View
thank you any suggestions for something simpler?
TheSniper105
15-Oct-14 21:01pm
View
i'm c newbie this is first time to write c and till now i learned until loops so i will learn functions and so on step by step
TheSniper105
2-Oct-14 16:10pm
View
and here is the code after modify it
http://pastebin.com/SmWRNYVH
TheSniper105
2-Oct-14 16:10pm
View
and here is the code after modify it
http://pastebin.com/SmWRNYVH
TheSniper105
2-Oct-14 15:42pm
View
the result still wrong try numbers like 10 and 11 you will see the result same
TheSniper105
2-Oct-14 15:42pm
View
the result still wrong try numbers like 10 and 11 you will see the result same
TheSniper105
2-Oct-14 7:07am
View
iam newbie to c any tutorial ?
TheSniper105
2-Oct-14 6:46am
View
sorry that was mistake when copy code i updated it now but the probleme still
TheSniper105
2-Oct-14 6:40am
View
what do you mean ??
TheSniper105
14-Sep-14 4:36am
View
what is wrong with my code ??
TheSniper105
11-Sep-14 5:05am
View
did not work this is the first solution i tried
TheSniper105
7-Sep-14 8:17am
View
any link ??
TheSniper105
4-Sep-14 4:52am
View
not working for me
and i use this htaccess to remove index.php is there any conflict??
http://pastebin.com/F2Sv11aZ
TheSniper105
26-Aug-14 5:24am
View
more details please ??? i wanna make it like wordpress url
TheSniper105
20-Jul-14 6:21am
View
4.0.4
TheSniper105
20-Jul-14 6:19am
View
what is the error
TheSniper105
21-Jun-14 12:23pm
View
i have solved this my self the problem was that this only works in new facebook sdk 4
TheSniper105
17-Jun-14 5:56am
View
is_active and is_blocked are tinyint
_________________________________________________________________
sql statment
SELECT name, SUM(total_people_count+gold_num+attack_points+defense_points+hero_level+week_thief_points+hero_points+villages_count) as points
FROM `p_players`
WHERE (is_blocked <> '0' AND is_active = '1')
order by total_people_count, gold_num , attack_points , defense_points , hero_level, week_thief_points, hero_points , villages_count DESC
LIMIT 0,30
TheSniper105
16-Jun-14 10:58am
View
same result nothing happens
TheSniper105
16-Jun-14 9:21am
View
check the image please http://www11.0zz0.com/2014/06/16/12/100993199.png
is_blocked =1 and is_active is 1 in all rows
TheSniper105
16-Jun-14 9:20am
View
i use mysql --->php
TheSniper105
8-Jun-14 11:56am
View
here is link of the code
https://raw.githubusercontent.com/Bazaid/tatar-wars/master/app/model/queue.php
this lines
$tasksTypeArray = ($troopTrain ? array( QS_TROOP_TRAINING ) : array( QS_BUILD_CREATEUPGRADE, QS_TROOP_RESEARCH, QS_TROOP_UPGRADE_ATTACK, QS_TROOP_UPGRADE_DEFENSE ));
$updatesCount = $this->provider->executeQuery2( 'UPDATE
p_queue q
SET
q.end_date=NOW()
WHERE
q.player_id=%s
AND q.village_id=%s
AND q.proc_type IN(%s)
AND IF(q.proc_type=%s, q.building_id!=25 AND q.building_id!=26, 1)', array( $playerId, $this->page->data['selected_village_id'], implode( ',', $tasksTypeArray ), QS_BUILD_CREATEUPGRADE ) );
if (0 < $updatesCount) {
$this->page->data['gold_num'] -= $goldCost;
$this->provider->executeQuery( 'UPDATE p_players p SET p.gold_num=p.gold_num-%s WHERE p.id=%s', array( $goldCost, $playerId ) );
$this->_changeUpdateKey( );
}
TheSniper105
17-May-14 19:39pm
View
Exec is php function
http://au1.php.net/function.exec
TheSniper105
17-May-14 19:38pm
View
i use wamp ok ? and first step i did is check disabled functions and open_basedir and safe mode not enabled in php.ini so i post question here
TheSniper105
11-May-14 6:41am
View
yeas thanks
TheSniper105
5-May-14 8:53am
View
i use alert("success") if data success and also i use console.log(data) and it print data in console
data
{"item":[{"id":"1","title":"hddhjd","replay_message":"ddddddddddddd","user_id":"4","attachments":"dgdhjdd.jpg","sent_at":"2014-05-05 10:03:13"},{"id":"2","title":"dbdjjd","replay_message":"dkjdjkdlkld","user_id":"4","attachments":"ndmdkddl","sent_at":"2014-05-05 10:55:23"},{"id":"3","title":"dbdjndmn","replay_message":"mnkjhkljnkl","user_id":"4","attachments":"dhdgjdhjd","sent_at":"2014-05-05 11:06:43"},{"id":"4","title":"nbfbmfnf","replay_message":"fffffffffffff","user_id":"4","attachments":"fffffff","sent_at":"2014-05-05 11:19:47"},{"id":"5","title":"hbngthrfygg uy iu t7yt 8t 87 t87 8","replay_message":" y grfgh","user_id":"4","attachments":"sasas","sent_at":"2014-05-05 11:30:07"}]}
TheSniper105
1-May-14 6:44am
View
i don't know if it was netbeans bug :D
TheSniper105
30-Apr-14 8:52am
View
yeas worked thank you but i don't know why it not work
TheSniper105
30-Apr-14 8:16am
View
http://www6.0zz0.com/2014/04/30/12/756435691.png
check the image in the link
TheSniper105
22-Mar-14 15:43pm
View
any browser
TheSniper105
5-Mar-14 16:43pm
View
big flat file instead of teh complexity of a database
any link (more details)??
TheSniper105
25-Feb-14 10:43am
View
i need to output more details like arabic title
and meta and every thing any suggestion ?
TheSniper105
24-Feb-14 9:48am
View
by the way how to empty textarea value i use
$("#code_txt").removeAttr('value')
but doesn't work
TheSniper105
24-Feb-14 9:23am
View
what i want is disable some inputs in page till user check the corresponding radio box
TheSniper105
20-Feb-14 5:09am
View
i understand what database should be i need the idea of how to detect that user is typing now
TheSniper105
18-Feb-14 17:33pm
View
i need it php
link of image
TheSniper105
18-Feb-14 11:44am
View
then??
TheSniper105
2-Feb-14 16:30pm
View
yeas thank you you are right
TheSniper105
2-Feb-14 15:04pm
View
$out
is empty array why ??
TheSniper105
6-Jan-14 5:51am
View
what is prop?
TheSniper105
6-Jan-14 4:54am
View
i updated it and the problem still any help?
TheSniper105
2-Dec-13 6:48am
View
the Previously issue was with facebook app setting (App Domains) and i already correct the mistake by writting the correct domain tawrny.com and now it's in my script and i can't figure how to solve it so it's not the same thing
TheSniper105
1-Dec-13 10:06am
View
no insert only when remove the lines i Previously mentioned
TheSniper105
1-Dec-13 9:50am
View
it shows the form view 2 times
TheSniper105
1-Dec-13 9:43am
View
what soultion??
TheSniper105
1-Dec-13 9:22am
View
yease it's called and no errors happens
when i remove these lines
$get_title=$this->user->get_entery1();
$content1=array
(
'x'=>$get_title
);
$this->load->view('form',$content1);
return;
the data inserted correctely but i want to use them
TheSniper105
30-Nov-13 21:16pm
View
how to solve that problem to help data inserted
TheSniper105
27-Nov-13 16:14pm
View
my question was is how to display the values of $users in the view
note that $users is array which contain values from database
TheSniper105
18-Nov-13 8:50am
View
i need to use loop if i have 255 color do i have to type their id Manually؟ i know the static method you typed but i need it dynamic
TheSniper105
13-Nov-13 8:17am
View
ok any link for more details?
TheSniper105
10-Nov-13 9:07am
View
there is no jquery.min.map file the map is jquery function
TheSniper105
6-Nov-13 9:36am
View
ok thanks i will delete that question
TheSniper105
6-Nov-13 8:43am
View
i need APP API for drawing to program my web app
TheSniper105
6-Nov-13 8:13am
View
before i asked the question i searched google for answer and i couldn't find anything help me
TheSniper105
6-Nov-13 7:58am
View
i don't get it what's the problem with my question?
TheSniper105
16-May-13 13:24pm
View
DELETE FROM myTable WHERE TIMESTAMPDIFF(MINUTE,TS,CURRENT_TIMESTAMP)>5
TheSniper105
15-May-13 13:13pm
View
not working
TheSniper105
15-May-13 9:02am
View
Deleted
http://pastebin.com/SksY4RZE
TheSniper105
15-May-13 7:03am
View
how???
TheSniper105
13-May-13 14:16pm
View
need idea
TheSniper105
29-Apr-13 1:50am
View
could u please format ur code can't read it
TheSniper105
29-Apr-13 0:49am
View
is there any way to check end of the line not file??
TheSniper105
28-Apr-13 22:45pm
View
ok thanks for ur comment
TheSniper105
27-Apr-13 7:12am
View
@Sandeep done check out again
TheSniper105
26-Apr-13 10:46am
View
but if i hide the uploader i think it wouldn't work do u have code of ur idea??
TheSniper105
26-Apr-13 8:36am
View
upload photo when click it's icon what it's idea ??? in normal upload there is upload button and the button that submit the image but in facebook there is icon clicking it browse ur pc for pic how to do that (facebook idea)???
TheSniper105
19-Apr-13 5:18am
View
ok thanks for replay i really did that
TheSniper105
28-Mar-13 11:04am
View
thank u that's helped me
TheSniper105
27-Mar-13 16:59pm
View
@sergey lacks file path separator, '/'. what do u mean and where should it be ?
TheSniper105
24-Mar-13 19:37pm
View
i know that but what i want is if i had variable say name='my name' how to make the title of webpage have the value of name variable assume that value of name always change
TheSniper105
5-Mar-13 16:13pm
View
shift it by changing positions // shift value means what is the position you want to replace it's value
TheSniper105
29-Dec-12 8:49am
View
the first
TheSniper105
20-Dec-12 15:52pm
View
i need to do it using foreach only
TheSniper105
20-Dec-12 15:29pm
View
how do you do that?
TheSniper105
2-Oct-12 18:24pm
View
more??
TheSniper105
2-Oct-12 17:27pm
View
sjelen u are right
my english is weak
Show More