text
stringlengths
3.09k
21.4k
Нужна ли высшая математика в веб-программировании? Я понимаю, что она нужна например при разработке трёхмерных игр и т.п. А если я решу заняться двумерной графикой, мне необходимо изучить высшую математику и геометрию, или не обязательно? Уровень моих знаний по математике пока равен почти нулю. По геометрии — так же. Э...
Copying metadata and code from one Production org to another How do I copy(for want of a better word) metadata (i.e. Objects, Workflows, Validation rule etc), and code (Apex, Visualforce, Triggers) from one Production org to another production org? Is this even possible? I know that Change Sets won't help here since t...
Can I compare Profiles? We have many profiles in our org, and I suspect that some of them are redundant because the person who originally set them up didn't seem to understand the purpose of Profiles (confusion with Roles, perhaps). I would like to consolidate and clean them up, but I need to be able to do a diff on th...
CSS / HTML Background color for a div not reaching bottom of page when height = 100%? My sidebar for a website I'm trying to make is supposed to reach the bottom of the page regardless of how you resize the page, and it worked for a week until now when for some reason the bottom-left is poking out like so: image of pro...
Using APEX to assemble HTML Letterhead Emails I am looking to assemble an HTML Letterhead Email Template for an email service integration project. There are two sObjects that hold this information - EmailTemplate and BrandTemplate. BrandTemplate.value = broken HTML (styles aren't associated to tags) Letterhead with CDA...
Не работает Last(L) модификатор mod_rewrite Доброго времени суток коллеги, собственно вопрос в следующем... У меня прописано следующее правило: RewriteRule ^.*$ public/index.php [L] Это правило делает переадресацию всех запросов на фронт контроллер... Тут никаких проблем нет и все чудесно работает. Проблема, почему-то,...
Is there a way to access SFDC API log? I'm looking for a way to monitor API calls. Specifically when an API update came through. We have a hosting service that sends trial user info to the SFDC lead object through the SFDC API. There are questions as to whether some of the calls are reaching SFDC. Is there a way to see...
Реализация анимации и наложения моделей 3D Доброго времени суток, в 3d графике практически полный 0, приветствуются развернутые ответы как для новичка (а еще лучше - новичка-идиота :)) Как именно реализовывается анимация 3d модели с т.з. 3d моделлера (исключительно абстрактно) и как именно это используется в коде, как...
How can I install Ubuntu on an iPad? I'd love to install Ubuntu as a standard standalone on my ipad, is there any way to do so? lol, http://www.youtube.com/watch?v=XsD15O0hpDI @mateo_salta He's using VNC and connecting to a remote computer. You noticed at 0:05 how the screen rotated iPad-style? that is why the "lol"...
What is a concise function that formats a (String) decimal into a currency format in Apex? goal: write the most concise function that formats a (String) decimal into a currency format in Apex. Feel free to trainwreck the code for points, I've kept mine exploded for readability purposes. Is this an actual problem you a...
Can report data be accessed programatically? Is there any way to access existing reports and their data to be used in apex? Sure, I could write the SOQL manually but if I want it to mirror a specific report I would have to make code changes anytime the report was updated. I don't think it can currently be done but I'd...
Copy Production data to Developer Sandbox I'm on Enterprise Edition and only have a developer sandbox... (I really miss my Full Copy sandbox and UE). I need to do some tests against "real" data. I have a strict rule of not testing or developing in Production. This means I need to get a sample of my Real data in product...
Тесты производительности. Серверные языки. СУБД Затеял стартап своими руками. Конечно, хочется сделать все по максимуму круто. Не могу найти в сети толковой информации о сравнении серверных языков (платформ) типа php, ruby, pyton и т.д. В первую очередь? Посмотрел бы на тесты производительности, но и любой другой анал...
Реализация в Java сигнатуры метода? Как этот метод реализовать на java. Нужен для того чтобы проверить кодировку файлов на битовом уровне. Код: unc ::IsUTF8(unc *cpt) { if (!cpt) return 0; if ((*cpt & 0xF8) == 0xF0) { // start of 4-byte sequence if (((*(cpt + 1) & 0xC0) == 0x80) && ((*(cpt + 2) & 0xC0) == 0x80) &&...
In a game programming project, how do I handle multiple items with multiple instances? Assuming that I have a 2 player game that has multiple weapons in it. At the start of the game, the players can choose their own weapons and equip it to their characters. So if Right now, I have the following code to implement the sa...
How to export debug logs? I spend my days waiting on the Force.com Console and it makes me crazy, I have a pretty nice machine and it still chokes on the details sometimes. Anyways, I saw Loggly had given a presentation at DF '11 and is presenting again this year Dreamforce '12. However, it seems like they're presentat...
Как именно реализованы процессы в Erlang? Вопрос несет сугубо академический характер. Собственно: Erlang is designed for massive concurrency. Erlang processes are light-weight (grow and shrink dynamically) with small memory footprint, fast to create and terminate and the scheduling overhead is low. Какие условия долж...
HotPlug my USB mouse Whenever I try to plug in my optical mouse after my Ubuntu 10.04 has booted, the OS doesn't seem to Hotplug my mouse. For using the mouse I would need to reboot the OS. Is there any script which can activate my mouse? The output of lsusb command is Bus 008 Device 001: ID 1d6b:0001 Linux Foundation...
Дизайн сайта Через сколько лет дизайн, построение блоков и т.д. на сайте устаревает. Например сейчас оно новое, через сколько лет оно будет старое и уродливое? Раз во сколько лет на сайте надо делать редизайн меняя архитектуру и т.д. ? Не буду швыряться ссылками с гугла, просто скопипастю. » Иногда возникает вопрос: Чт...
Acceleromter service does not work on Android TV Box I am developing an application which run Accelerometer services in background. Inside this Accelerometer service i fetch data from server. But the app works fine on Mobile Phone but it does not work on Android TV Box. Here is the code public class AccelerometerServi...
Thread-safe очередь, и все-все-все Опять у меня идиотский вопрос (простите, но впадаю в старческий маразм, "бабушка ничего не помнит"). Дано: поток данных поступает в очередь (com-порт). Другой поток разгребает эту очередь, складывает разобраные данные в базу. Всё в рамках одного приложения. Вопрос: что юзать в качеств...
Como criar Permissões (Permissions) de verdade ao invés de simples Papéis (Roles) no Spring Security? Estou desenvolvendo um módulo de Controle de Acesso para minha aplicação web usando o Spring Security (3.1.4 - a última release) e esbarrei numa limitação no mecanismo de Autorização, pois o framework somente prevê o u...
Qual o meio mais apropriado para se concatenar strings? Existem diferentes métodos para concatenar strings, como Concatenando com o operador "abc" + str Formatando String.Format("abc{0}", str); Utilizando o StringBuilder new StringBuilder("abc").Append(str); Utilizando o método Concat de String String.Concat("abc", st...
Необработанное исключение в ***.exe: 0xC0000005: нарушение прав доступа при чтении При отладке вводил: a,b,c,d При использовании For вместо while (j n - то он не выполниться. если условие истинно, то код внутри будет выполнятся бесконечно - код внутри цикла не изменяет условия. Это нужно осмыслить и переписать/дописать...
How can you remove Unity? In previous versions of Netbook Remix I was able to disable the netbook-launcher and just have a blank desktop. I liked the speed of the Netbook version but not the interface, this worked well for me. How can I remove Unity? It would also be useful to have removal instructions for all version...
What is a good set of naming conventions to use when developing on the Force.com platform? I've looked in the Apex developer's guide and a saw the Naming Conventions section which has basically only has this: We recommend following Java standards for naming, that is, classes start with a capital letter, methods start ...
Como posso otimizar um método recursivo para encontrar ancestrais? Eu tenho uma classe Pessoa que possuí relacionamentos para seu pai e sua mãe (esses a qualquer momento podem ser nulos). Em determinado pedaço do meu código eu preciso descobrir se uma pessoa é ancestral da outra. Consegui chegar à uma solução recursiv...
Can we determine if the Salesforce instance is production org or a Sandbox org? I am looking for the most efficient way of identifying the type of org (Production or Sandbox) via Apex code. URL scraping is not useful to me, since I'd like to get this information inside a trigger where URLs don't make sense. Thanks! Yo...
Горячая клавиша У меня на сайте стоит паблик скрипт снега Я хотел бы сделать что бы при нажатии на клавишу N снег перестал идти, а при повторном нажатии что бы вновь пошёл. в JS очень слаб, поэтому решил обратиться за помощью сюда. var snowStorm = (function(window, document) { // --- common properties --- this.fla...
Стоит ли показывать заказчику тестовый сайт? Всем здравствуйте! Я фрилансер и занимаюсь Front end разработкой сайтов. У меня есть тестовый сайт где я тестирую верстку. Как Вы думаете, стоит ли заказчику давать ссылку на тестовый сайт чтобы он посмотрел на верстку до оплаты или лучше после оплаты? Какова вероятность тог...
Ruby openssl version is different than system's openssl I've used rbenv to install ruby 2.3.0. After installation ruby is using different openssl then what I've in my os. How can I resolve this? [cp@cloud pkgconfig]$ ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION' OpenSSL 1.0.1e 11 Feb 2013 [cp@cloud pkgconfig]$ ope...
Kindle for PC via Wine I really want to get the Kindle PC program running on my computer so I can download, read, and manage my e-books. I realize that Calibre can be used to manage e-books and I do have that downloaded. However, Amazon won't let me download ebooks unless my PC is registered in their Kindle program and...
How can I schedule a nightly reboot? I'm having some periodic issues running a particular application, XBMC. If I use XBMC regularly I don't seem to have any issues but if I leave it unattended for more than about 12 hours I need to reboot to get it working again. I know a scheduled reboot is NOT the answer but until I...
How to query more than 50000 records in apex and bind it in vf page in jqgrid and paging? How to query more than 50000 records (78000 records) in apex and bind it in vf page in jqgrid and implement paging in it? I tried querying through SOQL and assigning it to list.. Am unable to query more than 50000 records. I trie...
is it possible to know the rows result of a filter in a Google Spreadsheet? I want to know the rows result of a filter in Google App Script but I dont achieve obtain them, I always obtain all the rows of the selection or the sheet. I've investigated and it seems that it is impossible with this API. Do you know if it is...
How do I install Ubuntu? I would like to see a full how-to guide on how to install Ubuntu. related: How can I install Ubuntu without removing Windows? If you cannot boot into Ubuntu after install it, take a look here: http://askubuntu.com/q/88384/62483 For anybody coming to this question with Windows 8 pre-installed...
Using gruntjs to optimize images older than X days I just found Grunt this morning while looking for some ways to compress images on a Discourse forum. Is there a way to specify a date range to Grunt? I would like to be able to run a cron once a month and tell Grunt to compress any images in a folder including subfolde...
Qual a forma correta de se fazer uma substituição regular em JavaScript para todas as ocorrências encontradas? Qual a forma correta de se fazer uma substituição regular em JavaScript para todas as ocorrências encontradas? A forma como faço atualmente: var i = 0; while ((i = str.indexOf("_", i)) != -1) { str = str.repl...
Como enviar e-mails somente com o básico de HTML5 Estou construindo um website para ser hospedado em um servidor que não tem suporte a PHP ou outra linguagem server-side. Preciso enviar os valores de um formulário de contato por e-mail e meus recursos são apenas HTML5 e JavaScript. Existe alguma forma de fazer este e...
Como gerar um valor por extenso em português no MS Office Excel? Numa planilha do Excel, tendo uma célula com um valor numérico, como calcular seu valor por extenso? Por exemplo, na célula A1 tenho o valor R$ 587,32. Preciso de uma função que passada a célula como parâmetro, retorne o texto: Quinhentos e oitenta e set...
Moving from Windows to Ubuntu. What programs to use? Maby my question is not related to this forum, but I want to ask. I want to change my OS from Windows XP to Ubuntu 10.6. But I like some programs in Windows, so is there a GOOD programs in Linux(Ubuntu) to change this list of programs? And I'll be apprishiated for so...
Por que não devemos usar funções do tipo mysql_*? Uma dúvida muito comum é por que devemos parar de usar funções do tipo mysql_* ? Por exemplo mysql_query(), ou mysql_connect(). Vejo que muitas pessoas as usam, ou param de usar mas não sabem o real motivo. Por que elas deveriam parar de ser usadas uma vez que funcionam...
For loop runs length of array but displays one element array.length times I'm working on a project for freeCodeCamp and I'm running a for loop through an array of twitch.tv users. I've created a table and for each username in my array, it's supposed to add the new row, fill it with the data, and move onto the next elem...
Como utilizar traduções em Qt diretamente com QApplication::tr() Em uma aplicação desenvolvida em Qt eu tenho uma classe não visual (isto é, que não é herdada de um QWidget) mas que manipula strings de texto que devem ser apresentadas ao usuário. Para utilizar o mecanismo de tradução do Qt, eu defini todas as strings u...
Como resetar a formatação do CSS? Não foi raro passar por situações em que o próprio browser interfere na folha de estilo adicionando parâmetros defaults, como tamanho de margens e fontes dos cabeçalhos, altura padrão da linha. Existe alguma maneira de resetar uma CSS, ou seja, "zerar" todos os parâmetros para prevenir...
Keyboard shortcut for pasting the primary selection Is there a standard or conventional keyboard shortcut for pasting the primary selection? I'd like to select some text and go to another app to paste without trashing my clipboard contents. I'd rather keep my fingers on the keyboard than move to the mouse, find the poi...
Подключение в UICC с использование библиотеки Seek-for-android Здравствуйте. Занимаюсь разработкой приложения использующего UICC на которой присутствует Java Card Applet. Для этого я использую библиотеку Seek-for-android. Для теста использовал Пример приложения с сайта библиотеки https://code.google.com/p/seek-for-and...
How do you manage passwords across SFDC orgs? As an ISV partner I find myself juggling a bunch of username/passwords for my SFDC orgs. I have our "real" org where we do our own CRM related stuff. I have multiple dev orgs where we create our managed packages. We have orgs we use to demo. We have the partner portal. Some...
É recomendável usar o Linq em vez de SQL? Para evitar abuso de string e evitar problemas de injeção de código pode ser uma boa pratica o uso do Linq. Também posso imaginar que por exemplo, que seja mais devagar. Quem já usou o Linq para comunicar com banco de dados, o recomendaria? Em que contexto? Eu estou no proce...
How do I get the Apple Wireless Keyboard Working in 10.10? So I've gone and bought a Magic Mouse and Apple Wireless Non-Numeric Keyboard. The magic mouse worked out-of-the-box almost perfectly, except for the forward/back gesture which still isn't functioning, whereas the keyboard didn't. It has constant trouble with t...
Таблица истинности для выражения [javascript] Привет Таблица истинности function ButtonClick() { mm = document.forms.myform.input_field.value; document.write("Таблица истинности выражения: ", mm) document.write(" "); for(var i = 0; i Введите выражение: При заполнении используйте операции: ...
Como posso enviar um e-mail pelo GMail? Quero criar uma aplicação para enviar e-mail e gostaria de usar uma conta do GMail para enviar estes e-mails. Como posso fazer isso? Para enviar e-mails você precisa incluir using System.Net; using System.Net.Mail; Crie um objeto MailMessage e preencha as propriedades: MailMess...
Como converter uma resposta em JSON para um objeto em C#? Estou fazendo um request e recebendo um JSON como este: { "id": "1000000000000000", "name": "BrunoLM", "first_name": "Bruno", "last_name": "X", "link": "http://stackoverflow.com/users/340760/brunolm", "username": "brunolm", "bio": "...", "gender": ...
Como inverter a posição de uma div(e seu conteudo e atributos) com outra div? Desejo fazer isso com jQuery, qual a forma mais elegante de se fazer isso? Supondo o cenário a seguir, como ficaria se eu quisesse trocar de posição a div2 com a div3? (não postarei o meu código real que é muito grande) Conteúdo da D...
Realtek RTL8111E8168B Ethernet driver doesn't work Fortunately, I have an old PCI ethernet card that works fine. But unfortunately my LAN card embedded in my Asus (P7H55-M/USB3) motherboard doesn't work. Who could me help? I get this error when starting the "Installation" step of hhlp's answer: /home/henry64/r8168-8.0...
Como calcular a idade de uma pessoa no SQL Server? Suponha a tabela Pessoa e o campo DataNascimento. Em uma consulta SQL, qual a melhor forma de se calcular a idade de uma pessoa em formato inteiro na linguagem T-SQL do SQL Server? As respostas que usam datediff calculam a idade matemática, mas a idade como é aceita e...
Criteria API - Hibernate vs JPA 2 Vou tentar frasear essa pergunta da maneira menos opinativa possível no espírito da stackoverflow em inglês. Para um novo projeto preciso tomar a decisão entre usar a API do JPA 2 ou do Hibernate (enquanto é tecnicamente possível misturar as duas, por razões arquiteturais teremos que e...
Can't Deploy Due to Errors in 3rd Party Packages Short Version: I am getting errors in 3rd party unmanaged packages that are preventing me from deploying any code to our production instance. I'm using eclipse as my IDE is their anyway to bypass the unrelated errors without having to fix / un-install the 3rd party code?...
Como exportar uma página HTML/PHP para PDF Como exportar uma página HTML para um ficheiro PDF? Tendo um documento padrão onde possa mudar variáveis dentro desse template para depois exportar essa página para um ficheiro PDF em formato A4, sem estragar o layout. Exemplo de código: $conteudo_html = ' '....
Como fazer um ocupar toda a largura da página mas deixar uma lacuna de alguns pixels de cada lado em CSS? Estou tentando fazer um cabeçalho que deveria preencher toda a largura da página, mas deixando uma lacuna de 5px em cada lado. Por exemplo: | ::::::::::::::: | | ::::::::::::::: | Nesse caso os pipes são a largu...
Quais as implicações de não declarar variáveis em PHP? Em php posso fazer isto sem declarar/defenir variáveis: echo($foo); //resolve: vazio, sem nada $foo++; echo($foo); // resolve: 1 Usando var_dump() o mesmo dá, respectivamente NULL e 1. Se eu usar settype($foo, "integer"); antes , o mesmo dá 0e 1. A questão é, exis...
How does the 'delete' operator actually work behind the scenes in C++ in dynamic memory allocation (heap)? I am not getting how the "delete" operator is actually implemented behind the scenes in C++. For example: class Node{ int i; Node *left,*right; }; int main() { Node* a = new Node; // somehow the object 'a' is ...
Como detectar o encoding da página com PHP? Queria criar uma função que salvasse os dados no banco sempre no encoding correto (meu banco é UTF-8) de acordo com o encoding detectado. Existe alguma função nativa do PHP pra fazer isso? Há alguma outra forma? O que você está tentando salvar? Dados fornecidos pelo usuário?...
Dependent multi-select pick lists I'd like to add 3 picklist fields to an Account object in the following manner: Parent multi-select Picklist field (let's call it ParentMultiSelectField__c) A dependent mutli-select Picklist field (let's call it ChildMultiSelectField__c) is dependent on the values in ParentMultiSelec...
Qual é o modo mais eficiente para implementar GroupBy em Javascript? Estou tentando implementar um GroupBy com estes parâmetros function GroupBy(keySelector, elementSelector, comparer) { // keySelector = function(e) { return e.ID } // elementSelector = function(e) { return e.Name } // comparer = { Equals: function(a...
Simple Trigger, less simple testMethod; can't deploy (works fine in Sandbox) This is scaled down code from SF's own examples on how to find dupe email addresses. I have purpose commented out the Alert for now. There is a more elaborate trigger (that also works in Sandbox) but this keeps things simpler. The problem is i...
Programar em C para ARM Começarei um projeto em C que terá como target uma placa Colibri T20, com processador NVIDIA Tegra 2 ARM, rodando uma versão leve de Linux. Gostaria de saber se, além de ter que utilizar um compilador cruzado compatível com o processador, eu preciso me preocupar com algum outro detalhe específic...
Arquitetura de aplicação PHP instalável Estou tentando melhorar minhas aplicações PHP. Neste objetivo gostaria de criar um instalador para uma aplicação web, um site por exemplo. Já conheço pacotes linux como rpm e deb, não é disso que estou falando, pois alguns servidores não tem acesso ao bash ou a comandos como exec...
Can I downmix stereo audio to mono? I have one speaker next to my computer which I use mostly as a headphone amplifier. On occasion I need to use it as a loudspeaker. Is it possible to quickly change the audio output from stereo to mono, either system-wide or as a plugin for a media player? As a side note I can do th...
Firebase lazy loading with rxjs I have the following code, to get the last chast messages: const pageSize = 10; this.notifier = new Subject (); let last: Observable ; let infiniteList = Observable // Use zip to combine the notifier's emissions with the last // child value: .zip(this.notifier, Observable.defer(() ...
Qual a forma mais completa de instalar python no Windows? Sei que essa pergunta pode ser interpretada como uma discussão, por isso a fiz com a palavra "completa" ao invés de "melhor". Sou usuário python no GNU/Linux e aqui ele vem mais ou menos pré-instalado. Ainda assim, posso usar o pip pra instalar ou remover novos ...
ClassNotFoundException while trying to load class from external JAR at runtime I'm trying to load a class from JAR represented as a byte[] array at runtime. I know two things about class to load: 1. it implements "RequiredInterface" 2. I know it's qualified name: "sample.TestJarLoadingClass" I found the solution in whi...
Qual a melhor maneira de se representar um Endereço? Ao modelar endereços em uma aplicação, ingenuamente segui a forma normalizada ao representar no BD (i.e. tabelas separadas para país, estado, cidade, bairro etc - joins para todo lado), e na interface de usuário (html) coloquei um campo separado para cada parte desse...
Image upload to chatter post I am trying to send image to chatter post from my Android app and I am using below code to do this. String url ="https://ap1.salesforce.com/services/data/v25.0/chatter/feeds/news/me/feed-items"; HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost; MultipartEntity reqEntit...
Diferença na utilização Indice Unique e Unique Constraint no MySQL? Gostaria de saber qual o comportamento/diferenças entre um Indice Unique e Unique Constraints para o MySQL ? Muitos devem pensar que isso não faz diferença no banco de dados, mas faz! E não só para o DBA/Administrador, mas para os desenvolvedores també...
Por que variáveis locais são evitadas no Arduino? Em diversos exemplo de código para o Arduino noto que quase não há uso de variáveis em escopo local. Um dos exemplos presentes na IDE: Analog > AnalogInput: int sensorPin = A0; int ledPin = 13; int sensorValue = 0; void setup() { pinMode(ledPin, OUTPUT); } void loop(...
Не могу создать базу данных через Java Всем привет, подскажите решение моей проблемы, я пытаюсь через JTextField передать название базы данных что бы выполнилась команда create database + name Вот класс фрейма где вводится имя БД пароль логин и путь) /* * To change this template, choose Tools | Templates * and open ...
Teste de unidade com o banco de dados Tenho uma aplicação que usa JPA 2 com o Hibernate por trás e para os testes de unidade, eu utilizo o HSQLDB em memória com o JUnit 4.11. O HSQLDB é configurado em um arquivo persistence.xml em uma pasta META-INF. A minha pergunta é: Como faço para subir o banco de dados limpo no in...
Um EnumMap imutável é thread safe? Um mapa imutável construído em cima de um EnumMap poderia ser utilizado em ambiente multi-thread ou há algum risco de problemas de concorrência? public enum MyEnum { VALUE1, VALUE2, VALUE3, VALUE4; } private final Map myMap; public MyClassConstructor() { EnumMap mMap = new EnumMap...
Creating table and inserting data I'm trying to insert data to an Android database table. The database is created. I get no errors, but no data gets inserted. I added exception and I got some errors. MainActivity package com.example.shaz.geotag; import android.app.Dialog; import android.content.pm.PackageManager; impo...
Como validar um nome civil brasileiro? Como validar nomes de pessoas, em português do Brasil? O alfabeto português é baseado no alfabeto latino, que consiste de 26 caracteres: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Somado a estes caracteres, o alfabeto português (do Brasil) acrescenta os seguintes símbol...
Qual a versão iterativa (não recursiva) do algoritmo LCA (Lower Common Ancestor) Em Teoria dos Grafos, existe um conceito chamado LCA (Lower Common Ancestor - Ancestral comum mais próximo), onde dado um par de nós de uma árvore, deve-se encontrar o "pai" (ancestral) mais próximo desses dois nós. Um exemplo de árvore é:...
How can I get a debug log for the sites guest user/public profile? [updated for Spring 18] Normally, you can put debug monitoring on a user by name to see the details on the error they're getting (especially for the non-descript Error Loading a Visualforce Page). But when you are trying to debug a site page, how do you...
Como criar uma ALV com base em uma estrutura dinâmica? Estou tentando agilizar processos já que por diversas vezes precisamos gerar relatórios em ALVs. A idéia é conseguir obter o metadados de uma estrutura ( Nome de Campo, Domínio, Descritivo ) e assim gerar o 'fieldcat' na função de criação da ALV e na sequência cons...
"margin-top" e "margin-bottom" se sobrepondo, por quê? Eu tenho três elementos div: HTML CSS .box { background-color: black; box-sizing: border-box; height: 48px; width: 100%; margin: 7px 0; } Logo concluímos que o espaçamento vertical entre elas deveria ser de 14 pixeis (7px + 7px). Porém isso acontece...
Quais as vantagens das Expressões Lambda presentes no Java 8? O Java 8 será lançado em breve (março de 2014) e a principal feature desta versão são as Expressões Lambda. Alguém poderia descrever, como diz a pergunta, o que este recurso vai agregar na prática para os desenvolvedores e, se possível, algum exemplo de códi...
Como comparar elementos HTML por z-index real? Dados dois elementos HTML arbitrários A e B na mesma página, como posso descobrir qual deles está "mais próximo" do usuário (i.e. se eles se sobrepusessem, qual deles obscureceria o outro)? A especificação CSS do W3C descreve "contextos de empilhamento" (stacking contexts)...
Сократить количество запросов к БД Достался мне проект, да не простой, а запутанный - во время выполнения он обращается к таблице 70-120 раз, в зависимости от типа запроса. И это не считая других служебных запросов типа настроек и прочего. Помимо проблемы рефакторинга этого хлама, встаёт другая, более интересная: данны...
Проверить, принадлежит ли какая-либо точка отрезка заданной (заданным) окружностям Привет. Прошу помощи. В общем задача: на координатной плоскости задается отрезок с началом в точке А и с концом в точке В. Также задаются круги (можно и 1 круг) с центрами в точках M1,M2,M3,...M100 и с радиусами R1,R2,R3,...,R100. Нужно ...
Installation of Docker on Debian 8 Installation with apt-get -y install docker-engine as described in https://docs.docker.com/engine/installation/linux/debian/ fails with Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details. systemctl status docker.service gives ● dock...
Регулярное выражение для разделения по запятым, кроме экранированных Дано: Строка, например, вида такого: "Казнить|, нельзя, помиловать.". Задача: Разделить строку по запятым, но там, где | (вроде экранирования), запятую нужно игнорировать. Т.е. должно вернуть это: ["Казнить|, нельзя", " помиловать."] Возможно просмот...
Как растянуть сайдбар до футера? css html Не работают: min-height: 100%; height: 100%; Как растянуть сайдбар до футера? лучше код на jsfiddle залейте @dizballanze https://jsfiddle.net/jsm58qLe/ Aydar2015 jsfiddle.net/jsm58qLe по следующему отображению непонятно что вам необходимо? Рекомендую ознакомиться со стать...
ASEF: принцип формирования фильтра Пытаюсь разобраться в принципе формирования Average of Synthetic Exact Filter. Для OpenCV существует реализация использования данного типа фильтров на примере детекции зрачка человеческого глаза. Алгоритм запатентован, общественности предоставлен только лишь уже готовый классификатор....
Зависание FFmpeg/ffplay при проигрывании rtmp Имеется rtmp-поток. После запуска ffmpeg, последний останавливается и начинает играть в молчанку. Как ему указать, что если данных нет (ну или хотя бы по истечению какого-то времени), то следует завершить работу? Не надеюсь на ссылку к C API, хотя бы просто на ключ к консол...
.htaccess com subpasta diferente da root Estava trabalhando com essa estrutura e com esse htaccess: estrutura config/ logs/ www/ app/ bootstrap/ public/ packages/ .htaccess index.php ... vendor/ .htaccess ... htaccess RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] ...
Tableview cell subtitles My tableview cell subtitles aren't showing when I use this: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { var cell:UITableViewCell? if tableView.tag == 1 { guard let latestCell = tableView.dequeueReusableCell(withIdentifier: "latestCell") e...
Алгоритм Кнута-Морриса-Пратта Привет. Объясните, пожалуйста. Я уже очень много источников перечитал, но так и не понял. Алгоритм КМП использует префикс-функцию (что это, как она работает, реализацию - я все это понял). Я не понял сам алгоритм КМП: что он делает, в чем смысл, зачем он нужен? Ведь у нас есть префикс функ...
Erro ao instalar o Composer no Projeto em Laravel 4 Estou iniciando no mundo Laravel e estou com um problema no rodar o composer install no projeto. Ao rodar o comando, mostra o seguinte erro: D:\htdocs\cpi2>composer install Loading composer repositories with package information Installing dependencies (including requi...
Diferença entre o método ".attr()" e ".data()" Noto que existe uma diferença entre atualizar ou aplicar um atributo data utilizando o método de jQuery .attr() e o método .data(). Os exemplos em baixo apresentados podem ser vistos neste JSFiddle. Aplicar valor a atributo não existente Se aplicar o valor através do méto...
Замена темы в приложении Здравствуйте! Я хотел поменять тему, что в последствии и сделал, но немного не таким образом, как предполагал. В итоге остался вопрос, почему у меня не меняется тема так, как она должна меняться? Вот варианты, которые я пробовал применить, для того чтобы поменять тему в программе: Вариант 1. "В...