When working with keyboard input in a situation like the one shown in the next simplified example: // abc.hpp #pragma once #include // ranges of integer values in the enum could be contiguous or // not, so question is for a general scenario. However if being // a contiguous range of integer values makes things notably // simpler, then certainly it'd be interesting to know about it. enum FileType : int { JSON = 1, YAML = 2, XML = 3 }; constexpr std::array...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبVote count: 0 I have following code to show a loading panel after e.g. clicking a button and making an Ajax call: $(document).on("click", function (e) { window.LoadingPanel.Show(); }); After the Ajax call following code makes sure the loading panel disappears again: $(document).ajaxComplete(function() { if (window.LoadingPanel != null) { window.LoadingPanel.Hide(); } }); But in some cases I redirect to another page depending on the result of the Ajax call by setting the window.location.href. In ...
ادامه مطلبVote count: 0 Requirement : If user is inactive then show a popup after 5 minutes. and if selected continue session the timer will reset for this and again check for the same. If user haven't click any continue button then the page will refresh. asked 34 secs agoAnuj Sachan Let's block ads!...
ادامه مطلبVote count: 0 I need a macro that works over different tables like this (lets call tem x y z): x ------------ a 0 b 1 c 2 y ------------ a 3 b 1 c 2 z ------------ a 3 b 1 c 2 and I need a results table like this (table is already made, just fill): x y z ------------ a 0 3 2 b 1 0 3 c 2 2 1 What do I need? When scaing tables, "a b and c" will be repeated. I need to print every result without creating in that column extra set of data. I don't want: x y z ------------ a 0 b 1 c 2 a 3 b 0 c 1 a 1 b...
ادامه مطلبVote count: 0 I have a few reports I have to compare with hundreds of entries. I have taken the important information and put it all in one spreadsheet to make this easier. A list with only a few numbers is in column A. A quantity associated with each number in A is also in column B, and column C contains a much larger list, with numbers that are and aren't in column A. I need to check if the number in C also exists in A, look up the quantity in B in the same row as the number in A, then retu in...
ادامه مطلبVote count: 0 I'm trying to do simple batch script (cmd) that will check if required packages are installed, if not it will install them and then will call my command. I've managed to check if node is installed using: node -v >nul 2>nul if %errorlevel%==9009 ( echo Install node.js and restart this script goto :EOF ) now I'm trying to check if specific npm package exists. I'm able to display error when package is not installed using: npm list bootprint --depth=0 >nul 2>nul || echo bootprint not f...
ادامه مطلبVote count: 0 I'm curious is there a way in javascript/jquery or php to check if a message/post is read/unread by the user; or has the message box site changed ? I'm thinking about implementing notifications system similar to facebook one - so that any new post/message will add to the title a number '(1)'. My problem is how to determine that user has new unread message, or eventually how to check if something has changed in the message box site ? asked 24 secs agouser6666150 Let's block ads!...
ادامه مطلبVote count: -1 I could not check whether the mouse position is between some specific coordinates. Currently i am working on tic-tac-toe. I am using mouse functions. I need to know whether the mouse pointer is between coordinates. Provide me with some ideas. If possible codes. asked 56 secs agosoma Let's block ads!...
ادامه مطلبVote count: -2 Hi want to check if post data by a form is passed by curl site, i am a newbie at this so please do not mind me. What i want to do is when a user/pass is submitted to go through a specific site login url e.g.: https://www.facebook.com/login.php, check if valid or not, if valid DO SOMETHING and if not valid again DO SOMETHING - show an error. So i need a sample for this with PHP, I hope i was clear. asked 1 min agoclosser Let's block ads!...
ادامه مطلبVote count: 0 I have a barcode generator that takes information stored in a database and generates a barcode from a databound checkboxlist selection. There are different check boxes, the user checks the boxes of the items they want and enter a universal total. protected void btnGenerate_Click(object sender, EventArgs e) { int n; int i = Int32.Parse(BatchNumText.Text); for (n = 1; n...
ادامه مطلبVote count: 0 I have defined this class: class numbers { private: int i{ 0 }; int j{ 0 }; public: int get_i() const; int get_j() const; void set_numbers(int, int); numbers(int x, int y); numbers(); }; Now in the int main(void) what is the difference between the following statements: numbers numberA; numbers numberA (); numbers numberA {}; numbers numberA (10,20); numbers numberA {10,20}; Basically I am confused between the use of () empty or otherwise vs {} empty of otherwise. Both of them seem ...
ادامه مطلبVote count: 0 I have an empty array and a selectable tree, and every time when the user is checking or un-checking a node I'm pushing the node's id and if the checkbox is true or false. But right now if the user will check and then un-check a node there will be two objects in the array of the same node how can i make sure that doesn't happen? //creating empty array var checkedItems = []; //(in kendo observable) on user selection I'm pushing the checked node to array onItemChecked : function (e) ...
ادامه مطلب