join table technique using codeigniter
◷
تاریخ انتشار: 1395/2/25 | ساعت: 10:29
Vote count: 0 Guys on my database i have three tables containing data as shown on a link below. On tables class and subjects, ssid and csid are foreign key from members. I joining tables using left join as shown in model code shown below. when i echo first_name, su ame and class_name for John claudi...
How do I get the actual dimensions (i.e., sans-black bars) of a YouTube video using the JS iframe API?
◷
تاریخ انتشار: 1395/2/25 | ساعت: 10:29
Vote count: 0 I need to know the actual width and height of a YouTube video embedded in my website. Here's a crude illustration. I've searched through the API docs and I haven't found a way to do this. I've noticed the player variable contains a method called showVideoInfo() which overlays exactly t...
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
◷
تاریخ انتشار: 1395/2/25 | ساعت: 10:29
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 ...
TreeMap HELP! - Java
◷
تاریخ انتشار: 1395/2/25 | ساعت: 9:28
Vote count: -1 I've been working endlessly on this project. I'm suppose to write the following method, but I'm not sure how to approach it. The following are the methods that I'm stuck on. public String generate(String symbol){}: Use the grammar in the rules map to randomly generate an occurrence of...
What is a functional approach to perform millions of unique tranformations in Scala?
◷
تاریخ انتشار: 1395/2/25 | ساعت: 9:28
Vote count: 0 I have an object Person, this object goes through millions of unique transformations and these transformations have to be done in order, sequentially. Traditionally, I can do this: var bob = new Person() birth(bob) oneYearOld(bob) middleSchool(bob) highSchool(bob) // ...million more tr...
Matlab System generator: error with black box
◷
تاریخ انتشار: 1395/2/25 | ساعت: 9:28
Vote count: 0 I using Xilinx system generator blocks in Matlab. I simply using only a black box with a gateway in and gateway out. The code for the black box is very simple and work correctly with ISE design suite library IEEE; use IEEE.STD_LOGIC_1164.ALL; use ieee.numeric_std.ALL; entity test44_vhd...
Vue Js: Use directive in component with vue-loader
◷
تاریخ انتشار: 1395/2/25 | ساعت: 8:10
Vote count: 0 I'm using vue-loader and I'm facing a problem because I have created a directive in the main app.js to use in a component but is not possible to use that directive in the component. I'm receiving this message: vue.common.js?e881:1014 [Vue wa ]: Failed to resolve directive: swiper (foun...
Refactoring Lookup Function
◷
تاریخ انتشار: 1395/2/25 | ساعت: 8:10
Vote count: 0 I'm trying to refactor this function, but have hit a wall. What the function attempts to accomplish is find whether or not a contact exists within a JSON object, and if it does, determine if the second parameter provided is a property that exists on the specified object. var contacts =...
Modofying a file at a certain position without using the temp file trick and in-memory data keeping
◷
تاریخ انتشار: 1395/2/25 | ساعت: 8:10
Vote count: 0 The reason why I decided to asks this question is that I've been recently working on a data mining project where I have massive raw data files in plain text format and by the word massive I really mean the size of the files are so big that you can't simply browse them using any text ed...
Apache in mode proxy redirect user to specific url
◷
تاریخ انتشار: 1395/2/25 | ساعت: 7:08
Vote count: 0 I have a problem with my apache in reverse proxy mode I want to achieve something and I really don't know how to do it. I have a web application ru ing on the port 8443 and a apache server in reverse proxy mode ru ing on the port 443. The application use the same login form in order to...
Application Insights Reporting Duplicate Events for each Server Request
◷
تاریخ انتشار: 1395/2/25 | ساعت: 7:08
Vote count: 0 I have an API App ru ing under Azure App Service, with Application Insights installed to track server side telemetry of API calls. When viewing Application Insights in the Azure portal, I am seeing two events for every one server call. Each event has an exact duplicate with the same ti...
Can i use this fitness function?
◷
تاریخ انتشار: 1395/2/25 | ساعت: 7:08
Vote count: 0 i am working on a project using a genetic algorithm, and i try now to formulate a fitness function, my questions are : what is the effect of fitness formula choice on a GA ? it is possible to make the fitness function equals directly the number of violation (in case of minimisation) ? ...
Cloudflare & Heroku (DNS): An A, AAAA or CNAME record was not found
◷
تاریخ انتشار: 1395/2/25 | ساعت: 5:58
Vote count: 0 I have tried to apply free ssl service provided by Cloudflare to my heroku app. Although I registerd my domain about 4 days ago, it doesn't work. When I try to access my domain (example.com and www.example.com) with Chrome, This site can’t be reached example.com’s server DNS address co...
jquery not working with infinite scroll
◷
تاریخ انتشار: 1395/2/25 | ساعت: 5:58
Vote count: 0 I'm new to jQuery and web developing but I'll do my best to give you the best damn question that you can ever have. I'm using jQuery plug in to perform infinite scroll in a web-page that will only display images. This plugin is from Infinite Scrolling though images. I have basically co...
Getting Facebook Picture After Authentication
◷
تاریخ انتشار: 1395/2/25 | ساعت: 5:58
Vote count: 0 I'm trying to automatically get the user's profile picture when authenticating their Facebook addFacebookInformationToProfile() { if (Meteor.isServer) { // This will only merge in information the first time, then ignore it once the flag is true const user = Meteor.user(); let use ame =...
MyBatis-CDI + Wildfly + JTA + requiresNew
◷
تاریخ انتشار: 1395/2/25 | ساعت: 4:53
Vote count: 0 I am trying use mybatis-cdi within Wilfly and I need to run part of method in separate transaction - see following snippet: @Stateless @TransactionManagement(TransactionManagementType.CONTAINER) public class ItemService { @Inject @Mapper ItemMapper mapper; @TransactionAttribute(Transac...
What's the meaning of this syntax and what happens after it's called?
◷
تاریخ انتشار: 1395/2/25 | ساعت: 4:53
Vote count: -2 I was experimenting with QDBus and found that qdbusxml2cpp produces a file that contains a QDBusAbstractInterface sub-class with this function as it's member: static inline const char *staticInterfaceName() { retu "com.example.gui"; } what's the meaning of this syntax and what happens...
convert a JSON to a string array in typescript
◷
تاریخ انتشار: 1395/2/25 | ساعت: 4:53
Vote count: 0 I feel like I have quite an easy question but I just don't get to the answer... I parse the .text() of a response from my server with JSON.parse into JSON. And i actually can access the values of that JSON with: this.temp[0].name. Now i just want to iterate over that JSON and push the ...
Nested mongo query
◷
تاریخ انتشار: 1395/2/25 | ساعت: 3:24
Vote count: 0 Here is what the data looks like: { "_id" : { "item" : "1", "state" : "something" }, "things" : { "ordered" : 2, "cost" : 123 } } I try to query for all doc of item 1, there are many state for that item. I know i can get that record using db.orders.find({_id:{item:"1", state: "somethin...
Auto decrypt multiple LUKS Devices with Mandos
◷
تاریخ انتشار: 1395/2/25 | ساعت: 3:24
Vote count: 0 I played around with Mandos to automatically open an encrypted root device. I wanted to setup an encrypted btrfs raid 1 (sda1 and sdb1: LUKS). The first device is decrypted correctlly, but the second will noch be opened. Is there a way to do this? asked 49 secs agouser2638109 Let's blo...