Fatih

1

votes
1

answer
48

views

PECS For generics in Non Collections

Joshua Bloch came up with the PECS, which says the rule when to use ? extends T and ? super T. If you think about PECS in terms of Collections framework, then it is very straightforward. If you add values to the data structure, use ? super T. If you read from the data structure, use ? extends T. fo...
Fatih Arslan
0

votes
0

answer
5

views

Creating a form wizard / formset to answer questions from a table and saving them into another (Survey)

I am new to Django. I apologize if I don't make much sense. I have an EU project to create a survey tool for adult educators who are assisting migrants and refugees. I would like to use a WizardView/SessionView together with formset to answer a set of 24 questions from a matrix based on Max-Neef's H...
Fatih
1

votes
3

answer
80

views

How to query the latest item in a feed table

There is a table called client_application with data something like this; Id user_id name creationDate --------------------------------------- 1 5 name1 date 2 4 name2 date 3 98 name3 date And also a table called application_status which holds the...
Fatih Donmez
1

votes
1

answer
5.3k

views

How do you dispay the current logged in user in JSP, Java servlets

Hi i would like to know how i can display the current users username/name on a webpage when they have logged on... i am storing their username like this request.getSession().setAttribute("currentUser", username); and wat to display their username on the jsp(web page) like this welcome however it do...
Fatih
0

votes
0

answer
9

views

How do I get rid of Mac OSX Hadoop Permission denied (publickey,password,keyboard-interactive). error?

I built Hadoop on MacOS X, followed the steps here for installation. But when I want to run it, I get this error. root:~ fatihcelik$ hstart Starting namenodes on [localhost] localhost: [email protected]: Permission denied (publickey,password,keyboard-interactive). Starting datanodes localhost: f...
Fatih
1

votes
3

answer
479

views

Posts permalink with category

I'm using the permalinks on my Wordpress posts. My permalink code is /%category%/%postname%/ - so links include category name. My problem is, I'm using some categories to group my posts. For example: featured, recommendation of the moderators etc... I want these categories to appearing in the links....
Fatih SARI
1

votes
1

answer
460

views

Java unsafe memory allocation limit

Does Java sun Unsafe.allocateMemory has any limitation? I know that it's off heap so it's not subject to GC. But can we limit allocation size by JVM command like : -XX:MaxDirectMemorySize
Fatih Donmez
1

votes
1

answer
5.1k

views

Nodejs array indexof function usage

I'm trying to develop a random category Id generator function on nodejs. Firstly, I receive all the existing category Id's from my database and push them into a array then I generate a random integer(between boundaries) and I compare the random number with my cat id array. I use indexof() function t...
Fatih Aktepe
1

votes
3

answer
66

views

change textview when change static string variable in android

