text stringlengths 3.08k 9.63k |
|---|
Tomcat отключить кеширование сервлетов
Доброго времени суток. собственно сабж... Гугл перерыл - толку 0...
Я прекрастно понимаю что это не php и необходимо пересобирать проект, подскажите пожалуйста нубу адекватный по трудоемкости и скорости вариант этого действа, а то реально напрягает каждый раз перезагружать сервак... |
Парсинг текста
Например, у меня в переменной записан текст. Вот пример
HolidaysPage: false,
'PhotoImagineHost': '',
'VideoPerlHost': '',
'ActiveFirstName': ' ',
'ActiveLastName': ' ',
'my_xhtml_path': '/ru/css/my_xhtml.css?70',
'my_mf_path': 'mf_css_xhtml.css?98',
'Validate': '',
'mna': '123456',
'mnb': '',
'... |
Как rollover эффектом повлиять на другие элементы?
Привет.
Есть несколько дивов, и они расположены друг над другом. Двое из дивов - элементы слайд шоу, один из дивов - убирающийся(сейчас) логотип. Так как лого находится над слоями слайд шоу, то нижние слои не реагируют на наведение мыши (а должны).
Вопрос: как сделать,... |
Visualforce to excel for more than 20K records
I need to export a VF page with contentType="application/vnd.ms-excel#Patents.xls" with a datatable fetching from a list with more than 20000 or 30000 records to an excel..
i changed the type to readonly=true to support 10000 records
how to support for 20K or 30K records?
... |
Как обновить часть страницы?
Есть файл с функциями где записано следующее:
function myPoll_v_1(){
global $user_ID; if ($user_ID) {//если залогинен то показываем
?>
$(document).ready(function(){
$('#poll-container').load('p/myPoll/xxx.html');//подгружаем форму для голосования
});
//сюда подгружаем
Pick your fa... |
Is there any simple way to install tarballs?
Most Linux software is packaged in tarballs. All of them require but a few commands to compile and install them.
My question is; we have gdebi for standalone debian packages, so why not an app to install tarballs the same way? Why is such an apparently simple process not au... |
Typing using key combinations?
I'm a Ubuntu 10.04 user who is looking for a way to, for example, make my computer type a + character when I hold down the Windows Key (I think it's called Super in Linux world) and press the K key. I need this to work in all applications. (I'm a person with a typing disability, and I nee... |
Built-in network card not working?
I am new to Ubuntu. I have installed Ubuntu 9.04(Jaunty). After installation I found that network card is not wokring. And id doest not list in "System > Preferenes > Network Connections" So , i got another card from my friend and try to search on internat about my problem but still c... |
Почему не работает часть кода?
Как бы все бьюсь с голосованием с этого урока. Собственно возникло предположение, что, возможно, что-то не работает из-за того, что урок рассчитан на одну версию php, а у меня другая стоит. Возможно ли такое?
Собственно если вкратце, то сейчас просто при выборе варианта и нажатии на кнопк... |
How to add a scroll View
I want to add a scroll view to tablerow in onClick I already have the code but it crashes Unfortunately,has stopped
java.lang.IllegalStateException: The specified child already has a
parent. You must call removeView() on the child's parent first
I Just Created a GridView when i click the it... |
tic-tac-toe logic and syntax using reactjs
I'm new to react.js and I started trying to create a simple Tic-Tac Toe app, but I'm having an issue with my logic.
When I console.log the current turn I have the correct "X" or "O" character tile. However, when I console.log it inside the render() function I get the opposite ... |
HTTP/1.1 426 Upgrade Required
When trying to connect to localhost (with Terminal), I got this answer:
HTTP/1.1 426 Upgrade Required
Server: WebSocket++/0.3.0-alpha4
How can I respond to that to Upgrade?
What exactly is the request? And does the response come with a response body?
Hi Julian, I'm trying to connect ... |
Workflow rule causing trigger to fire twice
I need to be able to detect that the trigger execution is happening because of a workflow field update.
There is a suggestion in the cookbook:
Controlling Recursive Triggers
But this solution is not properly bulkified. If my batch of records is split up (200, 100, 50 whatever... |
How can I build an app for a company that has two very distinct types of customers?
I am working on building an app for a startup company on the Force.com platform, and I am struggling to find the best way to set up and distinguish between two very distinct customer types.
The customer types:
Standard B2B type custome... |
JPA : EntityManager is taking too long to save the data
I have a csv file of data which has altogether 100 000 records. I am iterating over the records and trying to update 5 tables for each record. Here is the sample data:
EAN Code,Site,Genric Material,Material,Sap Ean Code,Style,Color,Size,MRP,Gender,EAN Code,Season,... |
Linking CronTrigger sObjects to Scheduled Jobs listings
When using System.schedule to add apex jobs to the scheduled jobs listing it creates a CronTrigger sObject containing the expression determining when the job is set to run. However this CronTrigger record does not contain the name of the scheduled job or the apex ... |
TensorFlow: How to skip broken data
I am playing with TensorFlow 1.0. My input data are bulk of jpeg images. Some of them are broken for different reasons, and I just want to skip them at input.
Image loading part of the Graph is the following:
filename_queue = tf.train.string_input_producer(tf.train.match_filenames_on... |
Где же эта инкапсуляция?
Небольшой уточняющий вопрос по классам C++.
Допустим, в классе есть метод. В этот метод передается параметр типа того же самого класса, в котором объявлен метод.
class A
{
...
public:
void Test(A& obj);
...
};
Методом проб и ошибок было установлено, что я могу спокойно изменять приватные член... |
counting highest number of 0's between two 1's in c#
I need help with a program that'll count the maximum number of 0's between two 1's in a given binary number in c#. For example 1100101(binary for 101) the maximum number of 0's between two 1's are 2. Any help?
This the code for counting the 0's in the string but not ... |
Not working .add( ) function in ManyToMany Relation of Python3 Django
now I'm designing data modeling with ManyToManyField in Django.
I would like to make each sessions have various instruments,
i.e)
A have a bass.
B have a drum.
So, I tested next codes
from django.test import TestCase
from Session.models import In... |
Проблема с функцией
Требуется сделать программу для сравнения (на больше-меньше) двух введённых строк. Сравнение должно выполняться в отдельной функции. Причем в функции не должно содержаться конструкций ввода-вывода. Как сделать так, чтобы вывод результата в происходил в функции main, а не compare:
void compare(char... |
Unit test SOQL limit setting up data model
I have run in to this situation where the data model is very complex and since SF doesn't support mocks (e.g., Mockito) there are so many SOQL executions in just setting up the data model (triggers, queries to get formulas, etc.) that the limit is hit. It is not uncommon to ha... |
Como calcular a diferença entre duas datas?
Qual a forma mais prática de encontrar a diferença de tempo entre duas datas no formato padrão usado pelo MySQL (YYYY-MM-DD)? Ex:
Data 1: 2013-12-11
Data 2: 1994-04-17
Uma das formas de fazer isto orientado a objetos, é usando a classe DateTime, a mesma possui o método diff ... |
Optimal way to get Case.Id from Case.Thread_Id
We've implemented a custom Apex Email Service to extend the standard Email-to-Case functionality, and one area we're struggling to do efficiently is figure out the CaseId when all that is known is the ThreadId:
E.g., [ ref:_00DC0PxQg._500C0KoOZS:ref ]
Currently, we are q... |
Invalid Argument error Expected begin[0] = 0
I am currently developing a neural network, and I got all the data and I got the code to the point that an image is being fed to the CNN for training. However, in the training process, for the first image an error pops up with the following code.
def convolutional_neural_ne... |
Практический смысл использования пространств имен в PHP
Доброго времени суток, уважаемые коллеги. Собственно листал на досуге ман и вспомнил о пространствах имен в php, внимание вопрос: Какой реальный практический смысл их использования?
Я имею введу не извраты с __autoload и т.д., там и без них можно обойтись, а именн... |
Como faço para remover acentos em uma string?
Eu tenho uma string
áéíóú
Que eu quero converter para
aeiou
Como eu removo os acentos? Preciso para guardar no banco de dados como uma URL.
Também respondido no SO em inglês: How do I remove diacritics (accents) from a string in .NET?
Ao invés de remover os acentos, por... |
Why am I Getting a NullPointerException After Accessing an Object From SharedPreferences?
I saved an object (Account) in SharedPreferences using gson, but after accessing the object in a new Activity, the instance of the object (newAccount) causes my use of newAccount.returnName() to give a NullPointerException. The er... |
Unable to configure webpack.config file
Whenever I run webpack-dev-server it throws this error:
....webpack/hot/only-dev-server ./src Module not found: Error: Can't resolve './src' in 'C:\....
Here's the webpack.config.js file
var webpack = require('webpack');
var path = require('path');
module.exports = {
devtool: ... |
calling an actionfunction reloads the page despite giving rerender attribute and says insufficient privileges in sites?
Calling an actionfunction reloads the page despite:
return false from the place where we call
setting rerender="emptydiv"
It says insufficient privileges in Sites (authenticated using partner portal... |
How do I debug an overheating problem on a Dell Inspiron 1564?
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem... |
Como capitalizar nomes em C#?
Tenho em minha aplicação nomes próprios em maiúsculo, por exemplo: "JOSÉ DA SILVA".
Gostaria de formatar da seguinte maneira: "José da Silva". Como fazer?
Uma maneira é utilizando método ToTitleCase para capitalizar palavras em C#.
CultureInfo.CurrentCulture.TextInfo.ToTitleCase("JOSÉ DA ... |
Transições CSS em menu expansível
Tendo um menu expansível como usar a transição CSS para abrir/fechar ao mesmo tempo a parte que está aberta e a parte que está a fechar?
O problema não se põe no caso de os menus terem o mesmo tamanho (exemplo), mas quando o tamanho é diferente dá ideia que o CSS lê o max-height como o... |
Apex: Calculate hour ranges
Given a start time (datetime) and a finish time (datetime) how can I easily calculate the number of hours that fell between 6:00am - 12:00pm (day hours) and 12:00 - 6:00am (night hours). They would be rounded up, so if there is any time at all in a given hour, that constitutes a complete hou... |
Стиль верстки сайта.
Всем здравствуйте!
Немного расскажу про то, как я верстаю. Обычно когда мне поступает заказ на верстку после получения макета я его нарезаю и приступаю к верстке. И сначала делаю всю html верстку и когда она вся готова я приступаю к написанию CSS стилей. И вот я задумался как верстают другие разраб... |
Имеет ли смысл переходить на Java при наличии немалого опыта в php,js?
Доброго времени суток, прекрасно понимаю что однозначного ответа на этот вопрос нет и что все-равно решать мне, просто так сложилось что я уже достиг определенного уровня в php, js при этом я чисто на досуге все это время учил java (очень нравится я... |
C print and store command line argument in a round robin manner
I am new to c programming and I have encountered this implementation problem. The situation is I need to use fork() to create 4 child process to print command line arguments in a round robin manner, that is if the input is ./abc.c RR GG EE WW BB CC DD AA, ... |
Como centralizar verticalmente o conteúdo de um elemento?
Estou tentando centralizar verticalmente o conteúdo de um elemento que tem position: absolute.
Consegui fazer o conteúdo se posicionar da metade para baixo do container, no entanto, da metade para cima o espaço fica "sobrando".
Como posso resolver isso apenas ut... |
Como mudar o fundo das linhas de uma tabela alternadamente? Com suporte pra navegadores antigos
Minha tabela é criada com um loop em PHP. Faço isso por PHP mesmo adicionando uma condição ou tem alguma forma melhor?
if ($nomSenha == 'xxxxxxxx') {
echo ' ';
echo ' ';
echo ' Id
Nome
Endereço
Bairro
Número
Compl... |
Use of @IsTest versus testMethod and location of test methods in classes
Is there any advantage to using the older testMethod keyword to identify test methods or is it better to use the @IsTest annotation?
Does the location of these test methods have any significance? E.g. Either being included within the definition of... |
64bits desktop does not boot
My 64bits desktop (intel core i7) was able to boot with Windows XP 64 installed, but it's not more possible after installing Ubuntu amd64: the computer says the HD is not bootable. The only way of booting the computer now, is using the Live CD and choosing boot from the hard disk. Besides, ... |
Why does Postgres refuse to use a composite index in some setups?
So, I have a table that looks like:
Table "public.rule_traffic"
Column | Type | Modifiers
id | bigint | not null default nextval('rule_traffic_seq'::regclass)
device_id | integer | not null
version_id | integer | not null
policy_name | text |
rule... |
Кодировка в приложении
Здравствуйте, есть небольшой лаунчер написанный на java для запуска игры. В лаунчере есть дата и заголовки последних новостей. Недавно, после публикации новой новости, обнаружили, что заголовок одной новости неправильно отображается в лаунчере. Лаунчер делает HTTP запрос по ссылке http://api.ense... |
Как написать сайт на Python без использования фреймворков?
Возник вопрос: как пишутся сайты на Питоне? Прочитал почти половину учебника, использую встроенный интерпретатор на линуксе, но все равно не могу понять, как использовать Питон для создания сайта.
Забыл написать, что хотелось бы обойтись без фреймворков (т.е. ... |
Where do I get a package for GNU Parallel?
I want to install GNU Parallel in Ubuntu but I can't find a package for it in the default Ubuntu repos. Where can I get it?
For posterity: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597050
In 13.04, you can install with apt-get:
sudo apt-get install parallel
sudo rm /e... |
Erro do Sqlite no Android : error code 11: database disk image is malformed
Tenho uma versão do Aplicativo em produção, onde é permitido marcar uma mensagem como favorita, só que esse erro totalmente aleatório acontece provocando corrompimento da base de dados e resultando em falha do aplicativo.
Sei que realizo operaç... |
python multiprocessing callback
i have a list of functions that does some job like download html from a url(each function is very different so i can't make a single function to accept url and downlaod). i have used multiprocessing to speed up the task. below is my code
def runInParallel(list_of_functions):
for fn in l... |
Unable to load ng2-fullpage in my angular-2 quickstart app
I am trying to use full page + angular2:
I am somehow unable to load the ng2-fullpage package to use,
below are my files:
systemjs.config.js
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the ... |
Как перенести Ubuntu из под виртуалки в Windows в отдельную систему?
У меня стоит Ubuntu из под винды, но в винде теперь нет необходимости, при этом все данные которые сейчас есть необходимо оставить в целости и сохранности(те которые на убунте), собственно вопрос как лучше всего поступить в этом случае?
Или выход толь... |
UITableView поверх UIScrollView
Доброе время суток, возникла такая проблема, у меня есть скролл вью, на пол экрана на нём расположены кнопки/лейблы, другая половина экрана занимает таблица, хочу сделать так, что бы при перемотке таблицы скролилась вся вьюха, уже 2-й день с этим автолояутом играюсь, никак допереть не мо... |
Resize Image in Photo Upload in Visualforce before save in attachment?
Good Morning Friends,
I am creating a Visualforce for my users to upload photos and these photos are saved in the attachments object, but I wonder if there is any way before the picture is saved I can give a resize the image to 800x600 when the imag... |
Unable to interact with views in fragment activity
Hi I am given an assignment to create contents in the fragment basic layout. However having create a swipe activity with tab action bar, i am unable to edit the fragment layout within each given tab. Here is the codes as follow :
MainActivity.java : method i use to ref... |
Using the ApexCSIAPI that backs to Force.com Console to pull data
When the Force.com/Developer Console is open and checking for updates I can see it polling the server with Ajax POST calls to https://instance.salesforce.com/_ui/common/apex/debug/ApexCSIAPI.
Has anyone examined these requests and the corresponding respo... |
Comando para substituir caracteres recursivamente
Preciso de um comando que faça a substituição de um padrão específico em cada linha de um arquivo tantas vezes quanto necessárias até que o padrão não seja mais encontrado.
Por exemplo, num arquivo CSV, os campos são separados por ponto-vírgula ;.
Os campos nulos não p... |
Ссылка на профиль без GET параметров
Доброго времени суток!
Всё чаще в соц. сетях используют ссылки на профиля без GET параметров вида vk.com/id1
Так вот будет являться глубокой ошибкой то что по этой ссылке есть папка или файл. Я хотел бы узнать, это нужно прописывать в .htacces или же надо создать свою страницу 404 ... |
How do I maintain item position when filter in RecyclerView?
Is it possible to maintain the position of items in a RecyclerView when SearchView has filtered the items in the RecyclerView?
i don't know if I'm doing it right or not but i don't if this is the right way to do it.
Heres my code for my adapter
public class b... |
Is there a way to setup continous integration for apex tests?
I would like to have continous integration (with Jenkins) for my apex code in order to run them automatically after each push to my git repository. Does anyone know a way how to do that?
We use Jenkins and the deploy Ant task routinely to deploy and test ma... |
Como contornar a má renderização de um tipo de letra no Internet Explorer?
Estou utilizando um font-kit gerado no Font Squirrel e estou obtendo resultados diferentes em ambiente Mac OS X e Windows.
Haveria alguma forma de contornar a má ou diferente renderização da fonte de Internet Explorer?
No Mac OS X:
No Windows 7... |
How to set high, low and medium priority email using queue?
I am studying Job dispatching from here
Problem
I read that each connection has queue parameter which tell the queue name. Question is: How can I set the priority to send low or medium or high priority email?
Cmd prompt
I am using command: php artisan queue:li... |
Quais os tamanhos padrões das imagens do android?
Estou criando meu primeiro aplicativo na plataforma Android e até onde eu sei um dos pontos negativos dessa plataforma é que os dispositivos existentes no mercado possuem diferentes tamanhos de telas.
Eu criei um projeto no Eclipse e verifiquei que ele cria 4 tipos de p... |
Generating notification for user to confirm that a field has the correct value
I have a custom field called Pipeline which is a required Yes/No picklist that defaults to No. When the user makes some specific changes to the record, and Pipeline=No, I would like them to confirm that Pipeline should remain No. I have trie... |
How to remove wine completely
How can I remove the wine folder and all the applications in that folder?
I've tried via synaptic but it keeps showing up in the application menu.
https://askubuntu.com/a/21683
In my case Wine did not get effectively uninstalled using the command:
sudo apt-get --purge remove wine wine64 ... |
why textbox wont accept key strokes?
i have loaded jqgrid with car maintaince test results and generated grid as follows:
HTML code
$.jgrid = $.jgrid || {};
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
React object
var SampleGrid = React.createClass({
c... |
Qual a diferença entre código client-side e server-side em desenvolvimento web?
Estou estudando ASP.NET através de um livro chamado Professional: ASP.NET 4.5 in C# and VB e em vários momentos o autor fala sobre código client-side e server-side, gostaria de saber a diferença.
Server-side diz respeito ao lado do servido... |
Why doesn't Canonical use pings from the Update Manager to gauge the size of the Ubuntu installbase?
I've heard from many people, Jono Bacon included, that it's impossible to say how many computers are running Ubuntu since there is nothing in the OS that phones home, and the Ubuntu Census package is only installed on O... |
How to make an Ubuntu live USB stick in Fedora?
I have Fedora installed on my desktop and I want to make a live USB stick with Ubuntu to install it on a laptop. What's the easiest way to do it?
Update: Sorry for providing a tutorial for Unetbootin, but it might be helpful if you're having problem with the dependencies... |
Call Apex class method on the fly (dynamically)
Is there any way I can call apex method from class if both class name and method are stored in the string.
String strClass = 'BatchUtil';
String strMethod = 'updateAccounts'
now I want to call above method.. is it possible ?
I was doing research and came across following... |
Android custom ListView with radio button
I am using a ListView in DialogFragment. List is populated from SQLite database
using SimpleCursorAdaptor.
Now I am using context menu to select an item from the list and everything is working fine, but I want to use radio button to select one item from the list instead of con... |
How Can I Tell the Day of the Week of a Date?
I'd like to build in some logic based on the weekday (e.g. Monday, Tuesday, Wednesday) of a given date. How can I identify the date, using either formulas or Apex code?
Formulas
There isn't a built-in function to do this for you, but you... UPDATE: As of Spring 2018, there... |
Getter для public static final (java). Есть ли смысл?
Имеет ли смысл скрывать public static final константы и делать геттер либо нет?
Вышел небольшой спор... Спасибо! :)
вот такие вот вопросы и затевают нешуточные холивары в инете...)
Универсальное правило ровно одно: следуйте семантике, смыслу кода.
Если вы экспортир... |
How can I execute JavaScript on a SFDC Standard Detail Page?
*NOTE: This is not feasible as of the latest SFDC Releases. *
I have a requirement to execute some JavaScript on a SFDC Standard Detail page.
Specifically we would like to remove the ability for the users to add Notes to an object, but still retain the abili... |
JavaScript Remoting on Standard Page Layout
I have a couple of JavaScript remoting functions used to count records and to display that count to the end user. The JavaScript remoting functions are on a Visualforce page, and the Visualforce page is embedded on a page layout of a custom object.
What is happening is that t... |
How to trap a System Error Message
Is there a way to trap system error messages? An example would be for a unique field violation. There are times that I would like to provide a richer set of error info than is provided by the built in system error.
Edit: Unfortunately, this is a system exception that happens in the ba... |
Booting hangs at "Checking battery...."
Ubuntu 9.04 (JAUNTY JACKLOPE version)Installation Guidance REQUESTED.
I am a quite new user (more proper to say “..a learner”) of Ubuntu. I am a Sr. citizen.
Please guide and help me in the matter mentioned below. My system is a Pentium III, 804 MHz processor, Asus CUSL-2 Mother ... |
Referenced memory could not be written
Whenever I run this struct, I can get down to the line where you would input the constitution modifier and the program crashes with a popup window which reads "The instruction at 0x00000000775AFDE9 referenced memory at 0x000000007758D250. The memory could not be written. Press OK ... |
Unable to display negative numbers using array in the following 8086 assembly code
What i am trying to do
I am trying to print a series of negative and positive numbers using array.
What is the problem
I am not able to print negative numbers.
Input:
2,-3,-4,5,2,9
Output:
2-,529
My 8086 Assembly Code:
.model small... |
Problema com @extends em view no Laravel.
Estou com um problema com o @extends('layouts.template'). Só minha view que está como index que não mostra a pagina, ao invés disso me mostra só isso @extends('layouts.template') na pagina. O que poderia ser?
obs: a rota está normal:
Route::any('/', ["as" => "home",
function()... |
Estrutura de dados eficiente para problema concorrente de high scores
Como parte de um teste foi pedido que eu desenvolvesse uma aplicação para gerir dados de high scores em ambientes com alta concorrência. Essa aplicação não deve persistir nada em disco ou utilizar bibliotecas e frameworks externos. Basicamente os req... |
Add background image using Javascript CSS property
I'm trying to add background image using Javascript CSS property. My code does not work. If I add 'url' directly, it worked. Is 'weatherImage' variable a problem..?
Javascript
var OpenWeatherKey = 'API key';
var locationUrl = 'http://freegeoip.net/json/';
function ge... |
Como vincular models (com association), forms e grids no ExtJS 4?
Estou utilizando ExtJS 4.2 em um projeto e estou com problemas envolvendo as associations do model e como vinculá-las à forms e grids. Vou ilustrar com um exemplo.
Tenho 3 classes e 1 json, como seguem abaixo:
Usuario
Ext.define('Usuario', {
extend: '... |
Como obter a identidade de um objeto em JavaScript?
Diversas linguagens possuem um meio de se obter a "identidade" de um objeto, i.e. um número [inteiro] que é único para cada objeto, tal que objetos diferentes tenham identidades diferentes. Exemplos:
Java (System.identityHashCode)
Tanto quanto razoavelmente prático,... |
Atributo "href" para links em JavaScript: "#" ou "javascript:void(0)"?
Popularmente, existem dois métodos de criar links que executam uma função em JavaScript, são eles:
Executar JavaScript
ou
Executar JavaScript
Considerando funcionalidade, carregamento da página, etc... Qual é o mais recomendado?
Nenhum.
Prob... |
Cabeçalhos de cache HTTP em Servlets
Gostaria de saber se existem bibliotecas ou soluções para tratar requests contendo cabeçalhos como Last-Modified, If-Modified-Since, If-Range (para resumo de downloads), If-None-Match, Cache-Control, Pragma, etc e produzir respostas com código 304, ETags, Expires, Last-Modified, Con... |
Linux: How to mmap a sequence of physically contiguous areas into user space?
In my driver I have certain number of physically contiguous DMA buffers (e.g. 4MB long each) to receive data from a device. They are handled by hardware using the SG list. As the received data will be subjected to intensive processing, I don'... |
How can we disable triggers, Validation Rules and workflow rules in salesforce org. [on off - switch]
How can we disable triggers, Validation Rules and workflow rules in salesforce org.
This becomes really needed and important when we are doing data migration(data imports) in salesforce.
The way I handled this is creat... |
How to swap odd and even lines in a text file?
I have a text file. I have to swap odd and even lines.
I made a batch script that writes even lines into testfile2.txt and odd lines into testfile3.txt.
@echo off
setlocal EnableDelayedExpansion
set "filepath1=C:\\Users\\andyb\\Desktop\\testfile.txt"
set "filepath2=C:\\Us... |
O que significa e como funciona um enum com o atributo [Flags]?
Eu estava vendo como funciona a classe FileInfo e me deparei com um enum:
[Serializable]
[ComVisible(true)]
[Flags]
public enum FileAttributes
{
ReadOnly = 1,
Hidden = 2,
System = 4,
Directory = 16,
Archive = 32,
Device = 64,
Normal = 128,
Temporar... |
Validating country codes
Our enterprise data systems maintain a list of 2-character country codes that I want to enforce inside Salesforce. I'm having trouble writing a validation rule that successfully does this.
The rule on Lead.Country is:
AND(
!ISBLANK(Country),
LEN(Country) <> 2,
NOT(CONTAINS("00:AD:AE:AF:AG... |
Can I store information even if the trigger throws an exception?
I currently have a trigger which sometimes fails when new information is inserted from a 3rd party system. I can't simply check the logs as it usually happens during the night and it's not easy to spot the reason (pretty complicated code). Therefore I tri... |
Построение SaaS системы - архитектура БД
Планирую писать ИМ (интернет магазин). Модель магазина будет не коробочной, а SaaS. Среда разработки - php.
На данный момент тщательно продумываю всю техническую и функциональную сторону разработки.
Передо мной встал вопрос относительно архитектуры данных в бд. Какой из двух при... |
Como ler um arquivo de texto em Java?
Tenho o arquivo que se chama dados.txt e quero colocá-lo numa String. Por exemplo:
String texto = lerArquivo("conteudo.txt");
Pergunta
Como escrever esse método lerArquivo()?
A forma mais fácil de ler um arquivo em Java, depois do Java 7, é através da biblioteca NIO2. Você faz is... |
Can't get "rendered" to work with checking a map for null
I have been trying for a good few hours to only get my apex:outputLink to show up if it is a key within a map in my controller.
It keeps giving me the generic 'Syntax Error'.
Here's the VF:
{!a}
|
So "cons" is a Map>() that gets loaded in the construct... |
Como remover um Elemento de um XML com Python?
O caso é que tenho um arquivo produzido por um Garmin (aparelho GPS para exercício físico) e quero remover todos os campos referentes ao batimento cardíaco para passar o arquivo a um atleta que fez o exercício comigo. O arquivo está no formato GPX e é mais ou menos assim:
... |
Nav-bar responsivo no Foundation?
Estou dando manutenção em um site que foi feito com o Foundation, e realmente não tenho conhecimento nenhum nesse framework, pelo fato de só trabalhar com o Bootsrap.
Já procurei na documentação do Foundation mas não achei nada que resolvesse o meu problema.
Problema
No site tem uma
... |
How do I install .run files?
My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?
I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?
Occasionally, so... |
Existe dialeto de LISP/Logo em português?
Para criança programar com palavras em inglês podem atrapalhar um pouco para entender bem o que tudo é e faz. Cresci com o Superlogo em holandês. Existem coisas assim em português?
Talvez o Portugol? Não se assemelha ao Lisp ou ao Logo, mas talvez seja útil para o público alvo... |
Em que situações devo alocar um vector dinamicamente em C++?
Estou mexendo em um código de um framework para meu trabalho. Em uma das funções, ele aloca dinamicamente um std::vector, faz uma cópia de cada nó que o objeto possui e o retorna para o usuário:
std::vector *Tree::getAllNodes() {
std::vector *n, *aux;
n = n... |
Quais seriam casos reais de uso de programação funcional no mundo .NET (F#)?
Recentemente (ok, já faz alguns bons meses) estive me interando da linguagem F#, que é a resposta da Microsoft em oferecer uma linguagem de programação funcional na plataforma .NET.
Porém ainda não ficou bem claro pra mim os reais casos e vant... |
Como converto o tamanho de um arquivo em bytes para KB, MB, GB, TB, etc?
Estou pegando o tamanho de arquivos para exibir na tela:
new FileInfo(arquivo).Length
Só que esta propriedade me retorna o total de bytes... Eu gostaria de exibir em um formato que desse para entender, por exemplo, ao invés de 2147483647 quero mo... |
Обработать ввод пользователя в консоли
Я знаю, что обработать ввод пользователя в консоли можно с помощью getchar() или scanf(). Но при таком методе есть минус - при нажатии клавиш вперед и назад, курсор не сдвигается, а появляются новые символы. Например в BASH, такого нет. Как это сделано?
Там используется библиотек... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.