software.developer

1

votes
1

answer
24

views

connection to sql from config variables cause error (php code)

I am using variables from config file to establish sql connection on my php files. Connection works fine in those files but to make the website more organized I decided to have one file for connection. I got the code from the internet, the connection does not worked. giving me this error: ' Error:...
1

votes
2

answer
20

views

Is it possible to implement a modal with a list tag? Or would I have to use a button?

I am making a personal portfolio website for myself. GitHub Resume Contact In the code that is above, would it be possible to include a modal for the contact button? I have created a 'contact.html' page and would like it to pop-up when the button is clicked rather than have a whole new page open...
Software Developer
1

votes
0

answer
878

views

Failed to start RabbitMQ broker

I am trying to install rabbitmq from last 16 hours and tried on ubunutu 18 and 16.04 by following commands: https://gist.github.com/fernandoaleman/72f0ad39e11915c0077d544b50096b50 I don't know why it is not starting: rabbitmq-server.service - RabbitMQ broker Loaded: loaded (/lib/systemd/system/rabbi...
software developer
1

votes
1

answer
539

views

Can't insert animated smileys in richtextbox in my windows chat app in c#.net

Can't insert animated smileys in my chat app, which is a windows application in c#. I was pasting directly images of smileys in my richtextbox, everything worked fine as long as they were non animated, but now I require animated smileys is there any way available??? I searched and found about using...
1

votes
1

answer
254

views

prevent more than one tray icon in c#

I am developing an application in c#.net,and for that i am writing code to display icon in a system tray,and whenever a new message arrives the balloon tooltip will be shown there,which has click event which will open new message arrived,everything works fine,but the problem is i am getting multiple...
Software_developer
1

votes
1

answer
0

views

asp.net mvc (Migration)

I crete table in asp.net mvc but when i crete the migration this error message show Introducing FOREIGN KEY constraint 'FK_dbo.DailyTransactions_dbo.Contracts_ContractId' on table 'DailyTransactions' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or m...
1

votes
1

answer
181

views

How to access Google Glass contact photos when creating new timeline cards?

I am building GlassWare that will add a timeline card to indicate one of a user's friends has performed some action. On the card, I would like to show an image of the friend. If the Glass user has already added that friend as a Glass Contact, then the device may already have the friend's image. I ha...
Software.Developer
1

votes
1

answer
0

views

How Subtract 2 values in ASP.NET MVC

i want to Subtract 2 values and show the result in the index . The AmountOfRent is AmountOfRent , and the Receipt the user will enter in the Crete , so when back to the index the Balance will show this is my Controller: [HttpPost] public ActionResult Index(ContractMonth am) { am.Balance = am.contra...
2

votes
0

answer
15

views

publish project of the asp.net MVC

I have published my project in asp.net MVC in the local server but there was some error in the database, this is the error message : CREATE DATABASE permission denied in database 'master'. and this is my connection string connectionString='Data Source=DESKTOP-LBLR0NH\SQLEXPRESS;Initial Catalog=MyRe...
1

votes
1

answer
59

views

How to consume an API by creating a content model, and have a FreeMarker template generate HTML based on the model in Crafter CMS

I am able to get the xml returned by the below groovy script. However, how can I get the output within a Page? Can anyone help me how I can create a content model, create content items using that model, and have a FreeMarker template generate HTML based on the model. Thanks in advance. import org.cr...
Software Developer
0

votes
3

answer
25

views

asp.net Mvc _Layout

How are you ? as you see in the pic i have Home / overview this is the code : Home page Overview this is in Layout in asp.net MVC, so i can to change the name of overview to the name of the other page which i selected dynamically? for example when i go to customer page i want to come like this Hom...
Software Developer
-1

votes
0

answer
13

views

How can I combine Web Development with Object-Oriented-Programming (if this, then that; etc)?

For example, let's say I am building a site where users take a quiz to figure out something about them based on their answers. (For example, a quiz to see which dorm would be suited for students at a certain university). I know the front-end side would be the HTML/CSS/JS that displays the quiz quest...
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...
Software Developer
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
85

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
756

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
242

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...