This is my main class. change textview settext when static text change in another class. Note: this process will be applied for several views public class MainActivity extends AppCompatActivity { public static String text = "123"; Button btn; TextView txt; @Override protected void onCreate(Bundle sa...
Fatih Bulut
16

votes
3

answer
28.7k

views

Download YouTube videos with wget

I usually use keepvid.com or a Firefox download helper plugin for dowloading YouTube videos. Is it possible to download them with the wget command available in Linux? Also, I have a VPS server. I want to download videos on my VPS server (cPanel). If is possible and if so how? Thanks.
Fatih Toprak
17

votes
4

answer
4.7k

views

Maintain scroll position when adding to ListView with reverse endless-scrolling

I am building a chat-like Android application, similar to Hangouts. For this purpose I am using a vertical ListView with stackFromBottom=true and transcriptMode="normal". The list is sorted from older messages (top) to younger messages (bottom). In normal state, the ListView is scrolled to the botto...
Fatih Coşkun
2

votes
2

answer
321

views

Firebug constructor function vs user function

I made a quick search about what is the meaning of Firebug DOM tab coloring and I see the the explanation below from here Red colored bold text points "constructor function" Green colored bold text points "user function". What is the difference between the two type of functions?
Fatih
1

votes
2

answer
1.7k

views

Hazelcast map value serialization exception

I tried to put my entity object to Hazelcast IMap but it throws an exception like below: java.io.NotSerializableException I've searched Google but could not find an exact answer.
Fatih Karatana
1

votes
3

answer
2.3k

views

login and redirect after wp-admin

Is this idea is possible or not ? When If administrator user login wp-admin panel from http://domain.ltd/wp-admin ; could we redirect to some external page like http://domain.ltd/my-newadmin ? Is this possible ? Thanks.
Fatih Toprak
1

votes
4

answer
579

views

How to ignore messages from disconnected channel

I'm implementing simple netty server for a multiplayer game. I'm just trying to figure out Netty. I test the server via telnet. What i done is broadcast the messages to all channels. It's working smoothly. Also I remove channels from map on close event which is fine. But the problem is if one of th...
Fatih Donmez
2

votes
1

answer
261

views

How to get candidate group from process before deployment?

I want to get candidate group or candidate user from process before our deploy. How can I access to process definition variables and tasks before deployment? Can I access this variable? Is it possible?
6

votes
2

answer
4.1k

views

how can i trigger ajax error callback on success callback?

I'm looking for a way to trigger ajax error in success callback. i have tried to explain my problem code below: $.ajax({ url: requestURL, data: postData, type: 'post', success: function(response){ if(response.Success){ // do something }else{ // request workflow fails in this case, // i have to trigg...
1

votes
2

answer
4.1k

views

java.lang.ClassNotFoundException in dalvik.system.PathClassLoader.findClass

i need help. Im trying to start an app with Google Maps V2 integrated. On my Samsung Galaxy S2 with JellyBean it is working and on my fathers' S3 as well. But on a HTC Desire and some others it doesn't. I couldn't find out what I'am doing wrong. Logcat: java.lang.RuntimeException: Unable to start a...
Fatih Gee
6

votes
4

answer
6.1k

views

What would be the motivation to integrate mongodb with solr [closed]

Mongodb is a nosql db and any query can be run on it except full text search since it reduces the overall performance. Solr is a search engine to search. When we integrate these two together then dont we have the same data in both systems? So if we already going to store the data anyway why we dont...
fatih tekin
1

votes
1

answer
1.1k

views

How to open target blank in a custom admin sub menu page?

Here is my external link menu function for admin area: ##CACHE MENU add_action('admin_menu', 'mariCacheDel'); function mariCacheDel() { global $submenu; $url = get_bloginfo('wpurl').'/cache/?do=deleteAll'; $submenu['themes.php'][] = array('MARIA CACHE', 'manage_options', $url); } How can we open a _...
Fatih Toprak
2

votes
2

answer
2.8k

views

Wait IAsyncResult function until complete

I need to create mechanism which waits IAsycnResult method till complete. How can i achieve this ? IAsyncResult result = _contactGroupServices.BeginDeleteContact( contactToRemove.Uri, ar => { try { _contactGroupServices.EndDeleteContact(ar); } catch (RealTimeException rtex) { Console.WriteLine(r...
Fatih Üstdağ
6

votes
3

answer
10.2k

views

How to get the name of the day from java sql.Timestamp object?

How to get the name of the day from java sql.Timestamp object such as Monday, Tuesday?
fatih
2

votes
2

answer
663

views

Not adding (non-retina) 1x images to an iPhone app

Is there a way to not add 1x images to an iPhone/iPad app? I'm developing an iPhone app and also testing on my iPad. When I just use @2x images, the iPad successfully resizes down to the 1x size. Is there any downside to not to add 1x images? Or are they still important?
Mehmet Fatih Yıldız
2

votes
3

answer
839

views

TextureBrush Causes Memory Leak, Even If I Dispose It

I am working on a circular menu application. Before I use a bitmap as background, I must crop it as a circle. Well, I found a code snippet for cropping the picture C# crop circle in a image or bitmap or: public System.Drawing.Image x(string sourceFile, int circleUpperLeftX, int circleUpperLeftY, int...
Fatih BAKIR
2

votes
2

answer
621

views

While working on IIS System.Diagnostic.Trace.CorrelationManager.ActivityId is generated empty

we are using System.Diagnostic.Trace.CorrelationManager class to accomplish end to end tracing.The class has a guid property "ActivityId" which is generated by default on every request. Our tracing is working well on iis express but after deploy project on iis System.Diagnostic.Trace.CorrelationMana...
fatih kiymet
3

votes
2

answer
2.7k

views

Postgresql update json data property

I created a field name is result and type is text. I just want to update 'lat' in column. When I use this query I get syntax error. How can I do? The column data is "{"lat":"48.00855","lng":"58.97342","referer":"https:\/\/abc.com\/index.php"}" Query is update public.log set (result::json)->>'lat'=...
Fatih Doğan
5

votes
1

answer
2.6k

views

Scala unused import statement with play framework in IntelliJ

I'm trying to learn scala and play framework. I choosed IntelliJ Idea as ide. The problem is editor gives warning on imports like ; "unused import statements" import play.api._ import play.api.mvc._ Also give warnings on declerations like ; "Cannot resolve symbol Controller" object Login extends Co...
Fatih Donmez
1

votes
2

answer
305

views

Comparing a volatile array to a non-volatile array

Recently I needed to compare two uint arrays (one volatile and other nonvolatile) and results were confusing, there got to be something I misunderstood about volatile arrays. I need to read an array from an input device and write it to a local variable before comparing this array to a global volatil...
fatih
2

votes
2

answer
5.8k

views

Failed to generate random CSRF token! (phpmyadmin 4.6.4)

I installed newest versions of MySQL, IIS (on windows 10) and PHPMyAdmin. But PHPMyAdmin 4.6.4 returns an error: Failed to generate random CSRF token! If I use PHPMyAdmin 4.0.4.1 I can connect to my local mysql server. How can I fix this problem in PHPMyAdmin 4.6.4 (on windows IIS)?
Fatih USLU
5

votes
1

answer
2.6k

views

socket.io add user to room manually (node.js)

I have a chat application which is working privately.My implementation is : 1-A user come to another user profile page and write a message. After this I am creating a room for this conversation. socket.join(data.user); 2-Receiver user will take this message (only this user) but I don't know how can...
Fatih Ayyildiz
2

votes
1

answer
1.8k

views

get_post_meta data with shortcode, is that possible

The question is about Wordpress custom meta fields. If my meta field has something in it, I want to display my meta values on my single.php, where I want to. I think it's possible with shortcodes. function themedemocode($atts,$content = null ) { return 'What should i do for displaying my meta values...
Fatih Toprak
2

votes
1

answer
40

views

How to redirect old links to new SEO friendly links?

I just started developing web sites. I know that this question has been asked many times. Although, I checked most of them, I could not manage to redirect old links to new SEO friendly links. mysite.com/search.php?word=thanks and mysite.com/thanks boths works. When form is submtited, site runs the o...
Fatih Yavuz
1

votes
1

answer
1.6k

views

windows phone 8.1 how to make a determinate circle progressbar

In Windows Phone 8.1, how can I modify the progressbar like the circle below? The ring should be determinate.
fatih
3

votes
3

answer
1.1k

views

Messaging to UI thread

I am developing a serialport application for knx modules in android. I can send and recieve commends to knx modulde. I want to change ui(for ex. button properties) when a message recieved from serialport. I tried it with handlers but i havent be able to change ui. help me plss. @Override public...
Fatih POLAT
6

votes
1

answer
2.6k

views

What is the Android equivalent of /dev/video0 for tablet Camera?

Is there any /dev/video0 file for Android Camera? I want to capture camera preview through ffmpeg on Android. Such as; ffmpeg -f video4linux2 -i /dev/video0 out.mpeg
Fatih
1

votes
2

answer
3.5k

views

Elasticsearch Phrase Match In Filter

I have a query that searches given terms in a text field by given time interval. I want to add phrase match to this query how can I add; for example I'll look for "has parti" as a phrase but the text shouldn't have "ahmet" word. How can I do this; the code is here; { "query": { "filtered": { "filter...
Fatih Aktepe
1

votes
4

answer
580

views

How to get array element's value by given key in perl

I'm totally new in perl. I want to get element's value by its key from an associative array. my array is: my %array = a.a.a.a => "my name", b.b.b.b => "my home", c.c.c.c => "my city"; when I print print say %array; or print say %array{b.b.b.b}; it shows error, so how can I get this? code-test link:...
fatih
1

votes
1

answer
857

views

Single parameters to new() must be a HASH ref data

I have a perl script and it works on perl version 5.8.8 but 5.14 got that error: Odd number of elements in anonymous hash at Here is my code: $session->begin_privileged({ $_enable_password }) Previously it was like this: $session->begin_privileged( $_enable_password ) And at this time I get this err...
Fatih Karatana
1

votes
2

answer
2.9k

views

How to detect and make hyperlinks/mentions/hashtags clickable in UILabel?

How to detect and make link/mention/hashtag clickable in UILabel. Alternatively, is there any open source library that I can utilize (I already looked at Fancy UILabel which doesn't handle multiline tex, TTAttributedLabel which doesn't handle mention/hashtag)?
fatih
1

votes
1

answer
239

views

Python Tkinter interface appearance changes depending on OS

My application looks beautiful on Windows But on MacOS and Linux it does not look nice at all! Is there something I can do to help make this widget appearance consistent across operating systems? My application source code : http://pae.st/BILs/

View additional