back soft

مطالب مرتبط با «side» در back soft | نویسنده: استخدام کار

How to pass a variable inside a component in react

Vote count: 0 I have the following component: const Rec = React.createClass({ renderText() { if (hidden) { req_link = Request link } else { request_link = null } retu ( {request_link} ); }, fields() { .... if (fieldID == "hidden") { var hidden = true; } else { var hidden = false; } retu ( other stuff.... ); }, }); renderText() should show a link if the value of hidden is true, and value for this variable can only be set in fields(). So how can I pass hidden from fields() to renderText()? asked 1 min agoSarah Let's block ads! بخوانید...

ادامه مطلب

Why is Android Studio designer displaying my custom view nested inside itself, while it isn't

Vote count: 0 I've got a custom view for my app named AvatarView: AdvancedRelativeLayout is just a superclass of RelativeLayout with a small fix, nothing special there. Then, I've created a view that uses my custom view: Nothing fancy either. But in the designer view of the second layout XML, I'm getting this: The editor displays my view hierarchy like it has a nested instance of itself, while clearly there isn't. If I delete either one, they both get deleted. If I declare attributes on one of them, other also gets it. They are clearly the same instance. The only exception is...

ادامه مطلب

convert pdf to docx/doc in javascript on client side only?

Vote count: 0 Is it possible to convert a pdf file to a docx/doc file in javascript client side only? I have not found any way to do it in javascript so far. asked 51 secs agoAK0101 Let's block ads! بخوانید...

ادامه مطلب

Ionic, I have trouble with my side menu, I need the same one on every pages

Vote count: 0 I'm working on an app using Ionic and I'm a begier with it, I need to put a side menu ( the same one all the time) on every pages I have. Can you help me doing this pls ? Here is my actual code on index.html : Acceuil A Propos Thank you asked 3 mins agoSkoll Let's block ads! بخوانید...

ادامه مطلب

Workday formula with a formula inside that subtracts business days

Vote count: 0 My count of business days in end date should be, for example, May 30 to May 31 will be 2 days and May 30 to May 30 is already counted as 1 day. My problem with WORKDAY is that it counts the day from May 30 to May 31 as 1 day only. What I've think of is to subtract the result of WORKDAY with 1 business day to get my desired result. However, with my current formula, I was only able to subtract the result of WORKDAY without conceing the weekends (=WORKDAY(C2,B2-1)). So for example, column C is June 3 (Friday) and column D is 2. The output of my formula will be June 5 (Sunday) because of the subtraction, I want it to be June 6. How will I do that? Column B = Duration Column C = Sta...

ادامه مطلب

php does not echo inside an isset($_POST['###'])

Vote count: 0 All, I have a situation where php does not echo inside my isset code. Does anyone know why not? I have confirmed that 'my_id' is coming into the isset block of code by emailing it to myself I use ajax to post the my_id to the same php file where it is captured by the isset...

ادامه مطلب

How edit job in sidekiq queue?

Vote count: 0 I have a queue that happened to contain wrong parameters for the perform_async worker. I don't want to loose the jobs, but edit arguments so they will succeed next time or on forced retry. Is this possible? asked 1 min agosuperego Let's block ads! بخوانید...

ادامه مطلب

Besides BFS and DFS, what is another algorithm that can be used to determine bipartiteness?

Vote count: 0 I know we can use BFS and DFS to determine if a graph is bipartite or not. For a research paper, I need to talk about a third algorithm as well. Any answers? Much appreciated! asked 2 mins agoKarina M Let's block ads! بخوانید...

ادامه مطلب

UWP Win 10 Tinder swipe card inside Pivot?

Vote count: 0 Firstly here's the link to my minimal version project.I am trying to create a tinder swipe card kind of effect inside my Pivot Page. After referring Lightstone Carousel Was able to create one in C# and XAML which works inside a Grid.Now my problem is that custom control should come inside a Pivot element. As pivot's default manipulation overrides my control's swipe Manipulation on TOUCH devices. How can I bubble down to my custom control.Wasn't able to find Touchin Win 10 app as per @Romasz answer.Any other control suggestion with similar effect would also be appreciated. XAML...

ادامه مطلب

Determine Server Side Rendering on React js

Vote count: 0 I'm developing React and want to know how to determine that its rendered on server side or not. How to check if server side rendering is enabled? asked 56 secs agoadrian hartanto Let's block ads! بخوانید...

ادامه مطلب

`ensure` function in clojure misbehaves inside `let`

Vote count: 0 I'm wondering why the following 2 invocations behave differently depending on whether the ensure function is introduced inside or outside let: => "inside let" (def account (ref 1000)) (def secured (ref false)) (def started (promise)) => #'user/account => #'user/secured => #'user/started (defn withdraw [account amount secured] (dosync (let [secured-value (ensure secured)] (deliver started true) (Thread/sleep 5000) (println :started) (when-not secured-value (alter account - amount)) (println :finished)))) => #'user/withdraw (future (withdraw account 500 secured)) @started (dosync (ref-set secured true)) => # => true :started :finished => true @account => 500 ======== => "outside ...

ادامه مطلب

Installing Ubuntu alongside Windows 7

Vote count: 0 I have recently installed Ubuntu 13 alongside Windows 7 and everything is okay. The only problem I have is I was having only one partition on my PC and the installer didn't provide where I could create new partition. I seem to have a partion where Ubuntu was installled when I check my disk management but the partions there do not have any letters assigned to them and I have only C drive in my computer. How do I assign letters to the drives with Ubuntu or should I just work with it like this? Thank you. asked 1 min agouser2300408 Let's block ads! بخوانید...

