Fatih

1

votes
0

answer
101

views

How can we cross compile qmake?

When qt5 (5.9.2) is cross-compiled, the qmake/moc/rcc/uic tools are generated for the host machine. Is it possible to generate (cross-compile) them for the target device? Thanks.
Fatih Erol
1

votes
2

answer
29

views

how to insert custom images and html in wordpress

I'm creating a new WordPress Theme and I want a media folder to contain some images that are not considered to be posts. e.g. themes/theme-name/media/sampleIMG.jpg adding in my theme folders index.php leads to an 404 error code output because apparently my local apache server is requesting that file...
Fatih Tunç
1

votes
0

answer
263

views

netsnmp “snmptable” command retrieves excessive MIB objects

I have implemented different custom MIBs by using net-snmp-5.7.3 package. As an example, custom OIDs are as below: .1.3.6.1.4.1.XXXXXX.1.1 //scalar .1.3.6.1.4.1.XXXXXX.1.2 //scalar .1.3.6.1.4.1.XXXXXX.3.2 //table .1.3.6.1.4.1.XXXXXX.6.1 //scalar .1.3.6.1.4.1.XXXXXX.6.2 //scalar .1.3.6.1.4.1.XXXXX...
Fatih Aslan
1

votes
1

answer
295

views

Java Spring Framework-Bootstrap Integration

