Programmer
on 10 sites

Programmer


1 answer

Is there a way to resolve or configure the container to resolve a default object if one isn't found?

I would like to be able to inject a DefaultService object that implements IService<in T>. For example if I've got a constructor: public FunClient(IDefaultService<FunModel>) { ... } But ...

0 answers

Google map doesn't appear with 'push' segue in swift

I have various viewControllers that work perfectly with the push segue. But one of them contains a googlemap, when i use 'push' segue the googlemap doesn't appear, sometimes it only shows a blue ...

0 answers

znapzend fails when running from cron

I'm having an issue with znapzend --runonce I am running Debian Wheezy I'm running from cron as I need to stagger my snapshots I have the following in my crontab ...

2 answers

Q: How to add content fo an input with css?

See the CodePen below: http://codepen.io/IgnaciodeNuevo/pen/PqwVQe <input type="text" class="asterisk"> body { background-color:#333; } input { position: absolute; font-size: 1rem; ...

2 answers | 53 secs ago by IgnaciodeNuevo on Stack Overflow stackoverflow.com
1 answer

does size of argument in a javascript function affects its performance?

I have a key value pair containing five keys with values as huge array of thousand objects each . I can either subset it while passing it into a function or i can pass whole array in the function. ...

1 answer

Is there any option to operate with 2 lists in one list in Google Sheets?

Is it possible in Google spreadsheets to have one list which is somehow divided into 2 parts and both of those parts consist of different lists? Something like iframes in HTML.

0 answers

Copy lines from one text file to multiple text files based on first column values C#

I am new in C#. I have a Text file with (;) separated values saved in specific folder. I want to read the text file and copy the lines based on the first column values and put them in multiple text ...

1 answer

Revision Suggestions for an efficient Python (with Curses GUI) Program

I wrote a Python mp3 player for linux using pygame, with a curses GUI and a mouse-only interface. It's purely for personal use. It hasn't been polished yet, but for now I'd like to know what I've ...

1 answer

.fadeOut() in Firefox

I've added a fadeOut() function to my element and when I inspect the element I actually see the numbers for opacity decrease, and when they come to 0, the element simply disappears, instead of slowly ...

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

Podcast software with Cue Sheet support

I am looking for an all-in-one solution which can do at least the first 2, preferably all 3 of the following steps from my current manual process: Podcast download (currently using iTunes) Search ...

1 answers | 1 min ago by Shevek on Super User superuser.com
1 answer

SSH asking for password at login and not passphrase

Please be easy on me as I'm new to this and am trying to be sure I did everything correctly. I recently used this guide ...

2 answers

ActiveAdmin Add Current Admin as Author

I've got a pretty simple Post model I'm exposing through ActiveAdmin. Is it possible to attribute a Post on create to an author (the current ActiveAdmin user)? In a regular controller I'd just use: ...

0 answers

Keyboard doesn't hide in iOS even on resignFirstResponder

I have a login page with username,password textfield and a submit button. If the focus is on password textfield and the user presses the submit button without pressing the return key on keyboard. The ...

1 answer

AngularJs data access Levels

I am trying to make a application in springMvc, velocity with html pages and angularJs for ticket booking. This is my first time to use angularJs. NavBar Home | Application Setting | Travel | Bulk ...

0 answers

How to pass image to a default image to database as byte array in C# WCF

I'm developing a system that use Entity Framework Code First technology for data base creation and, I need to store an image file to the database using this. I have done this but have a problem when ...

2 answers

PHP json_decode is not working with valid json data

While parsing the below JSON data with PHP json_decode function, It returns null, since the key names are without double quotes. Can you please help me in resolving this issue. [ex: Instanceid key ...

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

Quicksort Algorithm Efficiency

I've just tried my hand at Quicksort, and I seem to have gotten it working (thanks to Stack Overflow). However, is it "true" Quicksort? And is it decently written? public static void ...

2 answers

Refering to a different control in each iteration of a loop

In my program I have 24 text boxes that the user uses for input. I want to assign the contents of each text box to an index of an array. Is there a way I can do this in a loop without having to type ...

2 answers | 2 mins ago by Cody Frick on Stack Overflow stackoverflow.com
2 answers

Wordpress Update error ERR_INCOMPLETE_CHUNKED_ENCODING

I was trying to update my Wordpress Core to 4.2.1, but I had an error : I fill my FTP account, as usual, and the update process begin : Téléchargement de la mise à jour depuis ...

2 answers | 2 mins ago by Thibault Henry on Stack Overflow stackoverflow.com
1 answer

Composing generator producer of values

How can I compose a producer generator that gets values externally with another generator? If producer yields a value within the generator then it works, but when I send a value with next I get ...

0 answers

Android: Starting a navigation drawer from an activity

There is lots of question which is similiar to mine but i couldn't find any solution in those answers. My program first shows a splash screen than comes the login screen. After user logins i want to ...

1 answer

Thread abort while making HTTP Get Request

Recently I have started receiving alerts with the following stack trace: Message: Thread was being aborted. Stack Trace: at System.Net.Connection.CompleteStartConnection(Boolean async, ...

4 answers

Need to to search and replace within a file 2 times, would prefer to be able to do it once iteratively

Question is phrased oddly, sorry about that. So I have a CSV file with a ton of data, but in certain places I have no data and thus a ",," or even ",,," with two consecutive null pieces of data, or ...

0 answers

Google Chart Api make use of datetime value

Hello I want in my chart to display the datetime, I made some search over the stack and I found similaer problems like this one but I could not understand how to fix that. The part of the code that ...

1 answer

bootstrapvalidator Uncaught TypeError: Cannot read property 'group' of undefined

I have this same issue as described here: bootstrapvalidator gives "Cannot read property 'group' of undefined" on ckeditor field, except it is not related to ckeditor. The validation ...

1 answer

Paginate related models

I would like to paginate 2 models: Trip which hasMany PartialTrip. The Trip model: public function PartialTrips() { return $this->hasMany('PartialTrip', 'main_trip_id'); } The tricky part ...

1 answer

How to properly uninitialize OpenSSL

In my OpenSSL client I have the problem that the very moment I chose to link libeay32 and ssleay32 statically instead of dynamically I got tons of memory leak errors from Visual Leak Detector. I ...

1 answer

Mobile Css not being called correctly in JS

My issue is with the site http://navtant.com/ does not pass googles mobile friendly test. (my mobile css fixes all of these issues) here is my issue, the page should be calling "style-mobile.css" ...

0 answers

how to get index from directive to controller

how to get 'index' value from directive to the controller. i tried it but i was getting index at directive but i need to pass it to the controller when i was passing it to controller, i getting ...

0 answers

using padarray to concatenate cell array with diferent size

I write the followings: a={2 2;2 3; 3 5; 5 4;8 9}; b={'a' ;'b'; 'c';'g' ;'p'}; [r, c]=size (b); if c<2 e=padarray (b,[0 2-c], 0, 'post' ); end d=[a;e]; but the error ...

15 30 50 per page
1 2 3