ادامه مطلب

Yii2 date comparison not working inside rules()

Vote count: 0 I have a form, and a user have to enter a date of begiing and a date of ending. I'm using the compare attribute inside the rules method because the user can't enter a date of ending which is before the date of begiing. Here's my rules method inside the form's model : ['dateFinTR', 'date', 'format' => 'php: d/m/Y'], ['dateFinTR', 'compare', 'compareAttribute' => 'dateDebutTR', 'operator' => '>=', 'skipOnEmpty' => true,] The problem is if a user enter a date of begiing as 2016-05-18 and a date of ending of 2016-04-17, an error message is shown and the user can't submit the form. But if the user enter a date of begiing of 2016-05-18 and a date of ending of 2016-04-23 there is no e...

ادامه مطلب

Changing Colors and ClickEvent of an Item inside a ListView(Xamarin Android)

Vote count: 0 I've just started programming not long ago so please bare with me. The problem I am facing is I am unable to change the color of my Items inside the Listview to Black color. My ListView's background (Which I've removed in order to see the items inside Listview) is supposed to be white background as well. Inside my activity, I added my items using the adapter.add("Item"). Therefore I am lost trying to add an click event on that Item since it's a string. Tried : 1) Changing properties directly in the axml file. Such as android:textColor/Foreground etc. 2) Adding a color.xml file and declaring it's color. Then calling that color variable to my listview component "android:thatcoloa...

ادامه مطلب

Getting information 'randomly' placed inside a string

Vote count: 0 I need to extract information from this string (was bytes, but I decoded it): x00x00x00!broadcast "updatedirection 126.0" I need to see whether it contains broadcast, updatedirection and also see what the number is at the end. My first solutions were: data = data.split('!') data = data[1] but the symbol in that position seemed to change randomly and with no apparent patte at all. Then I tried: data = data[12:] But the string length changed all the time, so that didn't work. I am doing this for a computer science project in school where I am using BYOB (based on Scratch, a simple language to teach young people how to program) and sockets to send data between them to make a LAN m...

ادامه مطلب

Android google maps inside fragment

Vote count: 0 I know that there are a lot of questions about maps inside a fragment on stackoverflow, but all of them are outdated and are not working for me.. So, I am trying to implement google maps inside a fragment, the map is displayed, but I caot use setMyLocationEnabler(true), or add markers, or anything.. Here's my code: public class MapFragment extends Fragment { private SupportMapFragment mSupportMapFragment; public MapFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mSupportMapFragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.location_map);...

ادامه مطلب

Using Google Scripts, inside of a "for" loop and an "if" statement, I want to save the index of the values to be used later on

Vote count: 0 n00b coder here, 0 professional or school training, so have mercy. I'm trying to create two spreadsheets: one tracks student attendance at school, the other tracks their attendance at Track practice. The goal is to write a function, that I can set up as a button, that I can click that will automatically send emails to several people if the student is present at school but is absent for sports without getting excused. Right now, the whole thing is working pretty well, but I have one issue. I have a column that will read "Good" or "Bad" depending on whether the student meets the above condition. The function tus these into an array. I would like to use the index of the "Bad"'s to...

ادامه مطلب

Server side errors handling with angular-formly

Vote count: 0 I'm looking for solution on how I can display errors that the server respond, this is the respond for every invalid submission so I want to make the error handler in the app level and not in a controller. I want to display the errors both on the FORM level and on the field level. I have a REST API that in case of error retu the following JSON object: { "message": "Validation error: Validation notEmpty failed,nValidation error: Validation isEmail failed", "errors": [ { "field": "useame", "message": "Validation notEmpty failed" }, { "field": "email", "message": "Validation isEmail failed" } ] } How can I create a service that display the errors in case there is any? Thanks asked ...

ادامه مطلب

Javacpp: Unable to link shared library inside a jar

Vote count: 0 I'm trying to link a jar archived with the shared library and the javacpp generated jni shared library. Is that doable? I have 3 jar - javacpp.jar - lib.jar (.h file, libCube.so, libjniJavaCube.so) - Cube.jar (classes) I have no problem ruing the problem when I dropped the shared libraries on the same level as my jars. However, I can't seem to be able to link them when they are packed in a jar. Thoughts anyone? I read this link JavaCPP, UnsatisfiedLinkError when native library is archived in JAR but Samuel is a little vaue on the "link" parameter and how to link if libraries are packed in jar. :( asked 1 min agoDerrick Wong Let's block ads! بخوانید...

ادامه مطلب

Edit Text inside Alert Dialog Builder

Vote count: 0 I have an Alert Dialog inside a Fragment: AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), com.yanay.yanay.apps.odds.R.style.AppCompatAlertDialogStyle); LayoutInflater inflater = getActivity().getLayoutInflater(); builder.setView(inflater.inflate(R.layout.dialog_numberpicker, null)); View view = inflater.inflate(R.layout.dialog_numberpicker, null); final EditText editText = (EditText) view.findViewById(R.id.numberpicked); if (editText.getText().toString() != null){ numberpicked = editText.getText().toString(); Log.d("Text Picked", numberpicked);} Boolean reverse = true; String title = ""; String dialogMessage = ""; String buttonTitle = ""; if (!didStart && r...

ادامه مطلب