Programmer
on 10 sites

Programmer


1 answer

Filtering a List

I will try to simplify my problem. Let say I have a collection (more specifically a List) with different types of elements, for explanation purpose let say we have objects "Person" with different age …

0 answers

Is it possible to create a custom css property and then get the value using jQuery?

1, Can you create custom properties within css? For example: HTML <div id="defaultOpenTile"></div> CSS #defaultOpenTile { -myCustomProperty: 'helloWorld'; } 2, Using jQuery is …

1 answer

How can I block traffic from this referrer?

I'm getting a lot of spam referral traffic from semalt.semalt.com/referral on my website. I took a look at the link and there’s very little information about this. The number of website visits is …

0 answers

Use BootStrap PopOver in Joomla-Backend

I would like to use the Bootstrap PopOver (http://getbootstrap.com/2.3.2/javascript.html#popovers) in the backend of my component. Well, the Tooltips already work by using: echo ...

0 answers

Generating XML from Hive tables

What is the best way to export Hive tables to XML? Say I have tables A, B, C. Some records in A refer to some records in B and some records in B refer to records in C. I need to generate XML like the …

1 answer

“/” maps to /WEB-INF/pages/ — why?

For some reason /WEB-INF/pages seems to have become a root folder. Any request to / goes to /pages/. For instance, the following request goes to /pages/index.jsp. That's a bit of a problem because …

1 answers | 43 secs ago by Captain Hindsight on Stack Overflow stackoverflow.com
1 answer

Does chassis mid-plane provide load balancing for power supply

I am new to blade chassis management, and i want to know what is the purpose of mid plane apart from connectivity. Does it provide load balancing among the power supplies. If so does that mean it ...

0 answers

Can I change a parameter name in a C# WebMethod?

Is it possible for a C# WebMethod to accept a different parameter name than its client sends? For example, given a client sending this message: <?xml version="1.0" encoding="utf-8"?> ...

0 answers

How to ensure the sequence of methods in fluent API?

I want to create fluent interface for some of my classes that I am building as part of a framework. I have created the methods and I am able to successfully chain methods. Now I want to ensure that I …

1 answer

PHP Logout on button click

I made a login function using PHP, I have a variable called '$loggedIn' in a php class. How would I set this to false when a user clicks on the logout button?

1 answers | 49 secs ago by XLordalX on Stack Overflow stackoverflow.com
1 answer

scala macro generic field of generic class not apply class generic type parameter

Generic case class case class GroupResult[T]( group: String, reduction: Seq[T] ) Macro method def foo[T] = macro fooImpl[T] def fooImpl[T: c.WeakTypeTag](c: Context) = { import ...

1 answers | 50 secs ago by jilen on Stack Overflow stackoverflow.com
0 answers

LastIndexOf not starting with index 1 to search string

hi this is my code i have start searching in last index of from its 1 eg. by default it is starting by index value 0 ....so i will proper count value to perform my following time stamp operation ...

0 answers

Need a translation from Python code to Scala

I don't know python code and I couldn't find example of this OpenCV threshhold sample in Java or Scala, can any one help me on this? ret,thresh1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY) I …

2 answers

SQL restricted set of combinations

I have a table with columns A,B,C and I'd like to get all combinations of records having {B,C} unique. That is both B value and C value will appear only once in one set. Do you have any ideas how to …

2 answers

How to autocomplete filename in your path on the command line when in a different directory in windows7

on the windows command line I can autocomplete any filename/subdirectory by typing a few letters and then pressing Tab. Is there a way to extend this to anything that is in my PATH. Example: In my …

0 answers

Non blocking C++ server: how to avoid 100% CPU utilization?

I'm developing a CORBA server in C++. For various reasons (mainly because I have other task to perform in the main thread), I'd like to use the non-bloking APIs work_pending() and perform_work(). A …

0 answers

Mini TV for android not recognized as a device

I recently bought a mini TV for android (API level 17) and was wondering if it was possible for the device to be recognized by adb as a testing device when I write adb devices command in ...

1 answer

Block a lock free queue using std::conditional_variable

I have a multi-threaded single producer single consumer process in which I use a lock free queue (boost::lock_free::spsc_queue). Right now I have two while loops running (tight and without any wait) …

1 answer

Java JAXB Marshaling not working

This is my save function in mainApp: public void saveUizvatelov() { System.out.println("saveujem" + uzivatelia.size()); try { JAXBContext context = JAXBContext ...

1 answers | 1 min ago by Mat The on Stack Overflow stackoverflow.com
0 answers

Android bytecode instrumentation

I want to extract the CPU and memory usage information of android application using byte code instrumentation ? Can anyone tell how to perform byte code instrumentation in android ? I have come ...

3 answers

How to use delegates in correct way / Understanding delagates

use - C# (.Net Framework 4.5, Visual Studio 2012) I try to understand such theme like Delegate, and currently I have few points, that must be clarified for me. I found a lot of different information …

1 answer

Is there a way to reset the toolbar minigraphs in Process Explorer?

Windows Sysinternals Process Explorer includes in its toolbar some minigraphs showing recent usage history for CPU, Memory, and so on: These are nice. However, an inadvertent click on the 'thumb' …

2 answers

Validate Date format mm/dd/yyyy without any Regular Expression

I am trying to validate Date format mm/dd/yyyy with the below code: **Date is 1st Feb, 2014 $is_valid_date = date('m/d/Y', strtotime('02/01/2014')) == 02/01/2014; I've tried checking format ...

2 answers | 1 min ago by user3030089 on Stack Overflow stackoverflow.com
1 answer

After calling render in the controller, when does the next line get called? Yii - PHP

So, I'm trying to figure out what is the exact order/timing of functions being called in my controller in Yii. Right now, I have code like this public function actionIndex() { $userId = ...

1 answers | 1 min ago by Stephen on Stack Overflow stackoverflow.com
1 answer

Eclipse nested project turns into folder; only on one machine

My eclipse started to do weird things when I tried to set up my project on my notebook. What happens is that a package that should be nested like lots others in the project suddenly turns into a ...

1 answers | 1 min ago by Ristridin on Stack Overflow stackoverflow.com
0 answers

PHP-MVC php not getting all the information from the MySQL table that is using left joins

I am working a previous established php and MySQL website that takes all the product information from different tables in the database and displays it by its categories. I am trying to use the already …

3 answers

Error in closing files

I'm running Python 2.6.5 and part of my code involves opening and reading a text file. The problem is the command I'd expect to use to close the file isn't working, where I get an error reading: ...

3 answers | 1 min ago by user3555455 on Stack Overflow stackoverflow.com
1 answer

TabWidget aligned on the bottom overlaps other Views

I have TabWidget that is aligned on the bottom of the page. I can't get it to not overlap other views. More specifically it overlaps my FrameLayout. I need FrameLayout to adjust its height to ...

0 answers

Change input field to plain text on deselect

I have a table and when a user clicks on a cell it become editable. I need the editable region to return to plain text with the new value when the user deselects the text field. Also, could I use ...

1 answer

Is explicitly calling a class' cast operator method better than casting?

If a class offers a method operator wchar_t* and I am using an instance of this class in a situation the compiler cannot deduce the casting automatically, is it considered bad to invoke the cast ...

1 answers | 1 min ago by John on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3