I just started learning spring framework. I have met a problem and decided to share it to help you. First I added the project bootstrap library for a project. Then I downloaded a free template from the Internet. I put the resources of this template in the project in the following location (see WebCo...
fatih
1

votes
1

answer
52

views

Mongoose : How to remove item from array by value

Is there a method to remove an item from an array with Mongoose? I have an array inside object like this: 'students': [ '5ad72254452996029415e49f', '5adaeb388acfc414d428820b' ] And I'd like to remove one of them by identified value. This is my code : Company.findById(id_company, function(err, compan...
Fatih
1

votes
3

answer
792

views

database: best practice countries, country codes, country phone codes

I am looking for a 'best practice' if you store country codes in a database but couldn't find a 'this is the right way' for that. I want to store the 2 chars country code and also the country phone codes (eg Germany would be 'DE' and '+49'). Actually my plan is as follows: create one table countries...
Fatih
1

votes
1

answer
221

views

stm32 ETH_IRQHandler never hit

Im using stm32f746ZGT + LAN8472A and lwip + freertos on my custom board. I generated default ethernet project by cubemx. I set static ip. After connect the cable Link leds seem like good. Yellow one is stable and green one is blinky. In debugging i can see netif is fully configured and link is up....
1

votes
0

answer
37

views

Cannot GET / on Heroku Platform

I've deployed my MEAN Stack App to Heroku Platform. Everything running well on Local Server, it can Reload Page, Access Page with URL. But on Live Server, Heroku, my app can't reload, access page with URL, it always return : Cannot GET / When I check my browser log, returns nothing. This is my app.j...
1

votes
0

answer
30

views

Using byte array in MediaElement wmv source instead of wmv path

I have a wmv file. In xaml source file ı am using this wmv file as a Media element. Just ı want use displaying with byte array instead of this wmv file path. How can ı do it ? Here is the xaml part and here is the from wmv to byte conversation : protected override void BasePage_Loaded(object...
1

votes
0

answer
92

views

How can connect two different widget with PySide?

I have two different Widgets, one of QMainWindow and second Qwidget as you see in the picture. So, when I click the OK button than i want to QmainWindow is do something. This is screenshot pm_main_window.py from PySide.QtGui import * from PySide.QtCore import * import os,sys import pm_create_perso...
Fatih Ünal
1

votes
0

answer
61

views

Using Scikit-Learn's pipelines to combine a transformers and estimator

I try to use Scikit-Learn's Pipeline function to organize our transformers and estimator, and having problem with building a pipeline that combines one_hot_transformer with a LinearRegression() estimator. It is challenging to connect the following ones from sklearn.preprocessing import OneHotEncoder...
Mehmet Fatih Yasar
1

votes
1

answer
30

views

How do I send data from Fragment to Fragment with EventBus?

I am using EventBus to send the long value from a fragment to another fragment. I use the following code to do that. But for me, it doesn't work. What did I do wrong? This is the fragment where I save the data: @OnClick(R.id.buttonFinishMeeting) public void onClickButton() { startActivity(RoutePlanC...
Fatih
1

votes
1

answer
30

views

How do send a data from a fragment to the activity that creates the fragment?

I have an activity and I create a fragment when this activity runs. How do I get the data from the fragment to the activity that creates the fragment? The part where I create an intent in my activity: @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); setIntent(intent);...
Fatih
1

votes
0

answer
75

views

Problems with non-atomic access example on GNU website

On the website of GNU there is a simple example available which is supposed to demonstrate the problems appearing with non-atomic access. The example contains a small mistake, they have forgotten #include : #include #include #include struct two_words { int a, b; } memory; static struct two_words...
Fatih
1

votes
1

answer
85

views

Distinguishing const char * and char * with C _Generic macro

I want a function to behave differently when parameter is a const char * (like 'text') or char * (dynamically allocated string). Is there a way to achieve this using _Generic macro in C? I tried following code but it didn't run const function. Edit: Added example #define foo(val) _Generic((val), \...
Fatih Karaoglanoglu
1

votes
1

answer
65

views

Expression must have arithmetic type error with float pointer

I have simple C code below. When I compile this, I get the warning “expression must have arithmetic type” in the line that I want to print the bPtr and *bPtr with printf routine. #include #include int main() { int a=5, *aPtr; float b = 3.2, *bPtr; double c = 3.412, *cPtr; char d = 'a', *dPtr;...
Fatih Enes
1

votes
0

answer
215

views

How to solve ERROR Executor:91 - Exception in task 0.0 in stage 20.0 (TID 20)?

I want to process Twitter data using Apache Spark + Kafka. I created a pattern for this. But when I run it, I get the following error. I searched a lot of places about this error, but I couldn't get the solution I wanted, or it didn't work. The last time I ran Spark with a smaller memory space, thin...
Fatih
1

votes
1

answer
65

views

I'm trying to install Apache Gobblin. How can I install it using Gradle?

I want to install Apache Gobblin on my MacOS X. For this, I downloaded version 0.14.0 and followed the steps here. Install Gobblin The first thing I did was this: tar -xvf incubator-gobblin-release-0.14.0.tar.gz and then: cd Users/xxxx/incubator-gobblin-release-0.14.0 and finally: ./gradlew build I...
Fatih
1

votes
0

answer
57

views

I can't use asyncHandler for error handling middleware in express

I can't use asyncHandler for error handling middleware in express, do you have alternative ? Example Code: const express = require('express'); const asyncHandler = require('express-async-handler'); const router = express.Router(); router.get('/', function (req, res, next) { //req.user created by mid...
1

votes
0

answer
83

views

How to rerender 'Select a spec' at swagger in Java platform?

I would like to rerender 'Select a spec' comboBox with different values for each user. For example: X platform users can see n different options and Y platform users can see m different options. Every platform user will use a different url extension. (E.g.: swagger.url/xPlatform and swagger.url/yPla...
Fatih
1

votes
0

answer
26

views

Is it bad when I use the route address for the key on my middleware object on express?

Is it bad when I use the route address for the key on my middleware object on express ? Example: const route = require('express').Router(); const middleware = { get: {} }; const controller = { get: {} }; middleware.get['/'] = function(req, res, next) { // Do Something }; controller.get['/'] = functi...
1

votes
0

answer
27

views

How to create an AMP page only for the specified category?

I want to create AMP pages for posts in a category that I just want, instead of the pages or articles in the entire site. I've tried a few add-ons. These add-ons create an AMP page for all pages and articles. I just want to add AMP support to a category I want. Is there a plugin that you would sugge...
Fatih Toprak
1

votes
3

answer
1.1k

views

Easiest way to get web page source code from pages that require logins — C#

So I play an online game that's web based and I'd like to automate certain things with it using C#. Problem is that I can't simply use WebClient.DownloadData() because I need to be logged in to actually recieve the source. The other alternative was to use the built-in web browser control but that do...
Fatih Koc
1

votes
1

answer
377

views

JqueryUi autocomplete problem

I've a problem with jqueryui's autocomplete.When i filter results.it's filtering word like it contains,but i want like startswith.How can i do that?(Words are coming from a xml file) Thanks. Edit:Here is my complete jq code: $(function () { function log(message) { if ($('#').val() == '') { $('#').va...
Fatih Senel
1

votes
1

answer
1.4k

views

MSBuild for speficic changesets- more than one changeset !

We are using MsBuild on TFS 2008 for building our solutions. I need your advice and help about below scenario. For example : We prepared a full build for one of our customers. After package is get ready, 2 developers want to add their development to the package. I am trying to find a solution to ad...
Fatih
1

votes
1

answer
378

views

how can i Find companies near me [closed]

I have been searching a long time that codes. i want to create my app and when user open it, program find it gps location from google maps and will show companies near him. and show the 'how to go there' as like google maps. there are a lots of apps like that. but i cannot find the source codes. do...
Fatih
1

votes
2

answer
537

views

simple front controller causes css and javascript broken in php

I'm trying to implement a simple front controller in php.. In my index.php; $parts = array_slice(explode('/',$_SERVER['REQUEST_URI']),3); if(file_exists($parts[0].'.php')) include $parts[0].'.php'; else echo 'not found'; so i typed the adress bar localhost/myroot/index.php/home, I expect to include...
Fatih Donmez
1

votes
1

answer
4.1k

views

jquery parent selector issue in ie8

Jquery parent selector is not working in IE8..It's working with other browsers(chrome,firefox,opera,safari) I'm using it like : comment = $(this).parent().parent().parent().find('.commentWrapper'); Any idea? --Edit-- Sorry for the misleading Turns out error is next line ; postId = $(this).parent().p...
Fatih Donmez
1

votes
1

answer
1.2k

views

What is the best practice to send unlimited email using PHP [closed]

We have a web site basically send daily 10K email notifications to users. I tried to use Google Apps but reach their daily limit quickly and then I create multiple accounts on godaddy and buy smtp relays (daily 250) to provide email notifications to our users.. What is the best practice to provide i...
Fatih Donmez
1

votes
1

answer
3k

views

Maintaining session in after closing UIWebView

I have an application which has a login page resides on the application server. So I open a UIWebView to handle the login. After then I want to switch to the UIView and make API calls using ASIHttp library (others may also be acceptable). The problem is; after I login server keeps session object for...
fatih
1

votes
5

answer
295

views

Joining 2 sql queries in MySQL

I'm trying to join 2 sql queries in one query. The first one gets the count of rooms per hotel. The second one gets the count of checked guests in hotel. I'm trying to get occupancy rate per hotel. SELECT hotel_id, count(room_id) FROM room group by room.hotel_id SELECT h.hotel_id, count(k.ro...
fatih
1

votes
1

answer
148

views

Dreamweaver code editor is there “Select parent tag” feature. l am not found Jedit. Is there it?

Dreamweaver is in 'select parent tag' property. Is there property in jedit? Plugin etc?
Fatih Aşcı
1

votes
3

answer
808

views

Python: Argparse does not parse long text argument

I'm writing a new CLI with pyton and using cmd and argparse libraries. When i set a argument and call it with a long text option it does not recognize it was a text and throws an exception. Here is how i use arguments: WACP:~ cli$ add -t group -n NameForNewGroup -desc 'Description for new group' -c...
Fatih Karatana
1

votes
1

answer
1.1k

views

WCF Service call from IE does not work, but from Chrome it works. Possible Proxy issue?

We have an ASP.NET application. It calls WCF Services via ScriptManager.AddServiceReference reference from javascript. Till we have converted the application to work with 'Integrated Windows Authentication', everything was great. But after converting it to 'Integrated Windows Authentication' we star...
Fatih Yarbaşı
1

votes
1

answer
618

views

Notify consumer when a queue is deleted on rabbitmq

I have some clients that are connected to an exchange via autodelete:yes. These all are publishers and consumers. But basically for now let's assume they are publising messages. Because each client has a unique binding key I can do explicit stuff on each message on the machine that consumes these ma...
Fatih Arslan
1

votes
1

answer
214

views

error on dynamic combobox asp.net when binding data

related to this post Fill ComboBox Dynamically in asp.net.. help required I follow the code from that post, but when I tried to binding data, I've got error Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. :  : 
Diwan Fatih Prayoga
1

votes
2

answer
860

views

java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Could not locate stub library in jar file

I'm new at hbase. I installed Hadoop 2.3.0 and Hbase 0.98.3 with Java 1.7.0 on Ubuntu 14.04 LTS. When I run './bin/hbase shell' command, this error occures: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Could not locate stub library in jar file. Tried [jni/ı386-Linux/libjffi-1.0.so,...
Fatih Yakut
1

votes
1

answer
661

views

ng-repeat loses its binding after I change filter expression

After I click an item in the list it, if try to type in textbox repeater is not effected. But if I don't click any item in the list it works as expected. Can anyone explain what the problem is? var angularApp = angular.module('angularApp', []); angularApp.controller('CityController', function ($scop...
fatih kiymet
1

votes
1

answer
3.3k

views

php postgres pdo fetch and select query

I am new with pdo and php so please bear with me. What I wanted is to create secure connection with db and get data. But as I checked there is not even db connection. When I inspect element I found this: Failed to load resource: the server responded with a status of 500 (Internal Server Error) I che...
fatih_turkey
1

votes
1

answer
753

views

Why can't csv documents be inserted to SOLR in failsafe way

When there is a line in csv which does not have correct fields, solr does not insert the whole document. Is there any way to tell solr ok skip that line, persist previous lines and continue with next lines after invalid line recursively. Sample C:\dev\tools\solr-4.7.2\apache-tomcat-6.0.37\bin>curl...
fatih tekin

View additional