Posts

php - Laravel Query Builder to Eloquent -

मेरे पास निम्न PHP कोड है: $ users = DB :: table (' उन '); यदि (इनपुट: है ('मिनएज') और amp; इनपुट: है ('मैक्सएज')) ($ उपयोगकर्ता = $ उपयोगकर्ता- & gt; जहां बीच ('उम्र', सरणी (इनपुट :: मिल ('मिनएज' ), इनपुट :: मिल ('अधिकतमएज')); } और अगर (इनपुट :: है ('मिनएज')) {$ users = $ users- & gt; जहां ('उम्र', '& gt; =', इनपुट :: मिल ('मिनेज')); } और अगर (इनपुट :: है ('अधिकतमएज')) {$ users = $ users- & gt; जहां ('उम्र', '& gt; =', इनपुट :: मिल ('अधिकतमएज')); } यदि (इनपुट: है ('सेक्स') और amp; इनपुट: प्राप्त करें ('सेक्स')! == "0") {$ users = $ users- & gt; जहां ('लिंग', '=' , इनपुट :: मिल ('सेक्स')); } $ उपयोगकर्ता = $ उपयोगकर्ता- & gt; पृष्ठांकित करें (15); वापसी देखें :: बनाना ('search.result', कॉम्पैक्ट ('उपयोगकर्ता')); हालांकि मैं एलोक्वायेंट के माध्यम से पुनः प्राप्त करना चाहूंगा...

facebook - FB.ui not returing post id in response -

I'm finding to follow this thread whether or not the user shares the link given to me Allow the user to reach the next level when they share. How am I doing this: FB.ui ({display: 'popup', method: 'share', href: 'url-here',} , Function (response) {console.log (response.e2e) if (response and response) {$ .ajax ({url: ajaxurl, type: 'post', data: {action: 'unlock_om_gmap'}, success: function ( Race) {}});}}); But every time its return object {e2e = "{" submit_0 ": 1406412308276}"} No post ID is anyone familiar with this issue? How do I check whether the user has shared my link or not? As I mentioned in the comments, to determine whether an open graph story Shared, you will need to check the property of the object_id in the response data, but it will only be available if the user is logged into your app using Facebook and given the code publish_actions

ios - Build Errors Using Cocoapods and AFNetworking -

Image
The first time I have used cocopod and it is not a good experience so far. I'm trying to build my project and I'm getting errors below: I have not got anything which googled and googled and googled, but useful. Does anyone tell me why this is happening? It is very disappointing because I have spent hours in setting up Kokopod and there is no luck! Edit: More detailed screenshot of error I have seen this issue before that when I have Libscale 3.0.dylib in my project Do not include the structure Go to Goal - Build Settings - Linked Frameworks and Libraries - Add and Clear and Clear that Framework

java - Using a random operator many variables -

I want to add a random operators so that I can randomly add / subtract / multiply / divide multiple variables. The code below does not work, I think this is because randomly generated operator is a four which is actually a value, so it has been added instead of being used as an operator. Anyway I'm new on this and any help would be great thanks! class squares {public static zero main (string [] args) {classb x = new classb (); Int a = 1, b = 2, c = 3, d = 4; Integer answer; // Trying to get answer / Answer = A (+, -, *, /) B (+, -, *, /) C (+, -, *, /) D / y = answer + a + X.randomOperator () + B + x.randomOperator () + c + x.randomOperator () + D; Println ("answer =" + answer); }} I create random operator sign in a different class. import java.util.Random; Public Class Classby (Public Care Random Operator) (Random RV = New Random); Int apple = RV.NextText (3); Four Operators; Switch (Apple) {Case 1: Operator = ';'; Breakdown; Case 2 : Operator = ...

c# - Modify the behaviour of JSON.NET to serialize a collection of objects to an array of IDs -

I want to modify JSON.NET so that when I want to serial a model from my API, An array sends an overall collection object. For example: class employee {public iconging Then when I send it via webapp request. Creatorespress (HTTTPTAS code.OK, new employee ()); Instead of: {"address": [{"id": 1, "location": "XX", "postcode": " XX "}, {" id ": 2," location ":" XX "," postcode ":" XX "}]} This sends just like this: {"addresses": [1,2]} I think this application should be wide and I do not want to modify it in a specific location. How do I use JSON.NET serializer? You can do that as a result you want to use a custom like this: Class IdOnlyListConverter: JsonConverter {Public Override Bull CanConvert (Type Object Type) {Returns (Typ (IEnumerable) .IsAssignableFrom (objectType) & Object Type! = Typef (string)); } Public override zero Wri...

google cloud endpoints - Unable to create Android Client ID in App Engine dev console -

I am trying to create a new Android client ID for a Google App Engine project dragon backend. I thought I was facing a bug with App Engine's new Dev console, but the error has also come with the old console interface. STEP: In my App Engine Project, I click on "Credentials" under "API & AP" title "ATH". Click the "Create new customer ID" Selected: Android app installed Place in my Android application package name: ca.ajwest.pythonapi Paste the SHA1 key created by the key toll ( I'm using a release keystore). Enable deep linking (although the problem still occurs when set to disabled) "Create Client Result: When the lightbox is faded, I have a new Android client ID with SHA1 and package name that I provided. However, while navigating away from the page or refreshing the credentials page, SHA1 is no longer listed on the entry, and Deep Linking is set to disabled (even if I have enabled it or not). What...

git - Linux kernel configuration - enabling CONFIGURE_LOCALVERSION_AUTO -

I recently cloned the Colonel of Legs Torvalds. I want to build and install this kernel in my laptop. But because I want to use "Colonel-Day", I want to enable the CONFIGURE_LOCALVERSION_AUTO option. But how should I enable this option, I do not know this. Where to get this option? menuConfig or xconfig , to the Linux kernel To configure these interfaces are used modified. The config file has been disappointed directly in your kernel source tree inside create menuconfig or make xconfig - anybody likes you. On the kernel configuration menu you will find the General Setup option, in this option to automatically append the version string , toggle it to enable / disable it.