Software_developer

0

votes
1

answer
9

views

drop-down list in MVC

i Crete two drop-down list , but the data come on one drop-down list like this picture : enter image description here and the other one is empty i want the B1 and B2 in one drop-down list and name zahra in other drop-down list This code in the controller : // GET: Contracts/Create public ActionResu...
5

votes
3

answer
267

views

Good C++ solutions to the “Bring all the zeros to the back of the array” interview challenge

I had an interview for a Jr. development job and he asked me to write a procedure that takes an array of ints and shoves the zeroes to the back. Here are the constraints (which he didn't tell me at the beginning .... As often happens in programming interviews, I learned the constraints of the proble...
1

votes
2

answer
79

views

HTML attribute names are case-sensitive? Conflicting information.

I just read that attribute names are case-sensitive: Attribute names are also case-sensitive, for example the two width attributes in and (if they occurred in the same file) are separate attributes, because of the different case of width and WIDTH; (http://xml.silmaril.ie/case.html) But then I wen...
1

votes
2

answer
746

views

Use of std::regex_iterator<std::string::iterator> according to CPlusPlus.com

I'm reading the documentation on std::regex_iterator since I'm trying to learn how to use it for parsing HTML tags. The example the site gives is #include #include #include int main () { std::string s ("this subject has a submarine as a subsequence"); std::regex e ("\\b(sub)([^ ]*)"); // matche...
2

votes
3

answer
312

views

How to get a notification from Glass that a custom menu item was selected?

I have created a timeline card with a custom menu item. I would like to get a callback when the user has selected that menu item. // Create a menu item for the card var mnuActivate = new MenuItem() { Action = "CUSTOM", RemoveWhenSelected = new bool?(true), Id = ACCEPT_ID, Values = new List() { new...
Software.Developer
1

votes
1

answer
241

views

Sqlite with Entity Framework in windows phone 8.1 silverlight

I am developing an application in Windows Phone 8.1 Silverlight with a sqlite database, but the problem is it is kind of a lengthy task to manage data using just sqlite. Is it possible to use Entity Framework with sqlite for Windows Phone 8.1 Silverlight? If yes then how? Any tutorial will be helpfu...
Software_developer
2

votes
1

answer
291

views

jqgrid - horizontal scrollbar - position - after paging - from left to right

Consider the following scenario: JqGrid is loaded. Since data is wide, it has horizontal scroll bar. scroll to right. Now, click on next page(paging) Next page is displayed. But the scroll bar is in right side, that is from where at previous page the scroll bar position maintains. Our requirement is...
Software Developer
2

votes
1

answer
98

views

How to scan open port of client machine using local IP address in C# in MVC?

I am developing a web application in MVC. When user log in to website I am getting local IP address of user. But now what I want to do is scan list of open ports of client local machine. Is there any way to implement this in JavaScript or jQuery or C# in MVC?
Software_developer
2

votes
2

answer
85

views

How does using const_iterator result in the compilation of a more efficient program? [duplicate]

This question already has an answer here: Are const_iterators faster? 11 answers I understand that using const and & and all the other fancy C++ stuff is to, as I heard Bjarne Stroustrup say in a video, "help the compiler." I understand how using & (references) whenever possible can help make the p...
2

votes
5

answer
151

views

HTML/CSS/JS - How can I make the current page in my website be highlighted as a different color in the navigation bar?

This is the website I am working on using HTML, CSS, and JavaScript. Currently, this website is in the home page. I want the "home" button to be highlighted in a different color to let the user identify what page they are in should they forget. Even in all of the other pages, I want that specific pa...
2

votes
1

answer
524

views

google adsense : this is weird for me the server responded with a status of 403 ()

I'm New in Google Adsence and having trouble till 2 days, I have create my account on google adsence follow all the step as given in docs, but cant display ad it will shows blank space instead of google adsence I couldn't found any solution. Here my code is: (adsbygoogle = window.adsbygoogle || [])....
2

votes
3

answer
588

views

Identify mouseclick first and if not trigger for mouseover

I have two functionalities: mouseover and mouseclick. I had written corresponding functionalities in corresponding events. However the problem is that each time, the mouseover is triggered even if I intended to mouseclick. Is there any way to identify the mouseclick first and if not, trigger for mou...
Software Developer
1

votes
5

answer
156

views

In C++, when you make multiple classes, are you supposed to put them each in their own .cpp/.h pair? [closed]

Suppose I have a program that's like #include #include class HelloWorlder { public: HelloWorld(); ~HelloWorld(); void print_content() {std::cout
2

votes
0

answer
37

views

Regular expressions! I am trying to find an expression using .NET that serves both of my problems below

I am using https://myregextester.com/index.php Given the following HTML. Home Business Mobile Using find/replace functionality change value as well as add a value in class attribute: Business to: Organization
Software Developer
2

votes
2

answer
970

views

How to initialize flex List with XML data

My application is Adobe Flex 4 based I have an XML as follows : db/ocr_valid_opr_category.xsl,db/sql.xsl COC I want to initialize my List (Adobe Flex 4) with data in GENERAL tab which you see is "Description" and "Code" values , this is dynamic XML and changing continiously , how can I set the data...
Software Developer
5

votes
7

answer
6.3k

views

GitHub error “Failed to get HEAD”

I'm new to GitHub and mainly going to be using it to backup service and to show off code. Anyhow, I'm trying to get my latest program up there and am getting the error in the title of this thread when I try to push. Repro steps: Sit in Starbucks with crappy wifi (Could this be related to the probl...
1

votes
3

answer
124

views

What does it mean in C++ when you have a parameter like ::lower? [duplicate]

This question already has an answer here: What does the “::” mean in “::tolower”? 4 answers scope resolution operator without a scope 6 answers On S.O. posts such as How to convert std::string to lower case?, I've seen the syntax ::something, e.g. std::transform(data.begin(), data.end(),...
2

votes
2

answer
173

views

At a loss … Can't figure out why XCode 6.1 won't compile my C++ program

Although XCode is not flagging any errors before compile time, it brings up 4 when I actually compile it. They are Undefined symbols for architecture i386: "HtmlProcessor::HtmlProcessor()", referenced from: _main in main.o "HtmlProcessor::~HtmlProcessor()", referenced from: _main in main.o "DocTree:...
1

votes
2

answer
492

views

How to retrieve the key into a Semantic-ui-react dropdown?

I have small question about react dropdown menus. I can extract the values inside the dropdown, but I also need the key, because my page is for selling stuff. So, it is an associative table and I need the id from each table to make my query INNERJOIN. This is how I fill it: let options_customers =...
5

votes
1

answer
799

views

Check if an element in list is prefix of other in java

I want to implement a list of strings and then check for all element in the list that if there is any element which is the prefix of other element in the list or not. For example [abc, cde, efg, cdetgh] in above list, "cde" (one element) is prefix of other element "cdetgh". I don't want to iterate...
6

votes
1

answer
4.2k

views

Behavior when dereferencing the .end() of a vector of strings

I'm wondering if it's "safe" to set a string equal to whatever is returned by dereferencing the off-the-end iterator of a vector of strings. When I run the program #include #include int main() { std::vector myVec; std::cout 0) { this_string = *++iter; and I want to make sure something weird does...
Смотреть фильмы онлайн бабушка легкого поведения 2 фильм бесплатно